在oracle10中使用低版本exp

以ora8的exp为例,拷贝exp8至$ORACLE_HOME的bin,

libclntsh.so.8.0和libwtc8.so两个库文件拷贝至lib32,同时整个拷贝oracle8的ocommon。

Oracle 10g 关于 NLS 的环境变量发生了一点变化:

For RDBMS 7.2.x version the variable is called ORA_NLS.

For version 7.3.x the variable is called ORA_NLS32.

For Oracle 8, 8i and 9 variable is called ORA_NLS33.

For Oracle 10g the variable is called ORA_NLS10.

ORA_NLS33 的设置值:

ORA_NLS33 = $ORACLE_HOME/ocommon/nls/admin/data

而 ORA_NLS10 只需要设置:

ORA_NLS10 = $ORACLE_HOME/nls/data

(so in oracle 10, there is no dir ocommon)

定义了 ORA_NLS10 则不需要单独定义 ORA_NLS33 等参数了。

目前应该仍然是向后兼容 ORA_NLS33 的。

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/545828/viewspace-868209/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/545828/viewspace-868209/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在 Java 使用 Oracle EXP 和 IMP 工具可以通过以下步骤完成: 1. 首先,在 Java 程序使用 Runtime 类的 exec() 方法启动命令行窗口或终端。 2. 然后,使用 Process 对象获取输出流和错误流,并将命令行参数传递给 Oracle EXP 或 IMP 工具。 3. 执行命令并等待命令完成。在命令完成后,可以检查输出流和错误流以获取任何错误信息。 以下是一个示例代码片段,演示如何在 Java 使用 Oracle EXP 和 IMP 工具: ``` import java.io.*; public class OracleExpImp { public static void main(String[] args) { try { // 启动命令行窗口或终端 Process process = Runtime.getRuntime().exec("cmd"); // 获取输出流和错误流 OutputStream outputStream = process.getOutputStream(); InputStream inputStream = process.getInputStream(); InputStream errorStream = process.getErrorStream(); // 执行命令并等待命令完成 String command = "exp userid=username/password@database file=export.dmp"; outputStream.write(command.getBytes()); outputStream.flush(); outputStream.close(); int exitCode = process.waitFor(); // 检查输出流和错误流以获取任何错误信息 BufferedReader inputReader = new BufferedReader(new InputStreamReader(inputStream)); String inputLine; while ((inputLine = inputReader.readLine()) != null) { System.out.println(inputLine); } inputReader.close(); BufferedReader errorReader = new BufferedReader(new InputStreamReader(errorStream)); String errorLine; while ((errorLine = errorReader.readLine()) != null) { System.err.println(errorLine); } errorReader.close(); if (exitCode != 0) { System.err.println("命令执行失败"); } } catch (IOException | InterruptedException e) { e.printStackTrace(); } } } ``` 此代码片段演示了将 Oracle EXP 工具用于导出数据库。要使用 Oracle IMP 工具进行导入,请更改命令参数和命令字符串。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值