在线等待(相送1000分)-oracle迁移

hqhqhw 2005-02-21 04:00:34
a机器
os: turbolinux中文版
db:oracle9.2.0 for linux
已经有数据库sid: testa ,数据库字符集ZHS16CGB231280
b机器
os: windows2003中文版,。
db: oracle9.2.0 for windows
已经有数据库sid: testb(安装时默认的数据库),数据库字符集ZHS16CGB231280

现在要把a机器上的数据库迁到b机器上,而且必须用imp/exp,nls_lang未知。
请您给我一个实际操作的方案。
...全文
82 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
luxuezhu 2005-02-21
  • 打赏
  • 举报
回复
在B上
exp userid=system/manager@iagentdb file=d:\orabak\1_full.dmp full=y direct=y rows=y constraints=y grants=y

然后
imp userid=system/manager file=d:\orabak\1_full.dmp full=y;
hqhqhw 2005-02-21
  • 打赏
  • 举报
回复
to:ashzs((可以包含中文字符))
请您给出具体的命令和操作过程

我是如下做的:

所有的操作都是在b机器上

set nls_lang=american_america.zhs16cgb231280

exp system/manager file=exp.dmp log=exp.log full=y

set nls_lang=american_america.zhs16cgb231280

imp system/manager file=exp.dmp log=imp.log full=y

导出成功执行了,但是倒入的时候出错,倒入的日志如下:

Connected to: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

Export file created by EXPORT:V09.02.00 via conventional path
import done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character set

IMP-00017: following statement failed with ORACLE error 942:
"GRANT READ ON DIRECTORY "MEDIA_DIR" TO "PM""
IMP-00003: ORACLE error 942 encountered
ORA-00942: table or view does not exist

IMP-00019: row rejected due to ORACLE error 1
IMP-00003: ORACLE error 1 encountered
ORA-00001: unique constraint (OE.PRODUCT_INFORMATION_PK) violated

ashzs 2005-02-21
  • 打赏
  • 举报
回复
在b机器用exp将a上的数据库导出,然后在b机器上,将导出的文件导入到b的数据库中!

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧