runInstaller -createDatabase

The runInstaller -createDatabase command installs Oracle AI Database software and creates a single-instance Oracle AI Database on your server.

Note:

Use this command only if you have not created an Oracle home and installed the Oracle AI 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 | -diskGroup ASM_disk_group_name
-gdbName database_name -pdbName pdb_name -dbSID database_SID -memoryLimit db_memory_limit_in_MB
[-executePrereqs] [-OSOPER sysoper_group] [-installEdition <EE | SE2>] [-dbType <GENERAL_PURPOSE | DATA_WAREHOUSE>]
[-enableRecovery] [-recoveryLocation recovery_file_location]] [-enableAutoMemoryManagement] [-managementOption <CLOUD_CONTROL | NONE>
-omsHost EM_hostname -omsPort EM_port -emAdminUser EM_admin_username] [-useSamePasswordForAllSchemas]
[-INVENTORY_LOCATION central_inventory_location] [-executeConfigTools] [-executeRootScript [-configMethod <ROOT | SUDO> [-sudoPath] [-sudoUserName]]]

Parameters

Table: runInstaller -createDatabase Command Parameters

ParameterMandatory?Description
-OSDBA sysdba_groupYesThe name of the SYSDBA privileged operating system group. The default is dba.
-OSBACKUPDBA osbackup_dba_groupYesThe name of the SYSBACKUP privileged operating system group.
-OSDGDBA os_dg_dba_groupYesThe name of the SYSDG privileged operating system group.
-OSKMDBA os_km_dba_groupYesThe name of the SYSKM privileged operating system group.
-OSRACDBA os_rac_dba_groupYesThe name of the SYSRAC privileged operating system group.
-ORACLE_BASE Oracle_base_dirYesComplete path to the Oracle base location to use for the Oracle AI Database installation.
-dataLocation data_file_locationYes Mandatory, only if -diskGroup is not specified.

Complete path to the database file location, which is a directory for datafiles, control files, and redo logs.

Note: Use this variable only if Oracle ASM is not used.

-diskGroup ASM_disk_group_nameYes Mandatory, only if -dataLocation is not specified.

Name for the Oracle ASM disk group, for example DATA.

Note: Use this variable only if -dataLocation is not used.

-gdbName database_nameYesA unique global database name for your Oracle AI Database.
-pdbName pdb_nameYesA unique name for the pluggable database (PDB) in the container database (CDB).
-dbSID database_SIDYesA unique Oracle Service Identifier (SID) for your Oracle AI Database.
-memoryLimit db_memory_limit_in_MBYesTotal memory allocation for the database in MB.
-executePrereqsNoRun prerequisite checks to ensure that all necessary conditions and requirements are met before proceeding with the installation or configuration process.
-OSOPER osoper_groupNoThe name of the SYSOPER privileged operating system group.
-installEdition <EE | SE2>NoThe installation edition of your Oracle AI Database. The default value is EE for Enterprise Edition.
-dbType <GENERAL_PURPOSE | DATA_WAREHOUSE>NoThe type of your Oracle AI Database. The default value is GENERAL_PURPOSE.
-enableRecoveryNoSpecify this option to enable database recovery.
-recoveryLocation recovery_file_locationNoComplete path to store the database recovery files.
-enableAutoMemoryManagementNoSpecify this option to enable automatic memory management.
-managementOption <CLOUD_CONTROL | NONE>NoManagement option to use for managing the Oracle home. Default value is NONE.
-omsHost EM_hostnameNoThe OMS host to connect to Enterprise Manager Cloud Control.
-omsPort EM_portNoThe OMS port to connect to Enterprise Manager Cloud Control.
-emAdminUser EM_admin_usernameNoThe Admin username to connect to Enterprise Manager Cloud Control.
-useSamePasswordForAllSchemasNoSpecify this option to use the same password for all schemas in your Oracle AI Database.
-INVENTORY_LOCATION central_inventory_locationNoComplete 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.
-executeConfigToolsNo

Run configuration tools for an installed Oracle AI Database home.

Note:

You can use this parameter only with other commands, such as runInstaller -createDatabase.

-executeRootScriptNo

Specify this option to run the root script automatically.

Note:

You can use this parameter only with other commands, such as runInstaller -createDatabase.

-helpNoDisplays runInstaller -createDatabase command help.

Example

The following example shows you how to install Oracle AI Database software and create a single-instance Oracle AI Database with a CDB and a PDB:

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