Note:- STEP 01 and 02 are mainly required when you configure Grid Infrastructure.
STEP 01
userdel -r
oracle
userdel -r
grid
groupdeloinstall
groupdeldba
groupdeloper
groupdelasmadmin
groupdelasmdba
groupdelasmoper
OUT PUT
[root@clone
~]# userdel -r oracle
[root@clone
~]# userdel -r grid
userdel:
user grid does not exist
[root@clone
~]# groupdeloinstall
[root@clone
~]# groupdeldba
[root@clone
~]# groupdeloper
groupdel:
group oper does not exist
[root@clone
~]# groupdelasmadmin
groupdel:
group asmadmin does not exist
[root@clone
~]# groupdelasmdba
groupdel:
group asmdba does not exist
[root@clone
~]# groupdelasmoper
groupdel:
group asmoper does not exist
[root@clone
~]#
STEP 02
/usr/sbin/groupadd
-g 510 oinstall
/usr/sbin/groupadd
-g 511 asmadmin
/usr/sbin/groupadd
-g 512 asmdba
/usr/sbin/groupadd
-g 513 asmoper
/usr/sbin/groupadd
-g 514 dba
/usr/sbin/groupadd
-g 515 oper
OUTPUT
[root@clone
~]# /usr/sbin/groupadd -g 510 oinstall
[root@clone
~]# /usr/sbin/groupadd -g 511 asmadmin
[root@clone
~]# /usr/sbin/groupadd -g 512 asmdba
[root@clone
~]# /usr/sbin/groupadd -g 513 asmoper
[root@clone
~]# /usr/sbin/groupadd -g 514 dba
[root@clone
~]# /usr/sbin/groupadd -g 515 oper
STEP 03
useradd -u
501 -g oinstall -G asmadmin,asmdba,asmoper grid
useradd -u
502 -g oinstall -G dba,asmdba,oper oracle
OUTPUT
[root@clone
~]# useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper grid
[root@clone
~]# useradd -u 502 -g oinstall -G dba,asmdba,oper oracle
STEP 04
mkdir
-p /u01/app/11.2.0/grid
mkdir
-p /u01/app/grid
mkdir -p /u01/app/oracle
OUTPUT
[oracle@clone
app]$ mkdir -p /u01/app/11.2.0/grid
[oracle@clone
app]$ mkdir -p /u01/app/grid
[oracle@clone
app]$ mkdir -p /u01/app/oracle
STEP 05
chown
-R grid:oinstall /u01
mkdir
-p /u01/app/oracle
chown
-R oracle:oinstall /u01/app/oracle
chmod
-R 775 /u01/
OUTPUT
[root@clone
u01]# chown -R grid:oinstall /u01
[root@clone
u01]# mkdir -p /u01/app/oracle
[root@clone
u01]# chown-R oracle:oinstall /u01/app/oracle
[root@clone
u01]# chmod -R 775 /u01/
su - oracle
cd
/home/oracle
vi
.bash_profile
add the
following lines in .bash_profile
export
ORACLE_HOSTNAME=clone.edi.pict.com.pk
export
ORACLE_UNQNAME=pictdb
export
ORACLE_BASE=/u01/app/oracle
export
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export
ORACLE_SID=pictdb
export
PATH=$PATH:$ORACLE_HOME/bin
then save
and quit
STEP 06
Make the
following Directories
mkdir -p
/u01/app/oracle/admin/pictdb/adump
mkdir -p
/u01/pictdb/controlfile/
mkdir -p
/u01/app/oracle
mkdir -p/u01/oracle/product/oradata/pictdb/
Output
[root@clone
~]# mkdir -p /u01/app/oracle/admin/pictdb/adump
[root@clone
~]# mkdir -p /u01/pictdb/controlfile/
[root@clone
~]# mkdir -p /u01/app/oracle
STEP 07
Create Pfile
cd /u01/app/oracle
vipfile.txt
(Note:- Copy
below all the lines in pfile.txt)
*.audit_file_dest='/u01/app/oracle/admin/pictdb/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files=‘/u01/app/oracle/oradata/pictdb/control01.ctl','/u01/app/oracle/oradata/pictdb/control02.ctl'
*.cursor_sharing='FORCE'
*.db_block_size=8192
*.db_create_file_dest=''
*.db_domain=''
*.db_name='pictdb'
*.db_recovery_file_dest=''
*.db_recovery_file_dest_size=858993459200
*.diagnostic_dest='/u01/app/oracle'
*.log_archive_dest_state_2='ENABLE'
*.log_buffer=99682688
*.open_cursors=3000
*.pga_aggregate_target=2522873856
*.processes=1500
*.remote_login_passwordfile='EXCLUSIVE'
*.sec_case_sensitive_logon=FALSE
*.session_cached_cursors=1000
*.sessions=2000
*.sga_max_size=2g
*.sga_target=2g
*.undo_tablespace='UNDOTBS1'
SAVE AND
QUIT
STEP 08
[oracle@clone
oracle]$ sqlplus / as sysdba
SQL*Plus:
Release 11.2.0.3.0 Production on Wed Feb 27 11:41:06 2013
Copyright
(c) 1982, 2011, Oracle. All rights
reserved.
Connected to
an idle instance.
STEP 09
SQL>
startup nomountpfile='/u01/app/oracle/pfile.txt';
ORACLE
instance started.
Total System
Global Area 2137886720 bytes
Fixed
Size 2230072 bytes
Variable
Size 486541512 bytes
Database
Buffers 1543503872 bytes
Redo
Buffers 105611264 bytes
STEP 10
SQL>
create spfile from pfile='/u01/app/oracle/pfile.txt';
File
created.
STEP 11
SQL>shu
abort
ORACLE
instance shut down.
STEP 12
SQL>
startup nomount
OUTPUT
ORACLE
instance started.
Total System
Global Area 2137886720 bytes
Fixed
Size 2230072 bytes
Variable Size 486541512 bytes
Database
Buffers 1543503872 bytes
Redo
Buffers 105611264 bytes
SQL>
STEP 13
SQL> exit
STEP 14
su - root
[root@clone
u01]# chown -R oracle:oinstall /u01/habib/
STEP 15
su - oracle
STEP 16
[oracle@clone
~]$ cd /u01/habib/bakup-Feb-25-13/
ls -ltra
OUTPUT
[oracle@clone
bakup-Feb-25-13]$ ls -ltra
total
36973672
-rwxrwxr-x 1 oracle oinstall14533926912 Feb 26 10:16
datafiles_PICTDB_1385_1_1.bkp
-rwxrwxr-x 1 oracle oinstall11333345280 Feb 26 10:20
datafiles_PICTDB_1386_1_1.bkp
-rwxrwxr-x 1 oracle oinstall 36339712 Feb 26 10:20
PICTDB_c-4197939688-20130225-00.ctl
-rwxrwxr-x 1 oracle oinstall10967695360 Feb 26 10:11
datafiles_PICTDB_1384_1_1.bkp
-rwxrwxr-x 1 oracle oinstall 302272512 Feb 26 10:20 archivelogs_PICTDB_1388_1_1.bkp
-rwxrwxr-x 1 oracle oinstall 320047104 Feb 26 10:20
archivelogs_PICTDB_1389_1_1.bkp
-rwxrwxr-x 1 oracle oinstall 36339712 Feb 26 10:21
PICTDB_c-4197939688-20130225-01.ctl
-rwxrwxr-x 1 oracle oinstall 2523136 Feb 26 10:21
controlfiles_PICTDB_1391_1_1.bkp
-rwxrwxr-x 1 oracle oinstall 291505664 Feb 26 10:21
archivelogs_PICTDB_1390_1_1.bkp
drwxrwxr-x 2 oracle oinstall 4096 Feb 26 10:21 .
drwxrwxr-x 3 oracle oinstall 4096 Feb 26 11:04 ..
NOTE: the
permission should be like this
STEP 17
Enter
user-name: sys/oracle as sysdba
Connected
to:
Oracle
Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the
Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
alter system set
control_files='/u01/app/oracle/oradata/pictdb/control01.ctl','/u01/app/oracle/oradata/pictdb/control02.ctl'
scope=spfile;
System
altered.
STEP 18
SQL>
startup nomount force
OUTPUT
ORACLE
instance started.
Total System
Global Area 2137886720 bytes
Fixed
Size 2230072 bytes
Variable
Size 486541512 bytes
Database
Buffers 1543503872 bytes
Redo
Buffers 105611264 bytes
STEP 19
SQL> show
parameter control
OUTPUT
NAME TYPE VALUE
------------------------------------
-------------------------------- ------------------------------
control_file_record_keep_time integer 7
control_files string /u01/app/oracle/oradata/pictdb
/control01.ctl, /u01/app/oracl
e/oradata/pictdb/control02.ctl
STEP 20
SQL> exit
Disconnected
from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit
Production
With the
Partitioning, OLAP, Data Mining and Real Application Testing options
STEP 21
[oracle@clonedbs]$
cd /u01/app/oracle/
STEP 22
[oracle@clone
oracle]$ vi pfile.txt
Output
*.audit_file_dest='/u01/app/oracle/admin/pictdb/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.cursor_sharing='FORCE'
*.db_block_size=8192
*.db_create_file_dest=''
*.db_domain=''
*.db_name='pictdb'
*.db_recovery_file_dest=''
*.db_recovery_file_dest_size=858993459200
*.diagnostic_dest='/u01/app/oracle'
*.log_archive_dest_state_2='ENABLE'
*.log_buffer=99682688
*.open_cursors=3000
*.pga_aggregate_target=2522873856
*.processes=1500
*.remote_login_passwordfile='EXCLUSIVE'
*.sec_case_sensitive_logon=FALSE
*.session_cached_cursors=1000
*.sessions=2000
*.sga_max_size=2g
*.sga_target=2g
*.undo_tablespace='UNDOTBS1'
*.control_files='/u01/app/oracle/oradata/pictdb/control01.ctl','/u01/app/oracle/oradata/pictdb/control02.ctl'
STEP 23
[oracle@clone
oracle]$ rman target /
Recovery
Manager: Release 11.2.0.3.0 - Production on Thu Feb 28 11:06:15 2013
Copyright
(c) 1982, 2011, Oracle and/or its affiliates.
All rights reserved.
RMAN-00571:
===========================================================
RMAN-00569:
=============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571:
===========================================================
RMAN-00554:
initialization of internal recovery manager package failed
RMAN-04005:
error from target database:
ORA-01031: insufficient privileges ( in case of error , use the following )
[oracle@clone
oracle]$ rman
Recovery
Manager: Release 11.2.0.3.0 - Production on Thu Feb 28 11:06:23 2013
Copyright
(c) 1982, 2011, Oracle and/or its affiliates.
All rights reserved.
RMAN>
connect target sys/oracle
connected to
target database: PICTDB (not mounted)
RMAN>
STEP 24
RMAN>
restore controlfile from '/u01/habib/bakup-Feb-28-13/
PICTDB_c-4197939688-20130228-00.ctl';
OUTPUT
Starting
restore at 27-FEB-13
using target
database control file instead of recovery catalog
allocated
channel: ORA_DISK_1
channel
ORA_DISK_1: SID=1146 device type=DISK
channel
ORA_DISK_1: restoring control file
channel
ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file
name=/u01/app/oracle/oradata/pictdb/control01.ctl
output file
name=/u01/app/oracle/oradata/pictdb/control02.ctl
Finished
restore at 27-FEB-13
STEP 25
RMAN>
alter database mount;
OUTPUT
RMAN>
alter database mount;
database
mounted
STEP 26
RMAN>
catalog start with '/u01/habib/bakup-Feb-28-13';
OUTPUT
searching
for all files that match the pattern /u01/habib/bakup-Feb-25-13
List of
Files Unknown to the Database
=====================================
File Name:
/u01/habib/bakup-Feb-25-13/PICTDB_c-4197939688-20130225-01.ctl
File Name:
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1390_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1384_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/controlfiles_PICTDB_1391_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1385_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/PICTDB_c-4197939688-20130225-00.ctl
File Name:
/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1386_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1389_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1388_1_1.bkp
Do you
really want to catalog the above files (enter YES or NO)? YES
cataloging
files...
cataloging
done
List of
Cataloged Files
=======================
File Name:
/u01/habib/bakup-Feb-25-13/PICTDB_c-4197939688-20130225-01.ctl
File Name:
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1390_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1384_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/controlfiles_PICTDB_1391_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1385_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/PICTDB_c-4197939688-20130225-00.ctl
File Name:
/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1386_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1389_1_1.bkp
File Name:
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1388_1_1.bkp
RMAN>
exit
Recovery
Manager complete.
[oracle@clone
oracle]$
STEP 27
[oracle@clone
~]$ sqlplus
SQL*Plus:
Release 11.2.0.3.0 Production on Wed Feb 27 14:36:55 2013
Copyright
(c) 1982, 2011, Oracle. All rights
reserved.
Enter
user-name: / as sysdbaandEnter user-name: sys/oracle as sysdba
Connected
to:
Oracle
Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the
Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> set
pages60;
SQL>select
name from v$datafile;
NAME
--------------------------------------------------------------------------------
+DATA/pictdb/datafile/system.317.798137375
+DATA/pictdb/datafile/sysaux.329.798137375
+DATA/pictdb/datafile/undotbs1.330.798137375
+DATA/pictdb/datafile/users.331.798137375
+DATA/pictdb/datafile/undotbs2.336.798137469
+DATA/pictdb/datafile/pictcsts.339.798167895
+DATA/pictdb/datafile/pictcsts.340.798168017
+DATA/pictdb/datafile/pictcsts.341.798168123
+DATA/pictdb/datafile/pictcsts.342.798168239
+DATA/pictdb/datafile/pictcsts.343.798168337
+DATA/pictdb/datafile/pictcsts.344.798168857
+DATA/pictdb/datafile/users.1749.800532427
12 rows selected.
STEP 28
SQL>select 'set newname for datafile' || ' '|| file# || ' to ' || '
/u01/app/oracle/oradata/pictdb/ ' from v$datafile;
OUTPUT
set newname
for datafile 1 to
'/u01/app/oracle/oradata/pictdb/system.dbf';
set newname
for datafile 2 to
'/u01/app/oracle/oradata/pictdb/sysaux.dbf';
set newname
for datafile 3 to
'/u01/app/oracle/oradata/pictdb/undotbs1.dbf';
set newname
for datafile 4 to
'/u01/app/oracle/oradata/pictdb/users.dbf';
set newname
for datafile 5 to '/u01/app/oracle/oradata/pictdb/undotbs2.dbf';
set newname
for datafile 6 to
'/u01/app/oracle/oradata/pictdb/pict1.dbf';
set newname
for datafile 7 to
'/u01/app/oracle/oradata/pictdb/pict2.dbf';
set newname
for datafile 8 to
'/u01/app/oracle/oradata/pictdb/pict3.dbf';
set newname
for datafile 9 to
'/u01/app/oracle/oradata/pictdb/pict4.dbf';
set newname
for datafile 10 to
'/u01/app/oracle/oradata/pictdb/pict5.dbf';
set newname
for datafile 11 to
'/u01/app/oracle/oradata/pictdb/pict6.dbf';
set newname
for datafile 12 to '/u01/app/oracle/oradata/pictdb/users2.dbf';
NOTE:- FILE NAME
YOU CAN GIVEN BY YOUR OWN CHOICE.
STEP 29
[oracle@clone
/]$ rman target / Or rman target sys/oracle
Recovery
Manager: Release 11.2.0.3.0 - Production on Thu Feb 28 11:39:33 2013
Copyright (c)
1982, 2011, Oracle and/or its affiliates.
All rights reserved.
connected to
target database: PICTDB (DBID=4197939688, not open)
run
{
setnewname
for datafile 1 to
'/u01/app/oracle/oradata/pictdb/system.dbf';
setnewname
for datafile 2 to
'/u01/app/oracle/oradata/pictdb/sysaux.dbf';
setnewname
for datafile 3 to
'/u01/app/oracle/oradata/pictdb/undotbs1.dbf';
setnewname
for datafile 4 to
'/u01/app/oracle/oradata/pictdb/users.dbf';
setnewname
for datafile 5 to
'/u01/app/oracle/oradata/pictdb/undotbs2.dbf';
setnewname
for datafile 6 to
'/u01/app/oracle/oradata/pictdb/pict1.dbf';
setnewname
for datafile 7 to
'/u01/app/oracle/oradata/pictdb/pict2.dbf';
setnewname
for datafile 8 to
'/u01/app/oracle/oradata/pictdb/pict3.dbf';
setnewname
for datafile 9 to
'/u01/app/oracle/oradata/pictdb/pict4.dbf';
setnewname
for datafile 10 to
'/u01/app/oracle/oradata/pictdb/pict5.dbf';
setnewname
for datafile 11 to
'/u01/app/oracle/oradata/pictdb/pict6.dbf';
setnewname
for datafile 12 to '/u01/app/oracle/oradata/pictdb/users2.dbf';
restore
database;
switchdatafile
all;
recover
database;
}
OUTPUT
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 27-FEB-13
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/pictdb/undotbs2.dbf
channel ORA_DISK_1: restoring datafile 00006 to
/u01/app/oracle/oradata/pictdb/pict1.dbf
channel ORA_DISK_1: restoring datafile 00008 to
/u01/app/oracle/oradata/pictdb/pict3.dbf
channel ORA_DISK_1: restoring datafile 00012 to
/u01/app/oracle/oradata/pictdb/users2.dbf
channel ORA_DISK_1: reading from backup piece
/backup/daily_rmanbk/backups/bakup-Feb-25-13/datafiles_PICTDB_1384_1_1.bkp
channel ORA_DISK_2: starting datafile backup set restore
channel ORA_DISK_2: specifying datafile(s) to restore from backup set
channel ORA_DISK_2: restoring datafile 00001 to
/u01/app/oracle/oradata/pictdb/system.dbf
channel ORA_DISK_2: restoring datafile 00002 to
/u01/app/oracle/oradata/pictdb/sysaux.dbf
channel ORA_DISK_2: restoring datafile 00004 to
/u01/app/oracle/oradata/pictdb/users.dbf
channel ORA_DISK_2: restoring datafile 00010 to
/u01/app/oracle/oradata/pictdb/pict5.dbf
channel ORA_DISK_2: reading from backup piece
/backup/daily_rmanbk/backups/bakup-Feb-25-13/datafiles_PICTDB_1386_1_1.bkp
channel ORA_DISK_3: starting datafile backup set restore
channel ORA_DISK_3: specifying datafile(s) to restore from backup set
channel ORA_DISK_3: restoring datafile 00003 to
/u01/app/oracle/oradata/pictdb/undotbs1.dbf
channel ORA_DISK_3: restoring datafile 00007 to
/u01/app/oracle/oradata/pictdb/pict2.dbf
channel ORA_DISK_3: restoring datafile 00009 to
/u01/app/oracle/oradata/pictdb/pict4.dbf
channel ORA_DISK_3: restoring datafile 00011 to
/u01/app/oracle/oradata/pictdb/pict6.dbf
channel ORA_DISK_3: reading from backup piece
/backup/daily_rmanbk/backups/bakup-Feb-25-13/datafiles_PICTDB_1385_1_1.bkp
channel ORA_DISK_1: failover to piece
handle=/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1384_1_1.bkp
tag=TAG20130225T000017
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 01:07:18
channel ORA_DISK_2: errors found reading piece
handle=/backup/daily_rmanbk/backups/bakup-Feb-25-13/datafiles_PICTDB_1386_1_1.bkp
channel ORA_DISK_2: failover to piece handle=/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1386_1_1.bkp
tag=TAG20130225T000017
channel ORA_DISK_2: restored backup piece 1
channel ORA_DISK_2: restore complete, elapsed time: 01:07:49
channel ORA_DISK_3: errors found reading piece
handle=/backup/daily_rmanbk/backups/bakup-Feb-25-13/datafiles_PICTDB_1385_1_1.bkp
channel ORA_DISK_3: failover to piece
handle=/u01/habib/bakup-Feb-25-13/datafiles_PICTDB_1385_1_1.bkp
tag=TAG20130225T000017
channel ORA_DISK_3: restored backup piece 1
channel ORA_DISK_3: restore complete, elapsed time: 01:18:29
Finished restore at 27-FEB-13
datafile 1 switched to datafile copy
inputdatafile copy RECID=16 STAMP=808503733 file
name=/u01/app/oracle/oradata/pictdb/system.dbf
datafile 2 switched to datafile copy
inputdatafile copy RECID=17 STAMP=808503733 file
name=/u01/app/oracle/oradata/pictdb/sysaux.dbf
datafile 3 switched to datafile copy
inputdatafile copy RECID=18 STAMP=808503733 file
name=/u01/app/oracle/oradata/pictdb/undotbs1.dbf
datafile 4 switched to datafile copy
inputdatafile copy RECID=19 STAMP=808503733 file
name=/u01/app/oracle/oradata/pictdb/users.dbf
datafile 5 switched to datafile copy
inputdatafile copy RECID=20 STAMP=808503733 file
name=/u01/app/oracle/oradata/pictdb/undotbs2.dbf
datafile 6 switched to datafile copy
inputdatafile copy RECID=21 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/pict1.dbf
datafile 7 switched to datafile copy
inputdatafile copy RECID=22 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/pict2.dbf
datafile 8 switched to datafile copy
inputdatafile copy RECID=23 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/pict3.dbf
datafile 9 switched to datafile copy
inputdatafile copy RECID=24 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/pict4.dbf
datafile 10 switched to datafile copy
inputdatafile copy RECID=25 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/pict5.dbf
datafile 11 switched to datafile copy
inputdatafile copy RECID=26 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/pict6.dbf
datafile 12 switched to datafile copy
inputdatafile copy RECID=27 STAMP=808503734 file
name=/u01/app/oracle/oradata/pictdb/users2.dbf
Starting recover at 27-FEB-13
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
starting media recovery
channel ORA_DISK_1: starting archived log restore to default
destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=8992
channel ORA_DISK_1: restoring archived log
archived log thread=2 sequence=7611
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=8993
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=8994
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=8995
channel ORA_DISK_1: restoring archived log
archived log thread=2 sequence=7612
channel ORA_DISK_1: reading from backup piece
/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1390_1_1.bkp
channel ORA_DISK_1: piece
handle=/u01/habib/bakup-Feb-25-13/archivelogs_PICTDB_1390_1_1.bkp
tag=TAG20130225T004301
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:35
archived log file
name=/u01/app/oracle/product/11.2.0/db_1/dbs/arch1_8992_798137451.dbf thread=1
sequence=8992
archived log file name=/u01/app/oracle/product/11.2.0/db_1/dbs/arch2_7611_798137451.dbf
thread=2 sequence=7611
archived log file
name=/u01/app/oracle/product/11.2.0/db_1/dbs/arch1_8993_798137451.dbf thread=1
sequence=8993
archived log file
name=/u01/app/oracle/product/11.2.0/db_1/dbs/arch1_8994_798137451.dbf thread=1
sequence=8994
archived log file
name=/u01/app/oracle/product/11.2.0/db_1/dbs/arch1_8995_798137451.dbf thread=1
sequence=8995
archived log file
name=/u01/app/oracle/product/11.2.0/db_1/dbs/arch2_7612_798137451.dbf thread=2
sequence=7612
unable to find archived log
archived log thread=1 sequence=8996
RMAN-00571:
===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK
FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at
02/27/2013 16:23:54
RMAN-06054: media recovery requesting unknown
archived log for thread 1 with sequence 8996 and starting SCN of 3872155705
RMAN-06054: media recovery requesting unknown
archived log for thread 1 with sequence 8996 and starting SCN of 3872155705
(Note:- This is not an error)
STEP 30
RMAN>
exit
recovery
Manager complete.
STEP 31
Sqlplus/ as
sysdbaorsys/oracle as sysdba
ALTER DATABASE RENAME FILE '+DATA/pictdb/onlinelog/group_2.334.798137451'
TO '/u01/app/oracle/oradata/pictdb/redo01.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_2.268.798137451' TO
'/u01/app/oracle/oradata/pictdb/redo02.log';
ALTER DATABASE RENAME FILE '+DATA/pictdb/onlinelog/group_1.333.798137451'
TO '/u01/app/oracle/oradata/pictdb/redo03.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_1.267.798137451' TO
'/u01/app/oracle/oradata/pictdb/redo04.log';
ALTER DATABASE RENAME FILE
'+DATA/pictdb/onlinelog/group_3.337.798137491' TO
'/u01/app/oracle/oradata/pictdb/redo05.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_3.269.798137491' TO
'/u01/app/oracle/oradata/pictdb/redo06.log';
ALTER DATABASE RENAME FILE
'+DATA/pictdb/onlinelog/group_4.338.798137491' TO '/u01/app/oracle/oradata/pictdb/redo07.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_4.270.798137493' TO
'/u01/app/oracle/oradata/pictdb/redo08.log';
OUTPUT
SQL> ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_2.268.798137451' TO '/u01/app/oracle/oradata/pictdb/redo02.log';
ALTER DATABASE RENAME FILE
'+DATA/pictdb/onlinelog/group_1.333.798137451' TO
'/u01/app/oracle/oradata/pictdb/redo03.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_1.267.798137451' TO '/u01/app/oracle/oradata/pictdb/redo04.log';
ALTER DATABASE RENAME FILE
'+DATA/pictdb/onlinelog/group_3.337.798137491' TO
'/u01/app/oracle/oradata/pictdb/redo05.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_3.269.798137491' TO
'/u01/app/oracle/oradata/pictdb/redo06.log'';
ALTER DATABASE RENAME FILE
'+DATA/pictdb/onlinelog/group_4.338.798137491' TO
'/u01/app/oracle/oradata/pictdb/redo07.log';
ALTER DATABASE RENAME FILE
'+FRA/pictdb/onlinelog/group_4.270.798137493' TO
'/u01/app/oracle/oradata/pictdb/redo08.log';
Database
altered.
Database altered.
Database
altered.
Database
altered.
Database
altered.
Database
altered.
Database
altered.
Database
altered.
STEP 32
SQL> alter database open;
OUTPUT
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for
database open
STEP 33
SQL>
alter database open resetlogs;
OUTPUT
Database
altered.
NOTE:- NOW YOUR DATABASE
READY TO USE.