Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris Cluster Data Service for Oracle Guide Oracle Solaris Cluster 4.0 |
1. Installing and Configuring HA for Oracle
Overview of the Installation and Configuration Process for HA for Oracle
Planning the HA for Oracle Installation and Configuration
Configuration Planning Questions
How to Configure the Oracle Database Access Using Solaris Volume Manager
How to Configure the Oracle Database Access Using Oracle ASM
How to Configure an Oracle Grid Infrastructure for Clusters SCAN Listener
Installing the Oracle ASM Software
Verifying the Oracle ASM Software Installation
Installing the Oracle Software
How to Install the Oracle Software
How to Set the Oracle Kernel Parameters
Verifying the Oracle Installation and Configuration
How to Verify the Oracle Installation
How to Create a Primary Oracle Database
Installing the HA for Oracle Package
How to Install the HA for Oracle Package
Registering and Configuring HA for Oracle
Tools for Registering and Configuring HA for Oracle
Setting HA for Oracle Extension Properties
How to Register and Configure HA for Oracle (clsetup)
How to Register and Configure HA for Oracle Without Oracle ASM (CLI)
How to Register and Configure HA for Oracle With Clustered Oracle ASM Instance (CLI)
Verifying the HA for Oracle Installation
How to Verify the HA for Oracle Installation
Location of HA for Oracle Log Files
Tuning the HA for Oracle Fault Monitors
Operation of the Oracle Server Fault Monitor
Operation of the Main Fault Monitor
Operation of the Database Client Fault Probe
Operations to Monitor the Partition for Archived Redo Logs
Operations to Determine Whether the Database is Operational
Actions by the Server Fault Monitor in Response to a Database Transaction Failure
Scanning of Logged Alerts by the Server Fault Monitor
Operation of the Oracle Listener Fault Monitor
Obtaining Core Files for Troubleshooting DBMS Timeouts
Customizing the HA for Oracle Server Fault Monitor
Defining Custom Behavior for Errors
Changing the Response to a DBMS Error
Responding to an Error Whose Effects Are Major
Ignoring an Error Whose Effects Are Minor
Changing the Response to Logged Alerts
Changing the Maximum Number of Consecutive Timed-Out Probes
Propagating a Custom Action File to All Nodes in a Cluster
Specifying the Custom Action File That a Server Fault Monitor Should Use
How to Specify the Custom Action File That a Server Fault Monitor Should Use
Changing the Role of an Oracle Data Guard Instance
How to Change the Role of an Oracle Data Guard Instance
A. HA for Oracle Extension Properties
B. Preset Actions for DBMS Errors and Logged Alerts
![]() | Caution - Do not perform the steps in this section for an Oracle physical standby database. |
Perform the procedure in this section to set up database permissions for an Oracle primary database or an Oracle logical standby database.
# sqlplus "/ as sysdba" sql> create user user identified by passwd; sql> alter user user default tablespace system quota 1m on system; sql> grant select on v_$sysstat to user; sql> grant select on v_$archive_dest to user; sql> grant select on v_$database to user; sql> grant create session to user; sql> grant create table to user; sql> create profile profile limit PASSWORD_LIFE_TIME UNLIMITED; sql> alter user user identified by passwd profile profile; sql> exit; #
You can use this method for all the supported Oracle releases.
# sqlplus "/ as sysdba" sql> show parameter remote_os_authent NAME TYPE VALUE ---------------------- ----------- --------------- remote_os_authent boolean TRUE
# sql> show parameter os_authent_prefix NAME TYPE VALUE ---------------------- ----------- --------------- os_authent_prefix string ops$
sql> create user prefix user identified by externally default tablespace system quota 1m on system; sql> grant connect, resource to prefix user; sql> grant select on v_$sysstat to prefix user; sql> grant select on v_$archive_dest to prefix user; sql> grant select on v_$database to prefix user; sql> grant create session to prefix user; sql> grant create table to prefix user; sql> exit; #
The replaceable items in these commands are as follows:
prefix is the setting of the os_authent_prefix parameter. The default setting of this parameter is ops$.
user is the user for whom you are enabling Oracle Solaris authentication. Ensure that this user owns the files under the $ORACLE_HOME directory.
Note - Do not type a space between prefix and user.
The listener.ora file must be accessible from all the nodes that are in the cluster. Place these files either under the cluster file system or in the local file system of each node that can potentially run the Oracle resources.
Note - If you place the listener.ora file in a location other than the /var/opt/oracle directory or the $ORACLE_HOME/network/admin directory, you must specify the TNS_ADMIN variable or an equivalent Oracle variable in a user-environment file. For information about Oracle variables, see the Oracle documentation.
You must also run the clresource command to set the resource extension parameter User_env, which sources the user-environment file. See SUNW.oracle_listener Extension Properties or SUNW.oracle_server Extension Properties for format details.
HA for Oracle imposes no restrictions on the listener name; it can be any valid Oracle listener name.
The following code sample identifies the lines in listener.ora that are updated.
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC)) (ADDRESS = (PROTOCOL = TCP) (HOST = logical-hostname) (PORT = port-used)) ) )
The following code sample identifies the lines in tnsnames.ora that are updated on client machines.
service_name = . . (ADDRESS = (PROTOCOL = TCP) (HOST = logicalhostname) <- logical hostname (PORT = 1527) <- must match port in LISTENER.ORA ) ) (CONNECT_DATA = (SID = <SID>)) <- database name, default is ORCL
The following example shows how to update the listener.ora and tnsnames.ora files for the following Oracle instances.
|
The corresponding listener.ora entries are the following entries.
LISTENER-ora9 = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = hadbms4) (PORT = 1530) ) ) SID_LIST_LISTENER-ora9 = (SID_LIST = (SID_DESC = (SID_NAME = ora9) ) ) LISTENER-ora8 = (ADDRESS_LIST = (ADDRESS= (PROTOCOL=TCP) (HOST=hadbms3)(PORT=1806)) ) SID_LIST_LISTENER-ora8 = (SID_LIST = (SID_DESC = (SID_NAME = ora8) ) )
The corresponding tnsnames.ora entries are the following entries.
ora8 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = hadbms3) (PORT = 1806)) ) (CONNECT_DATA = (SID = ora8)) ) ora9 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = hadbms4) (PORT = 1530)) ) (CONNECT_DATA = (SID = ora9)) )
# cluster status clustername
Next Steps
Go to Installing the HA for Oracle Package to install the HA for Oracle packages.