Service registration 11gr2 RAC AIX
Hi Gurus,
I have created an database service called "MTRXUATR" with srvctl as both nodes as prefered as show below ,this service got registered on both nodes (mvx20b) but only instance 1 is providing the service and not by the other instance .where logically should be provided by both instances.When i shutdown the instance 1(node 1) and tried connecting through sqlplus using this services, started getting error "ORA-12514" where i should have been redirected to instance 2(connect time failover) as i'm using scan name,correct?
Why is it that the service is not providing by both instances?is it some configuration issue that i missed?Services should be registered with the local listeners or SCAN listeners?
Node 1:
Code: Select all
mvx20b:/u01/app/omvmxu1/product/11.2.0/dbhome_1/racg>srvctl config service -d mvmxu2
Service name: mtrxuatr
Service is enabled
Server pool: mvmxu2_mtrxuatr
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SELECT
Failover method: BASIC
TAF failover retries: 180
TAF failover delay: 1
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: NONE
Preferred instances: mvmxu21,mvmxu22
Available instances:
mvx20b:/home/gmvmxu1>lsntrctl services
ksh: lsntrctl: not found
mvx20b:/home/gmvmxu1>lsnrctl services
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 27-OCT-2010 09:58:02
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM1" has 1 instance(s).
Instance "+ASM1", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:52549 refused:0
LOCAL SERVER
Service "matrxuat" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:24 refused:0 state:ready
LOCAL SERVER
Service "mtrxuatr" has 1 instance(s).
Instance "mvmxu21", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4 refused:0 state:ready
LOCAL SERVER
Service "mvmxu1" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:24 refused:0 state:ready
LOCAL SERVER
Service "mvmxu1XDB" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx20b.us.hp.com, pid: 1687592>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx20b.us.hp.com)(PORT=50696))
Service "mvmxu2" has 1 instance(s).
Instance "mvmxu21", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:4 refused:0 state:ready
LOCAL SERVER
Service "mvmxu2XDB" has 1 instance(s).
Instance "mvmxu21", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx20b.us.hp.com, pid: 1667116>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx20b.us.hp.com)(PORT=52509))
The command completed successfully
mvx20b:/home/gmvmxu1>srvctl config service -d mvmxu2
Service name: mtrxuatr
Service is enabled
Server pool: mvmxu2_mtrxuatr
Cardinality: 2
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: true
Failover type: SELECT
Failover method: BASIC
TAF failover retries: 180
TAF failover delay: 1
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: NONE
Preferred instances: mvmxu21,mvmxu22
Available instances:
mvx20b:/home/gmvmxu1>srvctl status database -d mvmxu2
Instance mvmxu21 is running on node mvx20b
Instance mvmxu22 is running on node mvx21b
mvx20b:/home/gmvmxu1>srvctl status service -d mvmxu2
Service mtrxuatr is running on instance(s) mvmxu21
mvx20b:/home/gmvmxu1>srvctl stop instance -d mvmxu2 -i mvmxu21
mvx20b:/home/gmvmxu1>srvctl status database -d mvmxu2
Instance mvmxu21 is not running on node mvx20b
Instance mvmxu22 is running on node mvx21b
mvx20b:/home/gmvmxu1>srvctl status service -d mvmxu2
Service mtrxuatr is not running.
mvx20b:/home/gmvmxu1>sqlplus system@mtrxuatr
SQL*Plus: Release 11.2.0.1.0 Production on Wed Oct 27 10:27:27 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
mvx20b:/home/gmvmxu1>tnsping mtrxuatr
TNS Ping Utility for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 27-OCT-2010 10:28:51
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/11.2.0/grid/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = mvxuatscan.us.hp.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = MTRXUATR)))
OK (10 msec)
mvx20b:/home/gmvmxu1>nslookup mvxuatscan.us.hp.com
Server: einstein.us.hp.com
Address: 10.35.15.20
Name: mvxuatscan.us.hp.com
Addresses: 10.35.33.170, 10.35.33.172, 10.35.33.171
mvx20b:/home/gmvmxu1>host mvxuatscan.us.hp.com
mvxuatscan.us.hp.com is 10.35.33.171
mvx20b:/home/gmvmxu1>host mvxuatscan.us.hp.com
mvxuatscan.us.hp.com is 10.35.33.171
mvx20b:/home/gmvmxu1>ping mvxuatscan.us.hp.com
PING mvxuatscan.us.hp.com (10.35.33.172): 56 data bytes
64 bytes from 10.35.33.172: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.35.33.172: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 10.35.33.172: icmp_seq=2 ttl=255 time=0 ms
64 bytes from 10.35.33.172: icmp_seq=3 ttl=255 time=0 ms
--- mvxuatscan.us.hp.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
mvx20b:/home/gmvmxu1>ping mvxuatscan.us.hp.com
PING mvxuatscan.us.hp.com (10.35.33.171): 56 data bytes
64 bytes from 10.35.33.171: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.35.33.171: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 10.35.33.171: icmp_seq=2 ttl=255 time=0 ms
--- mvxuatscan.us.hp.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
mvx20b:/home/gmvmxu1>ping mvxuatscan.us.hp.com
PING mvxuatscan.us.hp.com (10.35.33.170): 56 data bytes
64 bytes from 10.35.33.170: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.35.33.170: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 10.35.33.170: icmp_seq=2 ttl=255 time=0 ms
--- mvxuatscan.us.hp.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
mvx20b:/home/gmvmxu1>lsnrctl services
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 27-OCT-2010 10:34:16
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM1" has 1 instance(s).
Instance "+ASM1", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:52549 refused:0
LOCAL SERVER
Service "matrxuat" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:24 refused:0 state:ready
LOCAL SERVER
Service "mvmxu1" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:24 refused:0 state:ready
LOCAL SERVER
Service "mvmxu1XDB" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx20b.us.hp.com, pid: 1687592>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx20b.us.hp.com)(PORT=50696))
The command completed successfully
mvx20b:/home/gmvmxu1>srvctl start instance -d mvmxu2 -i mvmxu21
mvx20b:/home/gmvmxu1>srvctl status service -d mvmxu2
Service mtrxuatr is running on instance(s) mvmxu21
mvx20b:/home/gmvmxu1>
Node 2:
Code: Select all
mvx21b:/home/gmvmxu1>lsnrctl services
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 27-OCT-2010 10:38:52
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:3973 refused:0 state:ready
LOCAL SERVER
Service "+ASM2" has 1 instance(s).
Instance "+ASM2", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:9 refused:0
LOCAL SERVER
Service "mvmxu1" has 1 instance(s).
Instance "mvmxu12", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:951 refused:0 state:ready
LOCAL SERVER
Service "mvmxu1XDB" has 1 instance(s).
Instance "mvmxu12", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx21b.us.hp.com, pid: 1552450>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx21b.us.hp.com)(PORT=34128))
Service "mvmxu2" has 1 instance(s).
Instance "mvmxu22", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "mvmxu2XDB" has 1 instance(s).
Instance "mvmxu22", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx21b.us.hp.com, pid: 2064564>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx21b.us.hp.com)(PORT=64601))
The command completed successfully
mvx21b:/home/gmvmxu1>ps -ef |grep lsnr
gmvmxu1 1695876 1 0 Sep 13 - 20:40 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
gmvmxu1 1732752 1 0 Sep 13 - 5:52 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
gmvmxu1 1855706 2195662 0 10:39:13 pts/0 0:00 grep lsnr
mvx21b:/home/gmvmxu1>lsnrctl services LISTENER_SCAN1
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production on 27-OCT-2010 10:39:25
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
Services Summary...
Service "+ASM" has 2 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:blocked
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mvx21b-vip.us.hp.com)(PORT=1521)))
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mvx21b-vip.us.hp.com)(PORT=1521)))
Service "matrxuat" has 1 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mvx20b-vip.us.hp.com)(PORT=1521)))
Service "mvmxu1" has 2 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2 refused:0 state:ready
REMOTE SERVER
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mvx20b-vip.us.hp.com)(PORT=1521)))
Instance "mvmxu12", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=mvx21b.us.hp.com)(PORT=1521))
Service "mvmxu1XDB" has 2 instance(s).
Instance "mvmxu11", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx20b.us.hp.com, pid: 1687592>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx20b.us.hp.com)(PORT=50696))
Instance "mvmxu12", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx21b.us.hp.com, pid: 1552450>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx21b.us.hp.com)(PORT=34128))
Service "mvmxu2" has 1 instance(s).
Instance "mvmxu22", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
REMOTE SERVER
(ADDRESS=(PROTOCOL=TCP)(HOST=mvx21b.us.hp.com)(PORT=1521))
Service "mvmxu2XDB" has 1 instance(s).
Instance "mvmxu22", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: mvx21b.us.hp.com, pid: 2064564>
(ADDRESS=(PROTOCOL=tcp)(HOST=mvx21b.us.hp.com)(PORT=64601))
The command completed successfully
mvx21b:/home/gmvmxu1>
Instance 1 parameter:
Code: Select all
SQL> show parameter local_
NAME TYPE VALUE
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=mvx2
0b-vip.us.hp.com)(PORT=1521)
log_archive_local_first boolean TRUE
SQL> show parameter remote_
NAME TYPE VALUE
remote_dependencies_mode string TIMESTAMP
remote_listener string mvxuatscan:1521
Instance 2 parameter:
Code: Select all
SQL> show parameter local_
NAME TYPE VALUE
local_listener string
log_archive_local_first boolean TRUE
SQL> show parameter remote_
NAME TYPE VALUE
remote_dependencies_mode string TIMESTAMP
remote_listener string mvxuatscan:1521
remote_login_passwordfile string EXCLUSIVE
remote_os_authent boolean FALSE
remote_os_roles boolean FALSE
result_cache_remote_expiration integer 0
Edited by: user9097501 on Oct 27, 2010 12:21 PM
I tried starting service on instance 2 but getting the following error...
mvx21b:/home/omvmxu1>srvctl status service -d mvmxu1
Service matrxuat is running on instance(s) mvmxu11
mvx21b:/home/omvmxu1>srvctl start service -d mvmxu1 -s matrxuat -i mvmxu12
PRCR-1064 : Failed to start resource ora.mvmxu1.matrxuat.svc on node mvx21b
CRS-2674: Start of 'ora.mvmxu1.matrxuat.svc' on 'mvx21b' failed
CRS-2678: 'ora.mvmxu1.matrxuat.svc' on 'mvx21b' has experienced an unrecoverable failure
CRS-0267: Human intervention required to resume its availability.
When i say 'srvctl start service -d mvmxu1' should not it bring up services on both nodes won which it is configured as prefered?
Edited by: user9097501 on Oct 28, 2010 6:44 AM
Similar Messages
-
Q: Need help troubleshooting Service registration is RAC (on Windows)
Services were defined with 'srvctl' and started at the OS level.
This causes the Service to be created in the Database and visable in DBA_SERVICES table, however nowthing show up in DB parameter SERVICE_NAMES.
IF we then execute DBMS_SERVICES.START_SERVICE('BLUE'); the Service shows up in SERVICE_NAMES and then the registration continues with the LOCAL_LISTENER and everything is fine.
However is we reboot (abort) the server, the Database restarts, and sometime later SRVCTL reports the Services as being started. Yet parameter SERVICES_NAMES does not report the Service, until we again issue exec DBMS_SERVICES.START_SERVICE('BLUE');
Can someone help explain the process between SRVCTL starting a Service and being shown in DB parameter SERVICE_NAMES.
The SERVICE_NAMES Parameter is not specified in the spfile.
LOCAL_LISTENER and REMOTE_LISTENER are set and AUTOMATIC Service registration does work after manually issuing the DBMS_SERVICES.START_SERVICE.
Evnvironment is 11.1.0.7 RAC running on Windows.
We are also using STREAMS which creates it's own SERVICES, the registration and restarting of these work just fine.You might try these:
http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnWindows2003UsingVMware.php
http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14316%2Ftoc.htm&remark=portal+%28Getting+Started%29 -
Static listener registration 11gr2 RAC Primary and standalone Standby
Hi Guys,
I have to build up a single instance Physical Standby(Dataguard) for a primary RAC (11.2.0.1).The concern or rather confusion we have three SCAN LISTENERS across 2 node cluster,in order for me to have static registration for duplication of database for standby i need to have it put in the listener.ora .
Do i have to create the static listeners for default listener as well as the scan listeners?My understanding is No.
The Oracle instance would automatically register the local listener to SCAN listeners, so I believe just the default needs this.
This document has Scan listener example and none of them use a _DGMGRL
http://www.oracle.com/technetwork/database/features/availability/maa-wp-11g-rac-standby-133152.pdf
Best Regards
mseberg
This document seems to support my statement :
11.2 Scan and Node TNS Listener Setup Examples [ID 1070607.1]
Edited by: mseberg on Aug 5, 2011 2:02 PM
Also of interest :
11gR2 Grid Infrastructure Single Client Access Name (SCAN) Explained [ID 887522.1] -
Hi,
Need clarification on services.
I've a 2node RAC 11gR2.
I want to configure service for example srvc1 on both node1& node2 with the following features.
On node1 - for srvc1 preferred instance is inst1 and available instance is inst2 and failover type is select.
On node2 - for same srvc1 service preferred instance is inst2 and available instance is inst1 and failover type is select
and as well load balance need to done between node1& node2.
So that what ever session connected to node1 will failover to node2 and vice versa and load balance will be happened.
In this way is it possible to configure the same service on 2 nodes?
Thanks,
SandeepHere is a good place to start: http://docs.oracle.com/cd/E11882_01/rac.112/e16795/hafeats.htm
A service created as -r node1,nod2 will load balance **AND** fail over to the other node automatically - regardless of which instance you connected initially. If you are using SCAN, again don't try to something manually that is already being done for you by Oracle. Most that try to out-think SCAN usually get it wrong.
Some light reading:
http://www.oracle.com/technetwork/database/features/availability/maa-wp-11gr2-client-failover-173305.pdf
From:
http://docs.oracle.com/cd/E11882_01/network.112/e10836/concepts.htm
"Due to dynamic service registration, a listener is always aware of all instances and dispatchers regardless of their location. Depending on the load information, a listener decides which instance and, if shared server is configured, to which dispatcher to send the incoming client request.
In a shared server configuration, a listener selects a dispatcher in the following order:
Least-loaded node
Least-loaded instance
Least-loaded dispatcher for that instance
In a dedicated server configuration, a listener selects an instance in the following order:
Least-loaded node
Least-loaded instance
If a database service has multiple instances on multiple nodes, then the listener chooses the least-loaded instance on the least-loaded node. If shared server is configured, then the least-loaded dispatcher of the selected instance is chosen.
" -
11gR2 RAC installation in AIX fails while running root.sh on node2
Hi
We are in the process on installing 11gR2 RAC on AIX 6.1
But the installation is failing on node 2while running root.sh with the following error.
DiskGroup DATA creation failed with the following message:
ORA-15018: diskgroup cannot be created
ORA-15017: diskgroup "DATA" cannot be mounted
ORA-15003: diskgroup "DATA" already mounted in another lock name space
Configuration of ASM failed, see logs for details
Did not succssfully configure and start ASM
CRS-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: XXXXX/grid/bin/crsctl stop resource ora.crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
Please help
RegardsHI,
the second node (second root.sh) should not want to "create" the diskgroup data, since it is already there.
This pretty much sounds like you tried to start both root.sh (on the first node and on the second node) at the same time, not waiting for it to finish on the first node.
It is important, that before you start the root.sh on the second node, it has to be finished successfully on the first node for the cluster to update the information.
Sebastian -
Oracle 11gR2 RAC in LDOM Network issue
Hi, Requesting your expert advise regarding this configuration.
We are implementing LDOM 2.2 on two SPARC T4-4 for Oracle 11gR2 RAC; Solaris 10 U10 on both control and guest domain. The setup for each primary/control domain is: Two 10g links aggregated and have four VLAN trunked on the aggregate. vSwitch created using the aggr as the device as following per T4-4:
NOTE: VLAN 1501 is for data connection and VLAN 10 is for heartbeat for one RAC cluster and VL 1601 and 11 is for another RAC. all together four LDOMS.
ldm add-vswitch vid=1501,1601,10,11 net-dev=aggr1 primary-vsw0 primary
ldm add-vnet pvid=1501 vnetprod primary-vsw0 guest1
ldm add-vnet pvid=10 vnethb primary-vsw0 guest1
ldm add-vnet pvid=1601 vnetprod primary-vsw0 guest2
ldm add-vnet pvid=11 vnethb primary-vsw0 guest2
vnet inside the LDOM are not tagged:
vnet1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.220.128.20 netmask ffffff80 broadcast 10.220.128.127
ether 0:14:4f:f9:ec:7f
vnet2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 192.168.2.11 netmask ffffff80 broadcast 192.168.2.127
ether 0:14:4f:fb:2b:8f
Here is the whole configuration:
root@gp-cpu-suh004 # ldm -V
Logical Domains Manager (v 2.2.0.0)
Hypervisor control protocol v 1.9
Using Hypervisor MD v 1.4
System PROM:
Hostconfig v. 1.2.0. @(#)Hostconfig 1.2.0.a 2012/05/11 07:34
Hypervisor v. 1.11.0. @(#)Hypervisor 1.11.0.a 2012/05/11 05:28
OpenBoot v. 4.34.0 @(#)OpenBoot 4.34.0 2012/04/30 14:26
root@gp-cpu-suh004 # ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- UART 32 16G 2.5% 48m
oidrac1 active -n---- 5000 32 16G 0.0% 27m
root@gp-cpu-suh004 # ldm ls -l
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- UART 32 16G 3.1% 48m
SOFTSTATE
Solaris running
UUID
e73421fe-7003-e748-be7e-801fee5bfcc7
MAC
00:21:28:f1:95:26
HOSTID
0x85f19526
CONTROL
failure-policy=ignore
extended-mapin-space=off
cpu-arch=native
DEPENDENCY
master=
CORE
VCPU
MEMORY
RA PA SIZE
0x20000000 0x20000000 16G
CONSTRAINT
threading=max-throughput
VARIABLES
auto-boot-on-error?=true
auto-boot?=true
boot-device=/pci@400/pci@1/pci@0/pci@0/LSI,sas@0/disk@w5000cca0251e7a29,0:a
keyboard-layout=US-English
nvramrc=." ChassisSerialNumber 1207BDYFFE " cr
use-nvramrc?=true
IO
DEVICE PSEUDONYM OPTIONS
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw-mgmt 00:14:4f:fb:75:c0 igb1 0 switch@0 1 1 1500 on
primary-vsw0 00:14:4f:fa:33:8b aggr1 1 switch@1 1 1 1501,1601,10,11 1500 on
VDS
NAME VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 rootoid /dev/dsk/c14t50060E8005BFAA04d1s2
data_oid /dev/dsk/c14t50060E8005BFAA04d2s2
ocr_oid /dev/dsk/c14t50060E8005BFAA04d3s2
VCONS
NAME SERVICE PORT
UART
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
oidrac1 active -n---- 5000 32 16G 0.0% 27m
SOFTSTATE
Solaris running
UUID
0fcbbf21-14a2-eb21-f544-d4424212f3ef
MAC
00:14:4f:f9:1b:d4
HOSTID
0x84f91bd4
CONTROL
failure-policy=ignore
extended-mapin-space=off
cpu-arch=native
DEPENDENCY
master=
CORE
CID CPUSET
VCPU
VID PID CID UTIL STRAND
MEMORY
RA PA SIZE
0x20000000 0x420000000 16G
CONSTRAINT
threading=max-throughput
VARIABLES
auto-boot?=true
boot-device=disk:a
keyboard-layout=US-English
NETWORK
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP
vnet1 primary-vsw-mgmt@primary 0 network@0 00:14:4f:fa:61:77 1 1500
vnetprod primary-vsw0@primary 1 network@1 00:14:4f:f9:ec:7f 1501 1500
vnethb primary-vsw0@primary 2 network@2 00:14:4f:fb:2b:8f 10 1500
DISK
NAME VOLUME TOUT ID DEVICE SERVER MPGROUP
oneidrootdisk rootoid@primary-vds0 0 disk@0 primary
oid_data data_oid@primary-vds0 1 disk@1 primary
oid_ocr ocr_oid@primary-vds0 2 disk@2 primary
VCONS
NAME SERVICE PORT
oidrac1 primary-vcc0@primary 5000
root@gp-cpu-suh004 # ldm ls-services
VCC
NAME LDOM PORT-RANGE
primary-vcc0 primary 5000-5100
VSW
NAME LDOM MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw-mgmt primary 00:14:4f:fb:75:c0 igb1 0 switch@0 1 1 1500 on
primary-vsw0 primary 00:14:4f:fa:33:8b aggr1 1 switch@1 1 1 1501,1601,10,11 1500 on
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary rootoid /dev/dsk/c14t50060E8005BFAA04d1s2
data_oid /dev/dsk/c14t50060E8005BFAA04d2s2
ocr_oid /dev/dsk/c14t50060E8005BFAA04d3s2
root@gp-cpu-suh004 # dladm show-link
vsw0 type: non-vlan mtu: 1500 device: vsw0
vsw1 type: non-vlan mtu: 1500 device: vsw1
vsw1501001 type: vlan 1501 mtu: 1500 device: vsw1
igb0 type: non-vlan mtu: 1500 device: igb0
igb1 type: non-vlan mtu: 1500 device: igb1
qlge0 type: non-vlan mtu: 1500 device: qlge0
qlge1 type: non-vlan mtu: 1500 device: qlge1
qlge2 type: non-vlan mtu: 1500 device: qlge2
qlge3 type: non-vlan mtu: 1500 device: qlge3
aggr1 type: non-vlan mtu: 1500 aggregation: key 1
root@gp-cpu-suh004 # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
igb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.223.12.14 netmask ffffff00 broadcast 10.223.12.255
ether 0:21:28:f1:95:26
vsw1501001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
inet 10.220.128.9 netmask ffffff80 broadcast 10.220.128.127
ether 0:14:4f:fa:33:8b
root@gp-cpu-suh004 # netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
default 10.220.128.1 UG 1 7
10.220.128.0 10.220.128.9 U 1 5 vsw1501001
10.223.0.0 10.223.12.1 UG 1 2
10.223.12.0 10.223.12.14 U 1 1 igb0
224.0.0.0 10.220.128.9 U 1 0 vsw1501001
127.0.0.1 127.0.0.1 UH 8 261 lo0Yes, I can connect to the vswitch interface on the control domain. I didn't specify any PVID because my understanding is that PVID will tag any frame with the PVID VLAN by default. basically the PVID for this interface is 1.
Here's the VNET config for the other LDOM in the RAC cluster:
VSW
NAME MAC NET-DEV ID DEVICE LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE INTER-VNET-LINK
primary-vsw-mgmt 00:14:4f:f9:91:fa igb1 0 switch@0 1 1 1500 on
primary-vsw0 00:14:4f:fa:8e:cf aggr1 1 switch@1 1 1 1501,1601,10,11 1500 on
NETWORK
NAME SERVICE ID DEVICE MAC MODE PVID VID MTU LINKPROP
vnet1 primary-vsw-mgmt 0 00:14:4f:fb:65:6d 1
vnetprod primary-vsw0 1 00:14:4f:fa:2b:02 1501
vnethb primary-vsw0 2 00:14:4f:f8:12:c1 10
Thanks for reviewing my configuration. -
TAF with FAN in oracle 11gr2 RAC
dear all,
our enviornment is 11GR2 RAC with 2 ndoe RAC. it has four different applications accessing the database.
so for each application i have created services as A,B,C,D.
services in NODE1- Prefered service in NODE2 -Prefered
A B
C D
services in NODE1- available service in NODE2 -Available
B A
D C
now i have the services as described above.
each services are created with
srvctl add service -d DB -s A -r NODE1 -a NODE2 –P BASIC –y AUTOMATIC
srvctl modify service -d DB -s A -q TRUE -P BASIC -e SELECT -z 180 -w 5 -j LONG
srvctl start service -d DB -s A
now i have enable server-side TAF with FAN. so do i need to provide the TNS entries to application layer namely oracle client
as below
AP =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=cluster01-scan)(PORT=1521))
(LOAD_BALANCE = YES)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TEST)
(FAILOVER_MODE =
(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))))
or
do i need to add the above TNS entries in serverside tnsnames.ora file?
1) the connection from jdbc thin or session established via JDBC thin is not having the TAF details in v$session view.
SELECT machine, failover_method, failover_type,
failed_over, service_name, COUNT(*)
FROM v$session
GROUP BY machine, failover_method, failover_type,
failed_over, service_name;
if i execute the above query i couldnt find any session is having failover_method as BASIC and FAILOVER_TYPE as select.
all my application tier is using JDBC thin to access the database.
if i use oracle client from application server to access the database i could see my session having FAILOVER_METHOD as BASIC and FAILOVER_TYPE as SELECT.
so please provide me any realtime example for accessing database using JDBC thin with TAF and FAN properties for their sessions.Hi,
1.) No if you define a service with TAF, then the TAF information will be provided to the client, without having to specify it again in the TNSNAMES.ora (neither client nor server).
However it does not hurt, if you have specified it additionally (it just makes it more difficult if you want to change something, because the client side does not get updated).
See this whitepaper for more information:
http://www.oracle.com/technetwork/database/clustering/overview/awm11gr2-130711.pdf
2.) However it seems you have forgotten to specify something with the service (you seem to be missing -m):
srvctl add service -h
Adds a service configuration to the Oracle Clusterware.
-P {NONE | BASIC | PRECONNECT} TAF policy specification
-e <Failover type> Failover type (NONE, SESSION, or SELECT)
-m <Failover method> Failover method (NONE or BASIC)
-w <integer> Failover delay
-z <integer> Failover retries
Regards
Sebastian -
Oracle 11gR2 RAC Root.sh Failed On The Second Node
Hello,
When i installing Oracle 11gR2 RAC on AIX 7.1 , root.sh succeeds on first node but fails on the second node:
I get error "Root.sh Failed On The Second Node With Error ORA-15018 ORA-15031 ORA-15025 ORA-27041 [ID 1459711.1]" within Oracle installation.
Applies to:
Oracle Server - 11gR2 RAC
EMC VNX 500
IBM AIX on POWER Systems (64-bit)
in /dev/rhdiskpower0 does not show in kfod output on second node. It is an EMC multipath disk device.
But the disk can be found with AIX command.
any help!!
Thanksthe soluation that uninstall "EMC solutitons enabler" but in the machine i just find "EMC migration enabler" and conn't remove without remove EMC Powerpath.
-
Need 11gr2 RAC install Guide on Solaris 10 x86 using containers and NFS
I'm looking for an 11gr2 RAC install Guide on Solaris 10 x86 using 2-3 containers. I need to have the NFS server reside in the global zone or on a 3rd container visable to the two rac containers.
Please share me installation guide!
Thank you!
PS - I currently have run into an install issue -
Can't change ownership on /oracle/products/11.2.0/ocr/: not owner at /oracle/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 5014.
I suspect the NFS share params from the NFS server in the global zone are not 100% correct to the two rac zones/containers.Have you visited Oracle Support Services website (formerly metalink) to determine if your desired configuration is supported?
Last time I looked it was not.
That said Oracle database installation guides are fully documented online.
http://www.oracle.com/technetwork/database/enterprise-edition/documentation/database-093888.html -
11gr2 rac installation on vmware runinstaller not able to visible all nodes
Hello,
Recently I have installed two nodes 11gr2 rac on vmware workstation 6 with OEL 5.4. CRS installation work fine. But after that when I do olsnodes, it's shows only one node. Also, when I try to install oracle database binary, in node selection tab, it's shows only respective nodes and not shows all nodes.Installation of 11gr2 Grid was successfull or not?
Try to check the status of High Availability service daemon by typing the following command:
./crsctl check cluster. (on all nodes)
The output should look like this:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online -
How to convert single instance10g db to 11gR2 RAC with ASM
Hi,
I need your help to decide the plan about how to convert single instance 10g database to 11gr2 rac with asm.
I can have about 6 to 8 hours of downtime to upgrade and move to rac with asm.
db size is about 1.5tb and on AIX.
here is my plan....
1) install 11gr2 rac with asm on two nodes
2) verify rac installation and clustered asm
3)install 10g oracle binaries( yes 10g )
4) shutdown production db ( machine prod )
5) make copy of production and restore on 1st node ( using shadow image , so it's quick and its file system )
6) upgrade db to 11g ( still of file system )
7) after successful upgrade, move to asm ( rman backup )
8) add another node
does it look okay ? OR is there a better approach to save time?
can someone help me ?
Thanks...Thanks ...
So here is what I thought... suggest if something is not right...
1) install 11gr2 grid infra on node A and B with ASM
2) stop CLUSTER ON BOTH NODES.
3) shutdown prod db on 10g ( downtime starts )
4) take rman cold backup
5) restore rman backup on node A on ASM ( as if single instance 11g , no rac parameters )
6) mount and run upgrade script for 11g, then open db with 11
7) after successful upgrade, shutdown db node A
8) change all rac related parameters, spfile,undo,redo for rac environment on both nodes
9) open db in rac environment
can I do this way ?
My only question is, even though I installed rac on node A and B, in step 5 and 6 I'm using only node A as if it is single instance. Is it possible ?
if it is then I'm good to go...
Thanks for all suggestions. -
Cannot Startup Grid in 11gR2 RAC after Install Grid Successfully
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 VMs (main VM rac1 and slave VM rac2) with Oracle Linux 5.6 according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
Grid and RAC database have been installed successfully for both VMs rac1 and rac2.
I am using the slave VM rac2 to test Grid and RAC database because rac1 disk is full.
The problem is that OCR file is not available or currupted in the slave VM rac2.
I have created a pfile and add entry in the file sqlnet.ora in the slave VM rac2. By now, I still cannot startup Grid as below:
[ora11g@rac2 /]$ cd u01/app/grid/bin/
[ora11g@rac2 bin]$ crsctl status resource
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
[ora11g@rac2 bin]$ cd /u02/11g_db/ora11g/racdb/bin
[ora11g@rac2 bin]$ srvctl config database -d racdb
PRCD-1027 : Failed to retrieve database racdb
PRCR-1070 : Failed to check if resource ora.racdb.db is registered
Cannot communicate with crsd
[ora11g@rac2 bin]$
[ora11g@rac2 ~]$ cd /u01/app/grid/bin
[ora11g@rac2 bin]$ export ORACLE_SID=+ASM2
[ora11g@rac2 bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon Mar 26 12:40:35 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u02/11g_db/ora11g/racdb/dbs/init+ASM2.ora'
SQL>
I have checked that there is no the file init+ASM2.ora in the directory '/u02/11g_db/ora11g/dbs'.
As we see the outputs above, my question is:
Can any folk help to solve the issue to start up Grid ?
Thanks.Folks,
Hello. Thanks a lot for replying. Let's analyze 3 cases as follows:
Case 1:
If don't export ORACLE_SID=+ASM2, the output is below:
[ora11g@rac2 /]$ cd u01/app/grid/bin
[ora11g@rac2 bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 27 12:31:35 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/racdb/spfileracdb.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/racdb/spfileracdb.ora
ORA-15077: could not locate ASM instance serving a required diskgroup
SQL> startup pfile='/u01/app/grid/dbs/pfile'
ORA-01031: insufficient privileges
SQL>
Case 2:
If export ORACLE_SID=+ASM2, the output is below:
[ora11g@rac2 bin]$ export ORACLE_SID=+ASM2
[ora11g@rac2 bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 27 12:41:33 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u02/11g_db/ora11g/racdb/dbs/init+ASM2.ora'
SQL> startup pfile='/u01/app/grid/dbs/pfile'
ORA-01031: insufficient privileges
SQL>
Case 3:
Now, as you indicated, I export ORACLE_SID=racdb2, the output is below:
[ora11g@rac2 bin]$ pwd
/u01/app/grid/bin
[ora11g@rac2 bin]$ export ORACLE_SID=racdb2
[ora11g@rac2 bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue Mar 27 12:33:48 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATA/racdb/spfileracdb.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATA/racdb/spfileracdb.ora
ORA-15077: could not locate ASM instance serving a required diskgroup
SQL> startup pfile='/u01/app/grid/dbs/pfile'
ORA-01031: insufficient privileges
SQL>
As we see the ouputs above, export ORACLE_SID=racdb2 doesn't have any effect. My question is:
Can any folk help to solve the above 3 issues to start up Grid ?
Thanks. -
11gR2 RAC, ASM and database
Hi all,
I've installed 11gR2 RAC and database on Linux OEL 5.4. Everything seems Ok, I'm able to connect from client using SCAN, and load balancing works well, but "crs_stat -t" shows up some OFFLINE services, like gsd and oc4j.
Is this normal ? If yes, why it's so ? If not, what should I do to solve the problem ?
Thanks in advance.
AntoineThanks for your answer.
Those services are disabled, and I've found this one on MOS FAQs :
With Oracle Clusterware 11g Release 2, the GSD resource will be disabled by default. You only need to enable this resource if you are running Oracle 9i RAC in the cluster. -
Migration 10gr2 rac to 11gr2 rac
Hi all,
Can I use Transportable Tablespaces to migrate 10gr2 rac with ASM (solaris) to 11gr2 rac with ASM (AIX), the server is not the same.
regards
Edited by: mexman on 06-may-2010 15:36mexman wrote:
OK, and can I use Transporting Tablespaces Between Databases 10gr2 to 11gr2 ?Yes.. as mentioned above by Dan , you can use.. -
Hi Gurus,
Suppose if i create a service with srvctl add service and enabled it as TAF ,and use it to connect to 11gr2 RAC database from JDBC thin client.the instance to which connection got established got failed or crashed and the session will failover to other node and the result of the query will be return back.So even JDBC thin driver is giving me the resultset after reestabilshing the connection to surviving instance so what is it that JDBC thin client doesn't support for TAF and OCI supports it,even same thing will happen with (session failover)OCI right?how is TAF different then FCF?Please help me in understanding this concept of jdbc thin and OCI and FCF.
Thanksin fact I had the exact same question.. it's kinda confusing in the documentation..
from what I gather from the docs...
TAF supports JDBC thick clients only.. So does that mean I can have a type-2 driver based JDBC connection pool and expect runtime load balancing by receiving FAN using ONS ?
what's this thing about TAF only working with OCI clients? Does that include type-2 driver based java clients too ?
What't the difference between OCISession pools and type-2 driver based connection pools..does the later use the first ?
I have seen FCF/ICC work with JDBC type-4 driver in that situation.. that is , it does runtime load balancing by receiving FAN using ONS.
Maybe you are looking for
-
Windows 7 Product Key Blocked - Not Genuine notice
My T420 is 3 years old and suddenly yesterday I got the notices and black screen saying "This copy of Windows is not genuine." And nag screens about it roughly every half hour (and annoyingly at boot-up). I tried several fixes online, including re-en
-
To show document with Extension *.docx and *.xlsx loaded on AS
I have Up loaded a document with extension .XLSX and .DOCX on Application Server using webutil_file_transfer.client_ to_ AS_with_progress . The Problem : Unable To Viiew the document using SHOW_DOCUMENT. What changes to be made in Source code to view
-
How do I control furnace temps (ramp and soak)? What hardware do I need?
Please help me~~~~ I use Labview version 8.2 and Compact Field Point. I currently have a small Lindberg/Blue furnace (120V, 6.8A, 8KW) that has a mounted Lindberg/Blue UP150 programmable controller. The temperature control is not currently connecte
-
Object ID For Price In Stock Posting
Hi All, My client needs the object id for the price field in the stock posting screen as he wants to put a check on it in the transaction notification. Could anybody help me with this please? To get to the screen I am talking about you go to Stock M
-
2. is it possible to have a calculation rule for each customer. For example Customer A pricing date based on delivery date; Customer B pricing date based on goods issue I date