oracle中,不同用户之间表格的导入。以下操作需要在命令行中操作,而不是在pl/sql中。
第一步:首先进入到一个盘符下,比如:D:\>,然后输入命令:
exp userid=scott/tiger file='d:\exp.dmp' log='d:\exp.log' tables=(EMP,DEPT)
第二步:执行下面的命令,将scott用户表的数据拷贝到 test 用户中。
imp userid="\"sys/sys as sysdba"\" file='d:\exp.dmp' log='d:\imp.log' tables=(EMP,DEPT) fromuser=scott touser=test
第一步:首先进入到一个盘符下,比如:D:\>,然后输入命令:
exp userid=scott/tiger file='d:\exp.dmp' log='d:\exp.log' tables=(EMP,DEPT)
第二步:执行下面的命令,将scott用户表的数据拷贝到 test 用户中。
imp userid="\"sys/sys as sysdba"\" file='d:\exp.dmp' log='d:\imp.log' tables=(EMP,DEPT) fromuser=scott touser=test