[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on 星期五 11月 29 18:23:54 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
連接到:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> shutdown abort
ORACLE 例程已經關閉。
SQL> startup mount
ORACLE 例程已經啓動。
Total System Global Area 4.0400E+10 bytes
Fixed Size 30036832 bytes
Variable Size 1.0603E+10 bytes
Database Buffers 2.9662E+10 bytes
Redo Buffers 104177664 bytes
數據庫裝載完畢。
SQL> alter database open;
數據庫已更改。
SQL> exit
從 Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production 斷開
[oracle@localhost ~]$ sqlplus web_user/web_user@21026BDB
SQL*Plus: Release 12.2.0.1.0 Production on 星期五 11月 29 18:25:28 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
進程 ID: 0
會話 ID: 0 序列號: 0
請輸入用戶名: ^[[A
輸入口令:
[oracle@localhost ~]$ oerr ora 01033
01033, 00000, "ORACLE initialization or shutdown in progress"
// *Cause: An attempt was made to log on while Oracle is being started up
// or shutdown.
// *Action: Wait a few minutes. Then retry the operation.
[oracle@localhost ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on 星期五 11月 29 18:28:44 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
連接到:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 GODDB MOUNTED
SQL> alter pluggable database GODDB open;
插接式數據庫已變更。
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 GODDB READ WRITE NO
SQL>
操作之後驗證:
[oracle@localhost ~]$ sqlplus web_user/web_user@21026BDB
SQL*Plus: Release 12.2.0.1.0 Production on 星期五 11月 29 18:52:29 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
上次成功登錄時間: 星期五 11月 29 2019 18:40:57 +08:00
連接到:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL>