The following document DBCA the process of creating the main library, with pictures in each of the basic steps.
Oracle User Execution DBCA, if it is the root user login graphics surface, the SU switch user before need to execute a xhost +x, otherwise Oracle cannot start the GUI program, next
?
Select Create Database, Next
Select General Purpose or Transaction processing, next
DBNAME=ORCL,SID=DG1, Next
Configure Enterprise Manger not selected, point automatic maintenance Tasks
Enable automatic mainteance tasks not selected, next
set the unified password for SYS, system, next
because the password you set is too simple, a warning may pop up, click Yes
Next Step
Enable Archiving selection, next
set SGA, PGA, point character sets
Set Database character encoding, point all initialization Parameters
Parameters page, point show advanced Parameters
such as,
${db_unique_name} modified to ${db_name}
DB_NAME=ORCL,DB_UNIQUE_NAME=DG1
log_archive_dest_1= ' Location=/oracle/arc '
in the control file path${db_unique_name} modified to ${db_name}
in the data file path${db_unique_name} modified to ${db_name}
Redo the log file path${db_unique_name} modified to ${db_name}, the next step
Next Step
Check that the parameter settings are correct,If you need to save to HTML, click Save as an HTML file, confirm that the parameters are correct, click OK
database creation in progress
database Close, point exit
DG Main Library created successfully, ready to create the library, you need to modify the main library's DG-related parameters, and add standby redo log, and then restart
- alter system set DB_UNIQUE_NAME=DG1 scope=spfile;
alter system set log_archive_config= ' dg_config= (dg1,dg2) ' Scope=spfile;
alter system set log_archive_dest_1= ' Location=/oracle/arc/valid_for= (all_logfiles,all_roles) DB_UNIQUE _name=dg1 ' Scope=spfile;
alter system set log_archive_dest_2= ' Service=dg2 lgwr SYNC valid_for= (ONLINE_ Logfiles,primary_role) Db_unique_name=dg2 ' scope=spfile;
alter system set FAL_SERVER=DG2 scope=spfile;
alter system set FAL_CLIENT=DG1 scope=spfile;
alter system set Standby_file_management=auto scope=spfile;
- ALTER DATABASE ADD standby logfile Group 4 ('/oracle/db/oradata/orcl/sredo41.log ', '/oracle/db/oradata/orcl/ Sredo42.log ') size 50M;
ALTER DATABASE ADD standby logfile Group 5 ('/oracle/db/oradata/orcl/sredo51.log ', '/oracle/db/oradata/orcl/ Sredo52.log ') size 50M;
ALTER DATABASE ADD standby logfile Group 6 ('/oracle/db/oradata/orcl/sredo61.log ', '/oracle/db/oradata/orcl/ Sredo62.log ') size 50M;
Oracle Physical DG Installation: Main Library creation