Upload
gyan
View
229
Download
0
Embed Size (px)
Citation preview
7/24/2019 25vcs6unixclusterdatab Trans
1/33
Veritas Cluster Server 6.0 for UNIX:Example Application Conurations
Example 2: Clustering Databases
7/24/2019 25vcs6unixclusterdatab Trans
2/33
!opic "#$ectives
VCS database agentsDescribe VCS agents for managingdatabases.
Databasepreparation
Prepare a database for use in a VCSenvironment.
The database agentfor racle !nstall and con"gure the VCS racle agent.
Database failoverbehavior
Con"gure database failover behavior.
#dditional racle
agent functions
!mplement additional functionalit$ provided
b$ the racle agent.
%esson o#$ectives
7/24/2019 25vcs6unixclusterdatab Trans
3/33
#fter completing this topic% $ou&ill be able to describe VCSagents for managing databases.
VCS &ata#ase aents
7/24/2019 25vcs6unixclusterdatab Trans
4/33
Aents for manain &ata#ases
Database agents
'ou can also manage some databases using the#pplication agent or customi(ed agents.
)ot all agents are supported on allplatforms.
!
7/24/2019 25vcs6unixclusterdatab Trans
5/33
'ata#ase aent functions
* Start a speci"ed databaseinstance.
* Stop the speci"ed instance.
* +onitor the instance.
* Clean up after a fault to enable
failover and prevent possibleconcurrenc$ violations.
+ost database agents have multilevel monitoring.
,asic-level monitoring ma$ chec the process table forapplicable database processes.
Detail or second-level monitoring ma$ &rite to a testtable in the speci"ed database.
7/24/2019 25vcs6unixclusterdatab Trans
6/33
Secon&(level monitorin
* # database user account &ith updateprivileges.
*The pass&ord for the database user account.
*The name of the database table.
*The name of the S/0 script used to &rite to
the table
!nformation re1uired to access and &rite to a table
7/24/2019 25vcs6unixclusterdatab Trans
7/33
)onitorin listener processes
* Some databases have listeners built-in and do notre1uire additional VCS agents for monitoring.
*The )etlsnr agent has t&o-level monitoring for theracle listener:
,asic: Scans the process table for the tnslsnrprocess
Detail: 3ses lsnrctlto test the listener
Data
Server
)et4
racleserver
0istener
Protocol
)S
3ser
7/24/2019 25vcs6unixclusterdatab Trans
8/33
#fter completing this topic% $ou&ill be able to prepare a databasefor the VCS environment.
'ata#ase preparation
7/24/2019 25vcs6unixclusterdatab Trans
9/33
'*+ on AIX an&%inux
Verif,in soft-are compati#ilit,
* 3se the latest database agent available for the VCS version in use.
* Chec agent guides to verif$ that the database version is supported.
* Examples:
racle agent 5.6:
* VCS 5.6
* Solaris SP#7C 86 92-%5;-bit
"racle onSolaris
sort.symantec.com
http://_original/sort.symantec.comhttp://_original/sort.symantec.com7/24/2019 25vcs6unixclusterdatab Trans
10/33
'ata#ase proram #inar,/ les
Sare& storae%ocal &is1
Provides redundanc$
7e1uires the databaseto be installed andcon"gured identicall$ oneach s$stem
Simpli"es con"guration&hen there are man$
s$stems that can runthe database
7e1uires all s$stems tohave the same mountpoint director$ for thedatabase home
director$
Comparin #inar, le locations
7/24/2019 25vcs6unixclusterdatab Trans
11/33
'ata les
2a- volume
3ile s,stem
ile s$stems must be located on shared diss.
Create the same "le s$stem mount point on each s$stemin the cluster.
Set the permissions for the volumes to be o&ned permanentl$ b$the database:
vxedit g diskgroupset group=dba user=oracle \mode=660 volume
'ou cannot change permission onl$ in 3)!=. VxV+ sets volumepermissions upon import.
Comparin sare& storae o#$ects
7/24/2019 25vcs6unixclusterdatab Trans
12/33
'ata#ase(relate& s,stem les
Database-related s$stem "les must be consistent on all
s$stems that can run the database:* Database user accounts
* Pass&ords for database user accounts
* Database group entries
* 0istener entries
* Database shared memor$ settings
*The database service group 9virtual< !P address
)TE: 7efer to Database vendor documentation for details
7/24/2019 25vcs6unixclusterdatab Trans
13/33
Net-or1 conuration
or listener service failover:
* !nclude at least one !P resource in the service group for thedatabase.
* Set the host name for this virtual !P address for the host "eld inthe listener con"guration "le.LISTENER=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=hr_ora)(PORT=1521))
(ADDRESS=(PROTOCOL=ipc)(E!="#tproc))))
$ $ $
$ $ $
1&$1&$21$5' hr_ora
$ $ $ 86.86.28.@;
!P
list"n"r$ora
"tchosts
7/24/2019 25vcs6unixclusterdatab Trans
14/33
#fter completing this topic% $ou&ill be able to install andcon"gure the racle agent.
!e &ata#ase aentfor "racle
7/24/2019 25vcs6unixclusterdatab Trans
15/33
Installin &ata#ase aents
Database agents:
* #re automaticall$ installed on all cluster s$stemsif $ou select recommended or all pacage sets
* #re included in the V7TSvcsea pacage
* +ust be installed on all database failover targets$stems.
* Can be installed manuall$ from the soft&aredistribution manuall$ using operating s$stemutilities
Note: #gent-speci"c t$pes "le must be added toain$c*if $ou install agents manuall$
7/24/2019 25vcs6unixclusterdatab Trans
16/33
4i availa#ilit, &ata#ase conurationovervie-
!nstall database s&
Con"gure database
Test database
Stop resources
)
#dd service group
Prepare S
Test service group
#ddtest resources
'
+ores$stems
,inaries on local storage
7/24/2019 25vcs6unixclusterdatab Trans
17/33
"racle service roup conurationexample
hrForasg
hrForadatavol
hrForadatamnt
hrForacle
hrForaarchivemnt
hrForaredomnt
hrForadg
hrForanic
hrForalistener
hrForaip
hrForaredovolhrForaarchivevol
7/24/2019 25vcs6unixclusterdatab Trans
18/33
2esource &enition value
Service group name hrForasg
7esource name hrForacle
7esource t$pe racle
Required attributes
Sid ?7
&ner oracle
?ome hrdata
Conurin an "racle resource
* Starts and stops anracle instance
* +onitors the processtable
ain$c*
Oracl" hr_ora(Si+ = HR
O,n"r = oracl"Ho" = -hr+ata-)
7/24/2019 25vcs6unixclusterdatab Trans
19/33
Value Action
ST#7T3P 7uns start.p
ST#7T3PF7CE
9default