Skip Headers

Oracle9i Data Guard Broker
Release 2 (9.2)

Part Number A96629-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

5
Data Guard Manager Scenarios

This chapter provides several scenarios that show how to use the Oracle9i Data Guard Manager graphical user interface (GUI) to create, manage, and monitor a broker configuration.

This chapter contains the following scenarios:

5.1 Scenario 1: Starting Data Guard Manager

Start Data Guard Manager through the Oracle Enterprise Manager Console by taking the following steps.

Step 1 Start Oracle Management Server.

Start the Oracle Management Server from the command-line prompt by entering the oemctl start oms command.

Step 2 Launch the Oracle Enterprise Manager Console.

Launch Oracle Enterprise Manager at the command-line prompt by entering the oemapp console command. When the Enterprise Manager Console login dialog displays, you must select Login to the Oracle Management Server. Do not select Launch standalone, because Data Guard Manager will not be available from the Enterprise Manager Console if you select this option.

Step 3 Start the Intelligent Agent on the primary and standby nodes.

The Intelligent Agent must be running for Data Guard Manager to discover nodes, execute jobs and monitor events. Follow the directions in the Oracle Intelligent Agent User's Guide to configure and use the Intelligent Agent on the primary and standby nodes.

Step 4 Discover the primary and standby nodes.

Run the Enterprise Manager Discovery wizard, also referred to as the Discovery wizard, to discover the primary and standby nodes and gain access to the databases that you want to configure and administer with Data Guard Manager. To invoke the Discovery wizard from the Enterprise Manager Console menu bar, select Navigator > Discover Nodes.

Follow the directions in the Discovery wizard. When finished, all discovered nodes and databases are displayed in the Enterprise Manager navigator tree:

Step 5 Set Preferred Node Credentials on the primary and standby nodes.

You should set Preferred Credentials on both the primary and standby nodes to ensure Data Guard Manager can run remote processes to create the configuration. To set Preferred Credentials from the Enterprise Manager Console menu bar, select: Configuration > Preferences > Preferred Credentials.

Although setting Preferred Credentials for the databases is not required, you might want to set Preferred Credentials for the primary database and for the standby database if you are adding an existing standby database.

Step 6 Start Data Guard Manager.

You can start Data Guard Manager from the Enterprise Manager Console or at the command-line prompt:

Figure 5-1 Starting Data Guard Manager

Text description of oemlaunch.gif follows.

Text description of the illustration oemlaunch.gif

When launched, Data Guard Manager displays the informational page shown in Figure 5-2.

Figure 5-2 Oracle Data Guard Manager Welcome Window

Text description of dgwelcome.gif follows.

Text description of the illustration dgwelcome.gif

On this page, you can:

5.2 Scenario 2: Creating a Configuration

Creating a broker configuration is the first thing you must do before you can manage and monitor the databases. Data Guard Manager provides the Create Configuration wizard to create a broker configuration that includes a primary database and one standby database. (You can use the Add Site wizard later to add more sites. See Section 5.5.) To start the Create Configuration wizard, right-click Data Guard Configurations in the navigator tree and choose Create Configuration wizard.

The wizard takes you through the following steps:

  1. Ensure the Data Guard environment is set up properly.
  2. Provide a configuration name.
  3. Choose a primary database.
  4. Choose how you want to add a standby database:
    • Import an existing standby database
    • Create a new physical or logical standby database
  5. Verify the information you supplied to the wizard and make changes, if necessary.

The following steps create a configuration and create a new physical standby database. It shows how the wizard takes you through additional steps to select the Oracle home for the database and to copy datafiles to the standby site.

Step 1 Ensure the Data Guard environment is set up properly.

Before the Create Configuration wizard steps you through the process of creating a broker configuration, you must ensure some basic configuration requirements have been met on the primary and standby nodes.

Figure 5-3 Create Configuration Wizard - Welcome Page

Text description of crwiz_welcome_bottom.gif follows.

Text description of the illustration crwiz_welcome_bottom.gif

Step 2 Provide a configuration name.

The next dialog asks you to provide the name of the new broker configuration. Each configuration name must be an Oracle identifier that is unique among the configurations that you have created with Data Guard Manager.

Figure 5-4 shows the Configuration Name step in which a new configuration, Sales, is named.

Figure 5-4 Create Configuration Wizard - Configuration Name

Text description of crwiz_configname.gif follows.

Text description of the illustration crwiz_configname.gif

Step 3 Choose a primary database.

The list of discovered database instances listed on this page contains all of the instances that have been discovered through the Enterprise Manager Console Discovery wizard. (These instances were discovered during the setup work performed in Section 5.1 in the step titled, "Discover the primary and standby nodes.")

Figure 5-5 Create Configuration Wizard - Choose Primary Database

Text description of crwiz_primarydb.gif follows.

Text description of the illustration crwiz_primarydb.gif

To select a primary database, select the Oracle9i database instance that you want to serve in the role of a primary database for this broker configuration. The database instance that you choose must be release 9.2 or greater, and it must be a primary database, such that the CONTROLFILE_TYPE in the V$DATABASE view is equal to CURRENT.


Note:

The list of instances on this page may include both Oracle9i database instances and older instances (such as Oracle8i). For compatibility, you must select only Oracle9i release 2 (9.2) instances from the list.


Step 4 Choose how you want to add a standby database.

The wizard allows you to create a new physical or logical standby database or add an existing standby database.

This scenario will create a new physical standby database, as shown in Figure 5-6.

Figure 5-6 Create Configuration Wizard - Standby Database Creation Method

Text description of crwiz_standbycreatemethod.gif follows.

Text description of the illustration crwiz_standbycreatemethod.gif

If you choose to add an existing standby database, the wizard displays a list of discovered database instances from which you select a physical or logical standby database to import into the broker configuration. The wizard connects to the database that you choose.

Step 5 Select an Oracle home, if necessary.

If you choose to create a new standby database, the wizard asks you to select the Oracle home on the standby node in which you want to create the standby database.

The wizard lists all of the Oracle homes that have been discovered through the Enterprise Manager Discovery wizard. You must select a discovered Oracle home and provide a unique name for the standby site.

Figure 5-7 shows this step of the configuration process.

Figure 5-7 Create Configuration Wizard - Select an Oracle Home

Text description of crwiz_standbyoraclehome.gif follows.

Text description of the illustration crwiz_standbyoraclehome.gif

Step 6 Copy datafiles to the standby node.

If you choose to create a new standby database, part of the creation process involves copying the datafiles for the primary database to the standby node. Data Guard Manager uses the operating system (OS) method to copy the files.

Figure 5-8 Create Configuration Wizard - Supplying the Datafile Copy Location

Text description of crwiz_standbydatafilecopylocation.gif follows.

Text description of the illustration crwiz_standbydatafilecopylocation.gif

Copy all files to the same directory on the standby node: Specify a single directory on the standby node. All files for the new standby instance will be copied to this directory. If the directory you specify does not exist on the standby database, Data Guard Manager will ask if you want to create the new directory and automatically create it. (As you enter the destination directory, it is mirrored to the standby archived redo log file directory field at the bottom of the dialog.)

Copy files to different directories: You can specify individual destination directories on the standby node for each file. Enter each directory separately, or click File Location Assistant to automatically generate directory names. If a directory you specify does not exist on the standby database, Data Guard Manager will ask if you want to automatically create the directory.

Datafile compression: If the new standby database instance is located on a different node than the primary database, you can choose compression for the datafile copy. Depending on the composition of the datafiles, compression may result in a faster copy process, especially for large databases.

Concurrent copy processes: If the new standby database instance is located on a different node than the primary database, you can optionally specify up to 10 concurrent copy processes. Increasing the number of copy processes may result in a faster copy time for a large dataset. This option is available only on UNIX systems.

Standby archived log file directory: Specify a path name for the location on the standby node where you want log transport services to copy archived redo logs. Because archived redo logs sometimes require a large amount of space on the standby node, you might want to specify a different destination location from the datafiles. The default destination is the directory that you specified in the "Copy all files to the same directory on the standby node" text box at the top of this page.

Step 7 Verify the information you supplied to the wizard and make changes, if necessary.

This page of the wizard provides several last-minute tuning opportunities. Normally, no input is necessary on this page because all parameters are set automatically. However, you can optionally change the following:

Figure 5-9 shows the Options dialog.

Figure 5-9 Create Configuration Wizard - Options

Text description of crwiz_options.gif follows.

Text description of the illustration crwiz_options.gif

Although you do not have to provide any input, you can optionally make changes to any of the fields. Table 5-1 describes the default values for each field and includes comments about how the information is used.

Table 5-1  Optional Input to the Create Configuration Wizard
Field By Default . . . Comments

Standby instance name

This is the primary database name with a number appended to it. Typically, the number equals the number of sites in the configuration, plus 1.

If you edit the default name shown, ensure the new name is unique on the standby host and it must be 8 characters or less. Note that the name is case sensitive.

Standby initialization parameter file

This file is derived automatically from a combination of the current parameter settings for the primary database and additional standby database settings. You can edit the standby database parameter file to add or modify its contents.

The wizard creates the initialization parameter file for the standby instance in the platform-specific default Oracle home. (For example, on UNIX this would be $ORACLE_HOME/dbs/initinstance_name.ora). In the Sales example, the generated filename would be initsfdb.ora. If a file with this name already exists, you will be prompted to change the instance name.

Standby database SYSDBA password

Although Data Guard Manager does not require a remote login password file for the standby database, this dialog box allows you to create one for the standby database to enable remote connections.

The wizard uses the orapwd utility to create the remote login password file in the default location in the Oracle home where you installed the standby database. For example, on a UNIX system the name of the file is $ORACLE_HOME/dbs/orapwsfdb.

Standby LISTENER.ORA file

A LISTENER.ORA file must already exist in the default location of the standby Oracle home (for example, $ORACLE_HOME/network/admin/ on UNIX). Otherwise, the standby creation process will fail.

Whether or not you edit the file, the wizard:

  • Installs the modified LISTENER.ORA file in the default location in the Oracle home.
  • Starts the Oracle Net listener (or restarts it, if it is already running) that will listen for the new instance, using the lsnrctl utility.

Note:

By default, the primary database remains open during the standby creation process, which results in a hot (inconsistent) backup of the datafiles. You can opt to shut down the primary database (with the immediate option) prior to creating the standby database instance. This will result in a cold (consistent) backup of the datafiles.


Next, the wizard displays a summary page on which you can verify the information that you provided to the wizard. If you find an error or decide to rename something, click Back to move backward through the screens in the wizard. Otherwise, click Finish to begin creating the configuration.

Figure 5-10 shows the summary page.

Figure 5-10 Create Configuration Wizard - Summary Page

Text description of crwiz_summary.gif follows.

Text description of the illustration crwiz_summary.gif

After you finish providing input to the wizard, Data Guard Manager opens a dialog box (shown in Figure 5-11) to display the wizard's progress as it creates the new configuration. The progress information that is displayed varies depending on if you are importing an existing standby database or creating a new standby database.

The progress dialog window displays the progress of the operation. Click Close when the create operation is done to close the progress dialog window and return control to the Data Guard Manager main window.

Figure 5-11 shows the progress dialog after the successful creation of the configuration named DGConfig.

Figure 5-11 Progress Dialog Box for Creating the Configuration

Text description of crwiz_prog_complete.gif follows.

Text description of the illustration crwiz_prog_complete.gif

When the Create Configuration wizard completes, a To Do list is displayed describing a few tasks you must perform to finish configuring the broker configuration. Follow the instructions in the list to complete the tasks.


Note:

If a problem occurs while creating the new configuration, Data Guard Manager prompts you to fix the problem and allows you to restart the creation process without having to rerun the wizard from the beginning. The restart option skips the step of copying the datafiles if they have already been copied from the primary site to the new standby site.


5.3 Scenario 3: Connecting to a Configuration

You must connect to the new configuration (created in Section 5.2) through the Data Guard Configuration Connect Information dialog box to manage and monitor the resources in it. You can connect through either the primary or a standby database.

To connect, double-click the configuration name in the navigator tree; this launches the Data Guard Connect Information dialog box shown in Figure 5-12.

Figure 5-12 Configuration Connect Information Dialog Box

Text description of dgconnect.gif follows.

Text description of the illustration dgconnect.gif

If you require full management access (including the ability to add and remove sites and database resources, and to perform switchover and failover operations), connect using an Administrator account that has SYSDBA privileges. For read-only access to the configuration for monitoring purposes, you can connect as NORMAL. See the online help for more information about connecting to the configuration.

By default, the configuration, site, and resource objects are automatically enabled and the primary and standby database systems are online when you create a configuration. When the configuration is enabled, it means that you can manage and monitor all of the objects because they are under the control of Data Guard broker.

5.4 Scenario 4: Verifying the Configuration

Use the Verify operation when you first create a configuration and at any time you want to perform a series of validation checks on the broker configuration, including a health check of each site and resource in the configuration.

Figure 5-13 shows how the Verify operation:

  1. Starts monitoring the alert and configuration logs for any errors that may happen when switching logs. If any errors are found, they are reported at the end of the progress dialog (in step 6).
  2. Shows current data protection mode settings, including the current log transport mode settings for each site and whether or not the standby redo logs are configured properly. In the figure, the value "No Standby Redo Logs" can indicate that no standby redo logs exist, there is an insufficient number of standby redo logs available, or the size of the standby redo logs is insufficient.
  3. Validates each site for the current status.
  4. Performs a log switch on the primary database and then verifies that the log was applied on each standby database.
  5. Notifies you to run the Discovery wizard to rediscover nodes and update site information for the configuration
  6. Shows the results of the Verify operation, including errors, if any. The Verify operation completes successfully if there are no errors and a redo log was successfully applied to at least one standby site.


    Note:

    You can click Cancel at any time to stop the Verify operation.


Figure 5-13 Verify Progress Dialog

Text description of verifyconfig_warning.gif follows.

Text description of the illustration verifyconfig_warning.gif

The Verify operation shown in Figure 5-13 was successful because the archived redo logs were applied on all standby databases. The progress dialog displays a blue check mark in the status area (left of the dialog) if the Verify operation is successful.

5.5 Scenario 5: Adding Sites to a Broker Configuration

You can use the Add Site wizard to add up to 8 additional standby sites, one at a time, to an existing broker configuration. You can choose to create or add existing (physical or logical) standby databases. Many of the tasks you perform with the Add Site wizard are similar to the steps you performed with the Create Configuration wizard in Section 5.2

To start the Add Site wizard, right-click the configuration in the navigator tree and select Add Site. The Add Site wizard guides you through the following steps:

  1. Ensure the Data Guard environment is set up properly.
  2. Choose to create a new standby database or add an existing standby database. (If you choose to create a new standby database, the wizard also takes you through additional steps to select the Oracle home for the database and to copy datafiles to the standby site.)
  3. Optionally, tune parameters such as the standby instance name, standby initialization file, LISTENER.ORA file location and content, SYSDBA password for the standby database, and more.
  4. Verify the information you supplied to the wizard and make changes, if necessary.

    In addition, if there is no current connection to the primary database and you do not have Preferred Credentials set for the primary database in the current Enterprise Manager session, Data Guard Manager might prompt you to connect to the primary database.

The following figures highlight some of the pages you will see when you use the Add Site wizard. Figure 5-14 shows how you create a new logical standby database.

Figure 5-14 Adding Standby Sites to an Existing Configuration

Text description of as_createstandby.gif follows.

Text description of the illustration as_createstandby.gif

When you create a logical standby database, the wizard lists datatypes and tables in the primary database that the logical standby database cannot support. Although log apply services will automatically exclude unsupported datatypes or tables when applying the archived redo logs to the logical standby database, you should examine the list to determine if any critical tables exist on the primary database that must be maintained on the logical standby database. If so, you should consider creating a physical standby database instead of a logical standby database. Otherwise, you can continue creating the logical standby database.

Figure 5-15 shows an example of many unsupported objects on the Logical Standby Support page.

Figure 5-15 Logical Standby Support

Text description of as_logicalstandbysupport.gif follows.

Text description of the illustration as_logicalstandbysupport.gif

As with the Create Configuration wizard, you are prompted to select an Oracle home on the standby site, and specify a datafile copy location or locations. After you verify your input to the Add Site wizard on the Summary page, the wizard automatically creates the logical standby database, and adds it to the broker configuration.

The following list describes the progress dialog shown in Figure 5-16:

  1. Shutting down and then starting and mounting the primary database, which is performed only when necessary or when requested by the user.
  2. Copying the primary database datafiles and the standby control file to file locations on the standby site.
  3. Setting up the new standby instance, which includes installing files, starting the listener, starting the standby database instance, and renaming datafiles on the standby site.
  4. Building the broker configuration, which includes starting the broker on the standby site, and adding and enabling the new logical standby database.

Figure 5-16 Progress Dialog When Adding a Logical Standby Site

Text description of as_logicalprogress.gif follows.

Text description of the illustration as_logicalprogress.gif

5.6 Scenario 6: Performing Routine Maintenance

Data Guard Manager can help simplify some of the routine maintenance tasks you must perform in the configuration. The following sections provide two examples: one shows how to take a site offline to replace a faulty disk drive.

5.6.1 Changing the State of a Database Resource

This section describes how to take the standby database resource offline for the purpose of replacing a faulty disk drive.

To change the state of the standby database to be offline, follow these steps:

  1. In the navigator tree, select the standby database resource.
  2. In the right-hand property sheet, click Set State.
  3. Click Offline.
  4. Click OK.

When changing the state of any database to offline, you also need to click Yes in the pop-up dialog box that displays to confirm that you want to change its state.

When you change the state of the standby database to offline, the standby database instance will be put into a started, nomount state and log apply services will be stopped. This temporarily pauses the transmission of redo logs to this site and also the application of the archived redo logs to the standby database while you replace the faulty disk drive. After completing your maintenance tasks, you can follow the same sequence of steps to bring the database online again.


Note:

Taking any object offline should be done only when absolutely necessary, because it will perform a shutdown immediate and startup nomount on the databases.


Figure 5-17 shows the Set State dialog on which you will change the state of the standby database to offline.

Figure 5-17 Verifying a State Change to a Physical Standby Database

Text description of physstdby_states.gif follows.

Text description of the illustration physstdby_states.gif

5.6.2 Changing the Database Protection Mode and LogXptMode Database Property

You can change the protection mode properties with Data Guard Manager at any time to modify and tune your current configuration.

When the configuration was first created it was placed in the maximum performance mode by default. This section describes the 4-step process for upgrading to the maximum protection mode. The maximum protection mode offers the highest level of data protection for the primary database because all data that has been committed on the primary database is guaranteed to be recoverable on properly configured physical standby sites in the event of a failure.

To set the maximum protection data protection mode:

  1. Select the configuration in the navigator tree and click the Data Protection tab.

Figure 5-18 Data Protection Mode Dialog

Text description of prot_modes.gif follows.

Text description of the illustration prot_modes.gif


Go to previous page Go to next page
Oracle
Copyright © 2000, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback