0% found this document useful (0 votes)
1 views3 pages

notes(4)

Uploaded by

summersnoopy96
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views3 pages

notes(4)

Uploaded by

summersnoopy96
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CHAPTER 4

Using Oracle Restart

Oracle Restart Overview:

• Definition: Oracle Restart is the non-clustered version of Grid Infrastructure (GI) that
manages various Oracle resources.
• Functionality: Allows starting, stopping, and automatic restarting of resources in case of
failure.
• Configuration: Can be set to start automatically or manually.

Components of Oracle Restart:

• Service: A set of processes managed by the operating system, including those with
root/Administrator privileges and others running under the GI installation user.
• Resource Management: Resources are registered in the Oracle Local Registry (OLR)
and are under Oracle Restart's control.
o Registration: Implicitly done by some tools or explicitly required in other cases.
o Control: Resources can be managed through GI utilities or their native utilities.

High-Availability Feature:

• Event Monitoring: Detects state changes, propagates messages, and attempts automatic
restarts of failed resources.

Administering Oracle Restart:

• Automatic Start: Initiated on server boot.


o Linux: Managed by the init.ohasd daemon (via /etc/inittab file and rc
script).
o Windows: Managed by the OracleOHService Windows service, handling
ohasd.exe.

Manual Control Commands:

• Linux and Windows:


o crsctl config has: Checks if Oracle Restart is configured to start on boot-up.
o crsctl check has: Verifies if Oracle Restart is currently running.
o crsctl stop has: Stops the Oracle Restart process.
o crsctl start has: Starts the Oracle Restart process.
• Additional Commands for Linux:
o crsctl query softwareversion: Displays installed software version.
o crsctl config has: Checks if Oracle Restart is not configured to start on boot-
up.
o crsctl enable crs: Configures Oracle Restart to start on boot-up.
o crsctl disable crs: Disables Oracle Restart from starting on boot-up.

Administering Registered Resources:

• Registration Requirement: For Oracle Restart to provide high availability, resources


must be registered.
o Automatic Registration: Tools like DBCA (Database Configuration Assistant)
and Net Configuration Assistant register resources automatically.
o Manual Registration: Resources created with SQL*Plus or Net Manager require
manual registration.
o Post-GI Installation: Previously created resources need explicit registration if GI
was installed after them.
• Registration Tools:
o crsctl Utility: General-purpose tool with complex syntax for resource
registration.
§ Requirements: Need to specify how to start, stop, monitor, and handle
failures of the resource, and dependencies.
o srvctl Utility: Preferred tool for managing Oracle resources, offers simpler
commands.
§ Scope: Limited to Oracle resources (e.g., databases, listeners), not for
non-Oracle resources like Apache web listeners.
• srvctl Commands Syntax:
o srvctl <command> <object> <options>
• Common Commands:
o add | remove: Register or deregister a resource.
o enable | disable: Allow or disallow Oracle Restart to manage the resource.
o start | stop: Start or stop a registered and enabled resource.
o config: Show the configuration of the resource.
o modify: Adjust the configuration.
o status: Show whether the resource is started or stopped.
• Common Objects:
o database: Includes the instance that opens it.
o service: A database service.
o listener: A database listener.
o asm: Automatic Storage Management instance.
o diskgroup: An ASM disk group.
• Command Options:
o Vary based on command and object.
• Example Commands:
o Register Database:

srvctl add database -db orclz -oraclehome /u01/db_home1

o Show Configuration:

srvctl config database -db orclz -all


o Start Database:

srvctl start database -db orclz -startoption open

o Stop Database:

srvctl stop database -db orclz -stopoption immediate

o Check Status:

srvctl status database -db orclz

o Options for STARTOPTION: NOMOUNT, MOUNT, READONLY.


o Options for STOPOPTION: NORMAL, TRANSACTIONAL, ABORT.
• srvctl Utility Tips:
o Help Facility: Run srvctl -help for full syntax.
o Location: Installed in both database Oracle Home and GI Oracle Home.
• crsctl Utility:
o Available only in the GI Oracle Home.

Restart Capability:

• Monitoring and Restart: Oracle Restart monitors and restarts resources in case of
failure.
• Controlled Shutdown: Does not trigger an automatic restart if the shutdown is
controlled.
• Restart Policy: Configured with POLICY argument in SRVCTL ADD or SRVCTL MODIFY.
o Values: AUTOMATIC (default), MANUAL, NORESTART.

Exam Tips:

• srvctl Registration: Ensure database existence, not just registration in OLR.

You might also like