用imp/exp导出导入
在DOS下
导出
exp userid = ehtemp/ehtemp@localdev LOG=exp_dev_ehtemp.log
compress=n
buffer=10000000
file=G:\exp\localdev\exp_dev_ehtemp.DMP
grants=Y
indexes=Y
rows=Y
constraints=Y
owner=ehtemp;导入
imp userid = ehtemp/ehtemp@dev
LOG=imp_dev_ehtemp.log
buffer=10000000
file=G:\exp\localdev\exp_dev_ehtemp.DMP
grants=Y
indexes=Y
rows=Y
Commit=Y
Ignore=N
constraints=Y;
在DOS下
导出
exp userid = ehtemp/ehtemp@localdev LOG=exp_dev_ehtemp.log
compress=n
buffer=10000000
file=G:\exp\localdev\exp_dev_ehtemp.DMP
grants=Y
indexes=Y
rows=Y
constraints=Y
owner=ehtemp;导入
imp userid = ehtemp/ehtemp@dev
LOG=imp_dev_ehtemp.log
buffer=10000000
file=G:\exp\localdev\exp_dev_ehtemp.DMP
grants=Y
indexes=Y
rows=Y
Commit=Y
Ignore=N
constraints=Y;
dmp用什么用户导出的,就用什么用户导入就行了.
oracle中建立一个数据库 在导dmp文件前 表结构是不是要先行导入?
建立好足够大的表空间,,,用户,
然后使用用户模式导imp system/manager file=a.dmp fromuser=user_name touser=user_name buffer=99999999
exp help=y
导出(别人导的)用 system/manager 我导入用 system/scorpion 可以吧?
源数据库是8i 我的是9i 从低向高导应该没问题吧
"CREATE TABLE "REPCAT$_USER_AUTHORIZATIONS" ("USER_AUTHORIZATION_ID" NUMBER "
"NOT NULL ENABLE, "USER_ID" NUMBER NOT NULL ENABLE, "REFRESH_TEMPLATE_ID" NU"
"MBER NOT NULL ENABLE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAG"
"E(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) LOGGING "
"NOCOMPRESS"
是正常的吧?
另外,公司给的sql脚本没用? 不用在sql plus中执行?
8.32g 的dmp 可我的硬盘只有12g了 够呛!
使用
imp system/scorpion file=a.dmp fromuser=user_name touser=user_name buffer=99999999就可以,因为system/scorpion是要执行IMP的用户及密码
呵呵:那就快结贴了。 我用的是全模式吧? 空间怕有点紧张!