Step-by-step deployment procedure
This document details the deployment of Oracle 19c using the automation command line interface (cli).
CLI deployment Oracle 19c Database
This section covers the steps required to prepare and deploy Oracle19c Database with the CLI. Make sure that you have reviewed the Getting Started and Requirements section and prepared your environment accordingly.
Download Oracle19c repo
-
From your ansible controller, run the following command:
-
After downloading the repository, change directories to na_oracle19c_deploy <cd na_oracle19c_deploy>.
Edit the hosts file
Complete the following before deployment:
-
Edit your hosts file na_oracle19c_deploy directory.
-
Under [ontap], change the IP address to your cluster management IP.
-
Under the [oracle] group, add the oracle hosts names. The host name must be resolved to its IP address either through DNS or the hosts file, or it must be specified in the host.
-
After you have completed these steps, save any changes.
The following example depicts a host file:
This example executes the playbook and deploys oracle 19c on two oracle DB servers concurrently. You can also test with just one DB server. In that case, you only need to configure one host variable file.
|
The playbook executes the same way regardless of how many Oracle hosts and databases you deploy. |
Edit the host_name.yml file under host_vars
Each Oracle host has its host variable file identified by its host name that contains host-specific variables. You can specify any name for your host. Edit and copy the host_vars
from the Host VARS Config section and paste it into your desired host_name.yml
file.
|
The items in blue must be changed to match your environment. |
Host VARS Config
Edit the vars.yml file
The vars.yml
file consolidates all environment-specific variables (ONTAP, Linux, or Oracle) for Oracle deployment.
-
Edit and copy the variables from the VARS section and paste these variables into your
vars.yml
file.
Run the playbook
After completing the required environment prerequisites and copying the variables into vars.yml
and your_host.yml
, you are now ready to deploy the playbooks.
|
<username> must be changed to match your environment. |
-
Run the ONTAP playbook by passing the correct tags and ONTAP cluster username. Fill the password for ONTAP cluster, and vsadmin when prompted.
-
Run the Linux playbook to execute Linux portion of deployment. Input for admin ssh password as well as sudo password.
-
Run the Oracle playbook to execute Oracle portion of deployment. Input for admin ssh password as well as sudo password.
Deploy Additional Database on Same Oracle Host
The Oracle portion of the playbook creates a single Oracle container database on an Oracle server per execution. To create additional container database on the same server, complete the following steps:
-
Revise the host_vars variables.
-
Go back to step 3 - Edit the
host_name.yml
file underhost_vars
. -
Change the Oracle SID to a different naming string.
-
Change the listener port to different number.
-
Change the EM Express port to a different number if you have installed EM Express.
-
Copy and paste the revised host variables to the Oracle host variable file under
host_vars
.
-
-
Execute the playbook with the
oracle_config
tag as shown above in Run the playbook.
Validate Oracle installation
-
Log in to Oracle server as oracle user and execute the following commands:
This will list oracle processes if installation completed as expected and oracle DB started -
Log in to the database to check the db configuration settings and the PDBs created with the following command sets.
This confirms that dNFS is working properly.
-
Connect to database via listener to check hte Oracle listener configuration with the following command. Change to the appropriate listener port and database service name.
This confirms that Oracle listener is working properly.
Where to go for help?
If you need help with the toolkit, please join the NetApp Solution Automation community support slack channel and look for the solution-automation channel to post your questions or inquires.