Oracle Physical DG Installation: Main Library creation

Source: Internet
Author: User

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
  1. 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;

  1. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.