场景,数据库在两个服务器之间迁移
源服务器 A
目标服务器 B;
具体操作步骤:
1,在A服务器导出 指定用户数据文件:
exp test/test@test file=d:\test.dmp owner=test ignore=y;
2,在B服务器上需要做的操作:
2.1
create tablespace test
logging
datafile 'E:\app\oradata\test\test.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
2.2
create user zcgl identified by test default tablespace test;
2.3
grant connect,resource,dba to test;
2.4
CEATE DATABASE test
USER test IDENTIFILED by test
CONTROFILE REUSE
LOGFILE GROUP 1 ('E:\app\oradata\test\logs\zcgl01.log') SIZE 100M
GROUP 2 ('E:\app\oradata\test\logs\zcgl02.log') SIZE 100M
MAXLOGFILES 10
MAXLOGMEMBERS 10
MAXDATAFILES 100
MAXINSTANCES 1
CHARACTER SET US7ASCII
DATAFILE 'test.dbf' SIZE 100M REUSE
EXTENT MANAGEMENT LOCAL
DEFUALT TABLESPACE test;
2.5
alter database test default tablespace test;
2.6
重新建立 dblink;重新建立同义词;重新存储过程重新编译