檢查安裝結(jié)果 安裝完成后,您需要進行必要的檢查,以驗證數(shù)據(jù)庫是否安裝成功。
檢查Oracle監(jiān)聽狀態(tài) 介紹如何檢查監(jiān)聽狀態(tài)。本任務需要在各服務器節(jié)點中分別執(zhí)行。 檢查Oracle實例狀態(tài) 介紹如何檢查Oracle實例狀態(tài)。本任務需要在各服務器節(jié)點中分別執(zhí)行。 檢查CRS集群狀態(tài) 介紹如何檢查CRS集群狀態(tài)。本任務需要在各服務器節(jié)點中分別執(zhí)行。
?
操作步驟 1.以oracle用戶分別登錄各服務器節(jié)點。 2.查看監(jiān)聽狀態(tài)。
lsnrctl status LISTENER_ORA 在節(jié)點shdb1中顯示類似如下信息時表示監(jiān)聽正常。
?
oracle@shdb1:~> lsnrctl status LISTENER_ORA
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 10-AUG-2020 15:18:15
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA))) STATUS of the LISTENER ------------------------ Alias listener_ora Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production Start Date 10-AUG-2020 15:05:39 Uptime 0 days 0 hr. 12 min. 35 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /opt/app/oracle/product/network/admin/listener.ora Listener Log File /opt/app/oracle/diag/tnslsnr/shdb1/listener_ora/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.10)(PORT=1526))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.30)(PORT=1526))) Services Summary... Service "shinfo" has 1 instance(s). Instance "shinfo1", status READY, has 1 handler(s) for this service... The command completed successfully oracle@shdb1:~>
在節(jié)點shdb2中顯示類似如下信息時表示監(jiān)聽正常。
oracle@shdb2:~> lsnrctl status LISTENER_ORA
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 10-AUG-2020 14:54:58
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA))) STATUS of the LISTENER ------------------------ Alias listener_ora Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production Start Date 10-AUG-2020 14:38:31 Uptime 0 days 0 hr. 16 min. 26 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /opt/app/oracle/product/network/admin/listener.ora Listener Log File /opt/app/oracle/diag/tnslsnr/shdb2/listener_ora/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.20)(PORT=1526))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.40)(PORT=1526))) Services Summary... Service "shinfo" has 1 instance(s). Instance "shinfo2", status READY, has 1 handler(s) for this service... The command completed successfully oracle@shdb2:~>
檢查Oracle實例狀態(tài)
介紹如何檢查Oracle實例狀態(tài)。本任務需要在各服務器節(jié)點中分別執(zhí)行。
操作步驟 1.以oracle用戶分別登錄各服務器節(jié)點。 2.登錄數(shù)據(jù)庫。
sqlplus / as sysdba select INSTANCE_NAME, STATUS from v$instance;
oracle@shdb1:~> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Aug 10 15:23:24 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
select INSTANCE_NAME, STATUS from v$instance; Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
SQL>
INSTANCE_NAME STATUS ---------------- ------------ shinfo1 OPEN
?
oracle@shdb2:~> sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Aug 10 14:56:33 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
select INSTANCE_NAME, STATUS from v$instance; Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
SQL>
INSTANCE_NAME STATUS ---------------- ------------ shinfo2 OPEN
SQL>
查CRS集群狀態(tài) 介紹如何檢查CRS集群狀態(tài)。本任務需要在各服務器節(jié)點中分別執(zhí)行。 操作步驟 1.以grid用戶分別登錄各服務器節(jié)點。 2.執(zhí)行olsnodes命令查看集群關(guān)系是否建立成功。 2個節(jié)點中都顯示類似如下信息,說明創(chuàng)建成功。 shdb1 shdb2
3.執(zhí)行crsctl stat res -t命令查看集群狀態(tài)。 2個節(jié)點中都顯示類似如下信息,說明集群狀態(tài)正常。
?
來源:https://www./content-4-726701.html
|