1. 程式人生 > >數據庫啟動步驟

數據庫啟動步驟

rom ima spf inf image stat logs con 動態

技術分享

啟動實例:

$ ls $ORACLE_HOME/dbs/spfileorcl.ora

Strings ORACLE_HOME/dbs/spfileorcl.ora

SQL> shutdown immediate

SQL> startup nomount

SQL> select status from v$instance;

SQL> select * from v$sgainfo;

SQL> select * from hr.employees;

SQL> conn hr/hr

SQL> startup mount或alter database mount;

SQL> show parameter control_files

SQL> select status from v$instance;檢查實例狀態

SQL> select * from v$controlfile;動態性能視圖

SQL> select name from v$datafile;

SQL> select * from hr.employees;

SQL> conn hr/hr

SQL> startup或alter database open;

SQL> select status from v$instance;

SQL> select * from hr.employees;

SQL> conn hr/hr

數據庫啟動步驟