You are on page 1of 6

Recovery Manager complete.

$ pwd
/rman/work
$ pwd
/rman/work
$ du -sg rrb2_rman_11112011
0.17 rrb2_rman_11112011
$
$
$
$
$ rrb2
$ s
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 11 05:59:18 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter database create standby controlfile as '/rman/work/rrb2_rman_11112011
/standby.ctl' ;
Database altered.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ ls -ltr
total 0
drwxr-xr-x 2 oracle oinstall 256 Nov 11 06:00 rrb2_rman_11112011
$ cd rrb2_rman_11112011
$ ls -ltr
total 397088
-rw-r----- 1 oracle oinstall 79618048 Nov 11 03:46 standby_tlmrbsr2_1_1
-rw-r----- 1 oracle oinstall 48103424 Nov 11 04:02 standby_tmmrbtp8_1_1
-rw-r----- 1 oracle oinstall 50798592 Nov 11 04:15 standby_tnmrbuls_1_1
-rw-r----- 1 oracle oinstall 24788992 Nov 11 06:00 standby.ctl
$ s
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 11 06:09:30 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select name from V$controlfile;
NAME
--------------------------------------------------------------------------------
/rrb2_data1/controlfiles/control_01_CNBKRRB2.ctl
/rrb2_data2/controlfiles/control_02_CNBKRRB2.ctl
/rrb2_index1/controlfiles/control_03_CNBKRRB2.ctl
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ ls -ltr
total 397088
-rw-r----- 1 oracle oinstall 79618048 Nov 11 03:46 standby_tlmrbsr2_1_1
-rw-r----- 1 oracle oinstall 48103424 Nov 11 04:02 standby_tmmrbtp8_1_1
-rw-r----- 1 oracle oinstall 50798592 Nov 11 04:15 standby_tnmrbuls_1_1
-rw-r----- 1 oracle oinstall 24788992 Nov 11 06:00 standby.ctl
$ pwd
/rman/work/rrb2_rman_11112011
$ rrb1
$ rrb2
$ work
$ s
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 11 06:38:31 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @latest
Last Generated Time
-------------- --------
14614 06:11:35
SQL> alter system switch logfile ;
System altered.
SQL> @latest
Last Generated Time
-------------- --------
14615 06:11:46
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ workf
ksh: workf: not found.
$ work
$ lsnrctl start ODGLISTENER2
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 11-NOV-
2011 06:46:59
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /oracle/home/app/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
System parameter file is /oracle/home/app/network/admin/listener.ora
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.2.205)(PORT=1622)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.2.205)(PORT=1622)(q
ueuesize=32)))
STATUS of the LISTENER
------------------------
Alias ODGLISTENER2
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4
.0 - Production
Start Date 11-NOV-2011 06:46:59
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/home/app/network/admin/listener.ora
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.2.205)(PORT=1622)))
Services Summary...
Service "CNBKRRB2" has 1 instance(s).
Instance "CNBKRRB2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
$ lsnrctl start ODGLISTENER1
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 11-NOV-
2011 06:47:13
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /oracle/home/app/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
System parameter file is /oracle/home/app/network/admin/listener.ora
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.2.205)(PORT=1621)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.2.205)(PORT=1621)(q
ueuesize=32)))
STATUS of the LISTENER
------------------------
Alias ODGLISTENER1
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4
.0 - Production
Start Date 11-NOV-2011 06:47:13
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/home/app/network/admin/listener.ora
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.2.205)(PORT=1621)))
Services Summary...
Service "CNBKRRB1" has 1 instance(s).
Instance "CNBKRRB1", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
$ lsnrctl start ODGLISTENER3
LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 11-NOV-
2011 06:47:27
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /oracle/home/app/bin/tnslsnr: please wait...
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
System parameter file is /oracle/home/app/network/admin/listener.ora
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.2.205)(PORT=1623)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.2.205)(PORT=1623)(q
ueuesize=32)))
STATUS of the LISTENER
------------------------
Alias ODGLISTENER3
Version TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4
.0 - Production
Start Date 11-NOV-2011 06:47:27
Uptime 0 days 0 hr. 0 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/home/app/network/admin/listener.ora
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.2.205)(PORT=1623)))
Services Summary...
Service "CNBKRRB3" has 1 instance(s).
Instance "CNBKRRB3", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
$ ps -ef |grep t ns
grep: 0652-033 Cannot open ns.
$ ps -ef |grep tns
oracle 18087990 1 0 Nov 08 - 0:02 /oracle/home/app/bin/tnslsn
r CNBKRRB22 -inherit
oracle 18153538 1 0 Nov 08 - 6:50 /oracle/home/app/bin/tnslsn
r CNBKRRB21 -inherit
oracle 18219092 1 0 Nov 08 - 0:02 /oracle/home/app/bin/tnslsn
r CNBKRRB23 -inherit
oracle 18350132 1 0 Nov 08 - 0:01 /oracle/home/app/bin/tnslsn
r CNBKRRB12 -inherit
oracle 18546758 1 0 Nov 08 - 0:02 /oracle/home/app/bin/tnslsn
r CNBKRRB13 -inherit
oracle 58130516 60555680 0 06:47:47 pts/0 0:00 grep tns
oracle 61735022 1 0 Nov 08 - 0:01 /oracle/home/app/bin/tnslsn
r CNBKRRB32 -inherit
oracle 61866104 1 0 Nov 08 - 3:07 /oracle/home/app/bin/tnslsn
r CNBKRRB31 -inherit
oracle 62062714 1 0 Nov 08 - 0:02 /oracle/home/app/bin/tnslsn
r CNBKRRB33 -inherit
oracle 62259440 1 0 Nov 08 - 7:49 /oracle/home/app/bin/tnslsn
r CNBKRRB11 -inherit
oracle 62456044 1 0 06:47:27 pts/0 0:01 /oracle/home/app/bin/tnslsn
r ODGLISTENER3 -inherit
oracle 56558322 1 0 06:46:59 pts/0 0:01 /oracle/home/app/bin/tnslsn
r ODGLISTENER2 -inherit
oracle 62194208 1 0 06:47:13 pts/0 0:01 /oracle/home/app/bin/tnslsn
r ODGLISTENER1 -inherit
$ rrb2
$ s
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 11 06:47:54 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @odg_enable
System altered.
SQL> @odg_mon
DEST_ID DEST_NAME STATUS TRANSMIT_MOD ARCHIVER REOPEN_SECS ER
ROR
---------- -------------------- --------- ------------ ---------- ----------- --
-------------------------------------
--------------------------
2 LOG_ARCHIVE_DEST_2 VALID SYNCHRONOUS ARCH 120
SQL> @latest
Last Generated Time
-------------- --------
14615 06:11:51
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ rrb1
$ s
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 11 06:50:01 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @odg_enable
System altered.
SQL> @odg_mon
DEST_ID DEST_NAME STATUS TRANSMIT_MOD ARCHIVER REOPEN_SECS ER
ROR
---------- -------------------- --------- ------------ ---------- ----------- --
-------------------------------------
--------------------------
2 LOG_ARCHIVE_DEST_2 VALID SYNCHRONOUS ARCH 120
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64
bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
$ rrb3
$ s
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Nov 11 06:50:29 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @odg_enable
System altered.
SQL>
SQL> @odg_mon
DEST_ID DEST_NAME STATUS TRANSMIT_MOD ARCHIVER REOPEN_SECS ER
ROR
---------- -------------------- --------- ------------ ---------- ----------- --
-------------------------------------
--------------------------
2 LOG_ARCHIVE_DEST_2 VALID SYNCHRONOUS ARCH 120
SQL> @latest
Last Generated Time
-------------- --------
7368 06:11:31
SQL>