Sunteți pe pagina 1din 3

Date: June 6th-2014

Title: Creating RAC12c database from command line.


Ref: Oracle RAC 12c Release 1 (12.1) Installation guide for Linux and UNIX

Document Change Control.

Revision

Date

1.0

2014-06-06

Author

Description of change
Document Creation.

.
This is basically using dbca to create the database but from the command line and can be used from a
shell script.
[oracle@rac1 bin]$ ./dbca -silent -nodelist rac1,rac2 -createDatabase -templateName
General_Purpose.dbc -gdbName raclab3.domain.com -createAsContainerDatabase false -SysPassword

password-sys -SystemPassword password-system -emConfiguration NONE -storageType ASM


-asmSysPassword passwordAsm -diskGroupName DATA -characterSet WE8MSWIN1252 -totalMemory
600 -recoveryGroupName FRA

Note: Since the password is in the commands then they will have to secure their scripts.

Also the other needed steps that are needed for a RAC database can be added to the script using sqlplus
commands.

[oracle@rac1 bin]$ ./dbca -silent -nodelist rac1,rac2 -createDatabase -templateName


General_Purpose.dbc -gdbName raclab3 -createAsContainerDatabase false -SysPassword password-sys
-SystemPassword password-system -emConfiguration NONE -storageType ASM -asmSysPassword
Opassword-Asm -diskGroupName DATA -characterSet WE8MSWIN1252 -totalMemory 600
-recoveryGroupName FRA
Cleaning up failed steps
4% complete
Copying database files
5% complete
6% complete
7% complete
13% complete
19% complete
24% complete
30% complete
33% complete
Creating and starting Oracle instance
35% complete
39% complete
43% complete
46% complete
47% complete
48% complete
50% complete
52% complete
Creating cluster database views
54% complete
71% complete
Completing Database Creation
74% complete
77% complete
85% complete
94% complete
100% complete
Look at the log file "/oracle/oracle/cfgtoollogs/dbca/raclab3/raclab31.log" for further details.
[oracle@rac1 bin]$

S-ar putea să vă placă și