Database Reference
In-Depth Information
Now that you have an overview of what can be done with the oakcli command, let's take a look at how to create
databases, and then delete them, using oakcli .
Executing the Command
Let's take a look at the oakcli create command. By using the help (-h ) flag, we can get a description of what the
command does. Listing 4-2 shows the output from issuing the help flag.
Listing 4-2. oakcli Create Help Output
[oracle@patty bin]$ ./oakcli create -h
Usage:
oakcli create {database | dbhome | db_config_params } [<options>]
where:
database - creates the database
dbhome - creates the database home
db_config_params - creates the database config parameter file
Each one of these options can be drilled down into as well by using the same help (-h ) flag. Listing 4-3 through
Listing 4-5 shows help output for some common oakcli operations.
Listing 4-3. The Help Output for Creating a Database
[oracle@patty bin]$ ./oakcli create database -h
Usage:
oakcli create database -db <db_name> [[-oh <home>] | [-version <version>]] [-params <params_file>]
where:
db_name - Name of the database to be created.
home - Existing oracle home for creating the database. By default we create a new
database home.
version - Database Version information for creating the database home. [ex. 11.2.0.2.7]
If not provided create the database home from latest available bits.
params_file - Name of the db_config_parameter file [This file can be created using using
'oakcli create db_config_param']. If not provided, create the database using default configuration file
Listing 4-4. The Help Output for Creating a Database Home
[oracle@patty bin]$ ./oakcli create dbhome -h
Usage:
oakcli create dbhome [-version <version>]
where:
version - Version information for creating the database home. If not provided create the
database home from latest available bits.
Listing 4-5. The Help Output for Creating a Parameter File
[oracle@patty bin]$ ./oakcli create db_config_params -h
Usage:
oakcli create db_config_params -conf <filename> - Generates the database configuration parameter file.
where:
filename - configuration file name (path should NOT be there in the filename)
 
Search WWH ::




Custom Search