lsnrctl 中 關於status 狀態的說明,lsnrctlstatus

來源:互聯網
上載者:User

lsnrctl 中 關於status 狀態的說明,lsnrctlstatus

LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lixora)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                11-AUG-2014 00:42:37
Uptime                    0 days 0 hr. 24 min. 32 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u02/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u02/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lixora)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "ora10g" has 1 instance(s).
  Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "ora10gXDB" has 1 instance(s).
  Instance "ora10g", status READY, has 1 handler(s) for this service...
Service "ora10g_XPT" has 1 instance(s).
  Instance "ora10g", status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>


關於‘Instance "ora10g", status READY, has 1 handler(s) for this service...’
中status 狀態解釋:
這個status 指的的是instance 的狀態

Instance Specifies the name of the instance associated with the service along
with its status and number of service handlers associated with the
service
Status can be one of the following:
■ A READY  status means that the instance can accept connections.
-----執行個體是動態由pmon註冊,所以顯示的status 當然是‘ready’

■ A BLOCKED status means that the instance cannot accept connections.
-----執行個體無法接受串連,一般是執行個體處於nomount 狀態下,pmon 無法將註冊到監聽,因為這時資料庫還沒有開啟pmon無法確定db能否對外服務

■ A READY/SECONDARY  status means that this is a secondary instance in an Oracle9 i  Real Application Clusters
primary/secondary configuration and is ready to accept connections.

■ An UNKNOWN status means that the instance is registered statically in the  listener.ora file rather than dynamically
with service registra tion. Therefore, the status is non known.
------這個‘unknown’ 表徵執行個體是靜態註冊到監聽


oracle監聽啟動,為何會有這樣錯誤,我在命令列輸入lsnrctl start

你是否是用administrator使用者登入並啟動並執行,如果不是請用administrator使用者執行,或進行如下操作後用普通使用者執行。
1。管理員登入,控制台->管理工具->本地安全性原則
2.本地策略->使用者權限分配->建立全域對象->雙擊->添加使用者或組
3.將需要的使用者或組添加到列表當中,確定儲存
4.普通使用者登出後重新登陸即可。

還有查看一下oracle是否啟動成功了,在cmd 中輸入 lsnrctl status 如出現類似4行說明啟動成功:
服務 "PLSExtProc" 包含 1 個常式。
常式"PLSExtProc", 狀態 UNKNOWN, 包含此服務的 1 個處理常式...
服務 "orcl" 包含 1 個常式。
常式 "orcl", 狀態 READY, 包含此服務的 1 個處理常式...
服務 "orclXDB" 包含 1 個常式。
常式 "orcl", 狀態 READY, 包含此服務的 1 個處理常式...
服務 "orcl_XPT" 包含 1 個常式。
常式 "orcl", 狀態 READY, 包含此服務的 1 個處理常式...
還有就是刪除neyca
在命令列輸入netca
然後不是有監聽配置麼,點刪除,然後刪除之後點建立
直接下一步下一步,就OK了!很簡單的!
 
oracle 監聽重啟後 LSNRCTL> stat 監聽狀態查看 為

樓上的也是一種方法,不過對於新手來說可能不太清楚。我補充下
1.在運行中輸入lsnrctl start試試
2.到開始-程式-Oracle home/配置和移植工具/Net Manager中為監聽器添加一個服務名
3.在Oracle安裝目錄下有一個檔案名稱叫NETWORK/ADMIN/tnsnames.ora的檔案,開啟後看前面的語句 比如
test1=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.56)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = test1)
)
)
你在此檔案複製粘貼,把test1換成你的資料庫執行個體名/服務名 Ip地址換成你的Oracle資料庫的伺服器IP地址,我想就可以連上了
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.