理解 oracle 的 “lsnrctl status”(ZT)
先看看 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檔案中沒有為資料庫預先定義條目的時候,instance 和 listener 可以自動的互相發現。但是習慣上在listener.ora檔案中為每個資料庫定義一個SID_DESC條目以便在需要的時候使用。這就使服務“catadb”有兩個例項:
一個狀態是 UNKNOWN 的例項 是在 listener.ora 檔案中靜態定義;另一個狀態是 READY 的例項是當資料庫啟動時 PMON程式自動把資料庫註冊到監聽器。在資料庫啟動後每一分鐘註冊一次。在使用OEM等工具時需要有監聽的靜態定義。
再來看看這些服務是怎麼定義的。oracle有三種監聽方式:
Database | 提供對資料庫例項的網路訪問 |
PLSExtProc | PL/SQL 包訪問作業系統可執行程式的方法 |
Executable | 提供對作業系統可執行程式的網路訪問 |
Service "PLSExtProc" 是在 listener.ora 檔案中為資料庫例項預設配置的,允許PL/SQL包訪問外部程式;
Service "catadb" 也是在 listener.ora 檔案中配置,是每個資料庫連線使用的標準模式;
Service "catadbXDB" 是Oracle 9i以後版本建立資料庫時預設包含的XML DB特性,提供http、ftp等服務,在初始化文spfile(或pfile)中定義;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/271283/viewspace-1002881/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20211020]奇怪lsnrctl status顯示.txt
- Oracle OCP(44):LSNRCTLOracle
- oracle enqueue(zt)OracleENQ
- ORACLE MTS的介紹(zt)Oracle
- ORACLE LARGE MEMORY(zt)Oracle
- oracle event 2 (zt)Oracle
- oracle job管理(zt)Oracle
- oracle time_zone(zt)Oracle
- AUTO START ORACLE ON LINUX(zt)OracleLinux
- Oracle's Parallel Execution Features(zt)OracleParallel
- How Oracle Store Number internal(zt)Oracle
- Oracle SQL optimization-2(zt)OracleSQL
- oracle 資料庫lsnrctl監聽的日誌路徑和trace檔案Oracle資料庫
- 修改Oracle資料庫字符集(zt)Oracle資料庫
- oracle9i下streams複製(zt)Oracle
- Oracle 叢集軟體資源的手工註冊(zt)Oracle
- Oracle多粒度封鎖機制研究二(zt)Oracle
- ORACLE9I升級到10G(zt)Oracle
- oracle 什麼時候才回收v$session 中status='KILLED'的程式OracleSession
- 【DBMS_STATUS】Oracle控制優化器統計資訊的使用Oracle優化
- SqlServer鎖的概述(zt)SQLServer
- oracle資料庫%notfound的理解Oracle資料庫
- INSTEAD OF(zt)
- lsof(zt)
- 對oracle分割槽表的理解整理Oracle
- Latch的spin及sleep(zt)
- Oracle叢集檔案系統(OCFS2)使用者指南(zt)Oracle
- SQLSERVER SELECT(zt)SQLServer
- V$LOCK(zt)
- EXISTS、IN、NOT EXISTS、NOT IN(zt)
- Event Reference(zt)
- Fallacies Of The CBO(zt)
- Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERRORAIDNNError
- SAP CRM One order裡user status和system status的mapping邏輯APP
- MySQL的show engine innodb statusMySql
- TIC Read Status
- git status 命令Git
- DBMS_TRACE(zt)
- Understanding System Statistics(zt)