runInstaller -createDatabase
The runInstaller -createDatabase
command installs
Oracle Database software and creates a single-instance Oracle Database on your
server.
Note:
Use this command only if you have not created an Oracle home and installed the Oracle Database software on your server. If an Oracle home already exists, then create a database using Oracle DBCA.Syntax
runInstaller -createDatabase {(-OSDBA sysdba_group -OSBACKUPDBA osbackup_dba_group
-OSDGDBA os_dg_dba_group -OSKMDBA os_km_dba_group -OSRACDBA os_rac_dba_group)}
-ORACLE_BASE Oracle_base_dir {-dataLocation data_file_location
[-recoveryLocation recovery_file_location] | -diskGroup ASM_disk_group_name [-enableRecovery]}
-gdbName database_name -pdbName pdb_name -dbSID database_SID -memoryLimit db_memory_limit_in_MB
[-OSOPER sysoper_group] [-installEdition <EE | SE2>] [-dbType < GENERAL_PURPOSE | DATA_WAREHOUSE>]
[-enableAutoMemoryManagement] [-managementOption <CLOUD_CONTROL | NONE> -omsHost EM_hostname
-omsPort EM_port -emAdminUser EM_admin_username] [-executeConfigTools]
[-executeRootScript [-configMethod <ROOT | SUDO> [-sudoPath] [-sudoUserName]]]
[-useSamePasswordForAllSchemas] [-INVENTORY_LOCATION central_inventory_location]
Parameters
Table B-4 runInstaller -createDatabase Command Parameters
Parameter | Description |
---|---|
-help |
Displays |
-OSDBA |
The name of the |
-OSBACKUPDBA |
The name of the |
-OSDGDBA |
The name of the |
-OSKMDBA |
The name of the |
-OSRACDBA |
The name of the |
-OSOPER |
The name of the |
-ORACLE_BASE |
Complete path to the Oracle base location to use for the Oracle Database installation. |
-dataLocation |
Complete path to the database file location, which is a directory for datafiles, control files, and redo logs. |
-recoveryLocation |
Complete path to store the database recovery files. |
-diskGroup |
Name for the Oracle ASM disk group, for example
|
-enableRecovery |
Specify this option to enable database recovery. |
-gdbName |
A unique global database name for your Oracle database. |
-pdbName |
A unique name for the pluggable database (PDB) in the container database (CDB). |
-dbSID |
A unique Oracle Service Identifier (SID) for your Oracle database. |
-memoryLimit |
Total memory allocation for the database in MB. |
-installEdition < EE | SE2
> |
The installation edition of your Oracle database. The default
value is |
-dbType <GENERAL_PURPOSE |
DATA_WAREHOUSE> |
The type of your Oracle database. The default value is
|
-enableAutoMemoryManagement |
Specify this option to enable automatic memory management. |
-managementOption <CLOUD_CONTROL |
NONE> |
Management option to use for managing the Oracle
home. Default value is |
-omsHost |
The OMS host to connect to Enterprise Manager Cloud Control. |
-omsPort |
The OMS port to connect to Enterprise Manager Cloud Control. |
-emAdminUser |
The Admin username to connect to Enterprise Manager Cloud Control. |
-executeConfigTools |
Run configuration tools for an installed Oracle Database home. Note: You can use this parameter only with other commands, such asrunInstaller -createDatabase .
|
-executeRootScript |
Specify this option to run the root script automatically. Note: You can use this parameter only with other commands, such asrunInstaller -createDatabase .
|
-useSamePasswordForAllSchemas |
Specify this option to use the same password for all schemas in your Oracle database. |
-INVENTORY_LOCATION |
Complete path to the location where you want to store the inventory files. If you have previously installed an Oracle software on this computer, then specify the existing inventory path. |
Example
runInstaller -createDatabase -OSDBA dba -OSBACKUPDBA backupdba -OSDGDBA dgdba -OSKMDBA kmdba -OSRACDBA racdba
-ORACLE_BASE /u01/app/oracle -diskGroup DATA -gdbName mydb.example.com -pdbName mypdb1 -dbSID mydb -memoryLimit 24457
-OSOPER oper -installEdition EE -enableAutoMemoryManagement -INVENTORY_LOCATION /u01/app/oraInventory
-executeConfigTools -executeRootScript -configMethod ROOT
Parent topic: Oracle Database Installer Command-Line Options