IMPAX 6.5.1 Server Knowledge Base home > Oracle Server home > Configuring Oracle Data Guard > Configuring Oracle Data Guard using RMAN
When backing up and restoring the primary database using RMAN, you must first run the Oracle Data Guard configuration on the primary server.
To run the Oracle Data Guard configuration on the primary server
Log into the primary server.
On Solaris, log in as the oracle user. On Windows, log in as the AgfaService user.
If on Solaris, log in as the root user.
Change to the /usr/mvf/bin (Solaris) or C:\mvf\bin (Windows) directory.
To start the Oracle Data Guard configuration:
On Solaris, type ./setup_dg.
On Windows Server 2008, either 32-bit or 64-bit, open an elevated command prompt. To open an elevated command prompt, select Start, right-click Command Prompt, then select Run as administrator.
On Windows, type bash setup_dg.
Enter the following information when prompted:
The location of the Flashback partition.
The location is typically /flashback (Solaris) or E:\data\flashback (Windows).
Whether the current server is the primary or standby server.
The host names of both the primary and standby server.
The size of the Flash Recovery Area in GB.
Use a value as prescribed for the /flashback area by the Database Configurator tool. Do not include the space for the backups in this amount if backups are on their own file system. Normally, no more than two times the database size is required if backups are separated.
When asked if you want to continue with the RMAN backup, type "y".
Change to the /opt/oracle/current/dbs (Solaris) or C:\oracle\product\10.2.0\db_1\database (Windows) directory.
On Solaris, log in as the oracle user and type
mv orapw orapw.pre_dg
orapwd file=orapw password=stayout entries=40
On Windows, type
mv PWDMVF.ora PWDMVF.ora.pre_dg
orapwd file=PWDMVF.ora password=stayout entries=40
This creates an Oracle password file.
To ensure that the scripts can log into SQLPlus as the sys or dbadmin user, in a command prompt, type
sqlplus / as sysdba
alter user sys identified by stayout;
grant sysdba to dbadmin;
After the Data Guard configuration is run on the primary server, the public listener needs to be started.
To start the public listener
Log in as the oracle (Solaris) or AgfaService (Windows) user.
Type lsnrctl start listener_public.
Next, if using Solaris servers, share the Flashback area; otherwise go directly to restoring the database on the standby server.
Topic number: 125049 Applies to: IMPAX 6.5.1 Server Knowledge Base |