InfoScale™ 9.0 Agent for Oracle Installation and Configuration Guide - Solaris
- Introducing the Cluster Server agent for Oracle
- How the agent makes Oracle highly available
- About Cluster Server agent functions for Oracle
- Oracle agent functions
- How the Oracle agent supports health check monitoring
- ASMInst agent functions
- Oracle agent functions
- Installing and configuring Oracle
- About VCS requirements for installing Oracle
- About Oracle installation tasks for VCS
- Installing ASM binaries in a VCS environment
- Configuring Oracle ASM on the first node of the cluster
- Installing Oracle binaries on the first node of the cluster
- Installing and removing the agent for Oracle
- Configuring VCS service groups for Oracle
- Configuring Oracle instances in VCS
- Before you configure the VCS service group for Oracle
- Configuring the VCS service group for Oracle
- Administering VCS service groups for Oracle
- Pluggable database (PDB) migration
- Troubleshooting Cluster Server agent for Oracle
- Verifying the Oracle health check binaries and intentional offline for an instance of Oracle
- Appendix A. Resource type definitions
- Appendix B. Sample configurations
- Sample single Oracle instance configuration
- Sample multiple Oracle instances (single listener) configuration
- Sample multiple instance (multiple listeners) configuration
- Sample Oracle configuration with shared server support
- Sample Oracle ASM configurations
- Appendix C. Best practices
- Appendix D. Using the SPFILE in a VCS cluster for Oracle
- Appendix E. OHASD in a single instance database environment
Migrating Pluggable Databases (PDB) between Container Databases (CDB)
You can use the hapdbmigrate utility to perform a planned end-to-end migration of pluggable databases across containers of the same database version. The destination container database may be on the same node or on another node. The PDB must have its own independent storage.
If the PDB has parent groups, they will be unlinked and frozen by the utility during the migration. After successful migration, they will be relinked and unfrozen by the utility.
The configuration must meet the following requirements:
The PDB and CDB databases must be on Cluster File System (CFS) or File system (VxFS).
There must be no parent resources for the PDB resource.
The PDB must be plugged in to the source CDB. The PDB resources may or may not be offline.
The source and destination CDB resources for the migration must be different.
The version of the destination CDB must be the same as the source CDB.
The PDB to be migrated is mounted on an independent file system (separate mount points for CDB and PDB datafiles).
The CDB and PDB resources must be configured in the same service group.
The utility performs the following actions during the migration:
Unlinks and freezes the parent groups, if any, depending on the source CDB group where the PDB resource to be migrated is configured.
Takes PDB resources offline.
Unplugs the PDB from the CDB and creates an XML file,
<pdb_res_name>_<dest_cdb_res_name>.xml
in the XML directory provided by the user.Drops the PDB from the CDB keeping the datafiles.
Takes offline all the PDB child resources. Unlinks the PDB resource from the source CDB resource and deletes the PDB resource. Unlinks and deletes all PDB child resources.
Recreates the PDB resource and all its children with original dependencies in the destination CDB service group.
Brings online the PDB child resources on all the nodes where the destination CDB service group is online
Plugs the PDB in the destination CDB.
Brings the PDB resource online after successful plugging. Unfreezes and links the parent group to the source CDB group.
The hapdbmigrate utility performs certain pre-requisite checks before the migration to verify that the cluster is ready for PDB migration. If the utility encounters any issues, you will need to manually fix the issues.
The utility is present in the $VCSHOME/bin
directory.
The log files of the migration are located at $VCSLOG/log/hapdbmigrate.log
. The logs are rotated after the file exceeds 5 MB and is saved in .gz format hapdbmigrate.log[1..7].gz
.
Note:
Ensure that only one instance of the hapdbmigrate utility is running at a time.
To migrate Pluggable Databases (PDB) between Container Databases (CDB)
- Back up the VCS configuration file
/etc/VRTSvcs/conf/config/main.cf
:# cp /etc/VRTSvcs/conf/config/main.cf \ /etc/VRTSvcs/conf/config/main.cf.save
- Verify that the high availability daemon (had) is running on all the nodes in the cluster.
# hastatus -summary
- Verify that there are no resources in faulted or unknown state.
# hares -state|grep FAULTED # hares -state|grep UNKNOWN
- Verify that the PDBName attribute is present for the PDB resource with the correct value in the
main.cf
configuration file. - Verify that the source and destination CDB resources are online.
# hares -state resname
On the destination CDB, verify the following:
The destination CDB is not in suspended mode.
Any instance of the destination CDB is not in mounted state.
See the Oracle documentation for more information.
If any instance of the destination CDB is in restricted state, ensure that the PDB resource you want to migrate has the StartUpOpt attribute set to restricted.
# haconf -makerw # hares -modify pdb1 StartUpOpt \ RESTRICTED # haconf -dump -makero
- Verify that existing dependencies do not conflict with the migration process.
The PDB child resources must not be dependent on the CDB resource or any of its child resources.
The PDB child resources must not have any parent, which is not a part of the PDB child hierarchy.
- Verify that the XML data directory has read and write permissions for the "oracle" user. The XML data directory must be located either on PDB mounts or at a location accessible to both source and destination CDBs.
- Run the hapdbmigrate utility as the root user:
Note:
If there are parent groups dependent on the source CDB group, specify the -ignoreparentgrp option.
# $VCS_HOME/bin/hapdbmigrate -pdbres pdb_resname -cdbres cdb_resname \ -XMLdirectory xml_directory [-ignoreparentgrp] [-prechecks] -pdbres: Name of the PDB resource, which needs to be migrated -cdbres: Name of the CDB resource, where the PDB needs to migrate -XMLdirectory: XML directory location for the unplugged PDB -ignoreparentgrp: Utility proceeds even if the PDB group has parent groups -prechecks: Performs prechecks and validation -help|h: Prints usage
The migration log file is located at
$VCSLOG/log/hapdbmigrate.log
. - Verify that the PDB resource is online on the destination CDB.
# hares -state pdb_resname
- Relink the parent service group of the source CDB group manually to the destination CDB group, if it depends on the migrated PDB.
# haconf -makerw # hagrp -dep parent_sg #Parent Child Relationship parent_sg source_CDB online local firm # hagrp -offline parent_sg -any # hagrp -unlink parent_sg source_CDB # hagrp -link parent_sg dest_CDB online local firm # hagrp -dep parent_sg #Parent Child Relationship parent_sg dest_CDB online local firm # haconf -dump -makero
See Sample configuration of migratable Oracle pluggable database (PDB) resource in main.cf.