标签:sys data sele select ORC nts 创建表空间 RoCE char
示例:
原库:192.168.6.100
目标库:192.168.9.100
1.目标库建库,确认原库信息(实例名、进程数、字符集)等,目标库相关信息要和原库信息一致
select name from v$databse;
show parameter processes;
select * from v$nls_parameters where parameter=‘NLS_CHARACTERSET‘’;
2.原库导出
创建导出目录:create directory expdp as ‘D;/expdp‘;
grant read,write on directory expdp to public;
select * from dba_directories;
全库导出:expdp \"/ as sysdba\" directory=expdp logfile=orcl.log dumpfile=orcl_191112_%U.dmp full=y parallel=4
3.导入目标库
1.创建导入目录(存放dmp文件的位置)
create directory impdp as ‘D:/impdp‘;
grant read,write on directory expdp to public;
2.查看表空间对应的数据文件位置
show parameter db_create;
alter system set db_create_file_dest=‘D:/oradata‘;
3.目标库创建表空间(与原库一致)
原库查看表空间:select tablespace_name,sum(bytes)/1024/1024 G from dba_segments group by tablespace_name ;
标签:sys data sele select ORC nts 创建表空间 RoCE char
原文地址:https://www.cnblogs.com/hjmLinux/p/11906349.html