WINDOWS下
進(jìn)入行方式服務(wù)器管理:SVRMGRL
啟動(dòng)數(shù)據(jù)庫(kù):connect internal
startup
關(guān)閉數(shù)據(jù)庫(kù):shutdown immediate
創(chuàng)建表空間:create tablespace mobile datafile 'd:/oracle/oradata/mobile/mobile.dbf' size 10m
增加表空間:alter tablespace mobile add datafile 'd:/oracle/oradata/mobile/mobile2.dbf' size 10m
刪除表空間:drop tablespace mobile2 including contents
列出表空間名稱(chēng)和默認(rèn)參數(shù): select tablespace_name "tablespace",initial_extent,next_extent,min_exte
ts,max_extents,pct_increase from dba_tablespaces;
列出數(shù)據(jù)文件大小和關(guān)聯(lián)的表空間:select file_name,bytes,blocks,tablespace_name from dba_data_files;
查看參數(shù): show parameters
只查看帶size字符數(shù): show parameters size
一些重要的參數(shù):db_block_size 數(shù)據(jù)高速緩沖區(qū) 建議放大
shared_pool_size 數(shù)據(jù)字典高速緩沖區(qū) 建議放大
sort_area_size 分類(lèi)語(yǔ)句order group處理參數(shù) 建議放大
log_checkpoints_to_alert(checkpoint_process) 檢查點(diǎn) 建議設(shè)為T(mén)RUE
process 最大連接進(jìn)程數(shù) 建議為200
open_cursors 用戶一次打開(kāi)光標(biāo)最大數(shù) 建議為250
db_writer 同時(shí)寫(xiě)信息到數(shù)據(jù)庫(kù)的進(jìn)程數(shù) 建議為2
time_statistics 運(yùn)行時(shí)附加信息 檢查點(diǎn) 系統(tǒng)正式運(yùn)行時(shí)須關(guān)閉
optimizer_mode SQL優(yōu)化參數(shù) 建議為FULL_ROWS/ALL_ROWS
顯示SGA: show sga