一、oracle oracle服務器有Oracle instace 和Oracle database instance有memory structure 和 background process 組成。 memory structure包括shared pool、 SGA(System Global Area).
SGA包括:Database buffer cache 和 Redo log buffer cache. show sga; show parameter shared; show parameter db_cache; show parameter log; alter system set shared_pool_size=65M;
Process 包括User process、Server process、Background process; databasey有data file 和 log file 和 control file組成。
3、開啟和關閉數據庫 開啟數據庫Starting Up a Database shutdown、nomount、mount、open nomount——startup instance used to create db,create controlfile mount——open controlfile used to change log mode,rename file,db recovery... startup [nomount|mount|open] pfile= restrict recovery force
修改數據庫指令( alter database command) 1、改變數據庫從nomount狀態為mount; alter database db_01 mount; 2、打開一個只讀的數據庫 alter database db_01 open read only;
關閉數據庫Shutting Down the Database shutdown mode:normal、transactional、immediate、abort 4、監視和使用diagnostic files alter log file——alertsid.log background tace file、use trace files