Oracle to AWS Migration
Last updated
Last updated
Migrating Oracle databases to the AWS cloud through IT-Conductor can be accomplished using a process definition. This automation feature in the platform simplifies the migration process from the provisioning of virtual machines (VMs) in the cloud environment to the installation of the application server on AWS.
To access the process definition developed for this demo scenario, navigate to the Tenant Service Grid → Process Definitions → Migrate Oracle to AWS.
Also, we used our tenant called “OZSoft” but the process can be cloned and applied to any customer after being onboarded to IT-Conductor as a tenant. IT-Conductor creates and clones the Git repository for each tenant who needs to leverage these types of automation runbooks.
Now, let's look into each step/activity of this process definition in detail.
In this activity, a VM will be provisioned in AWS via Terraform script. Below is a sample terraform script.
In the execution log below, you can see that the following resources are created:
local_file
aws_ebs_volume
aws_instance
aws_volume_attachment
Once the VM is deployed, we need to update the IP address (of the newly deployed VM) in the /oracle_hosts.yml file.
In this activity, the Oracle database files required for the migration will be installed and configured.
Below are the tasks that will be performed upon execution:
Ensure Storage Management software is installed
Create disk Partitions
Create or extend Volume Groups
Create Logical Volumes
Create File Systems
Mount and make fstab entries
Update host files
Stop/disable firewalld
Enable ssh access through password
Restart SSHD
Mount network share
Update sysctl.conf
Run sysctl command
Deploy 99-sap.conf file
Deploy inifile.ora_user.params file
Start SWPM
Make /oracle/OOO/121 directory
Make /oracle/stage/121 directory
Create Symbolic link
Deploy db_OOO.rsp file
Change permission for /oracle
In this activity, Oracle SAR files will be extracted, the environment for DB_SID will be set, and Oracle RDBMS will be installed.
After installing Oracle RDBMS, the MOPatch needs to be updated.
In this activity, the following tasks will be performed:
Set env OHRDBMS
Set env IHRDBMS
Set env SBPFUSER
Move OPatch
Unzip OPatch
Unzip sapbundle
Move MOPatch
Apply MOPatch
In this activity, the log mode will be checked.
If the database is in the archive log mode, then it will get log_size from v$log.
Otherwise, it will first switch to the archive log mode and then initialize the parameter.
During the task Modify Initialize Parameters, the SET STANDBY_FILE_MANAGEMENT will be set into AUTO.
In this activity, the Standby DB server will be set up. Below are the tasks that will be performed upon execution:
Make DBS directory
Make parameter file
Update param file
copy listener.ora
copy tnsnames.ora
Stop DB
Start DB
Check with tnsping ozooo with command
Check with tnsping ozooo-dg with command
Make password file
In this activity, the enable_broker.sh file will be deployed using the following command:
In this activity, the following SQL command will be used to enable the broker on the source on-prem server:
In this activity, the data guard broker configuration will be removed by running a shell script that can be executed by ora<sid> user.
In this activity, the broker will be removed from the AWS server.
In this activity, the broker data guard will be removed from the on-prem server.
In this activity, a SQL command will be used to remove brokers on the on-prem server.
In the final activity, the application servers will be installed.
Below are the tasks that will be performed upon execution:
Stop DB
Delete listener.ora
Delete tnsnames.ora
Copy initOOO
Copy spfileOOO
Deploy change_db_role.sh file
Run change DB role query
Install SAP APP Instance