You are on page 1of 8

1/18/2017 Document2037201.

HowtoConfigureOracleSolarisClusterfortheOracleRACDatabaseServiceAgent(DocID
2037201.1)

InthisDocument

Abstract
History
AbouttheAuthor
Details
Introduction
ConfigurationAssumptions
InstallOracleSolarisClusterSupportforOracleRACAgentPackages
CreatetheOracleRACDatabaseServiceforAdministratorManagedDatabase
CreatetheOracleRACDatabaseServiceforPolicyManagedDatabase
InstalltheOracleSolarisClusterHAforOracleExternalProxyAgentPackage
ConfigurationRequirementsforCreatingtheHAforOracleExternalProxyResource
RegisterandConfiguretheOracleExternalProxyResourceforOracleRACDatabaseLocalService
SeeAlso
Summary

APPLIESTO:

SolarisClusterVersionOSC4.2toOSC4.2[Release4.2]
OracleSolarisonSPARC(64bit)
OracleSolarisonx8664(64bit)

ABSTRACT

ThisproceduredescribeshowtoconfigureOracleSolarisClusterfortheOracleRACDatabaseServiceAgent.

HISTORY

AbouttheAuthor
JingciWanghasbeenworkingasthequalityengineerintheOracleSolarisGroupforthepast14years.

DETAILS

Introduction
ThisarticleprovidesastepbystepprocesstoconfigureanOracleSolarisCluster4.2resourceforanOracleRACdatabaseto
proxythestateofalocalOracleRACdatabaseserviceintoanOracleSolarisClusterconfiguration.TheOracleRACdatabase
servicenameprovidesaccesstotheOracleRACdatabaseinstanceinsteadofthedatabaseitself.OracleSolarisCluster4.2
supportstheabilitytoquerytheOracleRACinternallyandmonitorthelocalinstance.OracleDatabaseversions12cand11g
release2alsosupportthisfeature.ThisfeatureisimplementedbyusingtheexistingOracleSolarisClusterdataservicefor
OracleExternalProxy,ORCL.oracle_external_proxy,withthenewenhancement.

ForinformationaboutOracledatabase,seetheDatabaseDocumentation.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 1/8
1/18/2017 Document2037201.1

ConfigurationAssumptions
Thisarticleassumesthatthefollowingconditionsaremet:

OracleSolaris11.2orOracleSolaris11.1andOracleSolarisCluster4.2softwareareinstalled.
YouhavebasicOracleSolarisadministrationskills.
Afournodeclusterisconfigured.AllclusternodeshostingOracleRACservermeetOracleDatabasesystem
requirements.
TheOracleSolarisClusterSupportforOracleRACframeworkresourcegrouphasbeencreated.
OracleRAC11grelease2orOracleRAC12cGridInfrastructureanddatabaseareinstalled.
TheOracleRACdatabaseiscreatedandonline.
TheOracleSolarisClusterHAforOracleRACASMinstanceresourcegroup,OracleASMdiskgroupresourcegroup,and
OracleRACscalableserverproxyresourcegroupsandtheirresourcesarecreated.

MakesureyourclusternodesareinstalledwithOracleSolarisCluster4.2tosupporttheOracleRACdatabaseserviceagent
featureandtherequireddataservicepackages.

root@mf0a:~#pkginfosystem/core
Version:4.2
FMRI:pkg://hacluster/hacluster/system/core@4.2

Forinformationaboutinstallingandconfiguringatwonodecluster,seethearticleHowtoinstallandConfigureaTwoNode
Cluster.

InstallOracleSolarisClusterSupportforOracleRACAgentPackages
1.Checkifthehaclusterfullpackageisinstalled.

root@mf0a:~#pkginfohaclusterfull


2.Ifthehaclusterfullpackageisnotinstalled,astherootuser,typethefollowingcommand.

root@mf0a:~#pkgpublisher
PUBLISHERTYPESTATUSPLOCATION
solarisoriginonlineF<solarisrepository>
haclusteroriginonlineF<haclusterrepository>


3.Checkifthehacluster/dataservice/oracledatabaseandhacluster/library/ucmmpackagesareinstalled.

root@mf0a:~#pkginfohacluster/dataservice/oracledatabasehacluster/library/ucmm


4.Ifthehacluster/dataservice/oracledatabaseandhacluster/library/ucmmpackagesarenotinstalled,typethe
followingcommandtoinstallthepackages.

root@mf0a:~#pkginstallhacluster/dataservice/oracledatabasehacluster/library/ucmm


5.CheckiftheOracleSolarisClusterSupportforOracleRACisconfigured.

root@mf0a:~#/usr/cluster/bin/clrslistv
ResourceNameResourceTypeResourceGroup

crs_frameworkrsSUNW.crs_framework:3racframeworkrg
racframeworkrsSUNW.rac_framework:5racframeworkrg
asminstrsSUNW.scalable_asm_instance_proxyasminstrg
asmdgrsSUNW.scalable_asm_diskgroup_proxy:2asmdgrg
rac_server_proxyrsSUNW.scalable_rac_server_proxy:2rac_server_proxyrg

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 2/8
1/18/2017 Document2037201.1

FormoreinformationaboutOracleSolarisClusterdataserviceforOracleRAC,seetheOracleSolarisClusterData
ServiceforOracleRealApplicationClustersGuide.FormoreinformationaboutOracleDatabase,seeOracleDatabase
documentation.

CreatetheOracleRACDatabaseServiceforAdministratorManagedDatabase
YoucanusethefollowingcommandsyntaxtocreatetheOracleRACdatabaseservice.

oradb@mf0a:~$srvctladdservicedb(database_name)\

service(service_name)\

preferred(instance_name_1),(instance_name_2),{(instance_name_N)}

1.AstheOracledatabaseuser,findoutthedatabasenamesonthecluster.

oradb@mf0a:~$srvctlconfigdb
asmdb
oradb@mf0a:~$srvctlstatusdbdasmdb
Instanceasmdb1isrunningonnodemf0a
Instanceasmdb2isrunningonnodemf1a
Instanceasmdb3isrunningonnodemf2a
Instanceasmdb4isrunningonnodemf3a
oradb@mf0a:~$srvctlconfigservicedasmdb
oradb@mf0a:~$

Theaboveoutputmeansthatnoserviceexistsforasmdb.
2.CreatetheOracledatabaseserviceforasmdb.YoucanconfiguretheserviceonasubsetofOracleRACdatabasenodes
oronanequalnumberofdatabasenodes.

oradb@mf0a:~$srvctladdservicedbasmdb\
servicedbsrv\
preferredasmdb1,asmdb2,asmdb3,asmdb4
oradb@mf0a:~$srvctlstatusservicedbasmdb
Servicedbsrvisnotrunning.


3.StarttheOracledatabaseserviceforasmdb.

oradb@mf0a:~$srvctlstartservicedbasmdbservicedbsrv
oradb@mf0a:~$srvctlstatusservicedbasmdb
Servicedbsrvisrunningoninstance(s)asmdb1,asmdb2,asmdb3,asmdb4

CreatetheOracleRACDatabaseServiceforPolicyManagedDatabase
1.AstheOracleDatabaseuser,createdatabaseserviceforthepolicymanageddatabase.Itisonanotherclustersoit
hasdifferentOracleusername,clusternodenameattheprompt,anddatabasename.

oracle@pclust1>srvctladdservicedatabasegccdb\

servicedbsrv\

serverpoolspoola


2.Checkthestatusofthepolicymanageddatabaseservice.Starttheserviceifitisnotrunning.

oracle@pclust1>srvctlstatusservicedatabasegccdb

Servicedbsrvisnotrunning.

oracle@pclust1>srvctlstartservicedatabasegccdbservicedbsrv

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 3/8
1/18/2017 Document2037201.1
oracle@pclust1>srvctlstatusservicedatabasegccdb

Servicedbsrvisrunningonnodes:pclust1,pclust2


3.AstheOracleGridInfrastructureuserorastherootuser,checktheservicestatusintheCRSstack.

oragrid@mf0a:~$crsctlstatrest


NameTargetStateServerStatedetails

LocalResources

ora.CRS.dg
ONLINEONLINEmf0aSTABLE
ONLINEONLINEmf1aSTABLE
ONLINEONLINEmf2aSTABLE
ONLINEONLINEmf3aSTABLE
ora.DB.dg
ONLINEONLINEmf0aSTABLE
ONLINEONLINEmf1aSTABLE
ONLINEONLINEmf2aSTABLE
ONLINEONLINEmf3aSTABLE
ora.DG1.dg
ONLINEONLINEmf0aSTABLE
ONLINEONLINEmf1aSTABLE
ONLINEONLINEmf2aSTABLE
ONLINEONLINEmf3aSTABLE
ora.LISTENER.lsnr
ONLINEONLINEmf0aSTABLE
ONLINEONLINEmf1aSTABLE
ONLINEONLINEmf2aSTABLE
ONLINEONLINEmf3aSTABLE
ora.asm
ONLINEONLINEmf0aStarted,STABLE
ONLINEONLINEmf1aStarted,STABLE
ONLINEONLINEmf2aStarted,STABLE
ONLINEONLINEmf3aStarted,STABLE
ora.net1.network
ONLINEONLINEmf0aSTABLE
ONLINEONLINEmf1aSTABLE
ONLINEONLINEmf2aSTABLE
ONLINEONLINEmf3aSTABLE
ora.ons
ONLINEONLINEmf0aSTABLE
ONLINEONLINEmf1aSTABLE
ONLINEONLINEmf2aSTABLE
ONLINEONLINEmf3aSTABLE


ClusterResources

ora.LISTENER_SCAN1.lsnr
1ONLINEONLINEmf0aSTABLE
ora.MGMTLSNR
1ONLINEONLINEmf0axxx.xx.x.xx,STABLE
ora.cvu
1ONLINEONLINEmf0aSTABLE
ora.mgmtdb
1ONLINEONLINEmf0aOpen,STABLE
ora.oc4j
1ONLINEONLINEmf0aSTABLE
ora.asmdb.db
1ONLINEONLINEmf0aOpen,STABLE
2ONLINEONLINEmf1aOpen,STABLE
3ONLINEONLINEmf2aOpen,STABLE
4ONLINEONLINEmf3aOpen,STABLE
ora.asmdb.dbsrv.svc
1ONLINEONLINEmf0aSTABLE
2ONLINEONLINEmf1aSTABLE
3ONLINEONLINEmf2aSTABLE
4ONLINEONLINEmf3aSTABLE
ora.scan1.vip
1ONLINEONLINEmf0aSTABLE
ora.mf0a.vip
1ONLINEONLINEmf0aSTABLE
ora.mf1a.vip
1ONLINEONLINEmf1aSTABLE

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 4/8
1/18/2017 Document2037201.1
ora.mf2a.vip

1ONLINEONLINEmf2aSTABLE
ora.mf3a.vip

1ONLINEONLINEmf3aSTABLE


oragrid@mf0a:~$

InstalltheOracleSolarisClusterHAforOracleExternalProxyAgentPackage
TypethefollowingcommandtoinstalltheOracleExternalProxyagentpackage.

root@mf0a:~#pkginstallhacluster/dataservice/oracleexternalproxy

Verifythepackageinstallation.

root@mf0a:~#pkginfohacluster/dataservice/oracleexternalproxy

ConfigurationRequirementsforCreatingtheHAforOracleExternalProxyResource
PerformthefollowingstepsbeforecreatingtheHAforOracleExternalProxyresource.

1.CreatethedatabaseuserthatwillbeusedbytheOracleExternalProxyresource.Asadatabaseuser,createtheuser
hauserusingSQLCommands.

oradb@mf0a:~$sqlplus"/assysdba"

SQL*Plus:Release12.1.0.2.0BetaonThuAug2114:57:102014

Copyright(c)1982,2014,Oracle.Allrightsreserved.


Connectedto:
OracleDatabase12cEnterpriseEditionRelease12.1.0.2.064bitBeta
WiththePartitioning,RealApplicationClusters,AutomaticStorageManagement,OLAP,
AdvancedAnalyticsandRealApplicationTestingoptions

SQL>createuserhauseridentifiedbyhauser

Usercreated.

SQL>grantcreatesessiontohauser

Grantsucceeded.

SQL>grantexecuteondbms_locktohauser

Grantsucceeded.

SQL>grantselectonv_$instancetohauser

Grantsucceeded.

SQL>createprofilehauserlimitPASSWORD_LIFE_TIMEUNLIMITED

Profilecreated.

SQL>alteruserhauseridentifiedbyhauserprofilehauser

Useraltered.

SQL>selectusernamefromall_userswhereusername='HAUSER'

USERNAME

HAUSER

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 5/8
1/18/2017 Document2037201.1

2.Astherootuser,setupasecureremotedatabasepasswordonallnodesonwhichyouwoulddeploytheOracleSolaris
ClusterHAforOracleExternalProxyresource.

root@mf0a:~#ddif=/dev/urandomof=/var/cluster/scoep_keybs=8count=1
1+0recordsin
1+0recordsout
root@mf0a:~#echohauser|/usr/sfw/bin/opensslencaes128epass\

file:/var/cluster/scoep_keyout/opt/ORCLscoep/.svproxyrs_passwd

svproxyrsinsvproxyrs_passwdrepresentstheresourcenamethatyouwillcreateintheRegisterandConfigure
theOracleExternalProxyResourceforOracleRACDatabaseLocalUsagesection.
3.Checkifthepasswordcanbedecrypted.

root@mf0a:~#/usr/sfw/bin/opensslencaes128dpass\
file:/var/cluster/scoep_keyin/opt/ORCLscoep/.svproxyrs_passwd
hauser
root@mf0a:~#chmod400/var/cluster/scoep_key
root@mf0a:~#chmod400/opt/ORCLscoep/.svproxyrs_passwd


4.Configurethetnsnames.orafile.TheOracleExternalProxyresourcequeriesalocalOracledatabaseserviceratherthan
aremotedatabase,sotheHOSTentrycanbeomittedfromthefile.Instead,thePROTOCOLandKEYentriesarerequired
withintheADDRESSstatement.Forexample,thefollowingscreendisplaysthetnsnames.orafilethathasanentryfor
DBSRVservice.

oradb@mf0a:~$cat$ORACLE_HOME/network/admin/tnsnames.ora

ASMDB=

(DESCRIPTION=

(ADDRESS=(PROTOCOL=TCP)(HOST=SCANVIP)(PORT=1521))

(CONNECT_DATA=

(SERVER=DEDICATED)

(SERVICE_NAME=asmdb)

DBSRV=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))
(CONNECT_DATA=
(SERVER=DEDICATED)
(SERVICE_NAME=dbsrv)
)
)

RegisterandConfiguretheOracleExternalProxyResourceforOracleRACDatabaseLocal
Service
CreatetheOracleExternalProxyresourceintheexistingOracleRACserverproxyresourcegroup.
IfyouconfigurethesamenumberofnodesfortheHAforOracleExternalProxyresourceasyouhavealreadyconfiguredfor
theOracleRACdatabaseresourcegroup,youcanaddthisnewresourcetotheexistingresourcegroup.Astherootuser,type
thefollowingcommandsononeoftheclusternodes.

root@mf0a:~#clrtregisterORCL.oracle_external_proxy
root@mf0a:~#clrgstatusrac_server_proxyrg

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 6/8
1/18/2017 Document2037201.1
===ClusterResourceGroups===

GroupNameNodeNameSuspendedStatus

rac_server_proxyrgmf0aNoOnline
mf1aNoOnline
mf2aNoOnline
mf3aNoOnline

root@mf0a:~#clrscreategrac_server_proxyrg\
tORCL.oracle_external_proxy\
pResource_dependencies_offline_restart=rac_server_proxyrs
pservice_name=dbsrv\
pons_nodes=localhost:6100\
pdbuser=hauser\
ptns_admin=/u01/app/oradb/12.1.0.2/db_home/network/admin\
[pplugin_name=pluginname]\
dsvproxyrs

ThefollowingoptionsareusedtocreatetheOracleExternalProxyresource:

gresource_group:SpecifiesthegrouptowhichyouwilladdtheProxyresource.
pservice_name:Specifiesthenameofthedatabaseserviceyoucreatedinthe"ConfigureOracleRACDatabase
Service"section.
pons_nodes:Foralocaldatabaseconnection,localhost:portisused.
ptns_admin:Bydefault,theOracleSolarisClusterHAforOracleExternalProxyresourcereferstothe
/var/opt/oracle/tnsnames.orafile.Ifyourtnsnames.oraisat/var/opt/oracle,youcanomitthisline.

Checkthenewlyaddedresourcesvproxyrsintheserverproxyrgresourcegroupandstarttheresource.

root@mf0a:~#clrslistvgrac_server_proxyrg
ResourceNameResourceTypeResourceGroup

rac_server_proxyrsSUNW.scalable_rac_server_proxy:2rac_server_proxyrg
svproxyrsORCL.oracle_external_proxyrac_server_proxyrg

root@mf0a:~#clrsenablesvproxyrs
root@mf0a:~#clrsstatusgrac_server_proxyrg

===ClusterResources===

ResourceNameNodeNameStateStatusMessage

rac_server_proxyrsmf0aOnlineOnlineasmdb1isUP
mf1aOnlineOnlineasmdb2isUP
mf2aOnlineOnlineasmdb3isUP
mf3aOnlineOnlineasmdb4isUP

svproxyrsmf0aOnlineOnlineServicedbsrvisUP[InstanceisOPEN]
mf1aOnlineOnlineServicedbsrvisUP[InstanceisOPEN]
mf2aOnlineOnlineServicedbsrvisUP[InstanceisOPEN]
mf3aOnlineOnlineServicedbsrvisUP[InstanceisOPEN]

IfyouneedyourdatabaseservicetouseasubsetofthenodesthatruntheOracleRACdatabase,createaresourcegroupthat
containsdatabaseserviceresourcemembersonly.Inthisexampletheresourcegroupcontainstheora.asmdb.dbsrv.svc
databaseserviceresource.

root@mf0a:~#clrgcreateSnnode1,node2,[node3,...]resource_group_name
root@mf0a:~#clrscreatetORCL.oracle_external_proxy\
gresource_group_name\
pResource_dependencies_offline_restart=rac_server_proxyrs
pservice_name=name\
pons_nodes=localhost:6100\
pdbuser=hauser\
ptns_admin=tns_admin\
dsvproxyrs

root@mf0a:~#clrgonlineeMresource_group_name

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 7/8
1/18/2017 Document2037201.1

SeeAlso
OracleSolarisClusterDataServiceforOracleExternalProxyGuide
HowtoDeployOracleRAConOracleSolaris11ZoneClusters

SUMMARY

ThisarticleprovidesdetailedconfigurationstepsrequiredtodeployOracleRACdatabaseservicetoOracleSolarisCluster.
OracleRACcontainerdatabaserequiresOracleRACdatabaseservicetoaccessitspluggabledatabaseswithinacontainer
database.

Didn'tfindwhatyouarelookingfor?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrlstate=47r36iqh5_247&id=2037201.1 8/8