Solution to two problems during Oracle11gDataGuard setup

Source: Internet
Author: User
The Oracle installation and configuration process is closely related to the operating system, storage, and network. Especially in Linux and AIX environments, the configuration process is relatively complex, and a link error may occur.

The Oracle installation and configuration process is closely related to the operating system, storage, and network. Especially in Linux and AIX environments, the configuration process is relatively complex, and a link error may occur.

The Oracle installation and configuration process is closely related to the operating system, storage, and network. Especially in Linux and AIX environments, the configuration process is relatively complex. A link error may cause a series of faults in the future.

In addition, the steps and methods for executing the same installation project vary greatly with the Oracle version. For example, Data Guard has three installation methods that have evolved to 11 GB. The configuration of each method varies. Many of our friends often don't care about version differences during the installation process. They simply search for some articles on the Internet and try to use them. Network Resources have indeed enriched our ideas and breadth for solving the problem. However, some comments on the Internet, such as Zhang guanli Dai, will indeed cause us trouble.

This article records the two solutions to small problems that I encountered during the installation of Data Guard, and records them to stay in need of friends.

References:

Important configuration parameters of Oracle Data Guard

Configure Oracle 11g Data Guard based on the same host

Explore Oracle 11g elastic uard

Oracle Data Guard (RAC + DG) archive deletion policies and scripts

Role conversion for Oracle Data Guard

FAL gap in Oracle Data Guard logs

Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby

1. Environment background

Use Oracle 11.2.0.4 for an experiment. The project is to build Active Data Guard. Due to the limited environmental conditions, the author implements Primary and Standby on a physical machine.

SQL> select * from v $ version;

BANNER

--------------------------------------------

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0-Production

PL/SQL Release 11.2.0.4.0-Production

CORE 11.2.0.4.0 Production

TNS for Linux: Version 11.2.0.4.0-Production

NLSRTL Version 11.2.0.4.0-Production

2. A fault occurs when/dev/shm is too small.

The other configuration procedures are the same as the method recommended for installing Active tracing uard. After parameter configuration, password file creation, Oracle Net file configuration, and Standby parameter file creation, run RMAN to perform the duplicate process. The script is as follows:

Run {

Duplicat target database for standby from active database

Spfile

Parameter_value_convert 'ora11g', 'ora11gsy'

Set db_unique_name = 'ora11gsy'

Set log_archive_max_processes = '5'

Set fal_client = 'ora11gsy'

Set fal_server = 'ora11g'

Set standby_file_management = 'auto'

Set log_archive_config = 'dg _ config = (ora11g, ora11gsy )'

Set log_archive_dest_2 = 'service = ora11g async valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = ora11g ';

}

At this time, both the primary and standby instances are in the starting status, run the RMAN connection and execute the script.

[Oracle @ SimpleLinux dbs] $ rman nocatalog

Recovery Manager: Release 11.2.0.4.0-Production on Thu Apr 10 11:21:49 2014

Copyright (c) 1982,201 1, Oracle and/or its affiliates. All rights reserved.

RMAN> connect target sys/oracle @ ora11g

Connected to target database: ORA11G (DBID = 4239941846)

Using target database control file instead of recovery catalog

RMAN> connect auxiliary sys/oracle @ ora11gsy

Connected to auxiliary database: ORA11GSY (not mounted)

Run the script:

RMAN> @ cr_phy_standby

RMAN> run {

2> duplicate target database for standby from active database

3> spfile

4> parameter_value_convert 'ora11g', 'ora11gsy'

5> set db_unique_name = 'ora11gsy'

(Space reasons, omitted ......)

SQL statement: alter system set log_archive_config = ''dg _ config = (ora11g, ora11gsy)'' comment = ''' scope = spfile

SQL statement: alter system set log_archive_dest_2 = ''service = ora11g async valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = ora11g '''comment = ''' scope = spfile

Oracle instance shut down

Connected to auxiliary database (not started)

RMAN-00571: ========================================================== ==============================

RMAN-00569: ==================== error message stack follows ==========================

RMAN-00571: ========================================================== ==============================

RMAN-03002: failure of Duplicate Db command at 04/10/2014 11:51:19

RMAN-05501: aborting duplication of target database

RMAN-03015: error occurred in stored script Memory Script

RMAN-04014: startup failed: ORA-00845: MEMORY_TARGET not supported on this system

An error is reported during the duplicate process and execution fails.

From the analysis, it should be related to Oracle operation and internal shared memory allocation. In Linux,/dev/shm corresponds to tmpfs, which is the temporary shared memory structure. Current size:

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.