



下載本文檔
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、oracle數(shù)據(jù)庫(kù)日常檢查文檔內(nèi)容數(shù)據(jù)庫(kù)狀態(tài)檢査檢查方法select status, database status from v$instanee;檢查結(jié)果正常異常備注一返回結(jié)果是:open active屬正常內(nèi)容表空間使用情況檢查方法select d. tablespace_name, file_name file_name,space sum_space(m),space-nvl(free_space,0) used_space(m), round(1-nvl(free_space,0)/space)*100,2)used_rate (%),aut0extens1blefrom (sel
2、ectfile_id, file_name, tablespace_name, round(sum(bytes)/(1024*1 024),2) space,sum (blocks) blocksfrom dba_data_filesgroup by tablespace_name, f1le_1d, f1le_name) d,(selectfile_id, tablespace_name, round(sum(bytes)/(1024*1024), 2)free_spacefrom dba_free_spacegroup by tablespace_name, f1le_1d) e,(sel
3、ect file_id, autoextensible from dbadata_files) fwhere d. tablespace_name 二 e. tablespace_name (+) and d. file_id 二 e. ftle_td(+) and d. ftle_td 二 f. file_id(+)union all -if have tempfileselect d. tablespace name,file name "file name",space sum_space (m),used_space used_space (m),round(nvl
4、(used_space, 0)/space*100, 2)used_rate (%),z, autoextensiblefrom(selectftle_td, ftle_name, tablespace_name, round(sum(bytes)/(1024*1024),2) space,sum (blocks) blocksfrom dba_temp_filesgroup by tablespace name, file id,file name) d,(selectfile_id, tablespace_name, round(sum(bytes_used) /(1024*1024),2
5、) used_space,round(sum(bytes_free)/(1024*1024), 2) free_spacefrom v$temp space headergroup by tablespace_name, f1le_1d) e,(select file_id, autoextensible from dba_temp_files) fwhere d. tablespace_name 二 e. tablespace.name (+) and d. ftle_td=e. file_id (+) and d. file_id = f. file_id (+)order by tabl
6、espace name, filename;檢查結(jié)果正常異常備注如果發(fā)現(xiàn)用戶(hù)表空間使用超過(guò)85%,馬上報(bào)告內(nèi)容alert sid. log 文件檢查方法檢査 alert sid. log 有無(wú)報(bào)錯(cuò)信息(ora-600、ora-1578)$orac1e homeadmi norc1bdumpa1ertore1.log檢查結(jié)果正常異常備注如果無(wú)法登陸數(shù)據(jù)庫(kù)所在服務(wù)器,這步可忽略?xún)?nèi)容備份文件是否正常檢查方法檢查文件大小及生成fi期 檢查export的日志文件檢查結(jié)果正常異常備注我們?cè)诒镜財(cái)?shù)據(jù)庫(kù)每天都做一些dmp備份,注意檢查備份的自動(dòng)執(zhí) 行情況。內(nèi)容鎖與等待檢查方法select /*+ rule *
7、/ ipadc',decoded, xidusn , 0, 3, 0)1. oracle usernameuser name,o. owner, o. object_name, o. object_type, s. sid, s. serial# from v$locked_objectl, dba_objectso, v$session swhere 1. object_id=o. object_id and 1. session_id二s. sid order by o.object id, xidusn desc;檢查結(jié)杲止常異常備注發(fā)現(xiàn)并報(bào)告鎖與等待的對(duì)象內(nèi)容數(shù)據(jù)庫(kù)是否有失效的
8、約束檢查方法select owner, constraint_name, constraint_type, table_namefrom dba constraintswhere owner not in ('sys'system')and status二'disabled,;檢查結(jié)果正常異常備注內(nèi)容數(shù)據(jù)庫(kù)是否有失效的觸發(fā)器檢查方法select owner, tr1gger_name, tr1gger_type from dba_tr1ggerswhere owner not in ('sys'system')and status二
9、9;disabled'檢查結(jié)果正常異常備注內(nèi)容檢查是否有失效的索引檢查方法select index_name,owner,table_name,tablespace_namefrom dba_indcxcswhere owner not in (' sys,,' system')and status != 'valid'檢查結(jié)果正常異常備注內(nèi)容檢查是否有無(wú)效的對(duì)象檢杳方法select objcct name,object_type,own er,statusfrom dba_objectswhere status !='valid'and owner not in (' sys, system')and object_type inc trtgger,, 'view',' procedure',' functtov );檢查結(jié)果正常異常備注如杲存在無(wú)效的對(duì)象,手工重新編譯一下。內(nèi)容檢
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 化纖坯布采購(gòu)合同范本
- 農(nóng)信社借款合同范本
- 出售液壓設(shè)備合同范本
- 產(chǎn)品貨物裝運(yùn)合同范本
- 出讓生鮮小店合同范本
- 勞務(wù)合同范本字體
- 出口服裝合同范本
- 中介房產(chǎn)股合同范本
- 公司設(shè)計(jì)合同范本
- 乙方基坑支護(hù)合同范本
- 地理-天一大聯(lián)考2025屆高三四省聯(lián)考(陜晉青寧)試題和解析
- 小巴掌童話(huà)課件
- 教科版六年級(jí)科學(xué)下冊(cè)全冊(cè)教學(xué)設(shè)計(jì)教案
- 部編版小學(xué)五年級(jí)下冊(cè)《道德與法治》全冊(cè)教案含教學(xué)計(jì)劃
- 運(yùn)動(dòng)會(huì)活動(dòng)流程中的醫(yī)療安全保障措施
- 2025公司員工試用期合同(范本)
- 第十章皮膚軟組織擴(kuò)張術(shù)醫(yī)學(xué)美容教研室袁曉野講解
- 2025年冷鏈物流產(chǎn)品配送及倉(cāng)儲(chǔ)管理承包合同3篇
- 2024年青島遠(yuǎn)洋船員職業(yè)學(xué)院高職單招語(yǔ)文歷年參考題庫(kù)含答案解析
- 2024-2025學(xué)年成都高新區(qū)七上數(shù)學(xué)期末考試試卷【含答案】
- 浙教版2023小學(xué)信息技術(shù)六年級(jí)上冊(cè)《人機(jī)對(duì)話(huà)的實(shí)現(xiàn)》說(shuō)課稿及反思
評(píng)論
0/150
提交評(píng)論