下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、oracle數(shù)據(jù)庫日常檢查文檔內(nèi)容數(shù)據(jù)庫狀態(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)用戶表空間使用超過85%,馬上報告內(nèi)容alert sid. log 文件檢查方法檢査 alert sid. log 有無報錯信息(ora-600、ora-1578)$orac1e homeadmi norc1bdumpa1ertore1.log檢查結(jié)果正常異常備注如果無法登陸數(shù)據(jù)庫所在服務(wù)器,這步可忽略內(nèi)容備份文件是否正常檢查方法檢查文件大小及生成fi期 檢查export的日志文件檢查結(jié)果正常異常備注我們在本地數(shù)據(jù)庫每天都做一些dmp備份,注意檢查備份的自動執(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)并報告鎖與等待的對象內(nèi)容數(shù)據(jù)庫是否有失效的
8、約束檢查方法select owner, constraint_name, constraint_type, table_namefrom dba constraintswhere owner not in ('sys'system')and status二'disabled,;檢查結(jié)果正常異常備注內(nèi)容數(shù)據(jù)庫是否有失效的觸發(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)容檢查是否有無效的對象檢杳方法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é)果正常異常備注如杲存在無效的對象,手工重新編譯一下。內(nèi)容檢
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度定制衣柜設(shè)計制作合同樣本4篇
- 技術(shù)部合同范本(2篇)
- 房建工程監(jiān)理合同(2篇)
- 承包商安全環(huán)保管理合同(2篇)
- 二零二五美容院客戶關(guān)系管理系統(tǒng)采購合同3篇
- 2025年度寵物養(yǎng)護咨詢快速反饋合同
- 二零二五版民間融資居間風(fēng)險控制合同范本4篇
- 2025年票據(jù)質(zhì)押借款合同履約保證金管理辦法
- 二零二五年度果品加工副產(chǎn)品綜合利用合同3篇
- 二零二五年度互聯(lián)網(wǎng)企業(yè)員工勞動合同范本3篇
- 定額〔2025〕1號文-關(guān)于發(fā)布2018版電力建設(shè)工程概預(yù)算定額2024年度價格水平調(diào)整的通知
- 2024年城市軌道交通設(shè)備維保及安全檢查合同3篇
- 【教案】+同一直線上二力的合成(教學(xué)設(shè)計)(人教版2024)八年級物理下冊
- 湖北省武漢市青山區(qū)2023-2024學(xué)年七年級上學(xué)期期末質(zhì)量檢測數(shù)學(xué)試卷(含解析)
- 單位往個人轉(zhuǎn)賬的合同(2篇)
- 電梯操作證及電梯維修人員資格(特種作業(yè))考試題及答案
- 科研倫理審查與違規(guī)處理考核試卷
- GB/T 44101-2024中國式摔跤課程學(xué)生運動能力測評規(guī)范
- 鍋爐本體安裝單位工程驗收表格
- 高危妊娠的評估和護理
- 2024年山東鐵投集團招聘筆試參考題庫含答案解析
評論
0/150
提交評論