SRVCTL CheatSheet

Oracle Real Application Clusters (RAC) is an Oracle database environment that supports multiple computers concurrently accessing a single database for improved performance, fault tolerance, and scalability.
Post Reply
User avatar
Kristoff
Posts: 30
Joined: Thu Jan 19, 2012 2:17 pm
Location: Manila, Philippines

SRVCTL CheatSheet

Post by Kristoff »

Displays the current state of the database.
srvctl status database -d <db_unique_name> -v
-d <db_unique_name> Unique name for the database
-f Include disabled applications
-v Verbose output
-h Print usage

Displays the current state of the database instance.
srvctl status instance -d <db_unique_name> -n <node_name> -v
-d <db_unique_name> Unique name for the database
-n <node_name> Node name
-i "<inst,...>" Comma separated instance names
-f Include disabled applications
-v Verbose output
-h Print usage

Displays the current state of the service.
srvctl status service -d <db_unique_name> [-s "<service_name_list>"] -v

Displays the current state of the service.
srvctl status service -d <db_unique_name> [-s "<service_name_list>"] [-f] [-v]
-d <db_unique_name> Unique name for the database
-s "<serv,...>" Comma separated service names
-f Include disabled applications
-v Verbose output
-h Print usage

Displays the current state of the node applications.
srvctl status nodeapps

Displays the current state of the VIP.
srvctl status vip { -n <node_name> | -i <vip_name> } [-v]
-n <node_name> Node name
-i <vip_name> VIP name
-v Verbose output
-h Print usage

Displays the current state of ASM.
srvctl status asm [-n <node_name>] [-a] [-v]
-n <node_name> Node name
-a Print detailed status information
-v Verbose output
-h Print usage

Displays the current state of the diskgroup.
srvctl status diskgroup -g <dg_name> [-n "<node_list>"] [-a] [-v]
-g <dg_name> Disk Group name
-n "<node_list>" Comma separated node names
-a Print detailed status information
-v Verbose output
-h Print usage

Displays the current state of the listener.
srvctl status listener [-l <lsnr_name>] [-n <node_name>] [-v]
-l <lsnr_name> Listener name
-n <node_name> Node name
-v Verbose output
-h Print usage

Displays the current state of the server pool.
srvctl status srvpool [-g <pool_name>] [-a]
-g <pool_name> Server pool name
-a Print detailed status information
-h Print usage

Displays the current state of the given server(s).
srvctl status server -n "<server_list>" [-a]
-n "<server_list>" Comma separated list of server names
-a Print detailed status information
-h Print usage

Displays the current state of the SCAN VIP.
srvctl status scan [-i <ordinal_number>] [-v]
-i <scan_ordinal_number> Ordinal number of IP address
-v Verbose output
-h Print usage

Displays the current state of the SCAN listener.
srvctl status scan_listener [-i <ordinal_number>] [-v]
-i <scan_ordinal_number> Ordinal number of IP address
-v Verbose output
-h Print usage

Displays the current state of the OC4J instance.
srvctl status oc4j [-n <node_name>] [-v]
-n <node_name> Node name
-v Verbose output
-h Print usage

Displays the current state of of all resources for the Oracle home.
srvctl status home -o <oracle_home> -s <state_file> -n <node_name>
-o <oracle_home> ORACLE_HOME path
-s <state_file> Specify a file path for the 'srvctl stop home' command to store the state of the resources
-n <node_name> Node name
-h Print usage

Displays the current state of the file system.
srvctl status filesystem -d <volume_device> [-v]
-d <volume_device> Volume device path
-v Verbose output
-h Print usage

Displays the current state of GNS.
srvctl status gns [-n <node_name>] [-v]
-n <node_name> Node name
-v Verbose output
-h Print usage

Displays the current state of the CVU resource.
srvctl status cvu [-n <node_name>]
-n <node_name> Node name
-h Print usage

The SRVCTL config command displays the configuration for the object stored in the OCR.

Displays the configuration for the database.
srvctl config database [-d <db_unique_name> [-a] ] [-v]
-d <db_unique_name> Unique name for the database
-a Print detailed configuration information
-v Verbose output
-h Print usage

Displays the configuration for the service.
srvctl config service -d <db_unique_name> [-s <service_name>] [-v]
-d <db_unique_name> Unique name for the database
-s <service> Service name
-v Verbose output
-h Print usage

Displays the configuration information for the node applications.
srvctl config nodeapps [-a] [-g] [-s]
-a Display VIP configuration
-g Display GSD configuration
-s Display ONS daemon configuration
-h Print usage

Displays the configuration information for a VIP or VIP's configured on a node.
srvctl config vip { -n <node_name> | -i <vip_name> }
-n <node_name> Node name
-i <vip_name> VIP name
-h Print usage

Displays the configuration information for the networks registered in the Oracle Clusterware.
srvctl config network [-k <network_number>]
-k <net_num> network number
-h Print usage

Displays the configuration for ASM.
srvctl config asm [-a]
-a Print detailed configuration information
-h Print usage

Displays the configuration for the listener.
srvctl config listener [-l <lsnr_name>] [-a]
-l <lsnr_name> Listener name
-a Print detailed configuration information
-h Print usage

Displays the configuration for the SCAN VIP.
srvctl config scan [-i <ordinal_number>]
-i <scan_ordinal_number> Ordinal number of IP address
-h Print usage

Displays configuration information for the SCAN listener.
srvctl config scan_listener [-i <ordinal_number>]
-i <scan_ordinal_number> Ordinal number of IP address
-h Print usage

Displays the configuration for the server pool.
srvctl config srvpool [-g <pool_name>]
-g <pool_name> Server pool name
-h Print usage


Usage: srvctl config oc4j
Usage: srvctl config filesystem -d <volume_device>
Usage: srvctl config gns [-a] [-d] [-k] [-m] [-n <node_name>] [-p] [-s] [-V] [-q <name>] [-l] [-v]
Usage: srvctl config cvu
For detailed help on each command and object and its options use:
srvctl <command> <object> -h
Usage (for backward compatibility): srvctl config
Usage (for backward compatibility): srvctl config -p <dbname> -n <node>
Usage (for backward compatibility): srvctl config -V
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: SRVCTL CheatSheet

Post by xaeresis »

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: SRVCTL CheatSheet

Post by xaeresis »

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: SRVCTL CheatSheet

Post by xaeresis »

Post Reply