You will need to perform setup on the primary and secondary
nodes of DBS as described by following the steps described in
these sections:
Setting Up the Primary Node
Setting Up the Secondary Node
Stopping the Database in the Secondary Node
What Do You Need?
You must have previously created a DB System by following
the process described in the preceding module "Creating a DB
System in Oracle Cloud Infrastructure" of this Learning Path .
You must have specified more than one node when you created
the DB System by following the process described in the
preceding module "Creating a DB System in Oracle Cloud
Infrastructure" of this Learning Path.
You must have set up a DB System by following the process
described in the preceding module "Setting up a DB System".
You should have a fundamental understanding of the Oracle
Cloud Infrastructure. It is highly recommended that you review
the extensive collateral information, including training, at
this site:
To access the Oracle Cloud Infrastructure Console, you must
use a supported
browser.
Setting
Up the Primary Node
To use a RAC in your DB System (also called DBaaS in industry
terms), you must have enabled DNS in your VCN and therefore have
DNS subnets. This step is necessary because VM shapes must be
used for DB Systems and are not supported on non-DNS subnets.
The deployment of an RAC instance using the Oracle Cloud
Infrastructure console creates a primary node and a secondary
node in the cluster. Consider the node that has the instance
name as its name with the suffix 1 as the primary node and the
node with the suffix 2 as the secondary node.
To set up a DB System with a RAC, ensure that you have
completed the following tasks which are described in the module
"Setting up a DB System", which applies to setting up the
primary node.
Created the requisite groups and users and set permissions
and ownership on /u01
Opened the required ports in the firewall
Edited the .bash_profile
file
Edited the /etc/resolv.conf
file
Edited the tnsnames.ora
file
Allocated recovery space for archive logging
Set the number of processes
Set the PGA_AGGREGATE_LIMIT
Setting
Up the Secondary Node
The deployment of an RAC instance using the Oracle Cloud
Infrastructure console creates a primary node and a secondary
node in the cluster. This procedure describes how to set up the
secondary node. Consider the node that has the instance name as
its name with the suffix 1 as the primary node and the node with
the suffix 2 as the secondary node.
Important: After you
complete the configuration described in this procedure, you
must shut down the secondary node (node 2) prior to deploying
One-Click Provisioning for Oracle Cloud Infrastructure by
following the procedure described in the next section
"Stopping the Database in the Secondary Node".
Determine the Database Unique Name by
navigating to the DB Systems instance summary screen of the
Oracle Cloud Infrastructure console.
DB
Systems - Database Unique Name Note: In the above example, the value orcl_phx34r
is the Database Unique Name. In subsequent examples, this
value is referred to as the site variable <DB_UNIQUE_NAME>.
Add environment variables for the oracle user
by editing /home/oracle/.bash_profile
using these commands:
$ sudo su - oracle
$ vi /home/oracle/.bash_profile
Use this command to execute the .bash_profile
file for the variables to take effect:
$ source
/home/oracle/.bash_profile
Typically, a properly completed .bash_profile will look
like this:
The ORACLE_HOME environment
variable value is typically the software
installation directory of your Oracle database. By
default, the directory structure is:
/u01/app/oracle/product/12.2.0.1/dbhome_1
DB_UNIQUE_NAME
Refer
to Step 1.
Make a TNS entry for the pluggable database in the tnsnames.ora
file located in the $ORACLE_HOME/network/admin
directory of the DB System. This entry is in addition to the
existing entries in the tnsnames.ora
file.
Copy the tnsnames.ora
entry you had made for the pluggable database in the primary
node into the tnsnames.ora
of this node.
In the preceding example in this document, the TNS entry for
the pluggable database in the tnsnames.ora file was:
You must ensure that the search setting in the /etc/resolv.conf
file specifies the DNS domain name of the Availability Domain
to which all the JD Edwards EnterpriseOne servers belong.
While logged in as the opc user, you must
edit the file and add a line with this syntax:
Because each region has at least three subnets, you must
specify the exact subnet in which your JD Edwards
EnterpriseOne servers are running. For example, your subnets
can look like this:
VCN Subnets -
DNS Domain Names Highlighted for Each Availability
Domain
Using the above example, assuming that your JD Edwards
EnterpriseOne Servers are running in the Phoenix Availability
Domain 2 (labeled as IAUF:PHX-AD-2), you
would edit your /etc/resolve.conf
file to add a line with a search setting similar to the
setting below:
At this point, prior to deploying One-Click Provisioning for
Oracle Cloud Infrastructure, you must stop the database that is
running in the secondary node for the RAC.
Important: It is not
recommended to use the user interface in Oracle Cloud
Infrastructure to shut down the secondary node because this
can cause a delay in synchronization between the nodes upon
deployment and during fail over scenarios.
The recommended procedure to stop the database is to use this
line command:
<DB_NAME>
is the name you have given the database and which is appended
with the number 2. For example, if you gave the database the
name ORCL, then the database in the secondary node is named
ORCL2.
Note:After
One-Click Provisioning completes the deployment of JD
Edwards EnterpriseOne, you will need to start the secondary
node by following the process documented in the OBE
"Performing Post-Provisioning Tasks", in the section
"Accessing the Provisioned Servers".
To view details of the secondary
node in the RAC:
On the Oracle Cloud Infrastructure Console Home page, click
the navigation menu in the upper-left corner. Navigation
Menu - DB Systems
From the navigation menu, in the Database
section, select Bare Metal, VM, and Exadata.
In the left panel, ensure that DB Systems is selected,and
under List Scope, the applicable COMPARTMENT
is selected which contains the DB System with RAC that you
created contains the DB System that you created with a RAC.
Click the link for your DB System with a RAC.
In the Resources section in the left pane,
click Nodes.