Before You Begin
This tutorial shows you how to create an Oracle Database instance for use with Oracle Identity Governance 12c. This tutorial takes approximately 15 minutes to complete.
This tutorial is part of the series Getting Started with Oracle Identity Governance 12c. Read them sequentially.
Background
As part of the Oracle Identity Governance 12c installation, the Repository Creation Utility creates the necessary schema to store the metadata. A database instance needs to be created for this using the Database Creation Assistant.
What Do You Need?
- An environment with:
- At least 16 GB of physical memory
- Oracle Enterprise Linux 6.6 or later with access to the Internet
- Super-user (
root) credentials - Oracle Database 12c Release 2 software installed
- A basic understanding of Linux
Create
a Database
After installing the Oracle Database software in Node 1(host01.example.com),
you must run the Database Configuration Assistant (dbca)
utility to create a database.
- Launch a terminal window as
oracleand run the following command:
$ cd /u01/app/oracle/product/12.2.0/dbhome_1/bin
$ ./dbca - Follow the table below to guide you through the
installation screens:
Step Window Description Choices or Values 1 Database Operation
Create a database 2 Creation Mode
Advanced configuration 3 Deployment Type
General Purpose or Transaction Processing 4 Database Identification Global database name: orcl.example.com
SID:orclDe-select Create as Container database
5 Storage Option Use template file for database storage attributes 6 Fast Recovery Option Click Next 7 Network Configuration Click Next 8 Data Vault Option Click Next 9 Configuration Options Select Character Sets tab
Select Use Unicode (AL32UTF8)
10 Management Options De-select Configure Enterprise Manager (EM) database express 11 User Credentials Use the same administrative password for all accounts
Password:Welcome1
Confirm Password:Welcome112 Creation Option Click Create Database
Click All initialization Parameters
Click Show advanced parameters
Click in the Value field and update the corresponding values:
db_files:600
open_cursors:800
processes:500
session_cached_cursors:100(These parameters are set as per the Oracle® Fusion Middleware System Requirements and Specifications 12c)
Click Close and Next13 Summary Click Finish.
The Progress page will display14 Finish Click Close
Perform
Post-Configuration Tasks
To configure the environment variables, perform the following tasks:
- Launch a terminal window as
oracleand enter the command:
$ vi $HOME/.bash_profile - Enter the following variables and save the
.bash_profile:
export ORACLE_HOME=/u01/app/oracle/product/12.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH - Repeat steps 1 and 2 to include the environment
variables in the
$HOME/.bashrcfile and close the terminal.
Test
the Database
Perform the following steps to test the database installation:
- Launch a terminal window as
oracleand enter the following commands to confirm the database variables are in place:
The terminal should display the following respectively:$ echo $ORACLE_HOME
$ echo $ORACLE_SID
Note: If terminal displays a blank line after you enter the environment variable, return to section Perform Post-Configuration Tasks to troubleshoot the environment variables configuration./u01/app/oracle/product/12.2.0/dbhome_1
orcl
- In the terminal, enter the command
which sqlplusto locate where thesqlplusutility is available:
$ which sqlplus /u01/app/oracle/product/12.2.0/dbhome_1/bin/sqlplus - Execute the following
command to check whether the database is running:
SQLPlus returns 1. This signifies that the database is running.$ sqlplus / as sysdba;
SQL> select 1 from dual; - Enter the command
exitto close SQLPlus. - In the terminal window, enter the command
tnsping localhostto test the database listener. If the command returns OK, it signifies that the database listener is running and is correctly configured.
Stop
the Database
Perform the following steps to stop the database and the listener:
- In a terminal window, enter the command
lsnrctl stopto stop the database listener. - In a terminal window, enter the command
sqlplus / as sysdba;to start SQLPlus. - At the SQLPlus prompt,
enter the command
shutdown immediate;to stop the database. - Enter the command
exitto close the SQLPlus.
Start
the Database
Perform the following steps to start the database and the listener:
- In a terminal window, enter the command
sqlplus / as sysdba;to start SQLPlus. - In SQLPlus prompt, enter
the command
startup;to start the database. - Enter the command
exitto close SQLPlus. - In a terminal window, enter the command
lsnrctl startto start the database listener. - Optionally, perform the instructions in the section Testing the database to confirm that database and listener are running correctly.
Next
Tutorial
Installing Oracle Identity Governance 12c
Creating
a Database for Oracle Identity Governance 12