Oracle9i Real Application Clusters Setup and Configuration Release 2 (9.2) Part Number A96600-02 |
|
|
View PDF |
This chapter describes the procedures for converting from single-instance Oracle databases to Real Application Clusters databases. The topics in this chapter are:
If you are upgrading from Oracle Parallel Server to Real Application Clusters, then use the Database Upgrade Assistant (DBUA).
See Also:
Oracle9i Database Migration for more information on the DBUA |
Consider the information described in the following sections before beginning your conversion:
Do not convert to Real Application Clusters if:
If your platform supports a cluster file system, then you can use it for Real Application Clusters. You can also convert to Real Application Clusters and use a non-shared file system. In either case, Oracle Corporation strongly recommends that you use Oracle Universal Installer (OUI) to perform and Oracle9i Enterprise Edition installation on your cluster that sets up the Oracle home in an identical location on each of the selected nodes of the cluster.
Your system must meet the following hardware and software requirements to convert to Real Application Clusters:
Note the following administrative considerations before conversion:
To convert from single-instance Oracle databases to Real Application Clusters, Oracle Corporation strongly recommends that you use the Database Configuration Assistant (DBCA). This is because the DBCA automates the configuration of the control file attributes, creates the undo tablespaces and the redo logs, and makes the initialization parameter file entries for cluster-enabled environments. It also configures the Oracle Net Services and static configuration for Real Application Clusters database management using Oracle Enterprise Manager (EM) or the SRVCTL utility. This section describes the following scenarios:
To convert from a single-instance Oracle database that is on a non-cluster machine to Real Application Clusters, perform the following procedures:
bin
directory under ORACLE_HOME
and choosing Welcome > Manage Templates > Create a database template [select From an existing database (structure as well as data)] > Database instance [select the database instance name] > Template Name [enter template name, use database instance as the default, and description] > Finish.
The DBCA will generate two files, a database structure file (<template_name>.dbc) and database seed image file (<template_name>.dfj). These files are generated by default in the ORACLE_HOME/assistants/dbca/templates
directory on UNIX and in the %ORACLE_HOME%\assistants\dbca\templates
directory on Windows platforms.
For UNIX platforms, refer to your vendor's operating system-dependent documentation for instructions about installing the cluster software. For Sun clusters, also install the Oracle UDLM patch from the first CD of the Oracle9i Enterprise Edition CD set.
For Windows NT and Windows 2000, use the Oracle-supplied clustersetup tool to install the Oracle OSD clusterware.
This includes copying the database structure *.dbc file and the database seed image *.dfj file that the DBCA created in the step "Back up the Original Single-Instance Database" to a temporary location on the node in the cluster from which you plan to run the DBCA.
Perform the pre install steps as documented in your platform-specific Oracle documentation. For example, on UNIX platforms, this includes creating the oracle
user account and the dba
group on all nodes, setting up oracle
user equivalence, setting up the SRVM_SHARED_CONFIG
and DBCA_RAW_CONFIG
environment variables, and so on.
The Real Application Clusters option will be automatically installed when the OUI runs on a cluster and the OUI will install the Oracle9i software in the new Oracle home.
After installing the Oracle software, the OUI runs the post installation configuration tools such as the Cluster Configuration Assistant, the Network Configuration Assistant (NetCA), the DBCA, and so on.
DBCA_RAW_CONFIG
environment variable. When the DBCA finishes, you have successfully converted from a single-instance Oracle database to a Real Application Clusters database.
After creating the Real Application Clusters database, the DBCA displays the Password Management page on which you must change the passwords for database privileged users who have SYSDBA and SYSOPER roles. Once the DBCA exits, the conversion process is complete.
There are three possible scenarios under which a single-instance database can exist on a cluster machine.
Use the following procedures to convert your single-instance database on a cluster machine to Real Application Clusters for all of these scenarios.
Perform the following procedures to convert a single-instance database on a cluster running from a cluster installed (Oracle9i Enterprise Edition with Real Application Clusters) Oracle home.
ORACLE_HOME
path name is same as on the existing node from which the single-instance database was running. Also make sure that you do not select the existing node on the Cluster Node Selection page of the OUI; Oracle software is already installed on this node.srvConfig.loc
on all nodes. The file must contain the following entry:
srvconfig_loc= path_name
Where path_name
is the complete path name for the shared configuration file.
The srvConfig.loc file
usually resides in the /var/opt/oracle
directory. However, on HPUX, it resides in the /etc
directory.
srvcfg
to point to a raw partition using OLM.srvconfig -init
command from one of the nodes to initialize the configuration.After creating the Real Application Clusters database, the DBCA displays the Password Management page on which you must change the passwords for database privileged users who have SYSDBA and SYSOPER roles. Once the DBCA exits, the conversion process is complete.
See Also:
"UNIX Directory Structures for Real Application Clusters" for more information about OFA |
dd
command on UNIX or the OCOPY
command on Windows platforms. Otherwise, continue to the next step.CREATE CONTROLFILE
SQL statement with the REUSE
keyword and specify MAXINSTANCES
and MAXLOGFILES
, and so on, as needed for your Real Application Clusters configuration. The MAXINSTANCES
recommended default is 32.CLUSTER_DATABASE
parameter to TRUE
, set the INSTANCE_NUMBER
parameter to a unique value for each instance, using a <sid>.<parameter>=<value>
syntax.
If you optimized memory usage on your single-instance database, adjust the size of the SGA to avoid swapping and paging when you convert to Real Application Clusters. This is because Real Application Clusters requires about 350 bytes for each buffer to accommodate the Global Cache Service (GCS). For example, if you have 10,000 buffers, Real Application Clusters requires about 350*10,000 bytes more memory. Therefore, adjust the size of the SGA by changing the DB_CACHE_SIZE
and DB_nK_CACHE_SIZE
parameters accordingly.
CREATE UNDO TABLESPACE
SQL statement. If you are using raw devices, then ensure that the datafile for the undo tablespace is on the raw device.CREATE ROLLBACK SEGMENTS
SQL statement. Also set the ROLLBACK_SEGMENTS
parameter for each instance using the syntax <sid>.ROLLBACK_SEGMENTS=(RBS<i>, RBS<j>)
in the parameter file.ALTER DATABASE
SQL statement. Then shutdown the database instance.ORACLE_SID
name in each password file appropriately for each additional instance.REMOTE_LISTENER=LISTENERS_<DB_NAME>
and <sid>.LOCAL_LISTENER=LISTENER_<SID>
parameters to the PFILE.LOCAL_LISTENER
for each instance and REMOTE_LISTENER
in the tnsnames.ora
file and copy it to all nodes. Also, configure the static service entries in the listener.ora
file on each node.$ORACLE_HOME/dbs/initSID.ora
file on UNIX platforms or %ORACLE_HOME%\database\initSID.ora
file on Windows platforms that contains the following entry:
spfile=<spfile_pathname>
Where <spfile_pathname>
is the complete pathname of the spfile.
After starting the database with SRVCTL, your conversion process is complete and, for example, you can execute the following SQL query to see the statuses of all the instances:
select * from v$active_instances
On UNIX platforms, this installation is possible if you performed one node cluster (Enterprise Edition with Real Application Clusters) installation but later disabled the Real Application Clusters feature by unlinking it from the oracle
binary before creating the single instance database. Perform the following procedures to convert this type of single-instance database to a Real Application Clusters database:
lib
sub-directory in the rdbms
directory under the Oracle home.oracle
binary by executing the following commands:
make -f ins_rdbms.mk rac_on make -f ins_rdbms.mk ioracle.
This installation is only possible if you shut down the cluster manager software before running the OUI to perform an Oracle9i installation. This is the way Oracle9iAS is installed on a cluster machine to only leverage the hardware redundancy provided by a cluster.
To covert this database to a Real Application Clusters database, perform the steps as follows:
After completing the conversion, note the following points as described in the Real Application Clusters documentation: