ORACLE 12c常見問題解決

ORACLE 12c常見問題解決

服務器sqlnet.ora加上
SQLNET.ALLOWED_LOGON_VERSION=8
ORACLE 12c常見問題解決
重建下密碼,新舊版本兼容問題,或升級oracle client
alter user sys identified by "密碼"
服務器重啓時,pdb默認不啓動
SQL> col name format A10
SQL> select name , open_mode from v$pdbs;sql

NAME OPEN_MODE數據庫


ORCLPDB MOUNTED服務器

SQL> alter pluggable database orclpdb open;session

插接式數據庫已變動。oracle

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

NAME OPEN_MODEide


ORCLPDB READ WRITE
建立hr實例
SQL> @C:\app\Administrator\virtual\product\12.2.0\dbhome_2\demo\schema\human_res
ources\hr_main.sqlui

specify password for HR as parameter 1:
Enter value for 1: hrspa

specify default tablespeace for HR as parameter 2:
Enter value for 2: usercode

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常見問題解決
ORACLE 12c常見問題解決

相關文章
相關標籤/搜索