Ipaddress
Hostname
-------------- -------------------------------------
Scan
Addresses:
11.111.111.11 netrac-scan
netrac-scan.uk.oracle.com
22.222.222.22 netrac-scan
netrac-scan.uk.oracle.com
Node Addresses:
12.345.678.111 netrac1
netrac1.uk.oracle.com
12.345.678.222 netrac2
netrac2.uk.oracle.com
Node VIP's
12.345.678.888 netrac1-vip
netrac1-vip.uk.oracle.com
12.345.678.999 netrac2-vip
netrac2-vip.uk.oracle.comC:>nslookup
netrac-scan.uk.oracle.com
Server:
dns001.uk.oracle.com
Address: 10.10.1.0
Name:
netrac-scan.uk.oracle.com
Addresses: 11.111.111.11,
22.222.222.22[grid@netrac1 admin]$
ps -ef |grep tnslsnr
grid 9185 1 0 10:57 ? 00:00:00
/u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
grid 9707
9061 0 11:09 pts/3 00:00:00 grep tnslsnr
grid 10762 1 0 Feb08 ? 00:03:19
/u01/app/11.2.0/grid/bin/tnslsnr listener_scan1
-inheritSQL> show parameter
local_listener
NAME TYPE VALUE
------------------------------------
----------- ------------------------------
local_listener string
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=netrac1-vip)(PORT=1521))))SQL> show parameter
remote_listener
NAME TYPE VALUE
------------------------------------
----------- ------------------------------
remote_listener string
netrac-scan.uk.oracle.com:1521[grid@netrac1 admin]$
more
listener.ora
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))
# line added by
Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))#
line added by
Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))
# line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON #
line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added
by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by
Agent[grid@netrac1 admin]$ lsnrctl status
listener
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the
LISTENER
------------------------
Alias
LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 -
Production
Start Date 15-FEB-2011 10:57:09
Uptime 0 days 0 hr. 0 min. 46
sec
Trace Level off
Security ON: Local OS Authentication
SNMP
OFF
Listener Parameter File
/u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File
/u01/app/grid/diag/tnslsnr/netrac1/listener/alert/log.xml
Listening Endpoints
Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=12.345.678.111)(PORT=1521)))
** Node IP Address
**
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=12.345.678.888)(PORT=1521)))
** Node VIP Address **
Services Summary...
Service
"v11gr2" has 1 instance(s).
Instance
"v11gr21", status READY, has 2 handler(s) for this
service...
The command completed successfully[grid@netrac1 admin]$
more
endpoints_listener.ora
LISTENER_NETRAC1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=netrac1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=12.345.678.888)(PORT=1521)(IP=FIRST))))
# line added by Agent[grid@netrac1 admin]$ lsnrctl status
listener_scan1
LSNRCTL for Linux: Version 11.2.0.1.0 -
Production on 15-FEB-2011 11:04:46
Copyright (c) 1991, 2009, Oracle. All
rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the
LISTENER
------------------------
Alias
listener_scan1
Version TNSLSNR for Linux: Version 11.2.0.1.0
- Production
Start Date 08-FEB-2011 15:46:52
Uptime 6 days 19 hr. 17 min.
53 sec
Trace Level support
Security ON: Local OS Authentication
SNMP
OFF
Listener Parameter File
/u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File
/u01/app/11.2.0/grid/network/log/listener_scan1.log
Listener Trace File
/u01/app/11.2.0/grid/network/trace/listener_scan1.trc
Listening Endpoints
Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=11.111.111.11)(PORT=1521)))
** Scan VIP **
Services Summary...
Service
"v11gr2" has 2 instance(s).
Instance
"v11gr21", status READY, has 3 handler(s) for this
service...
Instance "v11gr22", status READY, has 2
handler(s) for this service...
The command completed
successfully[grid@netrac2 ~]$ ps
-ef |grep tnslsnr
grid 4466 1 0 Feb07 ? 00:00:11
/u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
grid 4481
1 0 Feb07 ? 00:00:13 /u01/app/11.2.0/grid/bin/tnslsnr
LISTENER_SCAN2 -inherit
grid 32059 31690 0 11:08 pts/1
00:00:00 grep tnslsnrSQL> show parameter
local_listener
NAME TYPE VALUE
------------------------------------
----------- ------------------------------
local_listener string
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=netrac2-vip)(PORT=1521))))SQL> show parameter
remote_listener
NAME TYPE VALUE
------------------------------------
----------- ------------------------------
remote_listener string
netrac-scan.uk.oracle.com:1521[grid@netrac2 admin]$
more
listener.ora
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))
# line added by
Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))
# line added by
Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))#
line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added
by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by
Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by
Agent[grid@netrac2 admin]$
more
endpoints_listener.ora
LISTENER_NETRAC2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=netrac2-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=12.345.678.999)
(PORT=1521)(IP=FIRST)))) # line added by Agent[grid@netrac2 admin]$ lsnrctl status
listener
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on
15-FEB-2011 11:24:28
Copyright (c) 1991, 2009, Oracle. All rights
reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the
LISTENER
------------------------
Alias
LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 -
Production
Start Date 07-FEB-2011 10:48:06
Uptime 8 days 0 hr. 36 min. 22
sec
Trace Level off
Security ON: Local OS Authentication
SNMP
OFF
Listener Parameter File
/u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File
/u01/app/grid/diag/tnslsnr/netrac2/listener/alert/log.xml
Listening Endpoints
Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=12.345.678.222)(PORT=1521)))
**Node IP
Address**
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=12.345.678.999)(PORT=1521)))
**Node VIP Address**
Services Summary...
Service
"v11gr2" has 1 instance(s).
Instance
"v11gr22", status READY, has 2 handler(s) for this
service...
The command completed successfully[grid@netrac2 admin]$ lsnrctl status
listener_scan2
LSNRCTL for Linux: Version 11.2.0.1.0 -
Production on 15-FEB-2011 11:32:14
Copyright (c) 1991, 2009, Oracle. All
rights reserved.
Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))
STATUS of the
LISTENER
------------------------
Alias
LISTENER_SCAN2
Version TNSLSNR for Linux: Version 11.2.0.1.0
- Production
Start Date 07-FEB-2011 10:48:06
Uptime 8 days 0 hr. 44 min. 7
sec
Trace Level off
Security ON: Local OS Authentication
SNMP
OFF
Listener Parameter File
/u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File
/u01/app/11.2.0/grid/log/diag/tnslsnr/netrac2/listener_scan2/alert/log.xml
Listening
Endpoints
Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN2)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=22.222.222.22)(PORT=1521)))**
Scan VIP **
Services Summary...
Service "v11gr2"
has 2 instance(s).
Instance "v11gr21", status READY, has 3
handler(s) for this service...
Instance "v11gr22", status
READY, has 2 handler(s) for this service...
The command completed
successfully[grid@netrac1 admin]$
srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port:
TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port:
TCP:1521
[grid@netrac1 admin]$ srvctl config scan
SCAN name:
netrac-scan.uk.oracle.com, Network:
1/10.167.20.50
.240.0/255.255.240.0/eth1
SCAN VIP name: scan1, IP:
/netrac-scan.uk.oracle.com/11.111.111.11
SCAN VIP name: scan2, IP:
/netrac-scan.uk.oracle.com/22.222.222.22Configuration changes to the Listener are made via svrctlNote 952903.1
How to update the IP address of the SCAN VIP resources
(ora.scan
C:Documents and
Settingssflood>sqlplus scott/tiger@netscan
SQL*Plus: Release
11.2.0.1.0 Production on Tue Feb 15 11:43:02 2011
Copyright (c) 1982,
2010, Oracle. All rights reserved.
Connected to:
Oracle Database
11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the
Partitioning, Real Application Clusters, Automatic Storage Management,
Data
Mining and Real Application Testing options
SQL> select instance_name
from
v$instance;
INSTANCE_NAME
----------------
v11gr22NETSCAN
=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST
= netrac-scan.uk.oracle.com)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = v11gr2)
)
)As SCAN listener information is altered via srvctl via grid oracle home, then SDU can be change for all Oracle Net connections with the profile parameter DEFAULT_SDU_SIZE in the SQLNET.ORA file.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1933/viewspace-1052017/ ,如需转载,请注明出处,否则将追究法律责任。