• Arun Kumar

DBCA silent mode

This article describes how to create a new database using the Database Configuration Assistant (DBCA) in silent mode.

When you work in real-time on a remote server, you might not have access to graphical user interface. In such situations, you would need to run DBCA in silent mode to create a database.

There is a difference between Oracle 11g and Oracle 12c DBCA silent mode database creation. You will find examples of both 11g & 12c silent mode database creation below.

DBCA Create Database 11g

To run DBCA in silent mode, you just need to add -silent while running the DBCA utility. The below command will create testdb database in silent mode (oracle 11g version)

dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname testdb -sid testdb -characterSet AL32UTF8 -memoryPercentage 20 -emConfiguration NONE

Notice the parameters:

  • -silent will run dbca in silent mode

  • -createDatabase specifies the option you want to perform

  • -templateName specifies the database template you using

  • -gdbname is your global database name

  • -sid is your database identifier

DBCA Create Database 12c

As Oracle 12c has PDB and CDB concepts, the DBCA silent mode has some more parameters compared to Oracle 11g.

The below command creates Oracle 12c database by running DBCA in silent mode. This commands works for both Oracle 12cR1 and Oracle 12cR2.

dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName testdb -sid testdb -createAsContainerDatabase false -emConfiguration NONE -datafileDestination /u01/db_files -storageType FS -characterSet AL32UTF8 -totalMemory 2048 -recoveryAreaDestination /u01/FRA -sampleSchema true

Notice new parameters:

  • -createAsContainerDatabase specifies if you want to create a container database

  • -datafileDestination specifies the location of your data files

  • -recoveryAreaDestination specifies the fast recovery area location

DBCA Delete Database

You can use DBCA to delete database from a Linux server. Use below command to run DBCA in silent mode and delete a database

dbca -silent -deleteDatabase -sourceDB testdb -sysDBAUserName sys

Further Read

Recent Posts

See All

MySQL Installation on Linux

This article demonstrates MySQL installation on Oracle Enterprise Linux 6.5 version. Installation of MySQL Make sure you are able to connect internet via virtual machine. Try to ping google.com and pr

Add ISO image storage repository on XenServer

If you have used VMware ESXI, its very easy to upload ISO files to the data store and create VMs. With XenServer, you must create your own ISO repository to upload ISO files. Create ISO directory Acce

Automate RMAN Backup using Shell Script

In a real environment, off course you will not manually trigger all the Oracle database backups. You need an automated mechanism to trigger RMAN backups. In this article we will look at RMAN backup au

  • Facebook
  • Twitter
  • YouTube
  • Instagram

© 2020 by DBA Genesis