文章詳情頁
理解 oracle 的 “l(fā)snrctl status”
瀏覽:88日期:2023-11-19 12:48:15
;先看看 lsnrctl status 的輸出信息: Services Summary... Service 'PLSExtProc' has 1 instance(s). Instance 'PLSExtProc', status UNKNOWN, has 1 handler(s) for this ;service... Service 'catadb' has 2 instance(s). Instance 'catadb', status UNKNOWN, has 1 handler(s) for this service... Instance 'catadb', status READY, has 1 handler(s) for this service... Service 'catadbXDB' has 1 instance(s). Instance 'catadb', status READY, has 1 handler(s) for this service... The command completed sUCcessfully;這里提出兩個問題: 1. 輸出中顯示的這些 service 是在哪里定義的? 2. 為什么一個 service 會有兩個 instance?;先來看第二個問題。從Oracle 8.1 版本后,在listener.ora文件中沒有為數(shù)據(jù)庫預(yù)先定義條目的時候,instance 和 listener 可以自動的互相發(fā)現(xiàn)。但是習(xí)慣上在listener.ora文件中為每個數(shù)據(jù)庫定義一個SID_DESC條目以便在需要的時候使用。這就使服務(wù)“catadb”有兩個實例: 一個狀態(tài)是 UNKNOWN 的實例 是在 listener.ora 文件中靜態(tài)定義;另一個狀態(tài)是 READY 的實例是當(dāng)數(shù)據(jù)庫啟動時 PMON進(jìn)程自動把數(shù)據(jù)庫注冊到監(jiān)聽器。在數(shù)據(jù)庫啟動后每一分鐘注冊一次。在使用OEM等工具時需要有監(jiān)聽的靜態(tài)定義。;再來看看這些服務(wù)是怎么定義的。oracle有三種監(jiān)聽方式:Database 提供對數(shù)據(jù)庫實例的網(wǎng)絡(luò)訪問PLSExtProc PL/SQL 包訪問操作系統(tǒng)可執(zhí)行程序的方法Executable 提供對操作系統(tǒng)可執(zhí)行程序的網(wǎng)絡(luò)訪問;Service 'PLSExtProc' 是在 listener.ora 文件中為數(shù)據(jù)庫實例缺省配置的,答應(yīng)PL/SQL包訪問外部程序; Service 'catadb' 也是在 listener.ora 文件中配置,是每個數(shù)據(jù)庫連接使用的標(biāo)準(zhǔn)模式; Service 'catadbXDB' 是Oracle 9i以后版本創(chuàng)建數(shù)據(jù)庫時默認(rèn)包含的XML DB特性,提供http、FTP等服務(wù),在初始化文spfile(或pfile)中定義; right'>(出處:清風(fēng)軟件下載學(xué)院)
標(biāo)簽:
Oracle
數(shù)據(jù)庫
排行榜
