成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

CDB與PDB的連接

1.連接
sqlplus system/xxxxx@10.8.5.206:1521/pdbtest
ALTER SESSION SET CONTAINER = PDB$SEED;
2.再CDB中切換連接
C:\Users\Administrator>sqlplus / as sysdba

創(chuàng)新互聯(lián)2013年至今,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站制作、成都做網(wǎng)站、外貿(mào)營(yíng)銷網(wǎng)站建設(shè)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元懷柔做網(wǎng)站,已為上家服務(wù),為懷柔各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:028-86922220

SQL*Plus: Release 12.2.0.1.0 Production on 星期五 12月 15 09:33:39 2017
Copyright (c) 1982, 2016, Oracle. All rights reserved.

連接到:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> show con_name
CON_NAME

CDB$ROOT
SQL> select name from v$pdbs;
NAME

PDB$SEED
PDBTEST
CLONEPDB_PLUG
SQL> alter session set container=PDBTEST;

會(huì)話已更改。
SQL> select name from v$pdbs;

NAME
-------------------------------------------------------------------------------- PDBTEST

SQL> show con_name

CON_NAME

PDBTEST
SQL> alter session set container=CLONEPDB_PLUG;

會(huì)話已更改。

SQL> show con_name

CON_NAME
------------------------------ CLONEPDB_PLUG
3.CDB實(shí)例關(guān)閉與啟動(dòng)
3.1關(guān)閉
C:\Users\Administrator>sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on 星期五 12月 15 09:40:41 2017

Copyright (c) 1982, 2016, Oracle. All rights reserved.

連接到:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> shutdown immediate
數(shù)據(jù)庫(kù)已經(jīng)關(guān)閉。
已經(jīng)卸載數(shù)據(jù)庫(kù)
ORACLE 例程已經(jīng)關(guān)閉。
3.2 啟動(dòng)道nomount狀態(tài)
SQL> startup nomount ORACLE 例程已經(jīng)啟動(dòng)。

Total System Global Area 2768240640 bytes
Fixed Size 8922760 bytes Variable Size 704645496 bytes Database Buffers 2046820352 bytes Redo Buffers 7852032 bytes
SQL> set line 200
SQL> col con_id format A40
SQL> col name format A20
SQL> col open_mode format A20
SQL> select con_id,name,open_mode from v$pdbs;

未選定行
3.3打開(kāi)到mount狀態(tài)
SQL> alter database mount;

數(shù)據(jù)庫(kù)已更改。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE                                                                               ---------- -------------------- --------------------

########## PDB$SEED MOUNTED
########## PDBTEST MOUNTED
########## CLONEPDB_PLUG MOUNTED
3.3打開(kāi)數(shù)據(jù)庫(kù)
SQL> alter database open;

數(shù)據(jù)庫(kù)已更改。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE

########## PDB$SEED READ ONLY
########## PDBTEST MOUNTED
########## CLONEPDB_PLUG MOUNTED
4.PDB打開(kāi)與關(guān)閉
4.1打開(kāi)一個(gè)
SQL> alter pluggable database pdbtest open read write;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE

########## PDB$SEED READ ONLY
########## PDBTEST READ WRITE
########## CLONEPDB_PLUG MOUNTED
4.2關(guān)閉一個(gè)
5.SQL> alter pluggable database pdbtest close;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE

########## PDB$SEED READ ONLY
########## PDBTEST MOUNTED
########## CLONEPDB_PLUG MOUNTED
4.3全部打開(kāi)/關(guān)閉
SQL> alter pluggable database all open read write;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE

########## PDB$SEED READ ONLY
########## PDBTEST READ WRITE
########## CLONEPDB_PLUG READ WRITE
SQL> alter pluggable database all close;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE

########## PDB$SEED READ ONLY
########## PDBTEST MOUNTED
########## CLONEPDB_PLUG MOUNTED
4.4排他打開(kāi)
SQL> alter pluggable database all except PDBTEST open read write;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME                 OPEN_MODE

########## PDB$SEED READ ONLY
########## PDBTEST MOUNTED
########## CLONEPDB_PLUG READ WRITE
SQL> alter pluggable database all except PDBTEST close;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> select con_id,name,open_mode from v$pdbs;
CON_ID NAME OPEN_MODE


########## PDB$SEED READ ONLY
########## PDBTEST MOUNTED
########## CLONEPDB_PLUG MOUNTED

5.改變PDB狀態(tài)
SQL> col con_id format 999999
SQL> col name format A20
SQL> col open_mode format A20
SQL> set line 100
SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME OPEN_MODE


  2 PDB$SEED             READ ONLY
  3 PDBTEST              MOUNTED
  4 CLONEPDB_PLUG        MOUNTED

SQL> alter pluggable database PDBTEST open restricted;
SQL> select con_id,name,open_mode from v$pdbs;

CON_ID NAME OPEN_MODE ------- -------------------- -------------------- 2 PDB$SEED READ ONLY 3 PDBTEST READ WRITE 4 CLONEPDB_PLUG MOUNTED
SQL> show pdbs

CON_ID CON_NAME                       OPEN MODE  RESTRICTED

     2 PDB$SEED                       READ ONLY  NO
     3 PDBTEST                        READ WRITE YES
     4 CLONEPDB_PLUG                  MOUNTED

SQL> alter pluggable database PDBTEST close;

插接式數(shù)據(jù)庫(kù)已變更。

SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED


     2 PDB$SEED                       READ ONLY  NO
     3 PDBTEST                        MOUNTED                                                                                4 CLONEPDB_PLUG                  MOUNTED

網(wǎng)頁(yè)名稱:CDB與PDB的連接
URL地址:http://jinyejixie.com/article20/ggihco.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、企業(yè)網(wǎng)站制作服務(wù)器托管、全網(wǎng)營(yíng)銷推廣、Google

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

微信小程序開(kāi)發(fā)
化德县| 山阳县| 天全县| 加查县| 徐闻县| 调兵山市| 东平县| 临汾市| 高州市| 会理县| 怀仁县| 集安市| 涿鹿县| 嵊泗县| 民县| 湘乡市| 大余县| 蛟河市| 南汇区| 兴安盟| 永寿县| 滕州市| 邯郸市| 津市市| 宁安市| 汾阳市| 南溪县| 北宁市| 新兴县| 新巴尔虎左旗| 长子县| 临高县| 新竹市| 广饶县| 金沙县| 察雅县| 彰化县| 大厂| 奈曼旗| 丰台区| 镇沅|