您好,登錄后才能下訂單哦!
小編給大家分享一下ORACLE 12c常見問題有哪些,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
服務器sqlnet.ora加上
SQLNET.ALLOWED_LOGON_VERSION=8
重建下密碼,新舊版本兼容問題,或升級oracle client
alter user sys identified by "密碼"
服務器重啟時,pdb默認不啟動
SQL> col name format A10
SQL> select name , open_mode from v$pdbs;
NAME OPEN_MODE
ORCLPDB MOUNTED
SQL> alter pluggable database orclpdb open;
插接式數據庫已變更。
SQL> select name , open_mode from v$pdbs;
NAME OPEN_MODE
ORCLPDB READ WRITE
創建hr實例
SQL> @C:\app\Administrator\virtual\product\12.2.0\dbhome_2\demo\schema\human_res
ources\hr_main.sql
specify password for HR as parameter 1:
Enter value for 1: hr
specify default tablespeace for HR as parameter 2:
Enter value for 2: user
specify temporary tablespace for HR as parameter 3:
Enter value for 3: temp
specify log path as parameter 4:
Enter value for 4: C:\app\Administrator\virtual\product\12.2.0\dbhome_2\log
alter session set container=ORCLPDB;
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE
########## ########## 5A872545AC274801A748D0A39B5F513A PDB$SEED READ ONLY
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB MOUNTED
SQL> alter session set container=ORCLPDB
2 ;
會話已更改。
SQL> startup
插接式數據庫已打開。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE ---------- ---------- ---------------------------------------- ---------- ----------
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
SQL> alter pluggable database close
2 ;
插接式數據庫已變更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE ---------- ---------- ---------------------------------------- ---------- ----------
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB MOUNTED
SQL> alter pluggable database open read only
2 ;
插接式數據庫已變更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE ---------- ---------- ---------------------------------------- ---------- ----------
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ ONLY
SQL> alter pluggable database open read write;
alter pluggable database open read write
*
第 1 行出現錯誤:
ORA-65019: 可插入數據庫 ORCLPDB 已打開
SQL> alter pluggable database close;
插接式數據庫已變更。
SQL> alter pluggable database open read write;
插接式數據庫已變更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
SQL> alter pluggable database open read write RESTRICTED;
插接式數據庫已變更。
SQL> select con_id, dbid, guid, name , open_mode from v$pdbs;
CON_ID DBID GUID NAME OPEN_MODE
########## ########## 707A628103304A948B8250B57DDE09FD ORCLPDB READ WRITE
以上是“ORACLE 12c常見問題有哪些”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。