This page covers two options for creating a new database. They are:
- Graphical
- Silent
Graphical Creation
The following steps will guide you through the creation of a new database using the graphical wizard.
Use the Database Creation Assistant to create a new database. At the end of the wizard you will have a choice of saving a response file. We will use that for the silent creation.
To run the wizard, type:
$ORACLE_HOME/bin/dbca
Here are some standard options for creating a traditional database...
Database Operation
- Create a database
Creation Mode
- Single Instance Database
- Advanced configuration
Deployment Type
- Custom Database
Database Identification
- Global database name
- SID
- Uncheck "create as Container database"
Storage Option
- Database files storage type: File System
- Check "Use Oracle-Managed Files (OMF)"
Fast Recovery Option
- Check "Specify Fast Recovery Area"
- Give it a "Fast Recovery Area size" suitable for several days worth of data
Network Configuration
- Create a new listener
- Listener name: LISTENER
- Listener port: 1521
Database Options
- Keep the default values
Configuration Options
- Use Automatic Shared Memory Management
- Place the slider at roughly 75% max memory
Management Options
- Leave options unchecked
User Credentials
- Use the same administrative password for all accounts
Creation Option
- Create database
- Generate database creation scripts
Summary
- Press "Save Response File"
Congratulations on creating your new database!
Silent Creation
In order to use the Database Creation Assistant in silent mode, we need a response file. Let's use the one generated by the graphical creation.
With Response File
The one I created from from the choices above looks like this:
Without Response File
run 'dbca' to create database.
export PASSWD="p@ssw0rd"
export SID=orcl
dbca -silent \
-createDatabase \
-templateName General_Purpose.dbc \
-sid $SID \
-gdbname $SID.$HOSTNAME \
-responseFile NO_VALUE \
-characterSet AL32UTF8 \
-memoryPercentage 70 \
-emConfiguration NONE \
-sysPassword $PASSWD \
-systemPassword $PASSWD
The 'netca' application should have a 'silent' option too...
TODO: Let's figure out how that works!