Creating the Database with DBCA and Using ASMCA

Categories: Oracle Database · Installation and upgrades · Storage · ASM

Translated from Portuguese. Read the original

Hi everyone, this content covers creating the database using DBCA.

In the last article we installed the Oracle Database 12c software and now we’re going to actually create the database, and we have a few options for that. The most common and easiest option is using DBCA (Database Configuration Assitant); another option is creating the database with the “create database” command in the SQL*Plus tool. In this article we’ll create the database using DBCA in graphical mode, and in the next article we’ll do it in silent mode.

ASMCA

Before we create the database, we’re going to use another tool to create a new diskgroup, because we installed Grid Infrastructure 12c and left one diskgroup exclusively for its components. The tool we’ll use is ASMCA (ASM Configuration Assistant).

1 – Start your VM, log in as the oracle user, then open a terminal and type the following command to check whether the ASM instance was started:

$ srvctl status asm
$ ps -ef|grep pmon

Screen Shot 2016-01-16 at 5.07.12 PM

2 – After confirming that ASM is started, run the command and enter the name of the ASM instance at the prompt:

$ . oraenv
+ASM

Screen Shot 2016-01-16 at 5.14.46 PM

3 – Then open ASMCA with the command:

$ asmca

Screen Shot 2016-01-16 at 5.16.23 PM

4 – Since we had already created a disk in Virtual Box and partitioned it in Linux in this article, now all that’s left is to use it to create our diskgroup. Follow the screens to create the DATA diskgroup.

4.1 Click “create”

4.2 Type “DATA” as the diskgroup name, under Redudancy select “External”, select the member disk “ORLC:DATA” and then “OK”

4.3 As soon as the diskgroup is created, click “OK”

4.4 Click “Exit” to leave ASMCA

DBCA

5 – Close the terminal and open it again to reset the environment variables, and then call DBCA:

$ dbca

Screen Shot 2016-01-16 at 5.40.05 PM

6 – Follow the DBCA screens to create the database.

6.1 Select “Create Database” and proceed

6.2 Select “Advanced Mode” and proceed

6.3 Select “General purpose…” and continue

6.4 Define a name for the database, select the option “Create a container…” and give a name to your PDB

6.5 Select “Configure EM DB Express” and define a port

6.6 Define individual or identical passwords for the users and continue

6.7 Uncheck the listener that already exists and create a new listener with another port

6.8 In “Database files Storage…” choose the “ASM” option, select “Use common location…” and find the “DATA” diskgroup we just created, uncheck “Specify fast recovery area” and continue

6.9 Select “Sample schemas” and continue

6.10 Set “Memory Size” to 1024MB and continue

6.11 Select all the options and continue

6.12 A summary of the database creation will be shown; review it and click “Finish”

6.13 Wait for the process to finish, and follow the logs in the meantime

6.14 Database creation completed. Click “Close”

7 – Check whether the database is running:

$ srvctl status database -db loredb
$ ps -ef|grep pmon

Screen Shot 2016-01-17 at 1.46.55 PM

That’s all for today. In the next articles we’ll learn some commands to start and stop the components of our infrastructure.

See you…

Comments