You are on page 1of 48

login as: root

root@172.168.1.200's password:
Last login: Sun May 8 15:44:53 2016
[root@prod200 ~]# su - oracle
[oracle@prod200 ~]$ ls
oradiag_oracle prod.env
[oracle@prod200 ~]$ . prod.env
[oracle@prod200 ~]$ pwd
/home/oracle
[oracle@prod200 ~]$ cd $ORACLE_HOME
[oracle@prod200 11.2.0]$ sl -lrt
-bash: sl: command not found
[oracle@prod200 11.2.0]$ ls -lrt
total 308
-rw-r----- 1 oracle oinstall 56 Nov 29 22:45 oraInst.loc
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 wwg
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 uix
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 sqlj
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 slax
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 scheduler
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:45 precomp
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 owm
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 ord
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 oracore
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:45 ons
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:45 olap
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 odbc
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 nls
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 md
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 jdev
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 javavm
-rw-r--r-- 1 oracle oinstall 37 Nov 29 22:45 install.platform
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 ide
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 has
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 emcli
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 dv
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 diagnostics
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 demo
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 cv
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 csmig
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 crs
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 assistants
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 plsql
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 mesg
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 utl
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:46 xdk
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 instantclient
drwxr-xr-x 20 oracle oinstall 4096 Nov 29 22:46 oc4j
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:47 timingframework
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:47 clone
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:47 j2ee
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:48 apex
drwxr-xr-x 13 oracle oinstall 4096 Nov 29 22:48 sqldeveloper
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:48 jlib
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:48 dc_ocm
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:48 jdk
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:49 ucp
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:49 relnotes
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:49 jdbc
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 oui
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:49 OPatch
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 ccr
drwxr-xr-x 26 oracle oinstall 4096 Nov 29 22:49 owb
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 opmn
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:49 mgw
drwxr-xr-x 10 oracle oinstall 4096 Nov 29 22:49 srvm
drwxr-xr-x 12 oracle oinstall 4096 Nov 29 22:49 ldap
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:49 css
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:49 config
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:49 cdata
drwxr-xr-x 15 oracle oinstall 4096 Nov 29 22:49 sysman
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 racg
drwxr-xr-x 10 oracle oinstall 4096 Nov 29 22:49 ctx
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:50 sqlplus
drwxr-xr-x 4 oracle oinstall 12288 Nov 29 22:51 lib
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:51 perl
drwxr-xr-x 11 oracle oinstall 4096 Nov 29 22:51 network
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:51 hs
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:51 deinstall
-rwxr-x--- 1 oracle oinstall 464 Nov 29 22:51 root.sh
drwxr-xr-x 13 oracle oinstall 4096 Nov 29 22:51 rdbms
drwxrwx--- 13 oracle oinstall 4096 Nov 29 22:52 inventory
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:54 install
drwxr-xr-x 2 oracle oinstall 12288 Nov 29 22:54 bin
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 23:17 log
drwxr-xr-x 5 oracle oinstall 4096 May 6 00:51 cfgtoollogs
drwxr-xr-x 2 oracle oinstall 4096 May 8 12:32 dbs
[oracle@prod200 11.2.0]$ cd dbs/
[oracle@prod200 dbs]$ ls -lrt
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-rw---- 1 oracle oinstall 1544 May 8 12:31 hc_PROD.dat
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
[oracle@prod200 dbs]$ cd $ORACLE_HOME
[oracle@prod200 11.2.0]$ cd network/admin/
[oracle@prod200 admin]$ sl -lrt
-bash: sl: command not found
[oracle@prod200 admin]$ ls -lrt
total 16
-rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 samples
-rw-r--r-- 1 oracle oinstall 315 Nov 29 23:17 listener.ora
-rw-r--r-- 1 oracle oinstall 528 May 8 00:12 tnsnames.ora
[oracle@prod200 admin]$ vi listener.ora
[oracle@prod200 admin]$ vi tnsnames.ora
[oracle@prod200 admin]$ lsnrctl start PROD

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 08-MAY-2016 16:06:53

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.2.0/bin/tnslsnr: please wait...


TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/prod200/prod/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=prod200.labserver.com)
(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=prod200.labserver.com)
(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias PROD
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 08-MAY-2016 16:06:54
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/prod200/prod/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=prod200.labserver.com)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@prod200 admin]$ echo $ORACLE_SID
PROD
[oracle@prod200 admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:07:12 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup;
ORACLE instance started.

Total System Global Area 534462464 bytes


Fixed Size 2215064 bytes
Variable Size 197133160 bytes
Database Buffers 331350016 bytes
Redo Buffers 3764224 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 admin]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY

Recovery Manager: Release 11.2.0.1.0 - Production on Sun May 8 16:09:30 2016

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

connected to target database: PROD (DBID=308926735)


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
[oracle@prod200 admin]$ cd ..
[oracle@prod200 network]$ ls -ltr
total 36
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 mesg
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:46 install
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:49 doc
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:49 tools
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:49 jlib
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:50 lib
drwxrwx--- 2 oracle oinstall 4096 Nov 29 22:51 trace
drwxrwx--- 2 oracle oinstall 4096 Nov 29 22:51 log
drwxr-xr-x 3 oracle oinstall 4096 May 8 16:06 admin
[oracle@prod200 network]$ cd ..
[oracle@prod200 11.2.0]$ cd dbs
[oracle@prod200 dbs]$ ls -ltr
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 16:07 hc_PROD.dat
[oracle@prod200 dbs]$ orapwd file=orapwSTANDY password=oracle entries=10
[oracle@prod200 dbs]$ ls -ltr
total 40
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 16:07 hc_PROD.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:10 orapwSTANDY
[oracle@prod200 dbs]$ scp orapwSTANDY
172.168.1.201:/u01/app/oracle/product/11.2.0/dbs
oracle@172.168.1.201's password:
orapwSTANDY
100% 2560 2.5KB/s 00:00
[oracle@prod200 dbs]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY

Recovery Manager: Release 11.2.0.1.0 - Production on Sun May 8 16:11:45 2016

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

connected to target database: PROD (DBID=308926735)


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
[oracle@prod200 dbs]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY

Recovery Manager: Release 11.2.0.1.0 - Production on Sun May 8 16:12:11 2016


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

connected to target database: PROD (DBID=308926735)


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
[oracle@prod200 dbs]$ orapwd file=orapwSTANDBY password=oracle entries=10
[oracle@prod200 dbs]$ scp orapwSTANDY
172.168.1.201:/u01/app/oracle/product/11.2.0/dbs
oracle@172.168.1.201's password:
orapwSTANDY
100% 2560 2.5KB/s 00:00
[oracle@prod200 dbs]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY

Recovery Manager: Release 11.2.0.1.0 - Production on Sun May 8 16:13:03 2016

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

connected to target database: PROD (DBID=308926735)


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04006: error from auxiliary database: ORA-01031: insufficient privileges
[oracle@prod200 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 16:07 hc_PROD.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:10 orapwSTANDY
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDBY
[oracle@prod200 dbs]$ scp orapwSTANDBY
172.168.1.201:/u01/app/oracle/product/11.2.0/dbs
oracle@172.168.1.201's password:
orapwSTANDBY
100% 2560 2.5KB/s 00:00
[oracle@prod200 dbs]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY

Recovery Manager: Release 11.2.0.1.0 - Production on Sun May 8 16:14:15 2016

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

connected to target database: PROD (DBID=308926735)


connected to auxiliary database: STANDBY (not mounted)

RMAN> exit

Recovery Manager complete.


[oracle@prod200 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:14:30 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> show parameter spfile;

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
spfile string
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 16:07 hc_PROD.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:10 orapwSTANDY
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDBY
[oracle@prod200 dbs]$ vi initPROD.ora
[oracle@prod200 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:15:38 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> creaate spfile from pfile;


SP2-0734: unknown command beginning "creaate sp..." - rest of line ignored.
SQL> create spfile from pfile;

File created.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:16:06 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shut immediate;


Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:16:22 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 534462464 bytes


Fixed Size 2215064 bytes
Variable Size 197133160 bytes
Database Buffers 331350016 bytes
Redo Buffers 3764224 bytes
Database mounted.
Database opened.
SQL> show parameter log_file

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_file_name_convert string
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ vi initPROD.ora
[oracle@prod200 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:19:21 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter system switch logfile;

System altered.

SQL> /
System altered.

SQL> /

System altered.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ cd /u01/app/oracle/oradata/PROD/
[oracle@prod200 PROD]$ ls -lrt
total 1661132
-rw-r----- 1 oracle oinstall 30416896 May 8 16:07 temp01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo07.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo06.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo05.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo04.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:19 redo01.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:19 redo02.log
-rw-r----- 1 oracle oinstall 5251072 May 8 16:19 users01.dbf
-rw-r----- 1 oracle oinstall 78651392 May 8 16:19 undotbs01.dbf
-rw-r----- 1 oracle oinstall 713039872 May 8 16:19 system01.dbf
-rw-r----- 1 oracle oinstall 513810432 May 8 16:19 sysaux01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 8 16:19 redo03.log
-rw-r----- 1 oracle oinstall 9748480 May 8 16:19 control02.ctl
-rw-r----- 1 oracle oinstall 9748480 May 8 16:19 control01.ctl
[oracle@prod200 PROD]$ scp *.* 172.168.1.201:/u01/app/oracle/oradata/STANDBY
oracle@172.168.1.201's password:
control01.ctl
100% 9520KB 9.3MB/s 00:00
control02.ctl
100% 9520KB 9.3MB/s 00:01
redo01.log
100% 50MB 50.0MB/s 00:01
redo02.log
100% 50MB 25.0MB/s 00:02
redo03.log
100% 50MB 10.0MB/s 00:05
redo04.log
100% 50MB 12.5MB/s 00:04
redo05.log
100% 50MB 10.0MB/s 00:05
redo06.log
100% 50MB 12.5MB/s 00:04
redo07.log
100% 50MB 12.5MB/s 00:04
sysaux01.dbf
100% 490MB 12.0MB/s 00:41
system01.dbf
100% 680MB 12.4MB/s 00:55
temp01.dbf
100% 29MB 14.5MB/s 00:02
undotbs01.dbf
100% 75MB 12.5MB/s 00:06
users01.dbf
100% 5128KB 5.0MB/s 00:00
[oracle@prod200 PROD]$ cd /u01/arch/
[oracle@prod200 arch]$ scp *.* 172.168.1.201:/u01/arch
oracle@172.168.1.201's password:
scp: /u01/arch: No such file or directory
[oracle@prod200 arch]$ scp *.* 172.168.1.201:/u01/arch
oracle@172.168.1.201's password:
arch_1_10_897088402.arc
100% 474KB 474.0KB/s 00:00
arch_1_11_897088402.arc
100% 3973KB 3.9MB/s 00:00
arch_1_12_897088402.arc
100% 29KB 28.5KB/s 00:00
arch_1_13_897088402.arc
100% 343KB 342.5KB/s 00:00
arch_1_14_897088402.arc
100% 52KB 51.5KB/s 00:00
arch_1_15_897088402.arc
100% 6035KB 5.9MB/s 00:01
arch_1_16_897088402.arc
100% 10KB 10.0KB/s 00:00
arch_1_17_897088402.arc
100% 14MB 14.4MB/s 00:00
arch_1_18_897088402.arc
100% 1536 1.5KB/s 00:00
arch_1_19_897088402.arc
100% 570KB 570.0KB/s 00:00
arch_1_20_897088402.arc
100% 51KB 51.0KB/s 00:00
arch_1_21_897088402.arc
100% 83KB 82.5KB/s 00:00
arch_1_22_897088402.arc
100% 3584 3.5KB/s 00:00
arch_1_23_897088402.arc
100% 2560 2.5KB/s 00:00
arch_1_6_897088402.arc
100% 9685KB 9.5MB/s 00:01
arch_1_7_897088402.arc
100% 1024 1.0KB/s 00:00
arch_1_8_897088402.arc
100% 2560 2.5KB/s 00:00
arch_1_9_897088402.arc
100% 1024 1.0KB/s 00:00
[oracle@prod200 arch]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY

Recovery Manager: Release 11.2.0.1.0 - Production on Sun May 8 16:25:04 2016

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

connected to target database: PROD (DBID=308926735)


connected to auxiliary database: STANDBY (not mounted)

RMAN> DUPLICATE TARGET DATABASE


FOR STANDBY
FROM ACTIVE DATABASE
DORECOVER
SPFILE
SET db_unique_name='STANDBY' COMMENT 'Is standby'
SET LOG_ARCHIVE_DEST_2='SERVICE=PROD ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD'
SET FAL_SERVER='PROD' COMMENT 'Is primary'
set
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/',/u01/app/oracle/oradata/STANDB
Y/'
set
LOG_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAN
DBY/'
NOFILENAMECHECK;2> 3> 4> 5> 6> 7> 8> 9>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01006: error signaled during parse
RMAN-02001: unrecognized punctuation symbol "/"

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_FILE_NAME_CONVERT
RMAN-01007: at line 1 column 9 file: standard input

RMAN> DUPLICATE TARGET DATABASE


FOR STANDBY
FROM ACTIVE DATABASE
DORECOVER
SPFILE
SET db_unique_name='STANDBY' COMMENT 'Is standby'
SET LOG_ARCHIVE_DEST_2='SERVICE=PROD ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD'
SET FAL_SERVER='PROD' COMMENT 'Is primary'
set
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAND
BY/'
set
LOG_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAN
DBY/'
NOFILENAMECHECK;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "nofilenamecheck": expecting one of: "advise,
allocate, alter, backup, @, catalog, change, configure, connect, convert, copy,
create, crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import,
list, mount, open, print, quit, recover, register, release, repair, replace,
report, reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "for": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "dorecover": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "spfile": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_ARCHIVE_DEST_2
RMAN-01007: at line 1 column 9 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: FAL_SERVER
RMAN-01007: at line 1 column 9 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_file_name_convert": expecting one of:
"archivelog, autobackup, auxiliary, auxname, backup, command, compression,
controlfile, database, dbid, decryption, echo, encryption, high, incarnation,
maxcorrupt, maxseq, newname, nocfau, restore, snapshot, to restore point, until
restore point, until"
RMAN-01007: at line 1 column 6 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_FILE_NAME_CONVERT
RMAN-01007: at line 1 column 9 file: standard input

RMAN> DUPLICATE TARGET DATABASE


FOR STANDBY
FROM ACTIVE DATABASE
DORECOVER
SPFILE
SET db_unique_name='STANDBY' COMMENT 'Is standby'
SET LOG_ARCHIVE_DEST_2='SERVICE=PROD ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD'
SET FAL_SERVER='PROD' COMMENT 'Is primary'
set
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAND
BY/'
set
LOG_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAN
DBY/'
NOFILENAMECHECK;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "nofilenamecheck": expecting one of: "advise,
allocate, alter, backup, @, catalog, change, configure, connect, convert, copy,
create, crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import,
list, mount, open, print, quit, recover, register, release, repair, replace,
report, reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "for": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "dorecover": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "spfile": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01007: at line 1 column 9 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_ARCHIVE_DEST_2
RMAN-01007: at line 1 column 9 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: FAL_SERVER
RMAN-01007: at line 1 column 9 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_file_name_convert": expecting one of:
"archivelog, autobackup, auxiliary, auxname, backup, command, compression,
controlfile, database, dbid, decryption, echo, encryption, high, incarnation,
maxcorrupt, maxseq, newname, nocfau, restore, snapshot, to restore point, until
restore point, until"
RMAN-01007: at line 1 column 6 file: standard input

RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_FILE_NAME_CONVERT
RMAN-01007: at line 1 column 9 file: standard input

RMAN>

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "nofilenamecheck": expecting one of: "advise,
allocate, alter, backup, @, catalog, change, configure, connect, convert, copy,
create, crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import,
list, mount, open, print, quit, recover, register, release, repair, replace,
report, reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input

RMAN>

RMAN>

RMAN> DUPLICATE TARGET DATABASE


FOR STANDBY
FROM ACTIVE DATABASE
DORECOVER
SPFILE
SET db_unique_name='STANDBY' COMMENT 'Is standby'
SET LOG_ARCHIVE_DEST_2='SERVICE=PROD ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD'
SET FAL_SERVER='PROD' COMMENT 'Is primary'
set
DB_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAND
BY/'
set
LOG_FILE_NAME_CONVERT='/u01/app/oracle/oradata/PROD/','/u01/app/oracle/oradata/STAN
DBY/'
NOFILENAMECHECK;2> 3> 4> 5> 6> 7> 8> 9> 10> 11>

Starting Duplicate Db at 08-MAY-16


using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK

contents of Memory Script:


{
backup as copy reuse
targetfile '/u01/app/oracle/product/11.2.0/dbs/orapwPROD' auxiliary format
'/u01/app/oracle/product/11.2.0/dbs/orapwSTANDBY' targetfile
'/u01/app/oracle/product/11.2.0/dbs/spfilePROD.ora' auxiliary format
'/u01/app/oracle/product/11.2.0/dbs/spfileSTANDBY.ora' ;
sql clone "alter system set spfile=
''/u01/app/oracle/product/11.2.0/dbs/spfileSTANDBY.ora''";
}
executing Memory Script

Starting backup at 08-MAY-16


allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=41 device type=DISK
Finished backup at 08-MAY-16

sql statement: alter system set spfile=


''/u01/app/oracle/product/11.2.0/dbs/spfileSTANDBY.ora''

contents of Memory Script:


{
sql clone "alter system set db_unique_name =
''STANDBY'' comment=
''Is standby'' scope=spfile";
sql clone "alter system set LOG_ARCHIVE_DEST_2 =
''SERVICE=PROD ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
DB_UNIQUE_NAME=PROD'' comment=
'''' scope=spfile";
sql clone "alter system set FAL_SERVER =
''PROD'' comment=
''Is primary'' scope=spfile";
sql clone "alter system set db_file_name_convert =
''/u01/app/oracle/oradata/PROD/'', ''/u01/app/oracle/oradata/STANDBY/'' comment=
'''' scope=spfile";
sql clone "alter system set LOG_FILE_NAME_CONVERT =
''/u01/app/oracle/oradata/PROD/'', ''/u01/app/oracle/oradata/STANDBY/'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script

sql statement: alter system set db_unique_name = ''STANDBY'' comment= ''Is


standby'' scope=spfile

sql statement: alter system set LOG_ARCHIVE_DEST_2 = ''SERVICE=PROD ASYNC


VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=PROD'' comment= ''''
scope=spfile

sql statement: alter system set FAL_SERVER = ''PROD'' comment= ''Is primary''
scope=spfile

sql statement: alter system set db_file_name_convert =


''/u01/app/oracle/oradata/PROD/'', ''/u01/app/oracle/oradata/STANDBY/'' comment=
'''' scope=spfile

sql statement: alter system set LOG_FILE_NAME_CONVERT =


''/u01/app/oracle/oradata/PROD/'', ''/u01/app/oracle/oradata/STANDBY/'' comment=
'''' scope=spfile
Oracle instance shut down

connected to auxiliary database (not started)


Oracle instance started

Total System Global Area 534462464 bytes

Fixed Size 2215064 bytes


Variable Size 163578728 bytes
Database Buffers 364904448 bytes
Redo Buffers 3764224 bytes

contents of Memory Script:


{
backup as copy current controlfile for standby auxiliary format
'/u01/app/oracle/oradata/PROD/control01.ctl';
restore clone controlfile to '/u01/app/oracle/oradata/PROD/control02.ctl' from
'/u01/app/oracle/oradata/PROD/control01.ctl';
}
executing Memory Script

Starting backup at 08-MAY-16


using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
output file name=/u01/app/oracle/product/11.2.0/dbs/snapcf_PROD.f
tag=TAG20160508T162705 RECID=2 STAMP=911320026
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
Finished backup at 08-MAY-16

Starting restore at 08-MAY-16


allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK

channel ORA_AUX_DISK_1: copied control file copy


Finished restore at 08-MAY-16

contents of Memory Script:


{
sql clone 'alter database mount standby database';
}
executing Memory Script

sql statement: alter database mount standby database

contents of Memory Script:


{
set newname for tempfile 1 to
"/u01/app/oracle/oradata/STANDBY/temp01.dbf";
switch clone tempfile all;
set newname for datafile 1 to
"/u01/app/oracle/oradata/STANDBY/system01.dbf";
set newname for datafile 2 to
"/u01/app/oracle/oradata/STANDBY/sysaux01.dbf";
set newname for datafile 3 to
"/u01/app/oracle/oradata/STANDBY/undotbs01.dbf";
set newname for datafile 4 to
"/u01/app/oracle/oradata/STANDBY/users01.dbf";
backup as copy reuse
datafile 1 auxiliary format
"/u01/app/oracle/oradata/STANDBY/system01.dbf" datafile
2 auxiliary format
"/u01/app/oracle/oradata/STANDBY/sysaux01.dbf" datafile
3 auxiliary format
"/u01/app/oracle/oradata/STANDBY/undotbs01.dbf" datafile
4 auxiliary format
"/u01/app/oracle/oradata/STANDBY/users01.dbf" ;
sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to /u01/app/oracle/oradata/STANDBY/temp01.dbf in control file

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting backup at 08-MAY-16


using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/PROD/system01.dbf
output file name=/u01/app/oracle/oradata/STANDBY/system01.dbf
tag=TAG20160508T162716
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile file number=00002 name=/u01/app/oracle/oradata/PROD/sysaux01.dbf
output file name=/u01/app/oracle/oradata/STANDBY/sysaux01.dbf
tag=TAG20160508T162716
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/u01/app/oracle/oradata/PROD/undotbs01.dbf
output file name=/u01/app/oracle/oradata/STANDBY/undotbs01.dbf
tag=TAG20160508T162716
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u01/app/oracle/oradata/PROD/users01.dbf
output file name=/u01/app/oracle/oradata/STANDBY/users01.dbf tag=TAG20160508T162716
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 08-MAY-16

sql statement: alter system archive log current

contents of Memory Script:


{
backup as copy reuse
archivelog like "/u01/arch/arch_1_24_897088402.arc" auxiliary format
"/u01/app/oracle/product/11.2.0/dbs/archarch_1_24_897088402.arc" archivelog like
"/u01/arch/arch_1_25_897088402.arc" auxiliary format
"/u01/app/oracle/product/11.2.0/dbs/archarch_1_25_897088402.arc" ;
catalog clone archivelog
"/u01/app/oracle/product/11.2.0/dbs/archarch_1_24_897088402.arc";
catalog clone archivelog
"/u01/app/oracle/product/11.2.0/dbs/archarch_1_25_897088402.arc";
switch clone datafile all;
}
executing Memory Script

Starting backup at 08-MAY-16


using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=24 RECID=19 STAMP=911320039
output file name=/u01/app/oracle/product/11.2.0/dbs/archarch_1_24_897088402.arc
RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log copy
input archived log thread=1 sequence=25 RECID=20 STAMP=911320105
output file name=/u01/app/oracle/product/11.2.0/dbs/archarch_1_25_897088402.arc
RECID=0 STAMP=0
channel ORA_DISK_1: archived log copy complete, elapsed time: 00:00:01
Finished backup at 08-MAY-16

cataloged archived log


archived log file
name=/u01/app/oracle/product/11.2.0/dbs/archarch_1_24_897088402.arc RECID=1
STAMP=911320107

cataloged archived log


archived log file
name=/u01/app/oracle/product/11.2.0/dbs/archarch_1_25_897088402.arc RECID=2
STAMP=911320107

datafile 1 switched to datafile copy


input datafile copy RECID=2 STAMP=911320107 file
name=/u01/app/oracle/oradata/STANDBY/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=3 STAMP=911320107 file
name=/u01/app/oracle/oradata/STANDBY/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=4 STAMP=911320107 file
name=/u01/app/oracle/oradata/STANDBY/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=5 STAMP=911320107 file
name=/u01/app/oracle/oradata/STANDBY/users01.dbf

contents of Memory Script:


{
set until scn 1073152;
recover
standby
clone database
delete archivelog
;
}
executing Memory Script

executing command: SET until clause

Starting recover at 08-MAY-16


using channel ORA_AUX_DISK_1

starting media recovery


archived log for thread 1 with sequence 24 is already on disk as file
/u01/app/oracle/product/11.2.0/dbs/archarch_1_24_897088402.arc
archived log for thread 1 with sequence 25 is already on disk as file
/u01/app/oracle/product/11.2.0/dbs/archarch_1_25_897088402.arc
archived log file
name=/u01/app/oracle/product/11.2.0/dbs/archarch_1_24_897088402.arc thread=1
sequence=24
archived log file
name=/u01/app/oracle/product/11.2.0/dbs/archarch_1_25_897088402.arc thread=1
sequence=25
media recovery complete, elapsed time: 00:00:00
Finished recover at 08-MAY-16
Finished Duplicate Db at 08-MAY-16

RMAN> exit

Recovery Manager complete.


[oracle@prod200 arch]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:29:47 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO

SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO

20 rows selected.
SQL> alter system switch logfile;

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO

SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO

SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO

25 rows selected.
SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> /

System altered.

SQL> /

System altered.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO

SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO

SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
27 YES
28 YES
29 YES
30 YES
26 YES
31 NO
31 NO
32 NO
SEQUENCE# APPLIED
---------- ---------
32 NO
33 NO
33 NO
34 NO
34 NO
35 NO
35 NO

40 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO

SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO

SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
27 YES
28 YES
29 YES
30 YES
26 YES
31 NO
31 NO
32 NO

SEQUENCE# APPLIED
---------- ---------
32 NO
33 NO
33 NO
34 NO
34 NO
35 NO
35 NO

40 rows selected.

SQL> ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS';

Session altered.

SQL> SELECT sequence#, first_time, next_time


FROM v$archived_log
ORDER BY sequence#; 2 3

SEQUENCE# FIRST_TIME NEXT_TIME


---------- -------------------- --------------------
6 05-MAY-2016 23:44:33 07-MAY-2016 12:18:24
7 07-MAY-2016 12:18:24 07-MAY-2016 12:18:26
8 07-MAY-2016 12:18:26 07-MAY-2016 12:18:27
9 07-MAY-2016 12:18:27 07-MAY-2016 12:18:28
10 07-MAY-2016 12:18:28 07-MAY-2016 12:52:31
11 07-MAY-2016 12:52:31 07-MAY-2016 22:49:44
12 07-MAY-2016 22:49:44 07-MAY-2016 22:49:46
13 07-MAY-2016 22:49:46 07-MAY-2016 22:50:30
14 07-MAY-2016 22:50:30 07-MAY-2016 22:50:32
15 07-MAY-2016 22:50:32 08-MAY-2016 11:38:15
16 08-MAY-2016 11:38:15 08-MAY-2016 11:38:16

SEQUENCE# FIRST_TIME NEXT_TIME


---------- -------------------- --------------------
17 08-MAY-2016 11:38:16 08-MAY-2016 16:07:31
18 08-MAY-2016 16:07:31 08-MAY-2016 16:07:34
19 08-MAY-2016 16:07:34 08-MAY-2016 16:16:33
20 08-MAY-2016 16:16:33 08-MAY-2016 16:16:36
21 08-MAY-2016 16:16:36 08-MAY-2016 16:19:30
22 08-MAY-2016 16:19:30 08-MAY-2016 16:19:33
23 08-MAY-2016 16:19:33 08-MAY-2016 16:19:36
24 08-MAY-2016 16:19:36 08-MAY-2016 16:27:19
25 08-MAY-2016 16:27:19 08-MAY-2016 16:28:24
26 08-MAY-2016 16:28:24 08-MAY-2016 16:30:25
26 08-MAY-2016 16:28:24 08-MAY-2016 16:30:25

SEQUENCE# FIRST_TIME NEXT_TIME


---------- -------------------- --------------------
27 08-MAY-2016 16:30:25 08-MAY-2016 16:30:34
27 08-MAY-2016 16:30:25 08-MAY-2016 16:30:34
28 08-MAY-2016 16:30:34 08-MAY-2016 16:30:35
28 08-MAY-2016 16:30:34 08-MAY-2016 16:30:35
29 08-MAY-2016 16:30:35 08-MAY-2016 16:30:36
29 08-MAY-2016 16:30:35 08-MAY-2016 16:30:36
30 08-MAY-2016 16:30:36 08-MAY-2016 16:30:36
30 08-MAY-2016 16:30:36 08-MAY-2016 16:30:36
31 08-MAY-2016 16:30:36 08-MAY-2016 16:32:36
31 08-MAY-2016 16:30:36 08-MAY-2016 16:32:36
32 08-MAY-2016 16:32:36 08-MAY-2016 16:33:22
SEQUENCE# FIRST_TIME NEXT_TIME
---------- -------------------- --------------------
32 08-MAY-2016 16:32:36 08-MAY-2016 16:33:22
33 08-MAY-2016 16:33:22 08-MAY-2016 16:33:25
33 08-MAY-2016 16:33:22 08-MAY-2016 16:33:25
34 08-MAY-2016 16:33:25 08-MAY-2016 16:33:39
34 08-MAY-2016 16:33:25 08-MAY-2016 16:33:39
35 08-MAY-2016 16:33:39 08-MAY-2016 16:33:42
35 08-MAY-2016 16:33:39 08-MAY-2016 16:33:42

40 rows selected.

SQL> ALTER SYSTEM SWITCH LOGFILE;

System altered.

SQL> show parameter log_archive_config

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_config string DG_CONFIG=(PROD,STANDBY)
SQL> show parameter remote_login_passwordfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
SQL> show parameter remote_login_passwordfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 arch]$ cd $ORACLE_HOME
[oracle@prod200 11.2.0]$ cd bin/
[oracle@prod200 bin]$ ls -lrt
total 512912
-rwxr-xr-x 1 oracle oinstall 153 Nov 6 1997 echodo
-rwxr-xr-x 1 oracle oinstall 88565 Jan 1 2000 zip
-rwxr-xr-x 1 oracle oinstall 119416 Jan 1 2000 unzip
-rwxr-xr-x 1 oracle oinstall 5036 Jan 1 2000 oraenv
-rwxr-xr-x 1 oracle oinstall 2365 Jan 1 2000 oerr
-rwxr-xr-x 1 oracle oinstall 2332 Jan 1 2000 gensyslib
-rwxr-x--- 1 oracle oinstall 13797 Jan 1 2000 dbstart
-rwxr-x--- 1 oracle oinstall 6030 Jan 1 2000 dbshut
-rwxr-xr-x 1 oracle oinstall 2415 Jan 1 2000 dbhome
-rwxr-xr-x 1 oracle oinstall 4143 Jan 1 2000 coraenv
-rwxr-xr-x 1 oracle oinstall 48 Sep 25 2000 oraxml
-rwxr-xr-x 1 oracle oinstall 48 Sep 25 2000 oraxsl
-rwxr-xr-x 1 oracle oinstall 46 Nov 7 2000 oracg
-rwxr-xr-x 1 oracle oinstall 45 Sep 25 2001 transx
-rwxr-xr-x 1 oracle oinstall 59 Nov 25 2002 orapipe
-rwxr-xr-x 1 oracle oinstall 44 Dec 4 2002 orajaxb
-rwxr-xr-x 1 oracle oinstall 3449 Oct 17 2005 emdrollogs.pl
-rw-r--r-- 1 oracle oinstall 2904 Oct 17 2005 omsstop.pl
-rw-r--r-- 1 oracle oinstall 2548 Oct 17 2005 omsstart.pl
-rw-r--r-- 1 oracle oinstall 2574 Oct 17 2005 omsdown.pl
-rwxr-xr-x 1 oracle oinstall 1488 Oct 17 2005 Path.pm
-rwxr-xr-x 1 oracle oinstall 2952 Oct 17 2005 Directory.pm
-rwxr-x--- 1 oracle oinstall 281 Oct 17 2005 StartAgent.pl
-rwxr-xr-x 1 oracle oinstall 1226 Oct 17 2005 emdfail.command
-rwxr-xr-x 1 oracle oinstall 2194 Oct 17 2005 EmCommonCmdDriver.pm
-rwxr-xr-x 1 oracle oinstall 1404 Oct 17 2005 EMAgentPatch.pm
-rwxr-xr-x 1 oracle oinstall 1840 Oct 17 2005 agentok.sh
-rw-r--r-- 1 oracle oinstall 2094 Dec 15 2005 EMDeploy.bat
-rwxr-xr-x 1 oracle oinstall 495 Apr 14 2006 commonenv.template
-rwxr-xr-x 1 oracle oinstall 3451 May 1 2006 EMDiag.pm
-rw-r--r-- 1 oracle oinstall 1359 Jul 21 2006 pafctl.bat
-rwxr-xr-x 1 oracle oinstall 2328 Jul 21 2006 pafctl
-rwxr-xr-x 1 oracle oinstall 2343 Jul 26 2006 AgentMisc.pm
-rwxr-xr-x 1 oracle oinstall 5653 Sep 6 2006 EMSAConsoleCommon.pm
-rwxr-xr-x 1 oracle oinstall 6741 Oct 3 2006 EmKeyCmds.pm
-rw-r--r-- 1 oracle oinstall 5297 Oct 3 2006 dbgeu_run_action.pl
-rwxr-xr-x 1 oracle oinstall 748 Nov 12 2006 xsql
-rwxr-xr-x 1 oracle oinstall 6612 Dec 14 2006 EMconnectorCmds.pm
-rwxr-xr-x 1 oracle oinstall 2923 May 25 2007 CompEMagent.pm
-rwxr-xr-x 1 oracle oinstall 4987 Jun 8 2007 genclntst
-rwxr-xr-x 1 oracle oinstall 2523 Jul 17 2007 sAgentUtils.pm
-rwxr-xr-x 1 oracle oinstall 16979 Jul 27 2007 LaunchEMagent.pm
-rw-r--r-- 1 oracle oinstall 1419 Jul 30 2007 findAvailableSpace.pl
-rwxr-xr-x 1 oracle oinstall 17833 Sep 13 2007 AgentStatus.pm
-rwxr-x--- 1 oracle oinstall 2835 Sep 17 2007 nfsPatchPlugin.pm
-rwxr-xr-x 1 oracle oinstall 2732 Dec 18 2007 runclass
-rw-r--r-- 1 oracle oinstall 4068 Jan 19 2008 PARDeploy.bat
-rwxr-xr-x 1 oracle oinstall 4796 Jan 19 2008 PARDeploy
-rwxr-xr-x 1 oracle oinstall 4442 Jan 19 2008 RegisterTType.pm
-rwxr-x--- 1 oracle oinstall 2243 Jan 19 2008 purgeDeploymentLibrary
-rwxr-xr-x 1 oracle oinstall 10174 Jan 19 2008 emutil.bat.template
-rwxr-x--- 1 oracle oinstall 1657 Jan 19 2008 deploymentLibraryImport.sh
-rwxr-x--- 1 oracle oinstall 1696 Jan 19 2008 deploymentLibraryExport.sh
-rwxr-xr-x 1 oracle oinstall 5199 Jan 19 2008 CompEMcore.pm
-rwxr-xr-x 1 oracle oinstall 5693 Jan 19 2008 CompEMcentral.pm
-rwxr-xr-x 1 oracle oinstall 9060 Feb 15 2008 AgentLifeCycle.pm
-rwxr-x--- 1 oracle oinstall 4472 Apr 14 2008 patchAgtStPlugin.pm
-rwxr-x--- 1 oracle oinstall 5161 Apr 29 2008 dvca
-rwxr-xr-x 1 oracle oinstall 34604 May 23 2008 SecureUtil.pm
-rwxr-x--- 1 oracle oinstall 2271 Jun 5 2008 emdwgrd.bat
-rwxr-xr-x 1 oracle oinstall 1814 Jul 2 2008 racgwrap.sbs
-rwxr-xr-x 1 oracle oinstall 39259 Jul 25 2008 emwd.pl
-rwxr-xr-x 1 oracle oinstall 28900 Jul 31 2008 SecureAgentCmds.pm
-rwxr-xr-x 1 oracle oinstall 3265 Jul 31 2008 AgentSubAgent.pm
-rwxr-xr-x 1 oracle oinstall 58574 Sep 11 2008 emdwgrd.pl
-rwxr-xr-x 1 oracle oinstall 6553 Sep 11 2008 emdwgrd
-rwxr-xr-x 1 oracle oinstall 24310 Sep 12 2008 EMAgent.pm
-rw-r--r-- 1 oracle oinstall 9069 Oct 5 2008 aqxmlctl.pl
-rwx------ 1 oracle oinstall 31268 Nov 27 2008 xmlwf
-rwxr-xr-x 1 oracle oinstall 2818 Dec 24 2008 crsdiag.pl
-rwxr-xr-x 1 oracle oinstall 2448 Jan 8 2009 CompEMdbconsole.pm
-rwxr-xr-x 1 oracle oinstall 8303 Feb 5 2009 DBConsoleLifeCycle.pm
-rwxr-xr-x 1 oracle oinstall 21480 Feb 13 2009 DBConsole.pm
-rwxr-xr-x 1 oracle oinstall 4393 Feb 27 2009 DBConsoleStatus.pm
-rwxr-x--- 1 oracle oinstall 5311 Mar 17 2009 asmcmd
-rwxr-xr-x 1 oracle oinstall 16758 Mar 18 2009 EMomsCmds.pm
-rwxr-xr-x 1 oracle oinstall 24550 Mar 24 2009 EMDeploy.pm
-rwxr-xr-x 1 oracle oinstall 1459 May 12 2009 linkshlib
-rwxr-xr-x 1 oracle oinstall 14581 Jun 9 2009 emctl.template
-rwxr-xr-x 1 oracle oinstall 29487 Jun 13 2009 asmcmdcore
-rwxr-xr-x 1 oracle oinstall 1194 Jun 14 2009 cluvfy
-rwxr-xr-x 1 oracle oinstall 31876 Jun 15 2009 SecureDBConsoleCmds.pm
-rwxr-xr-x 1 oracle oinstall 70807 Jun 23 2009 SecureOMSCmds.pm
-rwxr-xr-x 1 oracle oinstall 8918 Jun 29 2009 LaunchEMdbconsole.pm
-rwxr-xr-x 1 oracle oinstall 3261 Jul 13 2009 symfind
-rwxr-xr-x 1 oracle oinstall 4598 Jul 15 2009 relink
-rwxr-xr-x 1 oracle oinstall 4324 Jul 25 2009 genagtsh
-rwxr-xr-x 1 oracle oinstall 9124 Jul 25 2009 genclntsh
-rwxr-xr-x 1 oracle oinstall 9364 Jul 25 2009 genorasdksh
-rwxr-xr-x 1 oracle oinstall 3591 Jul 25 2009 genoccish
-rwxr-xr-x 1 oracle oinstall 19892 Jul 31 2009 lsnodes
-rwxr-xr-x 1 oracle oinstall 35653 Jul 31 2009 osdbagrp0
-rwxr-xr-x 1 oracle oinstall 18479997 Jul 31 2009 racgeut
-rwxr-xr-x 1 oracle oinstall 18709681 Jul 31 2009 racgmain
-rwxr-xr-x 1 oracle oinstall 6693253 Jul 31 2009 gnsd
-rwxr-xr-x 1 oracle oinstall 3239377 Aug 2 2009 xml
-rwxr-xr-x 1 oracle oinstall 3845142 Aug 2 2009 xmlcg
-rwxr-xr-x 1 oracle oinstall 2949475 Aug 2 2009 schema
-rwxr-xr-x 1 oracle oinstall 3104981 Aug 2 2009 xvm
-rwxr-xr-x 1 oracle oinstall 3112512 Aug 2 2009 xsl
-rwxr-xr-x 1 oracle oinstall 1582424 Aug 2 2009 lmsgen
-rwxr-xr-x 1 oracle oinstall 4181946 Aug 2 2009 lxinst
-rwxr-xr-x 1 oracle oinstall 1657805 Aug 2 2009 lxegen
-rwxr-xr-x 1 oracle oinstall 1081341 Aug 2 2009 lxchknlb
-rwxr-xr-x 1 oracle oinstall 1934553 Aug 2 2009 lcsscan
-rwxr-xr-x 1 oracle oinstall 4904 Aug 3 2009 gennttab
-rwxr-xr-x 1 oracle oinstall 2893 Aug 3 2009 gennfgt
-rwxr-xr-x 1 oracle oinstall 13091 Aug 3 2009 adapters
-rwxr-xr-x 1 oracle oinstall 415873 Aug 3 2009 csscan
-rwxr-xr-x 1 oracle oinstall 12676 Aug 7 2009 nmcbufp
-rwxr-xr-x 1 oracle oinstall 1207 Aug 11 2009 DBConsoleBanner.pm
-rwxr-xr-x 1 oracle oinstall 1373395 Aug 14 2009 genksms
-rwxr-x--- 1 oracle oinstall 31516 Aug 14 2009 osh
-rwxr-x--- 1 oracle oinstall 35300 Aug 14 2009 fmputlhp
-rwxr-x--- 1 oracle oinstall 1274056 Aug 14 2009 fmputl
-rwsr-x--- 1 root oinstall 68278 Aug 14 2009 oradism
-rwxr-xr-x 1 oracle oinstall 138774 Aug 14 2009 mkpatchO
-rwxr-xr-x 1 oracle oinstall 44963 Aug 14 2009 geneziO
-rwxr-xr-x 1 oracle oinstall 1225215 Aug 14 2009 extjoboO
-rwxr-xr-x 1 oracle oinstall 1225215 Aug 14 2009 extjobO
-rwxr-xr-x 1 oracle oinstall 852278 Aug 14 2009 diskmon.bin
-rwxr-xr-x 1 oracle oinstall 47203925 Aug 14 2009 orion
-rwxr-x--- 1 oracle oinstall 458093 Aug 14 2009 dbfs_client
-rwxr-xr-x 1 oracle oinstall 3093056 Aug 15 2009 orabase
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 ctxloadO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 ctxlcO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 ctxkbtc0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 rawutl0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 tnnfg
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 oklist0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 okinit0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 okdstry0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 tnslsnr0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 lsnrctl0
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 setasmgid0
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 renamedg0
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 amduO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 wrapO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 tstshmO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 trcldr
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 sbttestO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 orapwdO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 oracleO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 nidO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 maxmemO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 mapsga0
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 hsotsO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 hsdepxaO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 hsallociO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 grdcscan
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 dumpsga0
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 dbvO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 dbfsizeO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 cursizeO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 agtctlO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 kfodO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 kfedO
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 dg4odbcO
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 plshprofO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 uidrvciO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 tkprofO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 sqlldrO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 impO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 impdpO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 extprocO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 expO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 expdpO
-rwxr-x--- 1 oracle oinstall 0 Aug 15 2009 dg4pwdO
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 ojmxtool0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmupm0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmosudo0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmocat0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmo0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmhs0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmei0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 nmb0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 emtgtctl20
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 emdctl0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 emagtmc0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 emagtm0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 emagent0
-rwxr-xr-x 1 oracle oinstall 0 Aug 15 2009 e2eme0
-rwxr-xr-x 1 oracle oinstall 1300 Nov 29 22:49 olsoidsync
-rwxr-xr-x 1 oracle oinstall 1172 Nov 29 22:49 olsadmintool
-rwxr-xr-x 1 oracle oinstall 3762 Nov 29 22:49 umu
-rwxr-xr-x 1 oracle oinstall 1620 Nov 29 22:49 eusm
-rwxr-xr-x 1 oracle oinstall 2005 Nov 29 22:49 EMDeploy
-rwxr-xr-x 1 oracle oinstall 1360 Nov 29 22:49 statusnc
-rwxr-xr-x 1 oracle oinstall 1167 Nov 29 22:49 ojvmtc
-rwxr-xr-x 1 oracle oinstall 1210 Nov 29 22:49 ojvmjava
-rwxr-xr-x 1 oracle oinstall 1360 Nov 29 22:49 ncomp
-rwxr-xr-x 1 oracle oinstall 1665 Nov 29 22:49 loadjava
lrwxrwxrwx 1 oracle oinstall 52 Nov 29 22:49 lbuilder ->
/u01/app/oracle/product/11.2.0/nls/lbuilder/lbuilder
-rwxr-xr-x 1 oracle oinstall 1153 Nov 29 22:49 dropjava
-rwxr-xr-x 1 oracle oinstall 1854 Nov 29 22:49 deploync
-rwxr-xr-x 1 oracle oinstall 3003 Nov 29 22:49 trcasst
-rwxr-xr-x 1 oracle oinstall 8159 Nov 29 22:49 srvctl
-rwxr-xr-x 1 oracle oinstall 4958 Nov 29 22:49 srvconfig
-rwxr-xr-x 1 oracle oinstall 2845 Nov 29 22:49 schemasync
-rwxr-xr-x 1 oracle oinstall 6953 Nov 29 22:49 rconfig
-rw-r--r-- 1 oracle oinstall 2805 Nov 29 22:49 platform_common
-rwxr-xr-x 1 oracle oinstall 6844 Nov 29 22:49 owm
-rwxr-xr-x 1 oracle oinstall 1337 Nov 29 22:49 ott
-rwxr-xr-x 1 oracle oinstall 3129 Nov 29 22:49 orapki
-rwxr-xr-x 1 oracle oinstall 3329 Nov 29 22:49 oidprovtool
-rwxr-xr-x 1 oracle oinstall 2164 Nov 29 22:49 oidca
-rwxr-xr-x 1 oracle oinstall 1300 Nov 29 22:49 odisrvreg
-rwxr-xr-x 1 oracle oinstall 6279 Nov 29 22:49 netmgr
-rw-r--r-- 1 oracle oinstall 105 Nov 29 22:49 netca_deinst.sh
-rwxr-xr-x 1 oracle oinstall 6364 Nov 29 22:49 netca
-rwxr-xr-x 1 oracle oinstall 2806 Nov 29 22:49 mkstore
-rwxr-xr-x 1 oracle oinstall 3410 Nov 29 22:49 ldifmigrator
-rwxr-xr-x 1 oracle oinstall 8638 Nov 29 22:49 diagsetup
-rwxr-xr-x 1 oracle oinstall 7809 Nov 29 22:49 dbua
-rw-r--r-- 1 oracle oinstall 6458 Nov 29 22:49 chopt.pl
-rw-r--r-- 1 oracle oinstall 2460 Nov 29 22:49 chopt.ini
-rwxr-xr-x 1 oracle oinstall 225 Nov 29 22:49 chopt
-rwxr-xr-x 1 oracle oinstall 2026 Nov 29 22:49 bndlchk
-rwxr-x--x 1 oracle oinstall 1551 Nov 29 22:49 aqxmlctl
-rwxr-xr-x 1 oracle oinstall 1833 Nov 29 22:49 racgwrap
-rwxr-xr-x 1 oracle oinstall 2072 Nov 29 22:49 trcsess
-rwxr-x--- 1 oracle oinstall 321 Nov 29 22:49 extusrupgrade
-rwxr-xr-x 1 oracle oinstall 9544019 Nov 29 22:50 proc
-rwxr-x--x 1 oracle oinstall 519566 Nov 29 22:50 dg4odbc
-rwxr-x--x 1 oracle oinstall 20505 Nov 29 22:50 tnsping0
-rwxr-x--x 1 oracle oinstall 299456 Nov 29 22:50 ctxload
-rwxr-xr-x 1 oracle oinstall 45411 Nov 29 22:50 nmo.0
-rws--x--- 1 root oinstall 45411 Nov 29 22:50 nmo
-rwxr-x--x 1 oracle oinstall 685988 Nov 29 22:50 ctxlc
-rwxr-x--x 1 oracle oinstall 771544 Nov 29 22:50 ctxkbtc
-rwxr-x--x 1 oracle oinstall 7632169 Nov 29 22:50 wrap
-rwxr-xr-x 1 oracle oinstall 24216 Nov 29 22:50 nmupm
-rwx------ 1 oracle oinstall 101862 Nov 29 22:50 emdctl
-rwx------ 1 oracle oinstall 12666 Nov 29 22:50 emagent
-rwxr-xr-x 1 oracle oinstall 232209 Nov 29 22:50 ojmxtool
-rwxr-xr-x 1 oracle oinstall 39861 Nov 29 22:50 nmocat
-rwxr-xr-x 1 oracle oinstall 83491 Nov 29 22:50 nmei
-rwxr-xr-x 1 oracle oinstall 37311 Nov 29 22:50 emagtmc
-rwxr-xr-x 1 oracle oinstall 54802 Nov 29 22:50 emagtm
-rwxr-xr-x 1 oracle oinstall 64388 Nov 29 22:50 nmosudo
-rwxr-xr-x 1 oracle oinstall 71778 Nov 29 22:50 nmhs.0
-rws--x--- 1 root oinstall 71778 Nov 29 22:50 nmhs
-rwsr-s--x 1 oracle oinstall 66485 Nov 29 22:50 emtgtctl2
-rwxr-xr-x 1 oracle oinstall 3366478 Nov 29 22:50 e2eme
-rwxr-x--x 1 oracle oinstall 544548 Nov 29 22:50 dbv
-rwxr-x--x 1 oracle oinstall 24536 Nov 29 22:50 tstshm
-rwxr-x--x 1 oracle oinstall 28549 Nov 29 22:50 orapwd
-rwxr-x--x 1 oracle oinstall 13249 Nov 29 22:50 maxmem
-rwxr-x--x 1 oracle oinstall 12875 Nov 29 22:50 dbfsize
-rwxr-x--x 1 oracle oinstall 460591 Nov 29 22:50 mapsga
-rwxr-x--x 1 oracle oinstall 32953 Nov 29 22:50 hsots
-rwxr-x--x 1 oracle oinstall 168407 Nov 29 22:50 hsalloci
-rwxr-x--x 1 oracle oinstall 460511 Nov 29 22:50 dumpsga
-rwxr-x--x 1 oracle oinstall 12611 Nov 29 22:50 cursize
-rwxr-x--x 1 oracle oinstall 50100 Nov 29 22:50 agtctl
-rwxr-x--x 1 oracle oinstall 120541 Nov 29 22:50 sbttest
-rwxr-x--x 1 oracle oinstall 22912 Nov 29 22:50 loadpspO
-rwxr-x--x 1 oracle oinstall 551452 Nov 29 22:50 kgmgrO
-rwxr-x--x 1 oracle oinstall 31140 Nov 29 22:50 hsdepxa
-rwxr-x--x 1 oracle oinstall 84866 Nov 29 22:50 nid
-rwsr-x--- 1 root oinstall 43768 Nov 29 22:50 jssu
-rwx------ 1 oracle oinstall 1223972 Nov 29 22:50 extjobo
-rwsr-x--- 1 root oinstall 1223972 Nov 29 22:50 extjob
-rwxr-x--x 1 oracle oinstall 3469729 Nov 29 22:50 dgmgrlO
-rwxr-x--x 1 oracle oinstall 22626337 Nov 29 22:50 kfod
-rwxr-x--x 1 oracle oinstall 439167 Nov 29 22:50 wrcO
-rwxr-x--x 1 oracle oinstall 175819 Nov 29 22:50 uidrvci
-rwxr-x--x 1 oracle oinstall 25580740 Nov 29 22:50 amdu
-rwxr-x--x 1 oracle oinstall 25305 Nov 29 22:50 adrciO
-rwxr-xr-x 1 oracle oinstall 13886 Nov 29 22:50 rawutl
-rwxr-xr-x 1 oracle oinstall 32666 Nov 29 22:50 osdbagrp
-rwxr-x--x 1 oracle oinstall 20976 Nov 29 22:50 sysresv0
-rwxr-x--x 1 oracle oinstall 138139 Nov 29 22:50 mkpatch
-rwxr-x--x 1 oracle oinstall 20039751 Nov 29 22:50 kfed
-rwxr-x--x 1 oracle oinstall 2216180 Nov 29 22:50 setasmgid
-rwxr-x--x 1 oracle oinstall 22540352 Nov 29 22:50 renamedg
-rwxr-x--x 1 oracle oinstall 31946 Nov 29 22:50 trcroute0
-rwxr-x--x 1 oracle oinstall 20505 Nov 29 22:50 tnsping
-rwxr-xr-x 1 oracle oinstall 34452 Nov 29 22:50 nmb.0
-rws--x--- 1 root oinstall 34452 Nov 29 22:50 nmb
-rwxr-x--x 1 oracle oinstall 9181 Nov 29 22:50 sqlplus
-rwxr-xr-x 1 oracle oinstall 951707 Nov 29 22:50 ldapadd
-rwxr-xr-x 1 oracle oinstall 951707 Nov 29 22:50 ldapmodify
-rwxr-xr-x 1 oracle oinstall 864143 Nov 29 22:50 ldapdelete
-rwxr-xr-x 1 oracle oinstall 863420 Nov 29 22:50 ldapcompare
-rwxr-xr-x 1 oracle oinstall 895923 Nov 29 22:50 ldapsearch
-rwxr-xr-x 1 oracle oinstall 862817 Nov 29 22:50 ldapmoddn
-rwxr-xr-x 1 oracle oinstall 964148 Nov 29 22:50 ldapaddmt
-rwxr-xr-x 1 oracle oinstall 23307 Nov 29 22:50 oklist
-rwxr-xr-x 1 oracle oinstall 964148 Nov 29 22:50 ldapmodifymt
-rwxr-x--x 1 oracle oinstall 465713 Nov 29 22:50 imp
-rwxr-xr-x 1 oracle oinstall 929962 Nov 29 22:50 dsml2ldif
-rwxr-x--x 1 oracle oinstall 118893 Nov 29 22:50 tkprof
-rwxr-x--x 1 oracle oinstall 1470095 Nov 29 22:50 sqlldr
-rwxr-x--x 1 oracle oinstall 5154949 Nov 29 22:50 plshprof
-rwxr-x--x 1 oracle oinstall 985296 Nov 29 22:50 exp
-rwxr-x--x 1 oracle oinstall 16940659 Nov 29 22:50 rmanO
-rwxr-x--x 1 oracle oinstall 22912 Nov 29 22:50 loadpsp
-rwxr-x--x 1 oracle oinstall 551452 Nov 29 22:50 kgmgr
-rwxr-x--x 1 oracle oinstall 180024 Nov 29 22:50 impdp
-rwxr-x--x 1 oracle oinstall 167952 Nov 29 22:50 expdp
-rwxr-x--x 1 oracle oinstall 439167 Nov 29 22:50 wrc
-rwxr-x--x 1 oracle oinstall 20976 Nov 29 22:50 sysresv
-rwxr-x--x 1 oracle oinstall 44552 Nov 29 22:50 genezi
-rwxr-x--x 1 oracle oinstall 3469729 Nov 29 22:50 dgmgrl
-rwxr-x--x 1 oracle oinstall 27384 Nov 29 22:50 dg4pwd
-rwxr-x--x 1 oracle oinstall 25305 Nov 29 22:50 adrci
-rwxr-x--x 1 oracle oinstall 927832 Nov 29 22:50 tnslsnr
-rwxr-xr-x 1 oracle oinstall 14448 Nov 29 22:50 okinit
-rwxr-xr-x 1 oracle oinstall 20006 Nov 29 22:50 okdstry
-rwxr-x--x 1 oracle oinstall 15481 Nov 29 22:50 extproc
-rwxr-x--x 1 oracle oinstall 31946 Nov 29 22:50 trcroute
-rwxr-x--x 1 oracle oinstall 16940659 Nov 29 22:50 rman
-rwxr-x--x 1 oracle oinstall 153535 Nov 29 22:50 lsnrctl
-rwsr-s--x 1 oracle oinstall 210824714 Nov 29 22:51 oracle
-rw-r--r-- 1 oracle oinstall 7154 Nov 29 22:51 repo_mig
-rw-r--r-- 1 oracle oinstall 1245 Nov 29 22:51 setsso.pl
-rwxr-xr-x 1 oracle oinstall 12659 Nov 29 22:51 emutil
-rwxr-xr-x 1 oracle oinstall 18340 Nov 29 22:51 emctl.pl
-rwxr-xr-x 1 oracle oinstall 43683 Nov 29 22:51 EmctlCommon.pm
-rwxr--r-- 1 oracle oinstall 14551 Nov 29 22:51 emctl
-rwxr-xr-x 1 oracle oinstall 489 Nov 29 22:51 commonenv
-rwx------ 1 oracle oinstall 13525 Nov 29 22:51 onsctl
-rwxr-xr-x 1 oracle oinstall 6957 Nov 29 22:51 targetdeploy.pl
-rwxr-xr-x 1 oracle oinstall 1495 Nov 29 22:51 emtgtctl
-rwxr-xr-x 1 oracle oinstall 3513 Nov 29 22:51 emca
-rwxr-xr-x 1 oracle oinstall 3769 Nov 29 22:51 emagentdeploy.pl
-rwxr-xr-x 1 oracle oinstall 862954 Nov 29 22:51 ldapbind
-rwxr-xr-x 1 oracle oinstall 6226 Nov 29 22:51 dbca
-rwxr-xr-x 1 oracle oinstall 3552 Nov 29 22:51 db2gc
[oracle@prod200 bin]$ cd ..
[oracle@prod200 11.2.0]$ cd dbs/
[oracle@prod200 dbs]$ ls -lrt
total 9584
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
-rw-r----- 1 oracle oinstall 2560 May 8 16:10 orapwSTANDY
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDBY
-rw-rw---- 1 oracle oinstall 1544 May 8 16:16 hc_PROD.dat
-rw-r----- 1 oracle oinstall 3584 May 8 16:16 spfilePROD.ora
-rw-r----- 1 oracle oinstall 9748480 May 8 16:27 snapcf_PROD.f
[oracle@prod200 dbs]$ rm orapwSTANDY
[oracle@prod200 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:51:45 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> select sequence#, applied from v$archived_log;


SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO

SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO

SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
27 YES
28 YES
29 YES
30 YES
26 YES
31 NO
31 YES
32 YES

SEQUENCE# APPLIED
---------- ---------
32 NO
33 YES
33 NO
34 NO
34 YES
35 YES
35 NO
36 NO
36 YES
37 NO
37 YES

SEQUENCE# APPLIED
---------- ---------
38 NO
38 NO
39 NO
39 NO
40 NO
40 NO

50 rows selected.

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> alter system switch logfile;

System altered.

SQL> archive log list


Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/arch
Oldest online log sequence 44
Next log sequence to archive 46
Current log sequence 46
SQL> alter system switch logfile;

System altered.

SQL>
SQL> alter system switch logfile;

System altered.

SQL> alter system set log_archive_dest_state_2=defer scope = both sid = '*';

System altered.

SQL>

=========================
login as: root
root@172.168.1.201's password:
Last login: Sun May 8 15:47:17 2016
[root@test201 ~]# su - oracle
[oracle@test201 ~]$ ls
listener.ora orapwPRODSTDBY PRODSTDBY.ora
oradiag_oracle PRODSTDBY.ctl tnsnames.ora
[oracle@test201 ~]$ ls -lrt
total 9556
drwxr-x--- 3 oracle oinstall 4096 Nov 29 23:06 oradiag_oracle
-rw-r--r-- 1 oracle oinstall 332 May 7 13:02 tnsnames.ora
-rw-r--r-- 1 oracle oinstall 315 May 7 13:02 listener.ora
-rw-r----- 1 oracle oinstall 1536 May 7 22:59 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1207 May 7 23:00 PRODSTDBY.ora
-rw-r----- 1 oracle oinstall 9748480 May 7 23:00 PRODSTDBY.ctl
[oracle@test201 ~]$ pwd
/home/oracle
[oracle@test201 ~]$ pwd
/home/oracle
[oracle@test201 ~]$ cd /u01/app/oracle/product/
[oracle@test201 product]$ cd 11.2.0
[oracle@test201 11.2.0]$ l
-bash: l: command not found
[oracle@test201 11.2.0]$ ls
apex cdata crs cv demo has install.platform
javavm jlib md nls olap oracore owb precomp root.sh
scheduler sqlplus ucp xdk
assistants cfgtoollogs csmig dbs diagnostics hs instantclient
jdbc ldap mesg oc4j ons oraInst.loc owm racg root.sh.old
slax srvm uix
bin clone css dc_ocm dv ide inventory
jdev lib mgw ocm.rsp OPatch ord perl rdbms root.sh.old.1
sqldeveloper sysman utl
ccr config ctx deinstall emcli install j2ee
jdk log network odbc opmn oui plsql relnotes
root.sh.ouibak sqlj timingframework wwg
[oracle@test201 11.2.0]$ pwd
/u01/app/oracle/product/11.2.0
[oracle@test201 11.2.0]$ cd dbs/
[oracle@test201 dbs]$ ls -lrt
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
[oracle@test201 dbs]$ vi PRODSTDBY.ora
[oracle@test201 dbs]$ ls -ld /u01/app/oracle/oradata/STANDBY/
drwxr-xr-x 2 oracle oinstall 4096 May 8 12:33 /u01/app/oracle/oradata/STANDBY/
[oracle@test201 dbs]$ cd /u01/app/oracle/product/11.2.0
[oracle@test201 11.2.0]$ cd network/admin/
[oracle@test201 admin]$ ls -lrt
total 28
-rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 samples
-rw-r--r-- 1 oracle oinstall 529 May 7 13:06 tnsnames.ora
-rw-r--r-- 1 oracle oinstall 529 May 7 13:31 tnsnames1605071PM3119.bak
-rw-r--r-- 1 oracle oinstall 805 May 7 13:31 listener1605071PM3119.bak
-rw-r--r-- 1 oracle oinstall 467 May 7 13:36 1
-rw-r--r-- 1 oracle oinstall 458 May 7 13:52 listener.ora
[oracle@test201 admin]$ vi listener.ora
[oracle@test201 admin]$ vi tnsnames.ora
[oracle@test201 admin]$ lsnrctl start PROD12
-bash: lsnrctl: command not found
[oracle@test201 admin]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0
[oracle@test201 admin]$ export PATH=$ORACLE_HOME/bin:$PATH
[oracle@test201 admin]$ lsnrctl start PROD12

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 08-MAY-2016 16:06:40

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /u01/app/oracle/product/11.2.0/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production


System parameter file is /u01/app/oracle/product/11.2.0/network/admin/listener.ora
Log messages written to
/u01/app/oracle/product/11.2.0/log/diag/tnslsnr/test201/prod12/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test201.labserver.com)
(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=test201.labserver.com)
(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias PROD12
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 08-MAY-2016 16:06:41
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/network/admin/listener.ora
Listener Log File
/u01/app/oracle/product/11.2.0/log/diag/tnslsnr/test201/prod12/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test201.labserver.com)(PORT=1521)))
Services Summary...
Service "STANDBY" has 1 instance(s).
Instance "STANDBY", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@test201 admin]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0
[oracle@test201 admin]$ export ORACLE_SID=STANDBY
[oracle@test201 admin]$ pwd
/u01/app/oracle/product/11.2.0/network/admin
[oracle@test201 admin]$ cd ../..
[oracle@test201 11.2.0]$ ls
apex cdata crs cv demo has install.platform
javavm jlib md nls olap oracore owb precomp root.sh
scheduler sqlplus ucp xdk
assistants cfgtoollogs csmig dbs diagnostics hs instantclient
jdbc ldap mesg oc4j ons oraInst.loc owm racg root.sh.old
slax srvm uix
bin clone css dc_ocm dv ide inventory
jdev lib mgw ocm.rsp OPatch ord perl rdbms root.sh.old.1
sqldeveloper sysman utl
ccr config ctx deinstall emcli install j2ee
jdk log network odbc opmn oui plsql relnotes
root.sh.ouibak sqlj timingframework wwg
[oracle@test201 11.2.0]$ cd dbs/
[oracle@test201 dbs]$ sl -lrt
-bash: sl: command not found
[oracle@test201 dbs]$ ls -lrt
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
[oracle@test201 dbs]$ vi PRODSTDBY.ora
[oracle@test201 dbs]$ pwd
/u01/app/oracle/product/11.2.0/dbs
[oracle@test201 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:08:46 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup nomount pfile='/u01/app/oracle/product/11.2.0/dbs/PRODSTDBY.ora';


ORACLE instance started.

Total System Global Area 534462464 bytes


Fixed Size 2215064 bytes
Variable Size 176161640 bytes
Database Buffers 352321536 bytes
Redo Buffers 3764224 bytes
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test201 dbs]$ ls -ltr
total 40
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-rw---- 1 oracle oinstall 1544 May 8 16:09 hc_STANDBY.dat
[oracle@test201 dbs]$ mv ls -lrt
mv: invalid option -- l
Try `mv --help' for more information.
[oracle@test201 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-rw---- 1 oracle oinstall 1544 May 8 16:09 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:11 orapwSTANDY
[oracle@test201 dbs]$ mv orapwPRODSTDBY orapwPRODSTDBY_bkp
[oracle@test201 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY_bkp
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-rw---- 1 oracle oinstall 1544 May 8 16:09 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:11 orapwSTANDY
[oracle@test201 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY_bkp
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-rw---- 1 oracle oinstall 1544 May 8 16:09 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDY
[oracle@test201 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY_bkp
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-rw---- 1 oracle oinstall 1544 May 8 16:09 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDY
[oracle@test201 dbs]$ cd /u01/app/oracle/product/11.2.0/dbs
[oracle@test201 dbs]$ ls -lrt
total 44
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY_bkp
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-rw---- 1 oracle oinstall 1544 May 8 16:09 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDY
[oracle@test201 dbs]$ vi PRODSTDBY.ora
[oracle@test201 dbs]$ vi PRODSTDBY.ora
[oracle@test201 dbs]$ pwd
/u01/app/oracle/product/11.2.0/dbs
[oracle@test201 dbs]$ mkdir -p /u01/arch
[oracle@test201 dbs]$ cd /u01/app/oracle/oradata/
[oracle@test201 oradata]$ ls -lrt
total 12
drwxr-x--- 2 oracle oinstall 4096 Nov 29 23:13 PROD
drwxr-xr-x 2 oracle oinstall 4096 May 7 23:22 PRODSTDBY
drwxr-xr-x 2 oracle oinstall 4096 May 8 16:28 STANDBY
[oracle@test201 oradata]$ cd PROD
[oracle@test201 PROD]$ ls -lrt
total 1414184
-rw-r----- 1 oracle oinstall 30416896 Nov 29 23:14 temp01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 6 00:53 redo03.log
-rw-r----- 1 oracle oinstall 52429312 May 6 00:53 redo01.log
-rw-r----- 1 oracle oinstall 702554112 May 6 00:53 system01.dbf
-rw-r----- 1 oracle oinstall 482353152 May 6 00:53 sysaux01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 6 00:53 redo02.log
-rw-r----- 1 oracle oinstall 5251072 May 6 00:53 users01.dbf
-rw-r----- 1 oracle oinstall 78651392 May 6 00:53 undotbs01.dbf
-rw-r----- 1 oracle oinstall 9748480 May 8 16:28 control02.ctl
-rw-r----- 1 oracle oinstall 9748480 May 8 16:28 control01.ctl
[oracle@test201 PROD]$ cd ..
[oracle@test201 oradata]$ ls -lr
total 12
drwxr-xr-x 2 oracle oinstall 4096 May 8 16:28 STANDBY
drwxr-xr-x 2 oracle oinstall 4096 May 7 23:22 PRODSTDBY
drwxr-x--- 2 oracle oinstall 4096 Nov 29 23:13 PROD
[oracle@test201 oradata]$ cd STANDBY/
[oracle@test201 STANDBY]$ ls -lrt
total 1659196
-rw-r----- 1 oracle oinstall 9748480 May 8 16:20 control02.ctl
-rw-r----- 1 oracle oinstall 9748480 May 8 16:20 control01.ctl
-rw-r----- 1 oracle oinstall 5251072 May 8 16:28 users01.dbf
-rw-r----- 1 oracle oinstall 78651392 May 8 16:28 undotbs01.dbf
-rw-r----- 1 oracle oinstall 713039872 May 8 16:28 system01.dbf
-rw-r----- 1 oracle oinstall 513810432 May 8 16:28 sysaux01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo01.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo02.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo03.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo04.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo05.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo06.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:28 redo07.log
[oracle@test201 STANDBY]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:29:12 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select sequence#, applied from v$archived_log;


SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES

SQL> column group# format 9;


column member format A45;
select group#, member from v$logfile;SQL> SQL>

GROUP# MEMBER
------ ---------------------------------------------
3 /u01/app/oracle/oradata/STANDBY/redo03.log
2 /u01/app/oracle/oradata/STANDBY/redo02.log
1 /u01/app/oracle/oradata/STANDBY/redo01.log
4 /u01/app/oracle/oradata/STANDBY/redo04.log
5 /u01/app/oracle/oradata/STANDBY/redo05.log
6 /u01/app/oracle/oradata/STANDBY/redo06.log
7 /u01/app/oracle/oradata/STANDBY/redo07.log

7 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES

SQL> /

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

Database altered.
SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES

7 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO

8 rows selected.

SQL> /

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO

8 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO

8 rows selected.
SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO

8 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO

8 rows selected.

SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
*
ERROR at line 1:
ORA-01153: an incompatible media recovery is active

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO

8 rows selected.

SQL> ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS';

Session altered.

SQL> SELECT sequence#, first_time, next_time


FROM v$archived_log
ORDER BY sequence#; 2 3

SEQUENCE# FIRST_TIME NEXT_TIME


---------- -------------------- --------------------
24 08-MAY-2016 16:19:36 08-MAY-2016 16:27:19
25 08-MAY-2016 16:27:19 08-MAY-2016 16:28:24
26 08-MAY-2016 16:28:24 08-MAY-2016 16:30:25
27 08-MAY-2016 16:30:25 08-MAY-2016 16:30:34
28 08-MAY-2016 16:30:34 08-MAY-2016 16:30:35
29 08-MAY-2016 16:30:35 08-MAY-2016 16:30:36
30 08-MAY-2016 16:30:36 08-MAY-2016 16:30:36
35 08-MAY-2016 16:33:39 08-MAY-2016 16:33:42
36 08-MAY-2016 16:33:42 08-MAY-2016 16:36:50

9 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
36 NO

9 rows selected.

SQL> recover managed standby database disconnect;


ORA-01153: an incompatible media recovery is active

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
36 NO

9 rows selected.

SQL> show parameter back

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
background_core_dump string partial
background_dump_dest string /u01/app/oracle/diag/rdbms/sta
ndby/STANDBY/trace
backup_tape_io_slaves boolean FALSE
db_flashback_retention_target integer 1440
fast_start_parallel_rollback string LOW
rollback_segments string
transactions_per_rollback_segment integer 5
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test201 STANDBY]$ cd /u01/app/oracle/diag/rdbms/standby/STANDBY/trace
[oracle@test201 trace]$ vi alert_STANDBY.log
[oracle@test201 trace]$ vi
/u01/app/oracle/diag/rdbms/standby/STANDBY/trace/STANDBY_arc3_2747.trc
[oracle@test201 trace]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:42:02 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> show paramter log_archive_config


SP2-0158: unknown SHOW option "paramter"
SP2-0735: unknown SHOW option beginning "log_archiv..."
SQL> show parameter log_archive_config

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
log_archive_config string DG_CONFIG=(PROD,STANDBY)
SQL> show parameter remote_login_passwordfile

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test201 trace]$ pwd
/u01/app/oracle/diag/rdbms/standby/STANDBY/trace
[oracle@test201 trace]$ cd $ORACLE_HOME
[oracle@test201 11.2.0]$ cd bin/
[oracle@test201 bin]$ cd ..
[oracle@test201 11.2.0]$ cd dbs/
[oracle@test201 dbs]$ ls -lrt
total 1600
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY_bkp
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-r----- 1 oracle oinstall 2560 May 8 16:12 orapwSTANDY
-rw-r----- 1 oracle oinstall 1536 May 8 16:26 orapwSTANDBY
-rw-r----- 1 oracle oinstall 24 May 8 16:27 lkSTANDBY
-rw-r----- 1 oracle oinstall 4608 May 8 16:27 spfileSTANDBY.ora
-rw-r----- 1 oracle oinstall 238080 May 8 16:28 archarch_1_24_897088402.arc
-rw-r----- 1 oracle oinstall 908288 May 8 16:28 archarch_1_25_897088402.arc
-rw-r----- 1 oracle oinstall 1024 May 8 16:32 archarch_1_30_897088402.arc
-rw-r----- 1 oracle oinstall 1536 May 8 16:32 archarch_1_29_897088402.arc
-rw-r----- 1 oracle oinstall 1536 May 8 16:32 archarch_1_28_897088402.arc
-rw-r----- 1 oracle oinstall 6144 May 8 16:32 archarch_1_27_897088402.arc
-rw-r----- 1 oracle oinstall 62976 May 8 16:32 archarch_1_26_897088402.arc
-rw-r----- 1 oracle oinstall 2560 May 8 16:33 archarch_1_35_897088402.arc
-rw-r----- 1 oracle oinstall 96768 May 8 16:36 archarch_1_36_897088402.arc
-rw-rw---- 1 oracle oinstall 1544 May 8 16:43 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 52429312 May 8 16:43 archarch_1_37_897088402.arc
[oracle@test201 dbs]$ pwd
/u01/app/oracle/product/11.2.0/dbs
[oracle@test201 dbs]$ rm orapwSTANDY
[oracle@test201 dbs]$ ls -lrt
total 1608
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY_bkp
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
-rw-r----- 1 oracle oinstall 1536 May 8 16:26 orapwSTANDBY
-rw-r----- 1 oracle oinstall 24 May 8 16:27 lkSTANDBY
-rw-r----- 1 oracle oinstall 4608 May 8 16:27 spfileSTANDBY.ora
-rw-r----- 1 oracle oinstall 238080 May 8 16:28 archarch_1_24_897088402.arc
-rw-r----- 1 oracle oinstall 908288 May 8 16:28 archarch_1_25_897088402.arc
-rw-r----- 1 oracle oinstall 1024 May 8 16:32 archarch_1_30_897088402.arc
-rw-r----- 1 oracle oinstall 1536 May 8 16:32 archarch_1_29_897088402.arc
-rw-r----- 1 oracle oinstall 1536 May 8 16:32 archarch_1_28_897088402.arc
-rw-r----- 1 oracle oinstall 6144 May 8 16:32 archarch_1_27_897088402.arc
-rw-r----- 1 oracle oinstall 62976 May 8 16:32 archarch_1_26_897088402.arc
-rw-r----- 1 oracle oinstall 2560 May 8 16:33 archarch_1_35_897088402.arc
-rw-r----- 1 oracle oinstall 96768 May 8 16:36 archarch_1_36_897088402.arc
-rw-rw---- 1 oracle oinstall 1544 May 8 16:43 hc_STANDBY.dat
-rw-r----- 1 oracle oinstall 52429312 May 8 16:44 archarch_1_37_897088402.arc
[oracle@test201 dbs]$ cd /u01/app/oracle/diag/rdbms/standby/STANDBY/trace
[oracle@test201 trace]$ vi alert_STANDBY.log
[oracle@test201 trace]$ vi
/u01/app/oracle/diag/rdbms/standby/STANDBY/trace/STANDBY_arc0_2741.trc
[oracle@test201 trace]$ vi vi
/u01/app/oracle/diag/rdbms/standby/STANDBY/trace/STANDBY_arc3_2747.trc
2 files to edit
[oracle@test201 trace]$ vi
/u01/app/oracle/diag/rdbms/standby/STANDBY/trace/STANDBY_arc3_2747.trc
[oracle@test201 trace]$ pwd
/u01/app/oracle/diag/rdbms/standby/STANDBY/trace
[oracle@test201 trace]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:50:34 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shutdown immediate


ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.

Total System Global Area 534462464 bytes


Fixed Size 2215064 bytes
Variable Size 163578728 bytes
Database Buffers 364904448 bytes
Redo Buffers 3764224 bytes
Database mounted.
SQL> alter database recover managed standby database using current logfile
disconnect from session;

Database altered.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES

10 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES

SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES

13 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES

SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES

18 rows selected.

SQL> /

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES

SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES
18 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES

SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES

18 rows selected.

SQL> select sequence#, applied from v$archived_log;

SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES

SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES
46 YES

19 rows selected.
SQL> show parameter back

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
background_core_dump string partial
background_dump_dest string /u01/app/oracle/diag/rdbms/sta
ndby/STANDBY/trace
backup_tape_io_slaves boolean FALSE
db_flashback_retention_target integer 1440
fast_start_parallel_rollback string LOW
rollback_segments string
transactions_per_rollback_segment integer 5
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test201 trace]$ cd /u01/app/oracle/diag/rdbms/standby/STANDBY/trace
[oracle@test201 trace]$ vi alert_STANDBY.log
[oracle@test201 trace]$

SQL*Plus: Release 11.2.0.1.0 Production on Sun May 8 16:55:12 2016

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter database recover managed standby database cancel;

Database altered.

SQL> shut immediate;


ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test201 trace]$
==============
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
'
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges

You might also like