oracle數據庫的啟動、關閉、連接


登陸數據庫

方法一:

$ sqlplus / as sysdba

[oracle@dev /]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 31 09:34:26 2019

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

方法二:

$ sqlplus /nolog

SQL> conn /as sysdba

[oracle@dev ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Fri May 31 17:05:28 2019

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

SQL>
SQL> conn /as sysdba
Connected.
SQL>
SQL>

關閉數據庫

SQL> shutdown immediate;

SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.

裝載啟動數據庫到mount狀態

SQL> startup mount

SQL> startup mount
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size                  2213776 bytes
Variable Size             402655344 bytes
Database Buffers         1191182336 bytes
Redo Buffers                7360512 bytes
Database mounted.

啟動數據庫

SQL> startup

SQL> startup
ORACLE instance started.

Total System Global Area 1603411968 bytes
Fixed Size                  2213776 bytes
Variable Size             402655344 bytes
Database Buffers         1191182336 bytes
Redo Buffers                7360512 bytes
Database mounted.
Database opened.

查看oracle 啟動狀態:

SQL> select status from v$instance;

end


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM