oracle 12c PDB随CDB启动以及链接PDB的方式是什么
今天就跟大家聊聊有关oracle 12c PDB随CDB启动以及链接PDB的方式是什么,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
本来不知道有这个特性写了个trigger实现
sql_startup_pdb:='alter pluggable database test open';
EXECUTE IMMEDIATE sql_startup_pdb;
end;
/
12R2可以设置如下自动启动pdb
ALTER PLUGGABLE DATABASE test SAVE STATE;
select con_name, state from dba_pdb_saved_states
CON_NAME
STATE
------------------------------ --------------
TEST
OPEN
详细信息可以参考以下文章:
How to Preserve Open Mode of PDBs When the CDB Restarts (Doc ID 1933511.1)
和连接pdb的方式
jhpd1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.12.29)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = jhpd1) ##PDB_NAME
)
)
Service "763210eda4a67d57e05322640a0a58cb" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd371c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd471c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd571c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd671c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd771c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd871c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
Service "7685cbd9bdd971c9e05322640a0a3b82" has 1 instance(s).
Instance "mldxt", status READY, has 1 handler(s) for this service...
alias xxpd1='sqlplus system/oracle@xxpd1'
alias xxpd2='sqlplus system/oracle@xxpd2'
alias xxpd3='sqlplus system/oracle@xxpd3'
alias jhpd1='sqlplus system/oracle@jhpd1'
alias jhpd2='sqlplus system/oracle@jhpd2'
alias jhpd4='sqlplus system/oracle@jhpd4'
alias jhpd6='sqlplus system/oracle@jhpd6'
alias dxtdb='sqlplus system/oracle@dxtdb'
看完上述内容,你们对oracle 12c PDB随CDB启动以及链接PDB的方式是什么有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注亿速云行业资讯频道,感谢大家的支持。
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341