暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Oracle 19c PDB在线迁移.docx
1348
2页
43次
2021-12-07
免费下载
Oracle 19c
在线迁移
PDB
(含版本升级)
平台
: Linux7 Or Linux8
源库版本
: 19.3.0
目标库版本
: 19.13.0
1
源库建立迁移专用用户
SQL> create user c##dbclone identied by <password> container=all;
SQL> grant create session,connect,resource,cdb_dba,sysoper to c##dbclone
container=all;
SQL> grant CREATE PLUGGABLE DATABASE to c##dbclone container=all;
2
目标库建立
DBLink
SQL> create database link <dblink_name> connect to c##dbclone identied
by <password> using '(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST
= 172.18.2.130)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)
(SERVICE_NAME = UAT)))';
3
迁移库
A
、如果源端没有提供服务执行以下指令
SQL> create pluggable database <target_DB> from
<Source_SID>@<dblink_name> keystore identied by "<password>";
B
、如果源端一直保持在线并对外服务请执行以下指令
SQL> create pluggable database <target_DB> from
<Source_SID>@<dblink_name> keystore identied by "<password>" refresh
mode manual;
4
开启库
A
、如果源端没有提供服务执行以下指令
SQL> alter pluggable database <target_DB> open;
升级数据库
$ cd $ORACLE_HOME/OPatch
$ ./datapatch -pdbs <pdb_SID>
B
、如果源端一直保持在线并对外提供服务执行以下指令
目标端
SQL> alter pluggable database <target_DB> refresh;
源端
SQL> alter pluggable database <source_SID> close immediate instances=all;
SQL> alter pluggable database <source_SID> open read only instances=all;
目标端
SQL> alter pluggable database <target_SID> close immediate instances=all
SQL> alter pluggable database <target_SID> refresh
SQL> alter pluggable database <target_SID> refresh mode none;
SQL> alter pluggable database <target_DB> open;
升级数据库
$ cd $ORACLE_HOME/OPatch
$ ./datapatch -pdbs <pdb_SID>
of 2
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜