Oracle9i Real Application Clusters Real Applications Clusters Guard I Configuration Guide Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, and Sun Solaris Part Number A95979-02 |
|
This chapter describes post-installation tasks. It contains the following sections:
Perform the following steps as the oracle
user:
oracle
user.
During the Oracle9i Real Application Clusters Guard setup, the following network configuration files are created:
The files in the preceeding table are created in the $TNS_ADMIN
directory if the TNS_ADMIN environment variable is defined, or in the $ORACLE_HOME/network/admin
directory if the TNS_ADMIN environment variable is not defined.
$ cd $TNS_ADMIN $ ls listener.ora.ded.pfs tnsnames.ora.ded.pfs tnsnames.ora.ded.clnt.pfs $ cp listener.ora.ded.pfs listener.ora $ cp tnsnames.ora.ded.pfs tnsnames.ora
tnsnames.ora.ded.clnt.pfs
, to all of the client systems.
During the Oracle9i Real Application Clusters Guard setup, the following parameter files are created:
The files in the preceeding table are created in the $ORACLE_BASE/admin/$DB_NAME/pfile
directory for an OFA installation, or in the $ORACLE_HOME/pfs/$DB_NAME/pfile
for a non OFA installation.
If you already have initialization parameter files set up for the Oracle9i Real Application Clusters database, you can use the IFILE parameter to include the initialization parameter files created by Oracle9i Real Application Clusters Guard.
The following example initSALES1.ora
file shows a sample initialization parameter file for the first instance:
ifile=/u01/oracle/admin/SALES/pfile/initSALES.ora rollback_segments=(rbs1_1, rbs1_2) thread=1 cluster_database=true instance_name=SALES1
The following example initSALES2.ora
file shows a sample initialization parameter file for the second instance:
ifile=/u01/oracle/admin/SALES/pfile/initSALES.ora rollback_segments=(rbs2_1, rbs2_2) thread=2 cluster_database=true instance_name=SALES2
The following example shows the contents of the initSALES1.ora
file for the first instance after embedding the Oracle9i Real Application Clusters Guard parameter files within an existing parameter file. Make sure not to include multiple entries for the same initialization parameter. Because they are included in the embedded parameter files, the THREAD and CLUSTER_DATABASE parameters have been removed.
ifile=/u01/oracle/admin/SALES/pfile/initSALES.ora ifile=/u01/oracle/admin/SALES/pfile/init_SALES_nodeA.ora ifile=/u01/oracle/admin/SALES/pfile/SALES_config.pfs ifile=/u01/oracle/admin/SALES/pfile/SALES_config_nodeA.ded.pfs rollback_segments=(rbs1_1, rbs1_2)
The following example shows the contents of the initSALES2.ora
file for the second instance after embedding the Oracle9i Real Application Clusters Guard parameter files within an existing parameter file. Make sure that you only have single entries for each initialization parameter. Because they are included in the embedded parameter files, the THREAD and CLUSTER_DATABASE parameters have been removed.
ifile=/u01/oracle/admin/SALES/pfile/initSALES.ora ifile=/u01/oracle/admin/SALES/pfile/init_SALES_nodeB.ora ifile=/u01/oracle/admin/SALES/pfile/SALES_config.pfs ifile=/u01/oracle/admin/SALES/pfile/SALES_config_nodeB.ded.pfs rollback_segments=(rbs2_1, rbs2_2)
For more information about these configuration files, refer to Appendix B.
catpfs.sql
script to create the required Oracle9i Real Application Clusters Guard objects in the database.
To run this script, you must have SYSDBA privileges. Run the script as follows:
$ORACLE_HOME/pfs/admin
directory:
$ cd $ORACLE_HOME/pfs/admin
catpfs.sql
script, where sys_password is the password(for example, CHANGE_ON_INSTALL
) :
$ sqlplus 'SYS/sys_password
AS SYSDBA'
SQL> @catpfs.sql
The catpfs.sql
script creates the following:
INSTANCE_NAME
tables for the Oracle instance monitor
The following example shows output from the catpfs.sql
script:
Enter the PFS software owner [Default: OPS$ORACLE]:ops$oracle Dropping ops$oracle.. DROP USER ops$oracle CASCADE * ERROR at line 1: ORA-01918: user 'OPS$ORACLE' does not exist Creating ops$oracle.. User created. Grant succeeded. Below are the list of online tablespaces in this database. Decide which tablespace you wish to create the PFS tables and indexes. It is NOT recommended to use the system tablespace for storing PFS objects. TABLESPACE_NAME ------------------------------ INDX TEMP TOOLS USERS RBS Specify ops$oracle user's default tablespace:users User altered. Specify ops$oracle user's temporary tablespace:temp User altered. Creating Customer Query Package... Specify owner of the customer query table:scott Specify customer query table:emp Connected. Grant succeeded. Connected. Creating synonym for the customer query table... Specify synonym for customer query table:emp DROP SYNONYM emp * ERROR at line 1: ORA-01434: private synonym to be dropped does not exist Synonym created. Creating CUSTOMER_QUERY package Package created. Package body created. Creating tables and views for Oracle heartbeat monitor. DROP PUBLIC SYNONYM pfs$oraping_config * ERROR at line 1: ORA-01432: public synonym to be dropped does not exist DROP PUBLIC SYNONYM pfs$oraping_heartbeat * ERROR at line 1: ORA-01432: public synonym to be dropped does not exist DROP PUBLIC SYNONYM oraping_heartbeat * ERROR at line 1: ORA-01432: public synonym to be dropped does not exist DROP VIEW pfs$oraping_config * ERROR at line 1: ORA-00942: table or view does not exist DROP VIEW pfs$oraping_heartbeat * ERROR at line 1: ORA-00942: table or view does not exist DROP TABLE oraping_config * ERROR at line 1: ORA-00942: table or view does not exist DROP TABLE oraping_heartbeat * ERROR at line 1: ORA-00942: table or view does not exist Table created. 1 row created. Commit complete. Table created. Table altered. 1 row created. Commit complete. View created. View created. Synonym created. Synonym created. Synonym created. View created. View created. Creating tables and views for Oracle instance monitor. Specify instance_name for instance on PFS_HOSTA: prod1 DROP TABLE pfs_up_prod1 * ERROR at line 1: ORA-00942: table or view does not exist Table created. 1 row created. Specify instance_name for instance on PFS_HOSTB: prod2 DROP TABLE pfs_up_prod2 * ERROR at line 1: ORA-00942: table or view does not exist Table created. 1 row created. NOTE: catpfs complete. Please check catpfs.log for any errors.
For example, enter the following commands where INIT.ORA_parameter_file
is the name of the initialization file as defined by the PFILE variable in the PFS_
ORACLE_SERVICE_User.def
definition file.
$ sqlplus "/ as sysdba" SQL> STARTUP pfile=INIT.ORA_parameter_file
The definition file is located in the $ORACLE_HOME/pfs/
DB_NAME/include
directory for non-OFA compliant installations and in the $ORACLE_BASE/admin/
DB_NAME/pfs/include
directory for OFA compliant installations.
Perform the following steps as the root
user:
Note: Perform the tasks described in "Post-Installation Tasks for the oracle User" before starting the tasks described in this section. |
oracle
user's environment is available to the root
user, log in as the oracle
user and enter the following command:
$ su root
oratab
file. The oratab
file is located in the /var/opt/oracle
directory for Solaris and in the /etc
directory for AIX, HP, and Tru64.
Add an entry for each server instance on the system using the following format:
DB_NAME:ORACLE_HOME:N
In this example N
indicates that the database should not be started at reboot time. Always enter the N
option so that Oracle9i Real Application Clusters Guard can control startup and shutdown of the database.
$ORACLE_HOME/pfs/setup
directory and register the Oracle9i Real Application Clusters Guard Packs with the cluster by running the createpacks
script
Ensure that the DB_NAME, ORACLE_SERVICE, ORACLE_HOME, and if necessary, the ORACLE_BASE environment variables are set correctly before running the script.
# cd $ORACLE_HOME/pfs/setup # ./createpacks
The Oracle9i Real Application Clusters Guard software is controlled from the command line. To start Oracle9i Real Application Clusters Guard:
root
user.
# pfsctl
PFSCTL> pfsboot
The following notes may help you to troubleshoot problems with Oracle9i Real Application Clusters Guard:
* Specify the actual network interface adapter (that is, hme0) for PFS_NET_IF_A and PFS_NET_IF_B, not the NAFO group.
$ /usr/cluster/bin/pnmstat -l
The output might look similar to the following:
group adapters status fo_time act_adp nafo0 hme0 OK NEVER hme0
For further information on NAFO groups please refer to the Sun Cluster documentation or contact Sun support.
root
user to stop the resources in the install environment:
# cd $ORACLE_HOME/pfs/bin # pfsctl PFSCTL>pfshalt
Alert: could not generate file properly - Packs files
If it appears, remove all the files from the $ORACLE_HOME/pfs/setup/output/
ORACLE_SERVICE
/packs
directory and reconfigure Oracle9i Real Application Clusters Guard.
|
![]() Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|