tag:blogger.com,1999:blog-5992737914007027512024-03-06T00:24:52.484-08:00My OracleGovindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.comBlogger111125tag:blogger.com,1999:blog-599273791400702751.post-78779660305062231932016-12-28T09:39:00.001-08:002016-12-28T09:45:04.223-08:00RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process<div dir="ltr" style="text-align: left;" trbidi="on">
My database is oracle12c(12.1.0.2.0) version. One of my database obsolete archive log files were not getting deleted and getting the below error..<br />
<div>
<br /></div>
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN>delete noprompt force archivelog until time 'sysdate-14';</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN-08137: WARNING: archived log not deleted, needed for standby or
upstream capture process<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
archived log file
name=+DATA/XXX_AZ/ARCHIVELOG/2016_09_28/thread_2_seq_12062.22129.923740541
thread=2 sequence=12062<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>I followed the temp solution to delete the old archive log files manually.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>Here is the current RMAN setting...</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN> show all;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN configuration parameters for database with db_unique_name
FRONTEND_AZ are:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE BACKUP OPTIMIZATION OFF; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE CONTROLFILE AUTOBACKUP ON;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO
'/u04/rmanbackup/FRONTEND1/auto_%d_%F.ctl';<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; #
default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE MAXSETSIZE TO UNLIMITED; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT'
OPTIMIZE FOR LOAD TRUE ; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: red;">CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default</span><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+data/xxx_az/controlfile/snap_XXX.ctl';<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p>
</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Temporary solution :</span></b></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;"><br /></span></b></div>
<div class="MsoNormal">
<span style="background-color: yellow; color: red;"><b>Step 1 </b></span><span style="background-color: white;">Change the Archive log deletion policy to STANDBY.</span></div>
<div class="MsoNormal">
<span style="background-color: white;"><br /></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN> CONFIGURE ARCHIVELOG
DELETION POLICY TO SHIPPED TO STANDBY;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
new RMAN configuration parameters:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
CONFIGURE ARCHIVELOG DELETION POLICY TO SHIPPED TO STANDBY;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
new RMAN configuration parameters are successfully stored<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
RMAN-08591: WARNING: invalid archived log deletion policy<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: yellow; color: red;">Step 2 </b>Delete the obsolete archive log files.</div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<o:p> </o:p>RMAN>delete noprompt force archivelog until time 'sysdate-14';</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
archived log file name=+DATA/XXXXXXX_AZ/ARCHIVELOG/2016_10_06/thread_2_seq_12858.23739.924517385 RECID=73224 STAMP=924517385</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
deleted archived log</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
archived log file name=+DATA/XXXXXXX_AZ/ARCHIVELOG/2016_10_06/thread_2_seq_12859.23741.924518285 RECID=73230 STAMP=924518284</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
deleted archived log</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
archived log file name=+DATA/XXXXXXX_AZ/ARCHIVELOG/2016_10_06/thread_2_seq_12860.23743.924519185 RECID=73236 STAMP=924519185</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
deleted archived log</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
archived log file name=+DATA/XXXXXXX_AZ/ARCHIVELOG/2016_10_06/thread_2_seq_12861.23745.924520085 RECID=73242 STAMP=924520084</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
deleted archived log</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
archived log file name=+DATA/XXXXXXX_AZ/ARCHIVELOG/2016_10_06/thread_2_seq_12862.23747.924520985 RECID=73248 STAMP=924520985</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
deleted archived log</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
archived log file name=+DATA/XXXXXXX_AZ/ARCHIVELOG/2016_10_06/thread_2_seq_12863.23749.924521885 RECID=73254 STAMP=924521884</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
Deleted 21176 objects</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
RMAN-08591: WARNING: invalid archived log deletion policy</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
RMAN></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Now archive log files are getting deleted successfully!!</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: yellow; color: red;"><br /></b></div>
<div class="MsoNormal">
<b style="background-color: yellow; color: red;">Step 3</b> Change the RMAN deletion policy back to original.</div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
old RMAN configuration parameters:</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE ARCHIVELOG DELETION POLICY TO SHIPPED TO STANDBY;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
new RMAN configuration parameters:</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
new RMAN configuration parameters are successfully stored</div>
<div>
<o:p><br /></o:p></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step 4</span></b> Verify the RMAN settings.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 467.5pt;" valign="top" width="623"><div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<o:p> </o:p>RMAN> show all;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
RMAN configuration parameters for database with db_unique_name XXXXXXX_AZ are:</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE BACKUP OPTIMIZATION OFF; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE CONTROLFILE AUTOBACKUP ON;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u04/rmanbackup/XXXXXXX1/auto_%d_%F.ctl';</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 1;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE MAXSETSIZE TO UNLIMITED; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE RMAN OUTPUT TO KEEP FOR 7 DAYS; # default</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE;</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+data/XXXXXXX_az/controlfile/snap_XXXXXXX.ctl';</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
RMAN></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Parmanent solution </span></b><span style="background-color: yellow;"><b><span style="color: red;">:</span></b> </span> The golden gate was implemented previously for data replication to upgrade to Oracle 12c. But Golden Gate is no more used and still there are couple of Golden Gate extract process is running and it caused the archive log deletion issue.<br />
<br />
The currently running Golden Gate extract process stopped and archive log deletion job started deleting all the obsolete archive log files.<br />
<br />
Here are the steps i followed to currently running extract process :<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 269.75pt;" valign="top" width="360"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
GGSCI (hostname) 2> info all <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Program Status Group Lag at Chkpt Time Since Chkpt <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
MANAGER RUNNING <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
EXTRACT ABENDED FEEXT 00:00:00 5234:47:30 <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
EXTRACT RUNNING FEPMP 00:00:00 00:00:05 <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
EXTRACT STOPPED GWEXT 00:00:02 4671:09:27 <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
EXTRACT STOPPED GWPMP 00:00:00 4671:09:09 <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
EXTRACT STOPPED S 00:00:01 6650:16:15 <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<br />
<div class="MsoNormal">
<br /></div>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 310.25pt;" valign="top" width="414"><div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-size: 13.5pt;">ggsci> delete extract FEEXT <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> stop
extract FEPMP <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> delete
extract FEPMP <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> delete
extract GWEXt <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> delete
extract GWPMP <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> delete
extract S <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> stop
mgr <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">It will prompt
(y/n)---- y and continue (press enter) <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> delete
mgr <o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt;">
<br /></div>
<div style="margin: 0in 0in 0.0001pt;">
<span style="font-size: 13.5pt;">ggsci> info
all <o:p></o:p></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
</div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-8341949190309092942016-12-02T08:53:00.002-08:002016-12-08T14:18:24.497-08:00How to drop RAC database manually<div dir="ltr" style="text-align: left;" trbidi="on">
I am demonstrating how we can drop the database in RAC environment manually in Oracle12c(12.1.0.2.0) version.<br />
<br />
I have two node RAC and the database name is TEST. The instance names are TEST1 & TEST2.<br />
<br />
<span style="background-color: yellow; color: red;"><b>Step 1</b></span> Verify the instance<br />
<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 53.7pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 53.7pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 283.95pt;" valign="top" width="379"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ <span style="background-color: yellow;">srvctl status database -d TEST</span><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: red;"><b>Instance TEST1 is running on node usbenhost01<o:p></o:p></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: red;"><b>Instance TEST2 is running on node usbenhost02</b></span><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 359.75pt;" valign="top" width="480"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$<span style="background-color: yellow;"> <span style="color: red;">crsctl status resource -t</span></span><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Name Target State
Server State
details <o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Local Resources<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.DATA.dg<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.TEST.dg<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.asm<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01
Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02
Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.net1.network<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.ons<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Cluster Resources<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER_SCAN1.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER_SCAN2.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER_SCAN3.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.MGMTLSNR<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 169.254.59.131 192.1<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
68.1.101,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.cvu<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.mgmtdb<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 Open,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.oc4j<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.scan1.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.scan2.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.scan3.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: red;"><b>ora.test.db<o:p></o:p></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: red;"><b> 1 ONLINE ONLINE
usbenhost01 Open,STABLE<o:p></o:p></b></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: red;"><b> 2 ONLINE ONLINE
usbenhost02 Open,STABLE</b></span><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.usben.db<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE
ONLINE usbenhost01 Open,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
2 ONLINE ONLINE
usbenhost02 Open,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.usbenhost01.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.usbenhost02.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<br />
<b style="background-color: yellow; color: red;">Step 2</b> Shutdown the both instance<br />
<div>
<br /></div>
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 53.7pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 53.7pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 283.95pt;" valign="top" width="379"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> select instance_name from v$instance;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
INSTANCE_NAME<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
----------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
TEST1<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> shutdown immediate;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> select instance_name from v$instance;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
INSTANCE_NAME<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
----------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
TEST2<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> shutdown immediate;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Step3 Mount the first instance and update the cluster parameter.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 53.7pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 53.7pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 287.75pt;" valign="top" width="384"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> select instance_name
from v$instance;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
INSTANCE_NAME<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
----------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
TEST1<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> startup mount<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Total System Global Area
524288000 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Fixed Size
2926320 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Variable Size
436209936 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database Buffers
79691776 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Redo Buffers
5459968 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database mounted.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> sho parameter cluster_data<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
NAME
TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
cluster_database
boolean TRUE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
cluster_database_instances
integer 2<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> alter system set
cluster_database=FALSE scope=spfile;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
System altered.</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><b style="background-color: yellow; color: red;">Step 3</b> Mount the first instance in restrict mode and drop the database.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 305.75pt;" valign="top" width="408"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> shutdown immediate</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORA-01109: database not open</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database dismounted.</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORACLE instance shut down.</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> startup mount restrict<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Total System Global Area
524288000 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Fixed Size 2926320 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Variable Size
415238416 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database Buffers
100663296 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Redo Buffers
5459968 bytes<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database mounted.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> sho parameter cluster_data<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
NAME
TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
------------------------------------ -----------
------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
cluster_database
boolean FALSE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
cluster_database_instances
integer 1<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL> drop database;<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Database dropped.<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Monitor the alert log while dropping the database</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><b style="background-color: yellow; color: red;">Step 4</b> Update the OCR</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 53.7pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 53.7pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 377.75pt;" valign="top" width="504"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ srvctl status database -d TEST<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Instance TEST1 is not running on node usbenhost01<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Instance TEST2 is not running on node usbenhost02<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ srvctl remove database -d TEST<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Remove the database TEST? (y/[n]) y<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ </div>
</td>
</tr>
</tbody></table>
<br />
<b style="background-color: yellow; color: red;">Step 5</b> Verify the instance.</div>
<div>
<br /></div>
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 53.7pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 53.7pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 377.75pt;" valign="top" width="504"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ srvctl status database -d TEST<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
PRCD-1120 : The resource for database TEST could not be found.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
PRCR-1001 : Resource ora.test.db does not exist<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ crsctl
status resource -t<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Name Target State
Server State
details
<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Local Resources<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.DATA.dg<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.TEST.dg<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.asm<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01
Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02
Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.net1.network<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.ons<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Cluster Resources<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER_SCAN1.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER_SCAN2.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.LISTENER_SCAN3.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.MGMTLSNR<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 169.254.59.131
192.
1<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
68.1.101,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.cvu<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.mgmtdb<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 Open,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.oc4j<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.scan1.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE
ONLINE usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.scan2.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.scan3.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.usben.db<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01
Open,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
2 ONLINE ONLINE
usbenhost02 Open,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.usbenhost01.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost01 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ora.usbenhost02.vip<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
1 ONLINE ONLINE
usbenhost02 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost01 ~]$ </div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<o:p><b style="background-color: yellow; color: red;">Step 6</b> Go to OS and clean if there is any files related to the database. Go to ASM disk and clean if there is any relevant files to this database.</o:p></div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-74057286413894375302016-10-16T18:45:00.001-07:002016-10-16T18:52:57.200-07:00ORA-27303: additional information: startup egid = 54322 (dba), current egid = 54321 (oinstall)<div dir="ltr" style="text-align: left;" trbidi="on">
My database is Oracle12c and two node RAC database. I have standby database with two node RAC.<br />
<br />
I was getting the below error during the business hours. We were not to able connect the database. Oracle stopped taking new connections. But existing connections were fine and it did not impact the transactions.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 440.75pt;" valign="top" width="588"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost1 ~]$ sqlplus gthangavelu<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL*Plus: Release 12.1.0.2.0 Production on Fri Oct 14 15:22:15 2016<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Copyright (c) 1982, 2014, Oracle.
All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Enter password:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ERROR:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORA-27140: attach to post/wait facility failed<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORA-27300: OS system dependent operation:invalid_egid failed with
status: 1<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORA-27301: OS failure message: Operation not permitted<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORA-27302: failure occurred at: skgpwinit6<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
ORA-27303: additional information: startup egid = 54322 (dba),
current egid = 54321 (oinstall)<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Enter user-name:<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>I was able to connect the standby database. Then i have done some oracle metalink search and found that this is related to $ORACLE_HOME/bin/oracle file permission issue.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>Looked at the standby database </o:p><span style="color: red;"><b>$ORACLE_HOME/bin/oracle</b></span> file privilege. It was different than the primary database. I came to conclusion that, $ORACLE_HOME/bin/oracle file permission is the root cause for this connectivity issue.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Primary database First node Privileges :</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 72.4pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 72.4pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 292.25pt;" valign="top" width="390"><div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost1<span style="color: #1f497d;"> bin]$ pwd</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">/u01/app/oracle/product/12.1.0.2/db_1/bin</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost1<span style="color: #1f497d;"> bin]$ ls
-ltr oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="background: yellow; color: #1f497d;">-rwxr-x--x.
1 oracle oinstall 323762228 Dec 28 2014 oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost1<span style="color: #1f497d;"> bin]$</span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: #1f497d;"> </span><o:p></o:p>Primary database Second node Privileges :</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 292.25pt;" valign="top" width="390"><div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost2<span style="color: #1f497d;"> bin]$ pwd</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">/u01/app/oracle/product/12.1.0.2/db_1/bin</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost2<span style="color: #1f497d;"> bin]$ ls
-ltr oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="background: yellow; color: #1f497d;">-rwxr-x--x.
1 oracle oinstall 323762228 Dec 28 2014 oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost2<span style="color: #1f497d;"> bin]$</span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Secondary database First node Privileges :</o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 292.25pt;" valign="top" width="390"><div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost3<span style="color: #1f497d;"> bin]$
pwd</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">/u01/app/oracle/product/12.1.0.2/db_1/bin</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost3<span style="color: #1f497d;"> bin]$ ls
-ltr oracle</span></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<span style="background: lime; color: #1f497d;">-rwsr-s--x. 1
oracle dba 323762276 Feb 23 2015 oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost3<span style="color: #1f497d;"> bin]$</span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Secondary database Second node Privileges :</o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 292.25pt;" valign="top" width="390"><div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost4<span style="color: #1f497d;"> bin]$ pwd</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">/u01/app/oracle/product/12.1.0.2/db_1/bin</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost4<span style="color: #1f497d;"> bin]$ ls
-ltr oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="background: lime; color: #1f497d;">-rwsr-s--x. 1
oracle dba 323762276 Feb 23 2015 oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost4<span style="color: #1f497d;"> bin]$</span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>I changed the privilege as below in both primary nodes and able to connect the database.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 404.75pt;" valign="top" width="540"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost1 bin]$ pwd</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0.0001pt;">
/u01/app/oracle/product/12.1.0.2/db_1/bin</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost1 bin]$ ls -ltr oracle</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
-rwxr-x--x. 1 oracle dba 323762228 Dec 28 2014 oracle<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost1 bin]$ <b><span style="color: red;">chmod 6751 oracle</span></b><o:p></o:p></div>
<div class="MsoNormal">
<span style="color: #1f497d;">[oracle@</span>usbenhost1<span style="color: #1f497d;"> 1in]$ ls -ltr oracle</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="background: lime; color: #1f497d;">-rwsr-s--x. 1 oracle dba 323762276 Feb 23 2015 oracle</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost1 bin]$ sqlplus / as sysdba<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL*Plus: Release 12.1.0.2.0 Production on Fri Oct 14 17:24:33 2016<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Copyright (c) 1982, 2014, Oracle.
All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Connected to:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Advanced Analytics and Real Application Testing options<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p>
</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 404.75pt;" valign="top" width="540"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost2 bin]$ pwd</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
/u01/app/oracle/product/12.1.0.2/db_1/bin</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost2 bin]$ ls -ltr oracle</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
-rwxr-x--x. 1 oracle dba 323762228 Dec 28 2014 oracle<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost2 bin]$ <b><span style="color: red;">chmod 6751 oracle</span></b><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost2 bin]$ ls -ltr oracle<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="background-color: lime;">-rwsr-s--x. 1 oracle dba 323762228 Dec 28 2014 oracle</span><o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
[oracle@usbenhost2 bin]$ sqlplus
/ as sysdba</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL*Plus: Release 12.1.0.2.0 Production on Fri Oct 14 17:23:23 2016<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Copyright (c) 1982, 2014, Oracle.
All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Connected to:<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
Advanced Analytics and Real Application Testing options<o:p></o:p></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
SQL><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p>
</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Issue resolved now!</div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>This issue could happen when $GI_HOME/bin/oracle privilege is changed same as above. But my case, i had an issue with $ORACLE_HOME/bin/oracle privilege.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>Hope this post is helpful!</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-47951922570482085682016-03-29T19:25:00.001-07:002016-04-07T12:06:43.528-07:00Removing Node from oracle12c RAC Cluster<div dir="ltr" style="text-align: left;" trbidi="on">
In this Article, I am removing the node from existing Oracle12c Cluster. I have three node RAC and i am going to remove third node from the cluster.<br />
<br />
<span style="color: red;"><b style="background-color: yellow;">Environment :</b></span><br />
<br />
Hostnames : ractest1, ractest2, ractest3<br />
Instance : usben1, usben2, usben3<br />
DB name : usben<br />
OS : Red Hat Enterprise Linux Server release 6.4 (Santiago)<br />
DB version : 12.1.0.2.0<br />
<br />
<span style="color: red;"><b style="background-color: yellow;">Goal : </b></span>Remove the ractest3 node from the cluster.<br />
<br />
<span style="background-color: yellow;"><span style="color: red;"><b>High level steps:</b></span></span><br />
<ul style="text-align: left;">
<li>Pre Verification</li>
<li>Removing a oracle database instance</li>
<li>Removing RDBMS software</li>
<li>Removing node from cluster</li>
<li>Post Verification</li>
</ul>
<div>
<span style="background-color: yellow; color: red;">Pre Verification</span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
</div>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 342.9pt;" valign="top" width="457"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p> </o:p>[root@RACTEST1 ~]# <span style="color: red;">sudo su - oracle</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$<span style="color: red;"> . oraenv</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE_SID = [oracle] ? +ASM1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The Oracle base has been set to /grid/app/oracle</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">olsnodes</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest2</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest3</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">crsctl get cluster mode status</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Cluster is running in "standard" mode</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">srvctl config gns</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRKF-1110 : Neither GNS server nor GNS client is configured on this cluster</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">oifcfg getif</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
eth0 192.168.56.0 global public</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
eth1 192.168.1.0 global cluster_interconnect</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">crsctl get node role config</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest1' configured role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$<span style="color: red;"> asmcmd showclustermode</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASM cluster : Flex mode disabled</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">asmcmd showclusterstate</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Normal</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">srvctl status asm -detail</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASM is running on ractest2,ractest3,ractest1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASM is enabled.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <b> </b><span style="color: red;">crsctl get node role config -all</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest1' configured role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest2' configured role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest3' configured role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;"><b> </b>crsctl get node role status -all</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest1' active role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest2' active role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node 'ractest3' active role is 'hub'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">crsctl status res -t</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Name Target State Server State details </div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Local Resources</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.DATA.dg</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER.lsnr</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OFFLINE OFFLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.TEST.dg</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.VOTE.dg</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.VOTE1.dg</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE OFFLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE OFFLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE OFFLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.VOTE2.dg</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.asm</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 Started,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 Started,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 Started,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.net1.network</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.ons</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Cluster Resources</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER_SCAN1.lsnr</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER_SCAN2.lsnr</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER_SCAN3.lsnr</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.MGMTLSNR</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 169.254.66.3 192.16 8</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
.1.101,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.cvu</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.mgmtdb</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 OFFLINE OFFLINE STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.oc4j</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.ractest1.vip</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.ractest2.vip</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.scan1.vip</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest2 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.scan2.vip</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest3 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.scan3.vip</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.usben.db</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE ractest1 Open,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
2 ONLINE ONLINE ractest2 Open,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
3 ONLINE ONLINE ractest3 Open,STABLE</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ exit</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
logout</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]#<span style="color: red;"> olsnodes -s</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest1 Active</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest2 Active</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest3 Active</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]# <span style="color: red;">crsctl query css votedisk</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## STATE File Universal Id File Name Disk group</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
-- ----- ----------------- --------- ---------</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1. ONLINE 5d17422445e54f1abf131f15b967c07f (ORCL:VOTE2) [VOTE2]</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Located 1 voting disk(s).</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]# <span style="color: red;">ocrcheck</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Status of Oracle Cluster Registry is as follows :</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Version : 4</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total space (kbytes) : 409568</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Used space (kbytes) : 1752</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Available space (kbytes) : 407816</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ID : 540510110</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Device/File Name : +DATA</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Device/File integrity check succeeded</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Device/File not configured</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Device/File not configured</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Device/File not configured</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Device/File not configured</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Cluster registry integrity check succeeded</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Logical corruption check succeeded</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]# <span style="color: red;">srvctl status database -d usben</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben1 is running on node ractest1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben2 is running on node ractest2</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben3 is running on node ractest3</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]# <span style="color: red;">srvctl config service -d usben</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]# <span style="color: red;">srvctl status service -d usben</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]#</div>
</td></tr>
</tbody></table>
<br />
<div>
<span style="background-color: yellow; color: red;">Removing Oracle Database Instance </span></div>
<div>
<br /></div>
<div>
Login as oracle account and run the dbca in silent mode. Login the node which is remain in the cluster to remove ractest3. In this case, i can login either ractest1 or ractest2. </div>
<div>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p> </o:p>[root@RACTEST1 ~]# <span style="color: red;">sudo su - oracle</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">. oraenv</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE_SID = [oracle] ? usben1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The Oracle base has been set to /ora/app/oracle</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">which dbca</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/ora/app/oracle/product/12.1.0.1/db_1/bin/dbca</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">dbca -silent -deleteInstance -nodeList ractest3 -gdbName usben -instanceName usben3 -sysDBAUserName sys -sysDBAPassword admin123</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Deleting instance</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
2% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
6% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
13% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
20% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
26% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
33% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
40% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
46% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
53% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
60% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
66% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Completing instance management.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
100% complete</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Look at the log file "/ora/app/oracle/cfgtoollogs/dbca/usben1.log" for further details.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">cat /ora/app/oracle/cfgtoollogs/dbca/usben1.log</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The Database Configuration Assistant will delete the Oracle instance and its associated OFA directory structure. All information about this instance will be deleted.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Do you want to proceed?</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Deleting instance</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 1%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 2%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 6%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 13%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 20%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 26%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 33%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 40%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 46%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 53%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 60%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 66%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Completing instance management.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DBCA_PROGRESS : 100%</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance "usben3" deleted successfully from node "ractest3".</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$</div>
<div>
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ <span style="color: red;">srvctl status database -d usben</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben1 is running on node ractest1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben2 is running on node ractest2</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$<span style="color: red;"> srvctl config database -d usben -v</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database unique name: usben</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database name:</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle home: /ora/app/oracle/product/12.1.0.1/db_1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle user: oracle</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Spfile: +DATA/USBEN/PARAMETERFILE/spfileusben.ora</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Password file: +DATA/USBEN/PASSWORDFILE/orapwusben</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Domain: localdomain</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Start options: open</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Stop options: immediate</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database role: PRIMARY</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Management policy: AUTOMATIC</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Server pools:</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Disk Groups: DATA</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Mount point paths:</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Services:</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Type: RAC</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Start concurrency:</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Stop concurrency:</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OSDBA group: dba</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OSOPER group: oper</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database instances: usben1,usben2</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Configured nodes: ractest1,ractest2</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database is administrator managed</div>
</td>
</tr>
</tbody></table>
</div>
<div>
<br />
Check the redo log thread and UNDO tablespace for removed instance. <span style="font-family: "times new roman" , serif; font-size: 12pt;"> </span></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 12pt;">sys@usben1> </span><span style="font-family: "times new roman" , serif; font-size: 12pt;"><span style="color: red;">select inst_id, instance_name, status,</span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "times new roman" , "serif"; font-size: 12.0pt;">to_char(startup_time,'DD-MON-YYYY
HH24:MI:SS') as "START_TIME"</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "times new roman" , "serif"; font-size: 12pt;">from gv$instance order
by inst_id; 2 3</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> INST_ID INSTANCE_NAME
STATUS START_TIME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">---------- ----------------
------------ --------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">
1 usben1 OPEN
29-MAR-2016 08:12:57<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">
2 usben2 OPEN
29-MAR-2016 09:11:19<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
sys@usben1> <span style="color: red;">select thread#,instance from v$thread;</span><br />
<br />
THREAD# INSTANCE<br />
---------- --------------------<br />
1 usben1<br />
2 usben2<br />
sys@usben1><br />
<div>
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">sys@usben1> <span style="color: red;">select group# from v$log where thread# = 3;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">no rows selected<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">sys@usben1> <span style="color: red;">select ablespace_name from dba_tablespaces where
tablespace_name like '%UNDO%';</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">TABLESPACE_NAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">UNDOTBS1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">UNDOTBS2<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">2 rows selected.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">sys@usben1> exit</span></div>
</td></tr>
</tbody></table>
<div>
<br />
All undo and redo objects are cleaned for ractest3,<br />
<br />
Check the Listener configuration.</div>
<div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ~]$ <span style="color: red;">srvctl config listener -a</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Name: LISTENER<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Type: Database Listener<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Network: 1, Owner: oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Home: <crs home=""><o:p></o:p></crs></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> /grid/app/12.1.0/grid on
node(s) ractest3,ractest2,ractest1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">End points: TCP:1521<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Listener is enabled.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Listener is individually enabled
on nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Listener is individually disabled
on nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ~]$<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
</div>
<div>
Oracle database instance uben3 is successfully removed on ractest3 node! Let us remove the RDBMS software on ractest3 node.</div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;">Removing RDBMS Software</span><span style="background-color: white;"> </span><span style="background-color: white;">Login the node which is to be deleted and run the below commands.</span><br />
<span style="background-color: white;">The below command removes the ractest1 and ractest2 node on the nodelist from ractest3.</span></div>
<div>
<br /></div>
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 378.9pt;" valign="top" width="505"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 ~]$ <span style="color: red;">. oraenv</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE_SID = [oracle] ? usben3</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The Oracle base has been set to /ora/app/oracle</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 ~]$ <span style="color: red;">echo $ORACLE_HOME</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/ora/app/oracle/product/12.1.0.1/db_1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 ~]$ <span style="color: red;">cd $ORACLE_HOME/oui/bin</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 bin]$ <span style="color: red;">pwd</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/ora/app/oracle/product/12.1.0.1/db_1/oui/bin</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 bin]$<span style="color: red;"> ./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={ractest3}" -local</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Oracle Universal Installer...</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking swap space: must be greater than 500 MB. Actual 3997 MB Passed</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The inventory pointer is located at /etc/oraInst.loc</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'UpdateNodeList' was successful.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 bin]$</div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Run the following command in ractest3 node to deinstall the oracle home from ractest3.</div>
<div class="MsoNormal">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 378.9pt;" valign="top" width="505"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 bin]$ <span style="color: red;">cd $ORACLE_HOME/deinstall</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 deinstall]$ <span style="color: red;">pwd</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/ora/app/oracle/product/12.1.0.1/db_1/deinstall</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 deinstall]$ <span style="color: red;">./deinstall -local</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking for required files and bootstrapping ...</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Please wait ...</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Location of logs /grid/app/oraInventory/logs/</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
############ ORACLE DECONFIG TOOL START ############</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
######################### DECONFIG CHECK OPERATION START ####################### ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## [START] Install check configuration ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking for existence of the Oracle home location /ora/app/oracle/product/12.1. 0.1/db_1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Home type selected for deinstall is: Oracle Real Application Cluster Data base</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Base selected for deinstall is: /ora/app/oracle</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking for existence of central inventory location /grid/app/oraInventory</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking for existence of the Oracle Grid Infrastructure home /grid/app/12.1.0/g rid</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The following nodes are part of this cluster: ractest3,ractest2,ractest1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking for sufficient temp space availability on node(s) : 'RACTEST3'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## [END] Install check configuration ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Network Configuration check config START</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Network de-configuration trace file location: /grid/app/oraInventory/logs/netdc_ check2016-03-29_12-10-22-PM.log</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Network Configuration check config END</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Check Configuration START</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database de-configuration trace file location: /grid/app/oraInventory/logs/datab asedc_check2016-03-29_12-10-30-PM.log</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Use comma as separator when specifying list of values as input</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Specify the list of database names that are configured locally on this node for this Oracle home. Local configurations of the discovered databases will be remov ed [govinddb3,usben3]:<b> </b><span style="color: red;">Hit Enter Key</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Check Configuration END</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Configuration Manager check START</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OCM check log file location : /grid/app/oraInventory/logs//ocm_check5734.log</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Configuration Manager check END</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
######################### DECONFIG CHECK OPERATION END #########################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
####################### DECONFIG CHECK OPERATION SUMMARY #######################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Grid Infrastructure Home is: /grid/app/12.1.0/grid</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The following nodes are part of this cluster: ractest3,ractest2,ractest1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The cluster node(s) on which the Oracle home deinstallation will be performed are:RACTEST3</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Home selected for deinstall is: /ora/app/oracle/product/12.1.0.1/db_1</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Inventory Location where the Oracle home registered is: /grid/app/oraInventory</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The option -local will not modify any database configuration for this Oracle home.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking the config status for CCR</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Home exists with CCR directory, but CCR is not configured</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
CCR check is finished</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Do you want to continue (y - yes, n - no)? [n]: <b><span style="color: red;">y</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
A log of this session will be written to: '/grid/app/oraInventory/logs/deinstall_deconfig2016-03-29_00-10-13-PM.out'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Any error messages from this session will be written to: '/grid/app/oraInventory/logs/deinstall_deconfig2016-03-29_00-10-13-PM.err'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
######################## DECONFIG CLEAN OPERATION START ########################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database de-configuration trace file location: /grid/app/oraInventory/logs/databasedc_clean2016-03-29_12-17-36-PM.log</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Network Configuration clean config START</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Network de-configuration trace file location: /grid/app/oraInventory/logs/netdc_clean2016-03-29_12-17-36-PM.log</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Network Configuration clean config END</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Configuration Manager clean START</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OCM clean log file location : /grid/app/oraInventory/logs//ocm_clean5734.log</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Configuration Manager clean END</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
######################### DECONFIG CLEAN OPERATION END #########################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
####################### DECONFIG CLEAN OPERATION SUMMARY #######################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Cleaning the config for CCR</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
As CCR is not configured, so skipping the cleaning of CCR configuration</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
CCR clean is finished</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#######################################################################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
############# ORACLE DECONFIG TOOL END #############</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Using properties file /tmp/deinstall2016-03-29_00-09-19PM/response/deinstall_2016-03-29_00-10-13-PM.rsp</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Location of logs /grid/app/oraInventory/logs/</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
############ ORACLE DEINSTALL TOOL START ############</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
####################### DEINSTALL CHECK OPERATION SUMMARY #######################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
A log of this session will be written to: '/grid/app/oraInventory/logs/deinstall_deconfig2016-03-29_00-10-13-PM.out'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Any error messages from this session will be written to: '/grid/app/oraInventory/logs/deinstall_deconfig2016-03-29_00-10-13-PM.err'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
######################## DEINSTALL CLEAN OPERATION START ########################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## [START] Preparing for Deinstall ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting LOCAL_NODE to RACTEST3</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting CLUSTER_NODES to RACTEST3</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting CRS_HOME to false</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting oracle.installer.invPtrLoc to /tmp/deinstall2016-03-29_00-09-19PM/oraInst.loc</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting oracle.installer.local to true</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## [END] Preparing for Deinstall ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting the force flag to false</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Setting the force flag to cleanup the Oracle Base</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Universal Installer clean START</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Detach Oracle home '/ora/app/oracle/product/12.1.0.1/db_1' from the central inventory on the local node : Done</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Delete directory '/ora/app/oracle/product/12.1.0.1/db_1' on the local node : Done</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The Oracle Base directory '/ora/app/oracle' will not be removed on local node. The directory is not empty.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Universal Installer cleanup was successful.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Universal Installer clean END</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## [START] Oracle install clean ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Clean install operation removing temporary directory '/tmp/deinstall2016-03-29_00-09-19PM' on node 'RACTEST3'</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
## [END] Oracle install clean ##</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
######################### DEINSTALL CLEAN OPERATION END #########################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Successfully detached Oracle home '/ora/app/oracle/product/12.1.0.1/db_1' from the central inventory on the local node.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Successfully deleted directory '/ora/app/oracle/product/12.1.0.1/db_1' on the local node.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Universal Installer cleanup was successful.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle deinstall tool successfully cleaned up temporary directories.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#######################################################################</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
############# ORACLE DEINSTALL TOOL END #############</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST3 deinstall]$</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>Run the below command in any cluster node that remain in the cluster. For my case, it should be either ractest1 or ractest2. This will remove the ractest3 on node list on ractest1 and ractest2.</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 378.9pt;" valign="top" width="505"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p> </o:p>[oracle@RACTEST1 ~]$ <span style="color: red;">. oraenv</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE_SID = [oracle] ? <span style="color: red;">usben1</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The Oracle base has been set to /ora/app/oracle</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$<span style="color: red;"><b> </b>cd $ORACLE_HOME/oui/bin</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 bin]$ <span style="color: red;">pwd</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/ora/app/oracle/product/12.1.0.1/db_1/oui/bin</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 bin]$ <span style="color: red;"><b> </b>./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_NODES={ractest1,ractest2}"</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Oracle Universal Installer...</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking swap space: must be greater than 500 MB. Actual 3993 MB Passed</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The inventory pointer is located at /etc/oraInst.loc</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'UpdateNodeList' was successful.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 bin]$</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td></tr>
</tbody></table>
<br />
Now verify the inventory and make sure ractest3 is completely removed. Run the below command in any cluster node that remain in the cluster. For my case, it should be either ractest1 or ractest2.<br />
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLU6XdqhnmMs-kc9YsNZPsVpGfrbvTvUHqU1ZX599L2vROBsOdlgb-ODKD5IdBOS9gZtd23AOzVc7ELM5ZptMgpIbY2U536vTK5UhV9E_OZv2wAM8qKMbuMhFe5vWTE4aw6RnaXrkC9MI/s1600/ractest1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="292" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLU6XdqhnmMs-kc9YsNZPsVpGfrbvTvUHqU1ZX599L2vROBsOdlgb-ODKD5IdBOS9gZtd23AOzVc7ELM5ZptMgpIbY2U536vTK5UhV9E_OZv2wAM8qKMbuMhFe5vWTE4aw6RnaXrkC9MI/s400/ractest1.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
</div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<br /></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmhmYOGpNQ5yf26Can9DFOuynQdhOQCG5KC76EsHhh8rxh8oc3VTZby8_S7vIhK9rXgMHWAB4jbISsqlNru34h8XzX3xrR3zX0hpJ37I2WwInMefMci1PEAKZvQKsZgAow_wbzkdAGjFc/s1600/ractest2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="285" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmhmYOGpNQ5yf26Can9DFOuynQdhOQCG5KC76EsHhh8rxh8oc3VTZby8_S7vIhK9rXgMHWAB4jbISsqlNru34h8XzX3xrR3zX0hpJ37I2WwInMefMci1PEAKZvQKsZgAow_wbzkdAGjFc/s400/ractest2.png" width="400" /></a></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">I ran on both the node and ractest3 is removed from the inventory.</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<span style="background-color: white;">Run the below command in ractest3.</span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9m-9iA-cuWX0Q3rfhZF1LC_mamqw6rZkOAQ8z1B2pFl-UbRx0UhiZBpVy-cWDdNFVMvLPQd3GMfCwdn0GUQuab40oTAK-A1ANnDr7AoIeKhkUmcwYnxj-uPWcc7XWRtIlwhWRE0H6qOo/s1600/ractest3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="297" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9m-9iA-cuWX0Q3rfhZF1LC_mamqw6rZkOAQ8z1B2pFl-UbRx0UhiZBpVy-cWDdNFVMvLPQd3GMfCwdn0GUQuab40oTAK-A1ANnDr7AoIeKhkUmcwYnxj-uPWcc7XWRtIlwhWRE0H6qOo/s400/ractest3.png" width="400" /></a></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red;"><br /></span></div>
<div>
<br />
<br /></div>
<div>
Oracle home info is completely removed on ractest3 node. It shows that RDBMS software is completely removed on the ractest3 node.</div>
<div>
<br /></div>
<div>
<span style="background-color: yellow; color: red;">Removing Node from the Cluster</span></div>
<div>
<br /></div>
<div>
Run the below command and make sure the node we want to delete is active and it is pinned.</div>
<div>
<br /></div>
<div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]# <span style="color: red;">. oraenv</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ORACLE_SID = [root] ? <span style="color: red;">+ASM1</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The Oracle base has been set to
/grid/app/oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]# <span style="color: red;">pwd</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">/root<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]#<span style="color: red;"> olsnodes -s -t</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest1 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest2 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest3 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]#<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST3 ~]# <span style="color: red;">. oraenv</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ORACLE_SID = [+ASM3] ?<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The Oracle base remains unchanged
with value /grid/app/oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST3 ~]# <span style="color: red;">olsnodes -s -t</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest1 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest2 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest3 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST3 ~]#<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
</div>
<div>
<br /></div>
<div>
Disable the Oracle Clusterware applications and daemons on ractest3</div>
<div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST3 install]#<span style="color: red;"> cd
$ORACLE_HOME/crs/install</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST3 install]#
<span style="color: red;">./rootcrs.pl -deconfig -force</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Using configuration parameter
file: ./crsconfig_params<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Network 1 exists<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Subnet IPv4:
192.168.56.0/255.255.255.0/eth0, static<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Subnet IPv6:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Ping Targets:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Network is enabled<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Network is individually enabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Network is individually disabled
on nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP exists: network number 1,
hosting node ractest1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP Name: RACTEST1-vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP IPv4 Address: 192.168.56.113<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP IPv6 Address:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP is enabled.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP is individually enabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP is individually disabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP exists: network number 1,
hosting node ractest2<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP Name: RACTEST2-vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP IPv4 Address: 192.168.56.114<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP IPv6 Address:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP is enabled.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP is individually enabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">VIP is individually disabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ONS exists: Local port 6100,
remote port 6200, EM port 2016, Uses SSL false<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ONS is enabled<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ONS is individually enabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ONS is individually disabled on
nodes:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">PRKO-2313 : A VIP named ractest3
does not exist.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2791: Starting shutdown of
Oracle High Availability Services-managed resources on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.crsd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2790: Starting shutdown of
Cluster Ready Services-managed resources on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.DATA.dg' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.TEST.dg' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.VOTE2.dg' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.DATA.dg' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.VOTE2.dg'
on 'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.TEST.dg' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.VOTE.dg' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.VOTE.dg' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.asm' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.asm' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2792: Shutdown of Cluster
Ready Services-managed resources on 'ractest3' has completed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.crsd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.ctssd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.evmd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.storage' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.mdnsd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.gpnpd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.drivers.acfs' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.storage' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.asm' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of
'ora.drivers.acfs' on 'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.ctssd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.gpnpd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.evmd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.mdnsd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.asm' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.cluster_interconnect.haip' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of
'ora.cluster_interconnect.haip' on 'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.cssd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.cssd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.crf' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.crf' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2673: Attempting to stop
'ora.gipcd' on 'ractest3'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2677: Stop of 'ora.gipcd' on
'ractest3' succeeded<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-2793: Shutdown of Oracle High
Availability Services-managed resources on 'ractest3' has completed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-4133: Oracle High Availability
Services has been stopped.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">2016/03/29 14:17:07 CLSRSC-4006:
Removing Oracle Trace File Analyzer (TFA) Collector.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">2016/03/29 14:17:31 CLSRSC-4007:
Successfully removed Oracle Trace File Analyzer (TFA) Collector.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">error: package cvuqdisk is not
installed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">2016/03/29 14:17:32 CLSRSC-336:
Successfully deconfigured Oracle Clusterware stack on this node<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST3 install]#<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Run the following command as root to update the Clusterware configuration to delete the node from the cluster.</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>
</o:p></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]# <span style="color: red;">crsctl delete
node -n ractest3</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS-4661: Node ractest3
successfully deleted.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]# <span style="color: red;">olsnodes -s -t</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest1 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest2 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[root@RACTEST1 ~]#<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<br />
As the Oracle Grid owner, run the below command on the node being removed to update the inventory.</div>
<div>
<br /></div>
<div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: 'times new roman', serif; font-size: 12pt;">[root@RACTEST3 bin]# </span><span style="color: red; font-family: 'times new roman', serif; font-size: 12pt;">sudo su -
oracle</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST3 ~]$ <span style="color: red;">. oraenv</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ORACLE_SID = [oracle] ? +ASM3<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The Oracle base has been set to
/grid/app/oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST3 ~]$ <span style="color: red;">cd
$ORACLE_HOME/oui/bin</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST3 bin]$ <span style="color: red;">echo
$ORACLE_HOME</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">/grid/app/12.1.0/grid<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST3 bin]$<span style="color: red;">
./runInstaller -updateNodeList </span><span style="color: red;">ORACLE_HOME=/grid/app/12.1.0/grid "CLUSTER_NODES={ractest3}"
CRS=TRUE -silent -local</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Starting Oracle Universal
Installer...<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Checking swap space: must be
greater than 500 MB. Actual 3999
MB Passed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The inventory pointer is located
at /etc/oraInst.loc<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">'UpdateNodeList' was successful.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST3 bin]$<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
As the Oracle Grid owner, run the deinstall command from the node being removed to delete the Oracle Grid Infrastructure software.</div>
<div>
<br /></div>
<div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12pt;">[root@RACTEST3 bin]# <span style="color: red;">sudo su - oracle</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12pt;">[oracle@RACTEST3 ~]$ <span style="color: red;">. oraenv</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12pt;">ORACLE_SID = [oracle] ? +ASM3<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12pt;">The Oracle base has been set to /grid/app/oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 12pt;">[oracle@RACTEST3 ~]$ </span><span style="color: red; font-family: "times new roman" , serif; font-size: 12pt;">cd
/grid/app/12.1.0/grid/deinstall/</span></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST3 ~]$<span style="color: red;"> ./deinstall
-local</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Checking for required files and
bootstrapping ...<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Please wait ...<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Location of logs /grid/app/oraInventory/logs/<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
As a Grid owner, Execute the runInstaller(without the -local option) from one of the node which remains on the cluster. This is to update the inventories with a list of the nodes that are to remain in the cluster. </div>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ~]$ <span style="color: red;">. oraenv</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ORACLE_SID = [+ASM1] ?<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The Oracle base remains unchanged
with value /grid/app/oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ~]$<span style="color: red;"> cd
$ORACLE_HOME/oui/bin</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 bin]$
<span style="color: red;">./runInstaller -updateNodeList </span><span style="color: red;">ORACLE_HOME=/grid/app/12.1.0/grid
"CLUSTER_NODES={ractest1.ractest2}" CRS=TRUE -silent -local</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Starting Oracle Universal
Installer...<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Checking swap space: must be
greater than 500 MB. Actual 3993
MB Passed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The inventory pointer is located
at /etc/oraInst.loc<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">'UpdateNodeList' was successful.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 bin]$<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><span style="background-color: yellow; color: red;"><b><br /></b></span></o:p></div>
<div class="MsoNormal">
<o:p><span style="background-color: yellow; color: red;">Post Verification</span></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Check the inventory on either ractest1 or ractest2 and make sure, ractest3 is completely gone.</div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSU5EA5__CACpjx03H80Hfs0ujPkbeDse2ZwY117fYpZtUBsyUVQcdLLOCMUO31cCuKw3s64FiVFWl0bCVs8aNHgHip41o7J_o8KeLicow5ddiQe1XJba8JsjmWkBk2ZRe66Hj43hz90/s1600/xx.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="296" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWSU5EA5__CACpjx03H80Hfs0ujPkbeDse2ZwY117fYpZtUBsyUVQcdLLOCMUO31cCuKw3s64FiVFWl0bCVs8aNHgHip41o7J_o8KeLicow5ddiQe1XJba8JsjmWkBk2ZRe66Hj43hz90/s400/xx.png" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br />
Run the cluvfy command to perform the post check for node removal.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1
ContentsXML]$ <span style="color: red;"> cluvfy stage -post
nodedel -n ractest3 -verbose</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Performing post-checks for node
removal<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Checking CRS integrity...<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">The Oracle Clusterware is healthy
on node "ractest1"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">CRS integrity check passed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Clusterware version consistency
passed.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Result:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Node removal check passed<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Post-check for node removal was
successful.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ContentsXML]$<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Check the cluster resource and local resource and make sure, ractest3 is not appearing.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1
ContentsXML]$<span style="color: red;"><b> </b>olsnodes -s -t</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest1 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ractest2 Active Unpinned<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ContentsXML]$<span style="color: red;">
crsctl status res -t</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">--------------------------------------------------------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Name Target State
Server State
details<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">--------------------------------------------------------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Local Resources<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">--------------------------------------------------------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.DATA.dg<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.LISTENER.lsnr<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE
OFFLINE ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.TEST.dg<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.VOTE.dg<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.VOTE1.dg<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE OFFLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE
OFFLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.VOTE2.dg<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.asm<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1
Started,STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2
Started,STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.net1.network<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.ons<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> ONLINE ONLINE
ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">--------------------------------------------------------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">Cluster Resources<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">--------------------------------------------------------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.LISTENER_SCAN1.lsnr<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.LISTENER_SCAN2.lsnr<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.LISTENER_SCAN3.lsnr<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.MGMTLSNR<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest1 169.254.66.3 192.168<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> .1.101,STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.cvu<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.mgmtdb<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
OFFLINE OFFLINE STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.oc4j<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.ractest1.vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE INTERMEDIATE
ractest2 FAILED
OVER,STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.ractest2.vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.scan1.vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.scan2.vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest1 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.scan3.vip<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE ractest2 STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">ora.usben.db<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 1
ONLINE ONLINE
ractest1
Open,STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> 2
ONLINE ONLINE ractest2 Open,STABLE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">--------------------------------------------------------------------------------<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"> [oracle@RACTEST1 ContentsXML]$ crsctl status
res -t | grep -i ractest3<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;">[oracle@RACTEST1 ContentsXML]$<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>
</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Hope this post helps!</div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-27384145748878067382016-03-24T20:51:00.001-07:002016-03-25T07:58:58.542-07:00ORA-01017: invalid username/password; logon denied<div dir="ltr" style="text-align: left;" trbidi="on">
I was setting up standby database in RAC environment. Obviously my first step was to clone the primary database as a single instance in standby RAC node. <br />
<br />
I tried to connect the target database from auxiliary database and getting below error.<br />
<br />
Target database(RACTEST1) = Primary database<br />
Auxiliary database(RACTEST4) = The location where we clone the database.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 369.9pt;" valign="top" width="493"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 usben]$ sqlplus sys/admin123@usben as sysdba<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
SQL*Plus: Release 12.1.0.2.0 Production on Thu Mar 24 22:25:33 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1982, 2014, Oracle.
All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01017: invalid username/password; logon denied<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Enter user-name:<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Here is the tnsentry for usben</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 414.9pt;" valign="top" width="553"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben =<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
(DESCRIPTION =<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
(ADDRESS = (PROTOCOL =
TCP)(HOST = ractest1.localdomain)(PORT = 1521))<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
(CONNECT_DATA =<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
(SERVER = DEDICATED)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
(SERVICE_NAME =
usben.localdomain)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
)<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p>
</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
hmmm... It is interesting! The password is correct. Why it is failing?</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
After more research, i found the solution.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
The password file is on local file system on RAC environment. Starting Oracle12c, it should be in ASM storage centralized location.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Created the password file on ASM disk as below.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$ orapwd file='+DATA/USBEN/PASSWORDFILE/orapwusben' entries=10 dbuniquename=usben password=admin123</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;"><br /></span></div>
<div class="MsoNormal">
<span style="background-color: white;">Let me try to connect the target database again on auxiliary instance.</span></div>
<div class="MsoNormal">
<span style="background-color: white;"><br /></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 414.9pt;" valign="top" width="553"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 ~]$ sqlplus sys/admin123@usben as sysdba<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
SQL*Plus: Release 12.1.0.2.0 Production on Thu Mar 24 23:48:48 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1982, 2014, Oracle.
All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Connected to:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit
Production<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
With the Partitioning, Real Application Clusters, Automatic Storage
Management, OLAP,<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Advanced Analytics and Real Application Testing options<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
SQL><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Perfect. The issue is resolved after moving the password file to ASM disk!</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Hope this post helps!</div>
<div class="MsoNormal">
<br /></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-42565861330749659802016-03-17T10:39:00.001-07:002016-03-18T08:44:50.091-07:00Prerequisite check for Oracle12c RAC Cluster Installation<div dir="ltr" style="text-align: left;" trbidi="on">
I am about to install Oracle12c Cluster on two node RAC. I am checking all the prerequisite before i start the cluster installation. I thought, i might be helpful for others if i post the things to be checked before we start installing the cluster software.<br />
<br />
The RAC nodes are already built and ready to install the cluster. My hostnames are ractest4 & racttest5.<br />
<br />
Here is my ip info.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd8tGfsNCfcXjpXQcUS5pNqdPJkyzLvCWE4irp3rvtmPZUqU2MOFeOXf4hH3xpZNrt-zeQkqbCNEnBG2Ujg8InD14-GiglvzndLyhN0mLrZWIw3rRIZ07LSIJUiuRVz1mUwO1X-kl792M/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd8tGfsNCfcXjpXQcUS5pNqdPJkyzLvCWE4irp3rvtmPZUqU2MOFeOXf4hH3xpZNrt-zeQkqbCNEnBG2Ujg8InD14-GiglvzndLyhN0mLrZWIw3rRIZ07LSIJUiuRVz1mUwO1X-kl792M/s400/1.png" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b>Step 1 :</b></span> Make sure you have either root password or Oracle account with sudo to root privileges to install cluster software. It ask to enter the password in the middle of the installation. I carry root password for my installation.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3IpR2ZCD9rmiL_Rx7m-eGmMiR2oNVXvUEsJBjk7AqnNqIWekzc3yFynpw4Brjiqx4Jj5IIo0tQfqeU-3tYKCXPoanJevviqJzF9cOtqUtn9KT5tProDHZjZk6-D5CFI_VnvEFg1w00-w/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3IpR2ZCD9rmiL_Rx7m-eGmMiR2oNVXvUEsJBjk7AqnNqIWekzc3yFynpw4Brjiqx4Jj5IIo0tQfqeU-3tYKCXPoanJevviqJzF9cOtqUtn9KT5tProDHZjZk6-D5CFI_VnvEFg1w00-w/s400/1.png" width="400" /></a></div>
<br />
<br />
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b><br /></b></span><br />
<span style="background-color: yellow; color: red;"><b>Step 2 :</b></span> Make sure you are able to ping public ip and private ip between two nodes.<br />
<br />
<b>Public IP </b><br />
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$ ping 192.168.56.212<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PING 192.168.56.212 (192.168.56.212) 56(84) bytes of data.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.212: icmp_seq=1 ttl=64 time=1.49 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.212: icmp_seq=2 ttl=64 time=0.416 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.212: icmp_seq=3 ttl=64 time=0.411 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.212: icmp_seq=4 ttl=64 time=0.479 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
^C<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--- 192.168.56.212 ping statistics ---<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
4 packets transmitted, 4 received, 0% packet loss, time 3362ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
rtt min/avg/max/mdev = 0.411/0.699/1.493/0.459 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 ~]# ping
192.168.56.211<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PING 192.168.56.211 (192.168.56.211) 56(84) bytes of data.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.211: icmp_seq=1 ttl=64 time=0.324 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.211: icmp_seq=2 ttl=64 time=0.425 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.211: icmp_seq=3 ttl=64 time=0.468 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.56.211: icmp_seq=4 ttl=64 time=0.436 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
^C<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--- 192.168.56.211 ping statistics ---<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
4 packets transmitted, 4 received, 0% packet loss, time 3469ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
rtt min/avg/max/mdev = 0.324/0.413/0.468/0.055 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 ~]#<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><b>Private IP </b></o:p></div>
</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 283.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 283.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$ ping 192.168.1.212<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PING 192.168.1.212 (192.168.1.212) 56(84) bytes of data.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.212: icmp_seq=1 ttl=64 time=0.387 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.212: icmp_seq=2 ttl=64 time=0.403 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.212: icmp_seq=3 ttl=64 time=0.384 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.212: icmp_seq=4 ttl=64 time=0.410 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
^C<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--- 192.168.1.212 ping statistics ---<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
4 packets transmitted, 4 received, 0% packet loss, time 3245ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
rtt min/avg/max/mdev = 0.384/0.396/0.410/0.010 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 ~]# ping 192.168.1.211<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PING 192.168.1.211 (192.168.1.211) 56(84) bytes of data.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.211: icmp_seq=1 ttl=64 time=1.76 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.211: icmp_seq=2 ttl=64 time=0.443 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from 192.168.1.211: icmp_seq=3 ttl=64 time=0.348 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
^C<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--- 192.168.1.211 ping statistics ---<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
3 packets transmitted, 3 received, 0% packet loss, time 2393ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
rtt min/avg/max/mdev = 0.348/0.853/1.768/0.648 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 ~]#<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<span style="background-color: yellow; color: red;"><b>Step 3 :</b></span> Make sure you see the ASM disk on both the nodes.<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 5.45in;" valign="top" width="523"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST4 ~]# oracleasm listdisks<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DISK1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST4 ~]#<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 ~]# oracleasm listdisks<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DISK1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 ~]#<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
</div>
<span style="background-color: yellow; color: red;"><b>Step 4 :</b></span> Run the cluster verification utility. The runcluvfy.sh script found in the grid directory, the same directory where you find runinstaller. This utility helps resolve problems before running runInstaller script.<br />
<br />
runcluvfy.sh stage -pre crsinst -n ractest4,ractest5<br />
<br />
By default the CVU reports in non verbose mode by only reporting the summary of a test, we can obtain detailed output by using the -verbose argument. The -verbose argument produces detailed output of individual checks and where applicable shows results for each node in a tabular layout.<br />
<br />
runcluvfy.sh stage -pre crsinst -n ractest4,ractest5 -verbose<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 283.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 283.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 450.9pt;" valign="top" width="601"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$ ls -l runcluvfy.sh<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
-rwxr-xr-x. 1 root root 5085 Dec 20
2013 runcluvfy.sh<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$ ./runcluvfy.sh stage -pre crsinst -n
ractest4,ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Performing pre-checks for cluster services setup<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking node reachability...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node reachability check passed from node "ractest4"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking user equivalence...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRVG-2019 : Check for equivalence of user "oracle" from
node "ractest4" to node "ractest5" failed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRKC-1044 : Failed to check remote command execution setup for node
ractest5 using shells /usr/bin/ssh and /usr/bin/rsh<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
File "/usr/bin/rsh" does not exist on node
"ractest5"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
No RSA host key is known for ractest5 and you have requested strict
checking.Host key verification failed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRVG-2019 : Check for equivalence of user "oracle" from
node "ractest4" to node "ractest4" failed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRKC-1044 : Failed to check remote command execution setup for node
ractest4 using shells /usr/bin/ssh and /usr/bin/rsh<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
File "/usr/bin/rsh" does not exist on node
"ractest4"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
No RSA host key is known for ractest4 and you have requested strict
checking.Host key verification failed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User equivalence unavailable on all the specified nodes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Verification cannot proceed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Pre-check for cluster services setup was unsuccessful on all the
nodes.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>It seems ssh is not setup between two nodes. Let me setup the ssh. </o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><span style="background-color: yellow; color: red;"><b>Step 5 :</b></span> Setup the ssh between two nodes.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>Login to sshsetup directory and run the below commands. My sshsetup location is </o:p>/backup/software/cluster/grid/sshsetup</div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<span style="background-color: yellow;">./sshUserSetup.sh -user oracle -hosts "ractest4 ractest5" -noPromptPassphrase </span></div>
<div>
<br /></div>
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 175.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 175.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 450.9pt;" valign="top" width="601"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 sshsetup]$ ./sshUserSetup.sh -user oracle -hosts
"ractest4 ractest5" -noPromptPassphrase<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The output of this script is also logged into
/tmp/sshUserSetup_2016-03-17-09-19-03.log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Hosts are ractest4 ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
user is oracle<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Platform:- Linux<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking if the remote hosts are reachable<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PING RACTEST4.localdomain (192.168.56.211) 56(84) bytes of data.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST4.localdomain (192.168.56.211): icmp_seq=1
ttl=64 time=0.012 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST4.localdomain (192.168.56.211): icmp_seq=2
ttl=64 time=0.032 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST4.localdomain (192.168.56.211): icmp_seq=3
ttl=64 time=0.029 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST4.localdomain (192.168.56.211): icmp_seq=4
ttl=64 time=0.030 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST4.localdomain (192.168.56.211): icmp_seq=5
ttl=64 time=0.029 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--- RACTEST4.localdomain ping statistics ---<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
5 packets transmitted, 5 received, 0% packet loss, time 3999ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
rtt min/avg/max/mdev = 0.012/0.026/0.032/0.008 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PING RACTEST5.localdomain (192.168.56.212) 56(84) bytes of data.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST5.localdomain (192.168.56.212): icmp_seq=1
ttl=64 time=0.382 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST5.localdomain (192.168.56.212): icmp_seq=2
ttl=64 time=0.407 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST5.localdomain (192.168.56.212): icmp_seq=3
ttl=64 time=0.371 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST5.localdomain (192.168.56.212): icmp_seq=4
ttl=64 time=0.418 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
64 bytes from RACTEST5.localdomain (192.168.56.212): icmp_seq=5
ttl=64 time=0.416 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--- RACTEST5.localdomain ping statistics ---<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
5 packets transmitted, 5 received, 0% packet loss, time 4001ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
rtt min/avg/max/mdev = 0.371/0.398/0.418/0.031 ms<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Remote host reachability check succeeded.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The following hosts are reachable: ractest4 ractest5.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The following hosts are not reachable: .<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
All hosts are reachable. Proceeding further...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
firsthost ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
numhosts 2<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The script will setup SSH connectivity from the host
RACTEST4.localdomain to all<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
the remote hosts. After the script is executed, the user can use SSH
to run<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
commands on the remote hosts or copy files between this host
RACTEST4.localdomain<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
and the remote hosts without being prompted for passwords or
confirmations.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NOTE 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
As part of the setup procedure, this script will use ssh and scp to
copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
files between the local host and the remote hosts. Since the script
does not<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
store passwords, you may be prompted for the passwords during the
execution of<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
the script whenever ssh or scp is invoked.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NOTE 2:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
AS PER SSH REQUIREMENTS, THIS SCRIPT WILL SECURE THE USER HOME DIRECTORY<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
AND THE .ssh DIRECTORY BY REVOKING GROUP AND WORLD WRITE PRIVILEDGES
TO THESE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
directories.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Do you want to continue and let the script make the above mentioned
changes (yes/no)?<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
yes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The user chose yes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User chose to skip passphrase related questions.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Creating .ssh directory on local host, if not present already<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Creating authorized_keys file on local host<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Changing permissions on authorized_keys to 644 on local host<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Creating known_hosts file on local host<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Changing permissions on known_hosts to 644 on local host<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Creating config file on local host<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
If a config file exists already at /home/oracle/.ssh/config, it would
be backed up to /home/oracle/.ssh/config.backup.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Removing old private/public keys on local host<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Running SSH keygen on local host with empty passphrase<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Generating public/private rsa key pair.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Your identification has been saved in /home/oracle/.ssh/id_rsa.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The key fingerprint is:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
94:de:17:5e:0e:08:fb:3f:eb:6f:f8:0f:3f:3f:6e:f2 oracle@RACTEST4.localdomain<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The key's randomart image is:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+--[ RSA 1024]----+<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| . |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| + . |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| + . o . |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| o o . = |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| S o o . |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| o |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| o.. |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| .+.* |<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
| .o+BEB|<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+-----------------+<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Creating .ssh directory and setting permissions on remote host
ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
THE SCRIPT WOULD ALSO BE REVOKING WRITE PERMISSIONS FOR group AND
others ON THE HOME DIRECTORY FOR oracle. THIS IS AN SSH REQUIREMENT.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The script would create ~oracle/.ssh/config file on remote host
ractest4. If a config file exists already at ~oracle/.ssh/config, it would be
backed up to ~oracle/.ssh/config.backup.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The user may be prompted for a password here since the script would
be running SSH on host ractest4.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Warning: Permanently added 'ractest4,192.168.56.211' (RSA) to the
list of known hosts.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
oracle@ractest4's password:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Done with creating .ssh directory and setting permissions on remote
host ractest4.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Creating .ssh directory and setting permissions on remote host
ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
THE SCRIPT WOULD ALSO BE REVOKING WRITE PERMISSIONS FOR group AND
others ON THE HOME DIRECTORY FOR oracle. THIS IS AN SSH REQUIREMENT.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The script would create ~oracle/.ssh/config file on remote host
ractest5. If a config file exists already at ~oracle/.ssh/config, it would be
backed up to ~oracle/.ssh/config.backup.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The user may be prompted for a password here since the script would
be running SSH on host ractest5.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Warning: Permanently added 'ractest5,192.168.56.212' (RSA) to the
list of known hosts.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
oracle@ractest5's password:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Done with creating .ssh directory and setting permissions on remote
host ractest5.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copying local host public key to the remote host ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The user may be prompted for a password or passphrase here since the
script would be using SCP for host ractest4.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
oracle@ractest4's password:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Done copying local host public key to the remote host ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copying local host public key to the remote host ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The user may be prompted for a password or passphrase here since the
script would be using SCP for host ractest5.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
oracle@ractest5's password:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Done copying local host public key to the remote host ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cat: /home/oracle/.ssh/known_hosts.tmp: No such file or directory<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cat: /home/oracle/.ssh/authorized_keys.tmp: No such file or directory<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
SSH setup is complete.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Verifying SSH setup<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
===================<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The script will now run the date command on the remote nodes using
ssh<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
to verify if ssh is setup correctly. IF THE SETUP IS CORRECTLY SETUP,<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
THERE SHOULD BE NO OUTPUT OTHER THAN THE DATE AND SSH SHOULD NOT ASK
FOR<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PASSWORDS. If you see any output other than date or are prompted for
the<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
password, ssh is not setup correctly and you will need to resolve the<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
issue and set up ssh again.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The possible causes for failure could be:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1. The server settings in /etc/ssh/sshd_config file do not allow ssh<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
for user oracle.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
2. The server may have disabled public key based authentication.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
3. The client public key on the server may be outdated.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
4. ~oracle or ~oracle/.ssh on the remote host may not be owned by
oracle.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
5. User may not have passed -shared option for shared remote users or<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
may be passing the -shared option for non-shared remote users.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
6. If there is output in addition to the date, but no password is
asked,<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
it may be a security alert shown as part of company policy. Append
the<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
additional text to the <oms home="">/sysman/prov/resources/ignoreMessages.txt file.<o:p></o:p></oms></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--ractest4:--<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Running /usr/bin/ssh -x -l oracle ractest4 date to verify SSH
connectivity has been setup from local host to ractest4.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR
IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN
SUCCESSFUL. Please note that being prompted for a passphrase may be OK but
being prompted for a password is ERROR.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Thu Mar 17 09:21:15 EDT 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--ractest5:--<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Running /usr/bin/ssh -x -l oracle ractest5 date to verify SSH
connectivity has been setup from local host to ractest5.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
IF YOU SEE ANY OTHER OUTPUT BESIDES THE OUTPUT OF THE DATE COMMAND OR
IF YOU ARE PROMPTED FOR A PASSWORD HERE, IT MEANS SSH SETUP HAS NOT BEEN
SUCCESSFUL. Please note that being prompted for a passphrase may be OK but
being prompted for a password is ERROR.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Thu Mar 17 09:21:15 EDT 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
SSH verification complete.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 sshsetup]$<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: yellow; color: red;"><b>Step 6 :</b></span> Re run the runcluvfy.sh again and see any issues.</div>
</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 175.0pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0; mso-yfti-lastrow: yes;">
<td style="border: solid windowtext 1.0pt; height: 175.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 450.9pt;" valign="top" width="601"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$
./runcluvfy.sh stage -pre crsinst -n ractest4,ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Performing pre-checks for cluster services setup<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking node reachability...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node reachability check passed from node "ractest4"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking user equivalence...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User equivalence check passed for user "oracle"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking node connectivity...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking hosts config file...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Verification of the hosts config file successful<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node connectivity passed for subnet "192.168.56.0" with
node(s) ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
TCP connectivity check passed for subnet "192.168.56.0"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node connectivity passed for subnet "192.168.1.0" with
node(s) ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
TCP connectivity check passed for subnet "192.168.1.0"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Interfaces found on subnet "192.168.56.0" that are likely
candidates for VIP are:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5 eth0:192.168.56.212<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest4 eth0:192.168.56.211<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Interfaces found on subnet "192.168.1.0" that are likely
candidates for a private interconnect are:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5 <span style="color: red;"><b>eth3</b></span>:192.168.1.212<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest4 <b><span style="color: red;">eth1</span></b>:192.168.1.211<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">WARNING:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">Could not find a suitable set of interfaces with the same name for
the private interconnect</span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking subnet mask consistency...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Subnet mask consistency check passed for subnet
"192.168.56.0".<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Subnet mask consistency check passed for subnet
"192.168.1.0".<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Subnet mask consistency check passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node connectivity check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking multicast communication...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking subnet "192.168.56.0" for multicast communication
with multicast group "224.0.0.251"...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check of subnet "192.168.56.0" for multicast communication
with multicast group "224.0.0.251" passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check of multicast communication passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking ASMLib configuration.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for ASMLib configuration passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total memory check failed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check failed on nodes:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Available memory check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Swap space check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Free disk space check passed for
"ractest5:/usr,ractest5:/var,ractest5:/etc,ractest5:/sbin,ractest5:/tmp"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Free disk space check passed for
"ractest4:/usr,ractest4:/var,ractest4:/etc,ractest4:/sbin,ractest4:/tmp"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for multiple users with UID value 60321 passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User existence check passed for "oracle"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Group existence check passed for "oinstall"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Group existence check passed for "dba"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Membership check for user "oracle" in group
"oinstall" [as Primary] passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Membership check for user "oracle" in group "dba"
passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Run level check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Hard limits check passed for "maximum open file
descriptors"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Soft limits check passed for "maximum open file
descriptors"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Hard limits check passed for "maximum user processes"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Soft limits check passed for "maximum user processes"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
System architecture check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel version check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semmsl"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semmns"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semopm"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semmni"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "shmmax"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "shmmni"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "shmall"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "file-max"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "ip_local_port_range"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "rmem_default"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "rmem_max"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "wmem_default"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "wmem_max"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "aio-max-nr"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVG-1206 : Check cannot be performed for configured value of kernel
parameter "panic_on_oops" on node "ractest5"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVG-1206 : Check cannot be performed for configured value of kernel
parameter "panic_on_oops" on node "ractest4"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "panic_on_oops"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "binutils"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "compat-libcap1"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for
"compat-libstdc++-33(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libgcc(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libstdc++(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for
"libstdc++-devel(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "sysstat"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "gcc"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "gcc-c++"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "ksh"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "make"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "glibc(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "glibc-devel(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libaio(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libaio-devel(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "nfs-utils"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking availability of ports "6200,6100" required for
component "Oracle Notification Service (ONS)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Port availability check passed for ports "6200,6100"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking availability of ports "42424" required for
component "Oracle Cluster Synchronization Services (CSSD)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Port availability check passed for ports "42424"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for multiple users with UID value 0 passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Current group ID check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for consistency of primary group of root user<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for consistency of root user's primary group passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Clock synchronization checks using Network Time
Protocol(NTP)...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NTP configuration file "/etc/ntp.conf" existence check
passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
No NTP Daemons or Services were found to be running<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRVF-5507 : NTP daemon or service is not running on any node but NTP
configuration file exists on the following node(s):<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">Clock synchronization check using Network Time Protocol(NTP) failed</span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Core file name pattern consistency check passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User "oracle" is not part of "root" group. Check
passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Default user file creation mask check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking integrity of file "/etc/resolv.conf" across nodes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"domain" and "search" entries do not coexist in
any "/etc/resolv.conf" file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
All nodes have same "search" order defined in file
"/etc/resolv.conf"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The DNS response time for an unreachable node is within acceptable
limit on all nodes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for integrity of file "/etc/resolv.conf" passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Time zone consistency check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking integrity of name service switch configuration file
"/etc/nsswitch.conf" ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
All nodes have same "hosts" entry defined in file
"/etc/nsswitch.conf"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for integrity of name service switch configuration file
"/etc/nsswitch.conf" passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking daemon "avahi-daemon" is not configured and
running<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Daemon not configured check passed for process
"avahi-daemon"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Daemon not running check passed for process "avahi-daemon"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for /dev/shm mounted as temporary file system ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for /dev/shm mounted as temporary file system passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for /boot mount ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for /boot mount passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for zeroconf check ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">ERROR:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVE-10077 : NOZEROCONF parameter was not specified or was not set to 'yes' in file
"/etc/sysconfig/network" on node "RACTEST5.localdomain"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVE-10077 : NOZEROCONF parameter was not specified or was not set to 'yes' in file
"/etc/sysconfig/network" on node "RACTEST4.localdomain"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">Check for zeroconf check failed</span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Pre-check for cluster services setup was unsuccessful on all the
nodes.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<o:p>
</o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p>Now ssh issue resolved! but still there are four more issues appeared.</o:p></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p><span style="color: red;"><b><u>Issue 1</u></b></span></o:p></div>
<div class="MsoNormal">
The /etc/udev/rules.d/70-persistent-net.rules file has some incorrect naming convention. I fixed this file.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">WARNING:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">Could not find a suitable set of interfaces with the same name for the private interconnect</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><span style="color: red;"><b><u>Issue 2</u></b></span></o:p></div>
<div class="MsoNormal">
Added below entry in /etc/sysctl.conf file on both node </div>
<div class="MsoNormal">
kernel.panic_on_oops = 1</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Run the sysctl -p on both nodes.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVG-1206 : Check cannot be performed for configured value of kernel parameter "panic_on_oops" on node "ractest5"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVG-1206 : Check cannot be performed for configured value of kernel parameter "panic_on_oops" on node "ractest4"</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;"><br /></span></div>
<div class="MsoNormal">
<b style="color: red;"><u>Issue 3</u></b>The below issue can be ignored. Since we are configuring NTP protocol. CSSD will take care of time synchronization. </div>
<div>
<br /></div>
<div class="MsoNormal">
<span style="background-color: white; color: red;">Clock synchronization check using Network Time Protocol(NTP) failed</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="color: red;"><u>Issue 4</u></b></div>
<div class="MsoNormal">
Added below entry in /etc/sysconfig/network file on both nodes and restart the network service.</div>
<div class="MsoNormal">
NOZEROCONF=yes</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">ERROR:</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVE-10077 : NOZEROCONF parameter was not specified or was not set to 'yes' in file "/etc/sysconfig/network" on node "RACTEST5.localdomain"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">PRVE-10077 : NOZEROCONF parameter was not specified or was not set to 'yes' in file "/etc/sysconfig/network" on node "RACTEST4.localdomain"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;">Check for zeroconf check failed</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<span style="background-color: yellow; color: red;"><b>Step 7 :</b></span> Re run the runcluvfy.sh again and see any issues.</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$ ./runcluvfy.sh stage -pre crsinst -n
ractest4,ractest5<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Performing pre-checks for cluster services setup<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking node reachability...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node reachability check passed from node "ractest4"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking user equivalence...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User equivalence check passed for user "oracle"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking node connectivity...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking hosts config file...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Verification of the hosts config file successful<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node connectivity passed for subnet "192.168.56.0" with
node(s) ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
TCP connectivity check passed for subnet "192.168.56.0"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node connectivity passed for subnet "192.168.1.0" with
node(s) ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
TCP connectivity check passed for subnet "192.168.1.0"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Interfaces found on subnet "192.168.56.0" that are likely
candidates for VIP are:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5 eth0:192.168.56.212<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest4 eth0:192.168.56.211<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Interfaces found on subnet "192.168.1.0" that are likely
candidates for a private interconnect are:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5 eth1:192.168.1.212<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest4 eth1:192.168.1.211<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking subnet mask consistency...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Subnet mask consistency check passed for subnet
"192.168.56.0".<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Subnet mask consistency check passed for subnet
"192.168.1.0".<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Subnet mask consistency check passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Node connectivity check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking multicast communication...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking subnet "192.168.56.0" for multicast communication
with multicast group "224.0.0.251"...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check of subnet "192.168.56.0" for multicast communication
with multicast group "224.0.0.251" passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check of multicast communication passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking ASMLib configuration.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for ASMLib configuration passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total memory check failed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check failed on nodes:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Available memory check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Swap space check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Free disk space check passed for
"ractest5:/usr,ractest5:/var,ractest5:/etc,ractest5:/sbin,ractest5:/tmp"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Free disk space check passed for
"ractest4:/usr,ractest4:/var,ractest4:/etc,ractest4:/sbin,ractest4:/tmp"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for multiple users with UID value 60321 passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User existence check passed for "oracle"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Group existence check passed for "oinstall"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Group existence check passed for "dba"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Membership check for user "oracle" in group
"oinstall" [as Primary] passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Membership check for user "oracle" in group "dba"
passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Run level check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Hard limits check passed for "maximum open file
descriptors"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Soft limits check passed for "maximum open file
descriptors"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Hard limits check passed for "maximum user processes"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Soft limits check passed for "maximum user processes"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
System architecture check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel version check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semmsl"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semmns"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semopm"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "semmni"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "shmmax"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "shmmni"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "shmall"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "file-max"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "ip_local_port_range"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "rmem_default"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "rmem_max"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "wmem_default"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "wmem_max"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "aio-max-nr"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Kernel parameter check passed for "panic_on_oops"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "binutils"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "compat-libcap1"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for
"compat-libstdc++-33(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libgcc(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libstdc++(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for
"libstdc++-devel(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "sysstat"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "gcc"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "gcc-c++"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "ksh"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "make"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "glibc(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "glibc-devel(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libaio(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "libaio-devel(x86_64)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Package existence check passed for "nfs-utils"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking availability of ports "6200,6100" required for
component "Oracle Notification Service (ONS)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Port availability check passed for ports "6200,6100"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking availability of ports "42424" required for component
"Oracle Cluster Synchronization Services (CSSD)"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Port availability check passed for ports "42424"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for multiple users with UID value 0 passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Current group ID check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for consistency of primary group of root user<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for consistency of root user's primary group passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Clock synchronization checks using Network Time
Protocol(NTP)...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NTP configuration file "/etc/ntp.conf" existence check
passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
No NTP Daemons or Services were found to be running<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
PRVF-5507 : NTP daemon or service is not running on any node but NTP
configuration file exists on the following node(s):<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ractest5,ractest4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Clock synchronization check using Network Time Protocol(NTP) failed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Core file name pattern consistency check passed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
User "oracle" is not part of "root" group. Check
passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Default user file creation mask check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking integrity of file "/etc/resolv.conf" across nodes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"domain" and "search" entries do not coexist in
any "/etc/resolv.conf" file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
All nodes have same "search" order defined in file
"/etc/resolv.conf"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The DNS response time for an unreachable node is within acceptable
limit on all nodes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for integrity of file "/etc/resolv.conf" passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Time zone consistency check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking integrity of name service switch configuration file
"/etc/nsswitch.conf" ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
All nodes have same "hosts" entry defined in file
"/etc/nsswitch.conf"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for integrity of name service switch configuration file
"/etc/nsswitch.conf" passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Checking daemon "avahi-daemon" is not configured and
running<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Daemon not configured check passed for process
"avahi-daemon"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Daemon not running check passed for process "avahi-daemon"<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for /dev/shm mounted as temporary file system ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for /dev/shm mounted as temporary file system passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for /boot mount ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for /boot mount passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting check for zeroconf check ...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Check for zeroconf check passed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Pre-check for cluster services setup was unsuccessful on all the
nodes.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST4 grid]$<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<o:p>Now all set! It is ready to start installing the cluster software!</o:p><br />
<o:p><br /></o:p>
<o:p>During the cluster software installation, i found cvuqdisk package missing.</o:p><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNESvyFaeIxBn5PBejiGAa9HSSjf8QLFF4baohu82Db0GUVrU4jcLuzfUC-iSLAXilD6Oq8x_9Ft_zGKY8o3T1fWeYHRhwTrbJDuvYo-Ulv-DY3dbSZZQ9FnEBg5tfbLm1xGdfz5ls_qI/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="216" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNESvyFaeIxBn5PBejiGAa9HSSjf8QLFF4baohu82Db0GUVrU4jcLuzfUC-iSLAXilD6Oq8x_9Ft_zGKY8o3T1fWeYHRhwTrbJDuvYo-Ulv-DY3dbSZZQ9FnEBg5tfbLm1xGdfz5ls_qI/s640/1.png" width="640" /></a></div>
<o:p><br /></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
The package is existing in software location under grid/rpm directory. I installed this package on both nodes.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 455.4pt;" valign="top" width="607"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST4 rpm]# pwd<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/backup/software/cluster/grid/rpm<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST4 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Preparing...
########################################### [100%]<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Using default group oinstall to install package<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1:cvuqdisk
########################################### [100%]<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST4 rpm]#</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 cluster]# rpm -ivh cvuqdisk-1.0.9-1.rpm<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Preparing...
########################################### [100%]<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Using default group oinstall to install package<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1:cvuqdisk
########################################### [100%]<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST5 cluster]#</div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Again i clicked <u><b>Check Again</b></u> button and now the issue is disappeared.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiKL3mZKt8mF7P3VEyZMpgUy2XYnmUssOmAZ97_4BHwkkiZshP4kQxouTUtfx2fhv32wp5Ftzj0Hlw8EQi4PIO58ONdig4H59nasMicqK-tnrdoSUzWo18VsgQEmbUC25D2mxsq22DOd8/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="198" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiKL3mZKt8mF7P3VEyZMpgUy2XYnmUssOmAZ97_4BHwkkiZshP4kQxouTUtfx2fhv32wp5Ftzj0Hlw8EQi4PIO58ONdig4H59nasMicqK-tnrdoSUzWo18VsgQEmbUC25D2mxsq22DOd8/s640/1.png" width="640" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I am not worried about physical memory now.. NTP protocol can be ignored. since CSSD will take care of time synchronization.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
We are good now!!!</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-60822278421188314342016-02-09T19:23:00.002-08:002016-02-29T16:33:56.134-08:00Step by Step rman restore to different host with ASM Migration<div dir="ltr" style="text-align: left;" trbidi="on">
This post is about RMAN restore from one host to another host. The database will be migrated from file system to ASM disk as part of the restore. There may be tons of post for RMAN restore. But i am not finding the detail level document for RMAN restore with ASM migration. I hope, this fills up the gap and useful for others. This post is tested in Oracle 12c(12.1.0.2.0).<br />
<br />
This post could be useful for the following circumstance.<br />
<br />
1. The production database server is crashed and no Data Guard standby.<br />
2. You need to test some of the bugs in test database with current production image.<br />
3. Migrating the database from file system to ASM disk in new hardware.<br />
<br />
I am going to call target database(the place where i am restoring) as auxiliary database, source database as target database.<br />
<br />
Here are the high level steps :<br />
<br />
1. Backup the database in target database server. We can also use recent L0 backup in the tape.<br />
2. FTP the RMAN backups and password file to auxiliary server<br />
3. Restore the SPFILE,<br />
4. Start the instance with nomount mode<br />
5. Restore the control file<br />
6. Mount the database<br />
7. Restore the database<br />
8. Recover the database and apply new archive log files<br />
9. Open the database<br />
10. Create the temp file<br />
11. Create spfile on ASM disk<br />
12. Database verification and validation.<br />
<br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Target DB info :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh0nPLi1KLVKxC0KOjBZZLHy4NtR4vFFUMYjtteW9eWT8ckT-n5R3Pj6EhWCj1jwtk6Z2UNlfNA7wsoqqWAdXGKJ2zmlV266OvMz6rts73E_NZ41-E6QbqsndG2OitI1vYFU7F3v0j57E/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh0nPLi1KLVKxC0KOjBZZLHy4NtR4vFFUMYjtteW9eWT8ckT-n5R3Pj6EhWCj1jwtk6Z2UNlfNA7wsoqqWAdXGKJ2zmlV266OvMz6rts73E_NZ41-E6QbqsndG2OitI1vYFU7F3v0j57E/s320/2.png" width="206" /></a></div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span><br />
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">I am restoring the above database to the new host called ractest1. The RBDMS is already installed in ractest1 host and it is same as target database version.</span><br />
<div>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b><u><br /></u></b></span></span>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b><u>Step1</u></b></span></span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> I am using </span><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">recent RMAN L0 backup and Archive log backup in target server. I am using the below script to backup the database in target server. We can also use the recent full backup from tape if it is already available in tape. I am using disk backup for my convenience. </span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<b style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">usben_L0_backup.sh</b><br />
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWpO0Bevmi1UARsAk7CZbpaBXVxMTa1axK-fvR1zgoaR9AP-HaHa46NRPqEM_5Klgs-AX-lDBOvU7XSH0p1LWwHAAktkcjVi0pPEcHws7ehkYr4Z8DZop8nfA5GH1-ixkG3sPZas6b_OQ/s1600/l0.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWpO0Bevmi1UARsAk7CZbpaBXVxMTa1axK-fvR1zgoaR9AP-HaHa46NRPqEM_5Klgs-AX-lDBOvU7XSH0p1LWwHAAktkcjVi0pPEcHws7ehkYr4Z8DZop8nfA5GH1-ixkG3sPZas6b_OQ/s320/l0.png" width="320" /></a></div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Here is the log file for full backup.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 315.9pt;" valign="top" width="421"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to target database: USBEN (DBID=2379284599)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10>
11> 12><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: T01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: SID=61 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET COMMAND ID<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting full datafile backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: specifying datafile(s) in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
including current SPFILE in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: finished piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece handle=/backup/usben/USBEN_SPFILE_20160216_0927_133_45qu2cfv_1_1_903950847
tag=USBEN_L0_20160216_0927 comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: backup set complete, elapsed time: 00:00:01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting full datafile backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: specifying datafile(s) in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
including current control file in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: finished piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece
handle=/backup/usben/USBEN_CTRL_20160216_0927_134_46qu2cg0_1_1_903950848
tag=USBEN_L0_20160216_0927 comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: backup set complete, elapsed time: 00:00:01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting compressed incremental level 0 datafile backup
set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: specifying datafile(s) in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile file number=00001
name=/data01/oradata/usben/system01.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background-color: yellow; color: red;">-- trimming the info here for brevity</span></b><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile file number=00003
name=/data01/oradata/usben/sysaux01.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: finished piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece
handle=/backup/usben/USBEN_L0_20160216_0927_135_47qu2cg3_1_1_903950851
tag=USBEN_L0_20160216_0927 comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: backup set complete, elapsed time: 00:02:15<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Control File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece handle=/ora/app/oracle/fast_recovery_area/USBEN/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
autobackup/2016_02_16/o1_mf_s_903950986_cd6dltf7_.bkp comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished Control File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
released channel: T01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager complete.<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
</div>
<div>
<b style="background-color: yellow;">usben_Arch_backup.sh</b></div>
<div>
<br /></div>
<div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzZZixdgaTpriKFh5LhxsNCchSAL1wqmnHg573u1Hi_Vl0VFoHU6q6r0ilO9NyBwWx3-Yc2Wu2mADjovldz5u-mkZY4nUNCu-kwojxrMuwhV1el0RRHvdqnNkx3UEu1dXCLElDWZ8Gl7E/s1600/arcg.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzZZixdgaTpriKFh5LhxsNCchSAL1wqmnHg573u1Hi_Vl0VFoHU6q6r0ilO9NyBwWx3-Yc2Wu2mADjovldz5u-mkZY4nUNCu-kwojxrMuwhV1el0RRHvdqnNkx3UEu1dXCLElDWZ8Gl7E/s320/arcg.png" width="320" /></a></div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Here is the log file for archive log backup.</div>
<div>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 369.9pt;" valign="top" width="493"><div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">connected to target
database: USBEN (DBID=2379284599)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">RMAN> 2> 3>
4> 5> 6> 7> 8> 9> 10><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">using target
database control file instead of recovery catalog<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">allocated channel:
T01<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01: SID=59
device type=DISK<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">executing command:
SET COMMAND ID<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">sql statement: alter
system archive log current<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Starting backup at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">current log archived<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
starting archived log backup set<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
specifying archived log(s) in backup set<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">input archived log
thread=1 sequence=267 RECID=261 STAMP=903951084<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">--
trimming the info here for brevity</span></b><span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">input archived log
thread=1 sequence=301 RECID=295 STAMP=903951315<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
starting piece 1 at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
finished piece 1 at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">piece
handle=/backup/usben/USBEN_Arch_20160216_0935_137_49qu2cuj_1_1_903951315
tag=TAG20160216T093515 comment=NONE<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01: backup
set complete, elapsed time: 00:01:05<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
deleting archived log(s)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">archived log file
name=/data02/oradata/arch/1_267_902782329.dbf RECID=261 STAMP=903951084<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">--
trimming the info here for brevity</span></b><span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">archived log file
name=/data02/oradata/arch/1_301_902782329.dbf RECID=295 STAMP=903951315<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Finished backup at
16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Starting Control
File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">piece
handle=/ora/app/oracle/fast_recovery_area/USBEN/<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">autobackup/2016_02_16/o1_mf_s_903951381_cd6dz606_.bkp
comment=NONE<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Finished Control
File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">released channel:
T01<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Recovery Manager
complete.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step 2</span></b> Copy the RMAN backup files to auxiliary server. Create the file system directories on auxiliary server.</div>
</div>
<div>
<br />
Here i am using the ASM disk. Hence, the file system directories are not needed. <span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">I created the directory in ASM disk.</span></div>
<div>
<span style="background-color: white;"><br style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">[oracle@RACTEST1 ~]$ asmcmd</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">ASMCMD> cd +DATA</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">ASMCMD> mkdir USBEN</span><br />
<span style="background-color: white;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">The RMAN backup files are coped to auxiliary server as below. Also copy the password file from target server to auxiliary database server.</span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7ovsHGsfA4mMnWP5WBfsbCWd50Z8SESm40JMBYdXczYuiOPK3TZy-rreor7pL27XtYRKySiV91lqje29rmpCEOVfTVPZEEAPJu45CiGk7RNqZNE81h9i99ZLahq4zy4R9uAqeX6jSPCs/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="65" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7ovsHGsfA4mMnWP5WBfsbCWd50Z8SESm40JMBYdXczYuiOPK3TZy-rreor7pL27XtYRKySiV91lqje29rmpCEOVfTVPZEEAPJu45CiGk7RNqZNE81h9i99ZLahq4zy4R9uAqeX6jSPCs/s320/1.png" width="320" /></a></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: #eeeecc; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;"><br /></u></span><span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;"><br /></u></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;">Step3</u><span style="background-color: white; color: red;"> </span><span style="background-color: white;">Restore the SPFILE</span></span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZR4qWM1jMLOCuJ0uJgtRC6VlmeqiCnhAIlok2tAOEPlY1Ta_ODYfwDUzW0BK_yaO7a4vhZgXvHm-BXHSz7xQgEyL3Ai3a99I15XRyy3zIjZvYTg97haoqxs6tacxKJnmo1WxwHUWCH6g/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="244" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZR4qWM1jMLOCuJ0uJgtRC6VlmeqiCnhAIlok2tAOEPlY1Ta_ODYfwDUzW0BK_yaO7a4vhZgXvHm-BXHSz7xQgEyL3Ai3a99I15XRyy3zIjZvYTg97haoqxs6tacxKJnmo1WxwHUWCH6g/s320/1.png" width="320" /></a></div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Now the instance is started with temporary parameter file. Let us restore the SPFILE from backup.<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 rman]$ rman<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager: Release 12.1.0.2.0 - Production on Tue Feb 16
10:16:18 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> connect target<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to target database: USBEN (not mounted)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> run<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocate channel t01 device type disk;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
restore spfile from
'/backup/usben/rman/USBEN_SPFILE_20160216_0927_133_45qu2cfv_1_1_903950847';<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
release channel t01;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}2> 3> 4> 5> 6><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: t01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t01: SID=34 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting restore at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t01: restoring spfile from AUTOBACKUP
/backup/usben/rman/USBEN_SPFILE_20160216_0927_133_45qu2cfv_1_1_903950847<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t01: SPFILE restore from AUTOBACKUP complete<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished restore at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
released channel: t01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br /></div>
<div>
Create pfile from above restored spfile and modify the parameters according to auxiliary database server. Copy the updated parameter file under $ORACLE_HOME/dbs location.</div>
<div>
<br /></div>
<div>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Here is the modified pfile in auxiliary database under $ORACLE_HOME/dbs</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><b>initusben.ora</b></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 297.9pt;" valign="top" width="397"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__data_transfer_cache_size=0<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__db_cache_size=536870912<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__java_pool_size=16777216<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__large_pool_size=150994944<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__oracle_base='/ora/app/oracle'#ORACLE_BASE set from
environment<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__pga_aggregate_target=671088640<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__sga_target=989855744<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__shared_io_pool_size=50331648<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__shared_pool_size=218103808<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__streams_pool_size=0<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.compatible='12.1.0.2.0'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.control_files='+DATA','+DATA'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_block_size=8192<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_domain='localdomain'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_name='usben'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_create_file_dest='+DATA'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_create_online_log_dest_1='+DATA'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.diagnostic_dest='/ora/app/oracle'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.dispatchers='(PROTOCOL=TCP) (SERVICE=usbenXDB)'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_1='location=/backup/usben/arch'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_state_1='enable'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.open_cursors=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.processes=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.remote_login_passwordfile='EXCLUSIVE'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.undo_tablespace='UNDOTBS1'<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
</div>
<div>
<br /></div>
<div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;">Step4</u><span style="background-color: white; color: red;"> </span></span><span style="background-color: white;"><span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="background-color: white;">S</span></span><span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">tart th</span><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">e instance using the above parameter with nomount mode:</span></span></div>
<div>
</div>
</div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBnrqPNVfsMf5glppbNCEVgU1t4OP6uzbqzpwOtut4uba-IzDUaE6RrEvbBQbCAI2bdqYz-ft4Yq_f4QHgFeVOqEbG9gPgf6EjYouMUdCjT59t1rZyDKKzidGzAkDszRBNyczAjgLmRFM/s1600/1.png" imageanchor="1" style="clear: left; color: #223344; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" height="233" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBnrqPNVfsMf5glppbNCEVgU1t4OP6uzbqzpwOtut4uba-IzDUaE6RrEvbBQbCAI2bdqYz-ft4Yq_f4QHgFeVOqEbG9gPgf6EjYouMUdCjT59t1rZyDKKzidGzAkDszRBNyczAjgLmRFM/s320/1.png" style="border: 1px solid rgb(187, 187, 187); margin: 0px 0px 5px; padding: 4px;" width="320" /></a></div>
<div>
<br /></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;">Step5</u><span style="background-color: white; color: red;"> </span></span>Restore the control file.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 rman]$ rman<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager: Release 12.1.0.2.0 - Production on Tue Feb 16
10:19:38 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> connect target<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to target database: USBEN (not mounted)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
run<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocate channel t01 device type disk;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
restore controlfile from
'/backup/usben/rman/USBEN_CTRL_20160216_0927_134_46qu2cg0_1_1_903950848';<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
release channel t01;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> 2> 3> 4> 5> 6><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: t01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t01: SID=1 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting restore at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t01: restoring control file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t01: restore complete, elapsed time: 00:00:01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
output file name=+DATA/USBEN/CONTROLFILE/current.301.903953985<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
output file name=+DATA/USBEN/CONTROLFILE/current.294.903953985<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished restore at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
released channel: t01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
Update the correct control file name in pfile. Here is the updated pfile info under $ORACLE_HOME/dbs<br />
<b style="background-color: #eeeecc; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></b>
<b style="background-color: #eeeecc; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">initusben.ora</b><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 365.4pt;" valign="top" width="487"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__data_transfer_cache_size=0<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__db_cache_size=536870912<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__java_pool_size=16777216<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__large_pool_size=150994944<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__oracle_base='/ora/app/oracle'#ORACLE_BASE set from
environment<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__pga_aggregate_target=671088640<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__sga_target=989855744<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__shared_io_pool_size=50331648<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__shared_pool_size=218103808<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__streams_pool_size=0<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.compatible='12.1.0.2.0'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.control_files='+DATA/USBEN/CONTROLFILE/<span style="color: red;"><b>current.301.903953985</b></span>',<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'+DATA/USBEN/CONTROLFILE/<span style="color: red;"><b>current.294.903953985</b></span>'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_block_size=8192<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_domain='localdomain'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_name='usben'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_create_file_dest='+DATA'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_create_online_log_dest_1='+DATA'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.diagnostic_dest='/ora/app/oracle'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.dispatchers='(PROTOCOL=TCP) (SERVICE=usbenXDB)'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_1='location=/backup/usben/arch'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_state_1='enable'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.open_cursors=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.processes=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.remote_login_passwordfile='EXCLUSIVE'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.undo_tablespace='UNDOTBS1'<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br /></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;">Step 6</u><span style="background-color: white; color: red;"> </span></span>Restart the instance with above modified pfile and mount the database.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> startup nomount
pfile=/ora/app/oracle/product/12.1.0.1/db_1/dbs/initusben.ora;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area
281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size
2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size
222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers
50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers
5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database mount;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br /></div>
<div>
<u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 7</u><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span>Restore the database.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr><td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> connect target</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to target database: USBEN (DBID=2379284599, not open)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> catalog start with '/backup/usben/rman';<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
searching for all files that match the pattern /backup/usben/rman<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
List of Files Unknown to the Database<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
=====================================<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Do you really want to catalog the above files (enter YES or NO)? YES<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloging files...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloging done<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
List of Cataloged Files<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> run<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for database to '+DATA';<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
restore database;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
switch datafile all;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}2> 3> 4> 5> 6><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting restore at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: ORA_DISK_1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: SID=36 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: starting datafile backup set restore<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: specifying datafile(s) to restore from backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring datafile 00001 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring datafile 00006 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring datafile 00007 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: reading from backup piece
/backup/usben/rman/USBEN_L0_20160216_0927_135_47qu2cg3_1_1_903950851<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: piece
handle=/backup/usben/rman/USBEN_L0_20160216_0927_135_47qu2cg3_1_1_903950851
tag=USBEN_L0_20160216_0927<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restore complete, elapsed time: 00:07:35<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished restore at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 1 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=8 STAMP=903954802 file
name=+DATA/USBEN/DATAFILE/system.308.903954347<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 2 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=14 STAMP=903954803 file
name=+DATA/USBEN/DATAFILE/usben_indx.299.903954347<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 8</u><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span>Recover the database.</div>
<div>
<br /></div>
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> recover database;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting recover at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: ORA_DISK_1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: SID=1 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
starting media recovery<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: starting archived log restore to default
destination<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=267<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=301<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: reading from backup piece
/backup/usben/rman/USBEN_Arch_20160216_0935_137_49qu2cuj_1_1_903951315<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: piece
handle=/backup/usben/rman/USBEN_Arch_20160216_0935_137_49qu2cuj_1_1_903951315
tag=TAG20160216T093515<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_267_902782329.dbf
thread=1 sequence=267<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_268_902782329.dbf
thread=1 sequence=268<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_300_902782329.dbf
thread=1 sequence=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_301_902782329.dbf
thread=1 sequence=301<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
unable to find archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=302<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN-00571:
===========================================================<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS
===============<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN-00571:
===========================================================<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN-03002: failure of recover command at 02/16/2016 10:37:37<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN-06054: media recovery requesting unknown archived log for thread
1 with sequence 302 and starting SCN of 2532031<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
Now it is time to open the database! We can apply more archive log files if we have.. if not, then open the database with resetlog mode.<br />
<br />
Let us apply few more archive log files and open the database. We have archive log files between 302 to 332 on target database. These archive logs were generated right after my last archive log RMAN backup. Let us FTP these archive files to auxiliary database server and apply these 31 archive log files now..<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh84GtUr8rRL77yQpRX9dKOwSoUKDVFSn5qpUW2cDgTXMbeoEO03NyTM63YO8BnkDsrDhm61lW3it6BUWtDBtd0x0zwmx7HRX2E1ZRuN6qsyzz4G0iJjoW_8ar9c69pGp5rBLV3JGTr9do/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh84GtUr8rRL77yQpRX9dKOwSoUKDVFSn5qpUW2cDgTXMbeoEO03NyTM63YO8BnkDsrDhm61lW3it6BUWtDBtd0x0zwmx7HRX2E1ZRuN6qsyzz4G0iJjoW_8ar9c69pGp5rBLV3JGTr9do/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">recover database using backup controlfile until cancel;</span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="background-color: #eeeecc; color: #333333;">I enter </span><b><span style="background-color: yellow; color: red;">AUTO</span></b><span style="background-color: #eeeecc; color: #333333;"> and it applied all the archive log files from #302 to #332.</span></span><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
<tr><td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> recover database using backup controlfile until cancel;</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00279: change 2532031 generated at 02/16/2016 09:35:15 needed for
thread 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00289: suggestion : /backup/usben/arch/1_302_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00280: change 2532031 for thread 1 is in sequence #302<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Specify log: {<ret>=suggested | filename | AUTO | CANCEL}<o:p></o:p></ret></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;"><b style="background-color: yellow;">AUTO</b></span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00279: change 2532330 generated at 02/16/2016 09:42:36 needed for
thread 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00289: suggestion : /backup/usben/arch/1_303_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00280: change 2532330 for thread 1 is in sequence #303<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00278: log file '/backup/usben/arch/1_302_902782329.dbf' no
longer needed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
for this recovery<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00279: change 2532371 generated at 02/16/2016 09:42:40 needed for
thread 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00289: suggestion : /backup/usben/arch/1_304_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00280: change 2532371 for thread 1 is in sequence #304<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00278: log file '/backup/usben/arch/1_303_902782329.dbf' no
longer needed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
for this recovery</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red;">-- trimming the info here for brevity</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00279: change 2534248 generated at 02/16/2016 09:47:43 needed for
thread 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00289: suggestion : /backup/usben/arch/1_332_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00280: change 2534248 for thread 1 is in sequence #332<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00278: log file '/backup/usben/arch/1_331_902782329.dbf' no
longer needed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
for this recovery</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00279: change 2534513 generated at 02/16/2016 09:50:10 needed for
thread 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00289: suggestion : /backup/usben/arch/1_333_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00280: change 2534513 for thread 1 is in sequence #333<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00278: log file '/backup/usben/arch/1_332_902782329.dbf' no
longer needed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
for this recovery<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00308: cannot open archived log
'/backup/usben/arch/1_333_902782329.dbf'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-27037: unable to obtain file status<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Linux-x86_64 Error: 2: No such file or directory<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Additional information: 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
Applied the archive log files till sequence# 322.<br />
<br />
<u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 9</u><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span>Open the database.<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 4.95in;" valign="top" width="475"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database open resetlogs;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database open resetlogs<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00344: unable to re-create online log
'/redo/oradata/usben/redo01.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-27040: file create error, unable to create file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Linux-x86_64 Error: 2: No such file or directory<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Additional information: 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben></div>
</td>
</tr>
</tbody></table>
<br />
It looks like, it is trying to create the redo log file under /redo file system, But apparently, we don't have this file system in auxiliary database. We need these redo log should be created on ASM disk,.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPeaT1jKuZnfF33YIZ0yqqGxS129sMz2aYC1DRsim511_DDPB_kv2oXlcn7ZG0vX-HX1Up1L6wgFurTSipS14PEnri7AMbJE1WcOu7y2v9w7juPUqUo0Zv3x_RJ0n1yk0nff-lvULH1g4/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="153" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPeaT1jKuZnfF33YIZ0yqqGxS129sMz2aYC1DRsim511_DDPB_kv2oXlcn7ZG0vX-HX1Up1L6wgFurTSipS14PEnri7AMbJE1WcOu7y2v9w7juPUqUo0Zv3x_RJ0n1yk0nff-lvULH1g4/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Let us drop the above three files and create new redo group in ASM disk.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 351.9pt;" valign="top" width="469"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;"><b>Creating the directory on ASM disk!</b></span><br />
<br />
ASMCMD> ls -l</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Type Redund Striped
Time Sys Name<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Y CONTROLFILE/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Y DATAFILE/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASMCMD> mkdir ONLINELOG<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASMCMD> mkdir TEMPFILE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASMCMD> ls -l<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Type Redund Striped
Time Sys Name<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Y CONTROLFILE/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Y DATAFILE/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
N ONLINELOG/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
N TEMPFILE/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASMCMD><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;"><b>Creating the new redo logs in ASM disk.</b></span><br />
<br />
sys@usben> alter database add logfile group 4 size 50M;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database add logfile group 5 size 50M;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> select member
from v$logfile;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MEMBER<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/redo/oradata/usben/redo03.log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/redo/oradata/usben/redo02.log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
/redo/oradata/usben/redo01.log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/group_4.305.903942885<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/group_5.307.903942893<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
6 rows selected.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: red;"><b>Let us manually drop the file system redo*.log files</b></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
sys@usben> alter database drop logfile group 1;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database drop logfile group 2;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database drop logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database drop logfile group 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01623: log 3 is current log for instance usben (thread 1) -
cannot drop<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00312: online log 3 thread 1: '/redo/oradata/usben/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
<span style="color: red;"><b>mmhh.. It is not letting us to drop the group# 3</b></span><br />
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> select status from v$log where GROUP#=3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
STATUS<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
----------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
CLEARING_CURRENT<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 row selected.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database clear unarchived logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database clear unarchived logfile group 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00344: unable to re-create online log
'/redo/oradata/usben/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-27040: file create error, unable to create file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Linux-x86_64 Error: 2: No such file or directory<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Additional information: 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: red;">Let us rename the file...</span></b><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database rename file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'/redo/oradata/usben/redo03.log' to<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'+DATA/USBEN/ONLINELOG/redo03.log'; <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> select member from v$logfile;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MEMBER<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/redo03.log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/group_4.305.903942885<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/group_5.307.903942893</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
4 rows selected.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASMCMD> ls -l ONLINELOG<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Type Redund Striped
Time Sys Name<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINELOG UNPROT COARSE
FEB 16 07:00:00 Y group_4.305.903942885<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINELOG UNPROT COARSE
FEB 16 07:00:00 Y group_5.307.903942893</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ASMCMD><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database drop logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database drop logfile group 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01623: log 3 is current log for instance usben (thread 1) -
cannot drop<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00312: online log 3 thread 1: '+DATA/USBEN/ONLINELOG/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database open resetlogs;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database open resetlogs<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00392: log 3 of thread 1 is being cleared, operation not allowed<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00312: online log 3 thread 1: '+DATA/USBEN/ONLINELOG/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database clear unarchived logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database drop logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database drop logfile group 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01623: log 3 is current log for instance usben (thread 1) -
cannot drop<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00312: online log 3 thread 1: '+DATA/USBEN/ONLINELOG/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database open resetlogs;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database drop logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database drop logfile group 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01623: log 3 is current log for instance usben (thread 1) -
cannot drop<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00312: online log 3 thread 1: '+DATA/USBEN/ONLINELOG/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database clear unarchived logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database clear unarchived logfile group 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01624: log 3 needed for crash recovery of instance usben (thread
1)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-00312: online log 3 thread 1: '+DATA/USBEN/ONLINELOG/redo03.log'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: red;">Let us bounce the DB and try again</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> shutdown immediate<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> startup nomount pfile=$ORACLE_HOME/dbs/initusben.ora<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area
281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size
2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size
222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers
50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers
5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database mount;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database clear unarchived logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database drop logfile group 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> alter database open;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> select member
from v$logfile;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MEMBER<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/group_4.305.903942885<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/ONLINELOG/group_5.307.903942893</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
3 rows selected.</div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
<u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 10</u><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Create the temp file.</span><br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 360.9pt;" valign="top" width="481"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> select file_name from dba_temp_files;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
select file_name from dba_temp_files<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ERROR at line 1:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01157: cannot identify/lock data file 202 - see DBWR trace file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-01110: data file 202: '/temp/oradata/usben/temp01.dbf'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> create temporary tablespace temp1 tempfile '+DATA'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
size 10m;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
2<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Tablespace created.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> sys@usben> alter database default temporary
tablespace temp1;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database altered.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> drop tablespace temp including contents and datafiles;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Tablespace dropped.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> select file_name from dba_temp_files;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
FILE_NAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
+DATA/USBEN/TEMPFILE/temp1.310.903945085<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 row selected.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
<o:p><u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 11</u><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Create the spfile in ASM disk</span><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">. We could do this step at the beginning too. However, i do this step at the end for my convenience. </span></o:p><br />
<o:p><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></o:p>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 315.9pt;" valign="top" width="421"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> show parameter spfile;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NAME TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
spfile string<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: red;">-- Creating spfile in ASM disk</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> create spfile='+DATA/USBEN/PARAMETERFILE/spfileusben.ora' from PFILE;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
File created.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> !<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p><span style="color: red;"><b>-- Here i updated the parameter file to point to SPFILE in ASM disk.</b></span></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p><span style="color: red;"><b><br /></b></span></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$ cat initusben.ora<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">SPFILE='+DATA/USBEN/PARAMETERFILE/spfileusben.ora'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: red;">-- Restart the database with spfile.</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> shutdown immediate<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> startup<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area 281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size 2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size 222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers 50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers 5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database mounted.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database opened.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> show parameter spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NAME TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
spfile string +DATA/USBEN/PARAMETERFILE/spfileusben.ora</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td></tr>
</tbody></table>
<br />
<div class="MsoNormal">
<o:p><u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 12</u><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Verify all the files and make sure all files are moved to ASM disk. Also watch out the alert log for a while. Create the listener and make sure able to connect outside the database server.</span></o:p><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxSSuw2Wlts-kNZDrg25SKDtoGj9k3baXk36rViJUcbIHO0qsPXA2ea1FsFjqhVeagnO42rSf8WtP78ciaQdlFit850-OiH3ruRk2C1-d07OOqrSVrZrw6sV3napF2avYjvFn7s7ptRY/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMxSSuw2Wlts-kNZDrg25SKDtoGj9k3baXk36rViJUcbIHO0qsPXA2ea1FsFjqhVeagnO42rSf8WtP78ciaQdlFit850-OiH3ruRk2C1-d07OOqrSVrZrw6sV3napF2avYjvFn7s7ptRY/s320/1.png" width="210" /></a></div>
<o:p><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></o:p></div>
<div class="MsoNormal">
<div class="separator" style="clear: both; text-align: center;">
</div>
Now the database is successfully restored in different host. The database is also migrated to ASM disk as part of restore.</div>
<div class="MsoNormal">
<div class="MsoNormal">
<br />
Enjoy reading my blog!!</div>
</div>
</div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-68704590453848254532016-02-08T16:24:00.003-08:002016-02-22T09:33:14.545-08:00RMAN Duplicate database from Active database with ASM Migration<div dir="ltr" style="text-align: left;" trbidi="on">
Oracle 11g introduced the new feature to Duplicate the database from active database<i>.</i> Duplicating from an active database doesn’t require any RMAN backup to be taken from the source database. It directly reads from active database. But this might cause negative performance impact for source database while duplicating the database. It could also cause network traffic between source and target database. You can take this approach if your environment is accepting these risks. The RDBMS software should be installed on the auxiliary database server and the DB version should be same as target database server.<br />
<br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">High Level steps :</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">1. </span><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Create all the directories in auxiliary server</span></span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">2. Copy password file & pfile from target server to auxiliary server</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">3. </span><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Start the instance(with nomount) in auxiliary instance</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">4. </span><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Check the connectivity between source and target</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">5. Duplicate the database in auxiliary instance.</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">6. create the spfile in ASM disk</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">7. Database verification and Validation</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Target DB info :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQOyx9pFNLE0z1jANSDuSXk0NdWYHHw_zysAlIZAUGHpCG7AlS1iS5Gsxa1yS2ezqepiSjGfQIOAr5J4qz8LwATeG3Lb4ScGwCgob9egKPDx6IFBzLP8Lgy_LVrdZ0wk6Z_zJirGRXC2Y/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQOyx9pFNLE0z1jANSDuSXk0NdWYHHw_zysAlIZAUGHpCG7AlS1iS5Gsxa1yS2ezqepiSjGfQIOAr5J4qz8LwATeG3Lb4ScGwCgob9egKPDx6IFBzLP8Lgy_LVrdZ0wk6Z_zJirGRXC2Y/s320/2.png" width="206" /></a></div>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b><u>Step1</u></b></span></span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Create the necessary folders in auxiliary database. </span></span></span><br />
<div>
<span style="background-color: white;"><br style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Here i am migrating the database from file system to ASM disk. This case, we don't need to create directory in the file system. I created the directory in ASM disk.</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">[oracle@RACTEST1 ~]$ asmcmd</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">ASMCMD> cd +DATA</span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">ASMCMD> mkdir USBEN</span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b><u>Step2</u></b></span></span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Copy the password file and parameter file from target database server to auxiliary database server. Add entry in /etc/oratab for usben database.</span><br />
<span style="background-color: white;"><br style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Modify the parameter file in auxiliary database according to the environment. Here is the modified pfile in auxiliary database.</span><br />
<span style="background-color: white;"><br style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" /></span>
<b style="background-color: white; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">initusben.ora</b><br />
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<span style="background-color: white;"><br /></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 249.85pt;" valign="top" width="333"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__data_transfer_cache_size=0<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__db_cache_size=536870912<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__java_pool_size=16777216<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__large_pool_size=150994944<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__oracle_base='/ora/app/oracle'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__pga_aggregate_target=671088640<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__sga_target=989855744<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__shared_io_pool_size=50331648<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__shared_pool_size=218103808<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">usben.__streams_pool_size=0<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.compatible='12.1.0.2.0'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;"><span style="background-color: yellow;">*.control_files='+DATA','+DATA'</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.db_block_size=8192<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.db_domain='localdomain'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.db_name='usben'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.db_create_file_dest='+DATA'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;"><span style="background-color: yellow;">*.db_recovery_file_dest='+DATA'</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.db_recovery_file_dest_size=4560m<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.diagnostic_dest='/ora/app/oracle'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.dispatchers='(PROTOCOL=TCP) (SERVICE=usbenXDB)'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.log_archive_dest_1='location=/backup/usben/arch'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.log_archive_dest_state_1='enable'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.open_cursors=300<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.processes=300<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.remote_login_passwordfile='EXCLUSIVE'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: white;">*.undo_tablespace='UNDOTBS1'</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
</td></tr>
</tbody></table>
</div>
<div>
<br /></div>
<div>
<br />
<div>
<div style="font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<span style="background-color: #eeeecc;"><span style="background-color: white;"><span style="font-size: 12.61px; line-height: 18.915px;"><u style="background-color: yellow; color: red; font-weight: bold;">Step 3</u><span style="background-color: white;"><span style="color: red;"> </span>S</span></span><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;">t<span style="color: #333333;">art the instance using the above parameter with no mount mode:</span></span></span></span><br />
<div class="separator" style="clear: both; color: #333333; font-size: 12.61px; line-height: 18.915px; text-align: center;">
<span style="background-color: #eeeecc;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBnrqPNVfsMf5glppbNCEVgU1t4OP6uzbqzpwOtut4uba-IzDUaE6RrEvbBQbCAI2bdqYz-ft4Yq_f4QHgFeVOqEbG9gPgf6EjYouMUdCjT59t1rZyDKKzidGzAkDszRBNyczAjgLmRFM/s1600/1.png" imageanchor="1" style="clear: left; color: #223344; float: left; margin-bottom: 1em; margin-right: 1em;"><span style="background-color: white;"><img border="0" height="233" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBnrqPNVfsMf5glppbNCEVgU1t4OP6uzbqzpwOtut4uba-IzDUaE6RrEvbBQbCAI2bdqYz-ft4Yq_f4QHgFeVOqEbG9gPgf6EjYouMUdCjT59t1rZyDKKzidGzAkDszRBNyczAjgLmRFM/s320/1.png" style="border: 1px solid rgb(187, 187, 187); margin: 0px 0px 5px; padding: 4px;" width="320" /></span></a></span></div>
<span style="background-color: #eeeecc;"><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span><span style="background-color: white;"><br style="font-size: 12.61px; line-height: 18.915px;" /></span></span></div>
<span style="background-color: #eeeecc;"></span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"></span></span><br />
<div>
<br />
<br />
<br /></div>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b><u>Step 4</u></b></span></span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Check the connectivity between source and target. </span><br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Add entry in /etc/oratab for auxiliary database. </span><br />
<span style="background-color: white;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Adding the below entries in auxiliary database. DO NOT MAKE any changes in target database.</span></span></div>
<div>
<span style="background-color: yellow; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><b><span style="color: red;"><br /></span></b></span>
<span style="background-color: yellow; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><b><span style="color: red;">tnsnames.ora </span></b></span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">usdup =</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (DESCRIPTION =</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1522))</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (CONNECT_DATA =</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SERVER = DEDICATED)</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SERVICE_NAME = usben.localdomain)</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">usben =</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (DESCRIPTION =</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (ADDRESS = (PROTOCOL = TCP)(HOST = usbenhost.localdomain)(PORT = 1521))</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (CONNECT_DATA =</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SERVER = DEDICATED)</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SERVICE_NAME = usben.localdomain)</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span></div>
<div>
<br /></div>
<div>
<div style="background-color: #eeeecc;">
<span style="background-color: yellow; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b>listener.ora</b></span></span></div>
<div style="background-color: #eeeecc;">
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></span></div>
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">SID_LIST_LISTENER =</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SID_LIST =</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SID_DESC =</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (GLOBAL_DBNAME = usben.localdomain)</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (ORACLE_HOME = /ora/app/oracle/product/12.1.0.1/db_1)</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (SID_NAME = usben)</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">LISTENER =</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (DESCRIPTION_LIST =</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (DESCRIPTION =</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> (ADDRESS = (PROTOCOL = TCP)(HOST = RACTEST1.localdomain)(PORT = 1522))</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span></span><br />
<span style="background-color: #eeeecc;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"></span></span><br /></span>
<span style="background-color: #eeeecc;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> )</span></span></span></div>
</div>
<div>
<br />
Start the listener in auxiliary database server.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-table-layout-alt: fixed; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 401.4pt;" valign="top" width="535"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ lsnrctl<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 17-FEB-2016
17:32:52<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1991, 2014, Oracle.
All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Welcome to LSNRCTL, type "help" for information.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
LSNRCTL> start<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting /ora/app/oracle/product/12.1.0.1/db_1/bin/tnslsnr: please
wait...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
TNSLSNR for Linux: Version 12.1.0.2.0 - Production<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
System parameter file is /ora/app/oracle/product/12.1.0.1/db_1/network/admin/listener.ora<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Log messages written to
/ora/app/oracle/diag/tnslsnr/RACTEST1/listener/alert/log.xml<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Listening on:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RACTEST1.localdomain)(PORT=1522)))<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=RACTEST1.localdomain)(PORT=1522)))<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
STATUS of the LISTENER<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Alias
LISTENER<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Version
TNSLSNR for Linux: Version 12.1.0.2.0 - Production<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Start Date
17-FEB-2016 17:32:54<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Uptime 0
days 0 hr. 0 min. 0 sec<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Trace Level off<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Security ON:
Local OS Authentication<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
SNMP OFF<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Listener Parameter File
/ora/app/oracle/product/12.1.0.1/db_1/network/admin/listener.ora<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Listener Log File
/ora/app/oracle/diag/tnslsnr/RACTEST1/listener/alert/log.xml<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Listening Endpoints Summary...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=RACTEST1.localdomain)(PORT=1522)))<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Services Summary...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Service "usben.localdomain" has 1 instance(s).<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance "usben",
status UNKNOWN, has 1 handler(s) for this service...<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
The command completed successfully<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
LSNRCTL><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
Now check the connectivity between auxiliary and target database server.<br />
<br />
<b style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">restore_connectivity.sh</b><br />
<div class="MsoNormal">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMpghw5uqAnz7nrQba5674eiqdN4uuWGrgHka42haIbtMb9zC3fz4V1ml6DhSvVzoNAQyb8QZdq8uLNERzq-MznWEVQGc8MDIJX6Wclge9NyY4A8sB2iTX0eiXJgYgfZ3_7OUsn1qZEBQ/s1600/1.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" height="274" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMpghw5uqAnz7nrQba5674eiqdN4uuWGrgHka42haIbtMb9zC3fz4V1ml6DhSvVzoNAQyb8QZdq8uLNERzq-MznWEVQGc8MDIJX6Wclge9NyY4A8sB2iTX0eiXJgYgfZ3_7OUsn1qZEBQ/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
</div>
<div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Here is the log file content for above shell script.</span><br />
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 351.9pt;" valign="top" width="469"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Feb 17
09:05:45 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to target database: USBEN (DBID=2379284599)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to auxiliary database: USBEN (not mounted)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> 2> 3> 4> 5><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: t1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel t1: SID=58 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: a1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: SID=30 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
released channel: t1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
released channel: a1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager complete.<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">The connectivity seems successful. I am proceeding on actual restore now.</span><br />
<span style="background-color: #eeeecc; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: #eeeecc; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="background-color: yellow; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><u style="color: red; font-weight: bold;">Step 5</u><span style="background-color: white;"><span style="color: red;"> </span><span style="color: red;"> </span></span></span><span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> Duplicate the database.</span></span><br />
<span style="background-color: #eeeecc; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><b style="background-color: yellow;">restore.sh</b></span></div>
<div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWRvL9arnxzxjppwZP1H8cyiAT7XJivGisVqn_-_Q3fpWgAnEObaUphXv9sBUu3sbt7xfA5AIqERZKdozT4268HEv18KYhBBpnMpkqqIyC7rjuUVfgmqesx18R5rqGvmopx44CvaNtqLg/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWRvL9arnxzxjppwZP1H8cyiAT7XJivGisVqn_-_Q3fpWgAnEObaUphXv9sBUu3sbt7xfA5AIqERZKdozT4268HEv18KYhBBpnMpkqqIyC7rjuUVfgmqesx18R5rqGvmopx44CvaNtqLg/s320/1.png" width="295" /></a></div>
<br /></div>
<div>
<div class="MsoNormal" style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px; margin-bottom: 0.0001pt;">
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">Start running the above script in background mode.</span></div>
<div class="MsoNormal" style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px; margin-bottom: 0.0001pt;">
<span style="background-color: white;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px; margin-bottom: 0.0001pt;">
<span style="background-color: white;">[oracle@RACTEST1 usben]$ nohup ./restore.sh &</span></div>
<div class="MsoNormal" style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px; margin-bottom: 0.0001pt;">
<span style="background-color: white;">[1] 15411</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<span style="background-color: white;">[oracle@RACTEST1 usben]$</span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Tailing the log file while duplicate the database.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">tail -f restore.log</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-size: 12.61px; line-height: 18.915px;"><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Here is the complete restore log file.</span></span><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: none; color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 378.9pt;" valign="top" width="505"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Recovery Manager: Release 12.1.0.2.0 -
Production on Mon Feb 8 16:39:09 2016<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Copyright (c) 1982, 2014, Oracle
and/or its affiliates. All rights
reserved.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">connected to target database: USBEN
(DBID=2379284599)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">connected to auxiliary database: USBEN
(not mounted)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">RMAN> 2> 3> 4> 5> 6>
7> 8> 9> 10> 11><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">using target database control file
instead of recovery catalog<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">allocated channel: t1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel t1: SID=43 device type=DISK<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">allocated channel: a1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: SID=33 device type=DISK<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Starting Duplicate Db at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">current log archived<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql clone "create spfile from memory";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: create spfile from
memory<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
shutdown clone immediate;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
startup clone nomount;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Oracle instance shut down<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">connected to auxiliary database (not
started)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Oracle instance started<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Total System Global Area 281018368 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Fixed Size 2923440 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Variable Size 222299216 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Database Buffers 50331648 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Redo Buffers 5464064 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">allocated channel: a1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: SID=33 device type=DISK<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql clone "alter system set
control_files =<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
''+DATA/USBEN/CONTROLFILE/current.304.903285577'',
''+DATA/USBEN/CONTROLFILE/current.294.903285577'' comment=<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''Set by RMAN'' scope=spfile";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql clone "alter system set
db_name =<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''USBEN'' comment=<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''Modified by RMAN duplicate''
scope=spfile";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql clone "alter system set
db_unique_name =<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''USBEN'' comment=<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''Modified by RMAN duplicate''
scope=spfile";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
shutdown clone immediate;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
startup clone force nomount<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
restore clone from service
'usben' primary controlfile;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
alter clone database mount;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: alter system set control_files =
''+DATA/USBEN/CONTROLFILE/current.304.903285577'',
''+DATA/USBEN/CONTROLFILE/current.294.903285577'' comment= ''Set by RMAN'' scope=spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: alter system set db_name =
''USBEN'' comment= ''Modified by RMAN duplicate'' scope=spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: alter system set db_unique_name = ''USBEN'' comment= ''Modified by RMAN
duplicate'' scope=spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Oracle instance shut down<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Oracle instance started<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Total System Global Area 281018368 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Fixed Size 2923440 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Variable Size 222299216 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Database Buffers 50331648 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Redo Buffers 5464064 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">allocated channel: a1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: SID=33 device type=DISK<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Starting restore at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: starting datafile backup
set restore<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: using network backup set
from service usben<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restoring control file<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restore complete, elapsed
time: 00:00:04<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">output file
name=+DATA/USBEN/CONTROLFILE/current.304.903285577<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">output file
name=+DATA/USBEN/CONTROLFILE/current.294.903285577<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Finished restore at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">database mounted<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
1 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
2 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
3 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
4 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
5 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
6 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone datafile
7 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
restore<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
from service 'usben' clone database<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql 'alter system archive log current';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Starting restore at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: starting datafile backup
set restore<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: using network backup set
from service usben<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: specifying datafile(s) to
restore from backup set<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restoring datafile 00001
to +DATA<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restore complete, elapsed
time: 00:03:05<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: starting datafile backup
set restore<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="background-color: yellow; color: red;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: starting datafile backup
set restore<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: using network backup set
from service usben<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: specifying datafile(s) to
restore from backup set<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restoring datafile 00007
to +DATA<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restore complete, elapsed
time: 00:00:03<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Finished restore at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: alter system archive
log current<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">current log archived<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
restore clone force from service
'usben'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> archivelog from scn 2241689;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
switch clone datafile all;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Starting restore at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: starting archived log
restore to default destination<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: using network backup set
from service usben<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restoring archived log<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">archived log thread=1 sequence=55<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restore complete, elapsed
time: 00:00:01<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: starting archived log
restore to default destination<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: using network backup set
from service usben<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restoring archived log<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">archived log thread=1 sequence=56<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">channel a1: restore complete, elapsed
time: 00:00:01<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Finished restore at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">datafile 1 switched to datafile copy<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">input datafile copy RECID=8
STAMP=903285999 file name=+DATA/USBEN/DATAFILE/system.309.903285615<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="background-color: yellow; color: red;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">input datafile copy RECID=14
STAMP=903286000 file name=+DATA/USBEN/DATAFILE/usben_indx.296.903285995<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set until scn 2242137;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
recover<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
clone database<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
delete archivelog<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET until clause<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Starting recover at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">starting media recovery<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">archived log for thread 1 with
sequence 55 is already on disk as file /backup/usben/arch/1_55_902782329.dbf<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">archived log for thread 1 with
sequence 56 is already on disk as file /backup/usben/arch/1_56_902782329.dbf<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">archived log file
name=/backup/usben/arch/1_55_902782329.dbf thread=1 sequence=55<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">archived log file
name=/backup/usben/arch/1_56_902782329.dbf thread=1 sequence=56<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">media recovery complete, elapsed time:
00:00:00<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Finished recover at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Oracle instance started<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Total System Global Area 281018368 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Fixed Size 2923440 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Variable Size 222299216 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Database Buffers 50331648 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Redo Buffers 5464064 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql clone "alter system set
db_name =<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''USBEN'' comment=<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> ''Reset to original value by RMAN''
scope=spfile";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
sql clone "alter system reset
db_unique_name scope=spfile";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: alter system set db_name =
''USBEN'' comment= ''Reset to original value by RMAN'' scope=spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: alter system reset db_unique_name scope=spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Executing: create
pfile='/ora/app/oracle/product/12.1.0.1/db_1/dbs/initusben.ora' from spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Oracle instance started<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Total System Global Area 281018368 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Fixed Size 2923440 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Variable Size 222299216 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Database Buffers 50331648 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Redo Buffers 5464064 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">sql statement: CREATE CONTROLFILE
REUSE SET DATABASE "USBEN" RESETLOGS ARCHIVELOG<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
MAXLOGFILES 16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
MAXLOGMEMBERS 3<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
MAXDATAFILES 100<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
MAXINSTANCES 8<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
MAXLOGHISTORY 292<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> LOGFILE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
GROUP 1 ( '+DATA', '+DATA' )
SIZE 200 M ,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
GROUP 2 ( '+DATA', '+DATA' )
SIZE 200 M<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> DATAFILE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
'+DATA/USBEN/DATAFILE/system.309.903285615'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> CHARACTER SET WE8MSWIN1252<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
set newname for clone tempfile
2 to new;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
switch clone tempfile all;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
catalog clone datafilecopy
"+DATA/USBEN/DATAFILE/usben_data.306.903285801",<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> "+DATA/USBEN/DATAFILE/sysaux.302.903285803",<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> "+DATA/USBEN/DATAFILE/undotbs1.297.903285909",<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> "+DATA/USBEN/DATAFILE/example.299.903285917",<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> "+DATA/USBEN/DATAFILE/users.307.903285991",<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;"> "+DATA/USBEN/DATAFILE/usben_indx.296.903285995";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
switch clone datafile all;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing command: SET NEWNAME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">renamed tempfile 2 to +DATA in control
file<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">cataloged datafile copy<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">datafile copy file
name=+DATA/USBEN/DATAFILE/usben_data.306.903285801 RECID=1 STAMP=903286025<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">cataloged datafile copy<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="background-color: yellow; color: red;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">cataloged datafile copy<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">datafile copy file
name=+DATA/USBEN/DATAFILE/usben_indx.296.903285995 RECID=6 STAMP=903286026<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">datafile 2 switched to datafile copy<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">input datafile copy RECID=1
STAMP=903286025 file name=+DATA/USBEN/DATAFILE/usben_data.306.903285801<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="background-color: yellow; color: red;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">datafile 7 switched to datafile copy<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">input datafile copy RECID=6
STAMP=903286026 file name=+DATA/USBEN/DATAFILE/usben_indx.296.903285995<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">contents of Memory Script:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">
Alter clone database open resetlogs;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">executing Memory Script<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">database opened<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Finished Duplicate Db at 08-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">released channel: t1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 10.0pt;">Recovery Manager complete.<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<span style="background-color: white;">
</span></div>
<div class="MsoNormal" style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<br />
<o:p><b style="background-color: yellow; color: red; font-size: 12.61px; line-height: 18.915px;"><u>Step 6</u></b><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"> Create the spfile in ASM disk</span><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;">. We could do this step at the beginning too. However, i do this step at the end for my convenience. </span></o:p><br />
<o:p><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"><br /></span></o:p>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 315.9pt;" valign="top" width="421"><div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> show parameter spfile;<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
NAME TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
spfile string<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<b><span style="color: red;">-- Creating spfile in ASM disk</span></b></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> create spfile='+DATA/USBEN/PARAMETERFILE/spfileusben.ora' from PFILE;<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
File created.</div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> !<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<o:p><span style="color: red;"><b>-- Here i updated the parameter file to point to SPFILE in ASM disk.</b></span></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<o:p><span style="color: red;"><b><br /></b></span></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$ cat initusben.ora<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">SPFILE='+DATA/USBEN/PARAMETERFILE/spfileusben.ora'<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$</span></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<b><span style="color: red;">-- Restart the database with spfile.</span></b></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> shutdown immediate<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> startup<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Total System Global Area 281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Fixed Size 2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Variable Size 222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Database Buffers 50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Redo Buffers 5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Database mounted.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
Database opened.<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> set echo on<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> set feedback on<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben> show parameter spfile<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
NAME TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
spfile string +DATA/USBEN/PARAMETERFILE/spfileusben.ora</div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; margin-bottom: 0.0001pt;">
sys@usben></div>
</td></tr>
</tbody></table>
</div>
<div class="MsoNormal" style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<br /></div>
</div>
</div>
</div>
</div>
<div>
<span style="background-color: white;">
</span>
<span style="background-color: white;"><u><span style="background-color: yellow; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><b>Step 7</b></span><span style="background-color: white; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;"> </span></u><span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"> </span>Verify the restored database.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidUUMZlRYAzfa6Dh5vHEc7i4hdKskH6jiuNvTOMBqFD1jLEPnj-xMdoeiWxT0AVXdsYG_G2h5GdyHcMrbiY542ZVWBZvt8weL4kbhOyKhzYMsMTLGTyCaxztRCx91IrbWCgPvxK3_VN6M/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidUUMZlRYAzfa6Dh5vHEc7i4hdKskH6jiuNvTOMBqFD1jLEPnj-xMdoeiWxT0AVXdsYG_G2h5GdyHcMrbiY542ZVWBZvt8weL4kbhOyKhzYMsMTLGTyCaxztRCx91IrbWCgPvxK3_VN6M/s320/1.png" width="210" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">The database restored successfully and migrated to ASM instance.</span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-47117924626469602422016-02-05T09:11:00.001-08:002016-02-22T09:33:54.813-08:00Duplicate the database using Target database RMAN backup with ASM Migration<div dir="ltr" style="text-align: left;" trbidi="on">
Oracle11gR2 comes with new features where we can duplicate the database from the Target Database to the Auxiliary Database using RMAN backup without connecting to the Target database and rman catalog. Only thing what is required is, full backup of the Target database.<br />
<br />
High Level steps :<br />
<br />
1. Have recent RMAN L0 backup of target database.<br />
2. FTP the RMAN backup files from target server to auxiliary server<br />
3. Create all the directories in auxiliary server<br />
4. Start the instance(with nomount) in auxiliary instance<br />
5. Duplicate the database in auxiliary instance.<br />
6. create spfile in ASM disk<br />
7. Database validation and verification<br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Target DB info :</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQOyx9pFNLE0z1jANSDuSXk0NdWYHHw_zysAlIZAUGHpCG7AlS1iS5Gsxa1yS2ezqepiSjGfQIOAr5J4qz8LwATeG3Lb4ScGwCgob9egKPDx6IFBzLP8Lgy_LVrdZ0wk6Z_zJirGRXC2Y/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQOyx9pFNLE0z1jANSDuSXk0NdWYHHw_zysAlIZAUGHpCG7AlS1iS5Gsxa1yS2ezqepiSjGfQIOAr5J4qz8LwATeG3Lb4ScGwCgob9egKPDx6IFBzLP8Lgy_LVrdZ0wk6Z_zJirGRXC2Y/s320/2.png" width="206" /></a></div>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="background-color: white; color: #222222; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">I am restoring the above database to the new host called ractest1. The RBDMS is already installed in ractest1 host and it is same as target database version.</span><br />
<br />
<span style="background-color: yellow;"><span style="color: red;"><b><u>Step1</u></b></span></span> Take RMAN L0 backup & Archive log backup in target server. I am using the below script to backup the database in target server. We can also use the recent full backup from tape if it is already available in tape. I am using disk backup for my convenience. <br />
<br />
<div>
<b style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">usben_L0_backup.sh</b></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWpO0Bevmi1UARsAk7CZbpaBXVxMTa1axK-fvR1zgoaR9AP-HaHa46NRPqEM_5Klgs-AX-lDBOvU7XSH0p1LWwHAAktkcjVi0pPEcHws7ehkYr4Z8DZop8nfA5GH1-ixkG3sPZas6b_OQ/s1600/l0.png" imageanchor="1" style="clear: left; color: #888888; float: left; margin-bottom: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="231" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWpO0Bevmi1UARsAk7CZbpaBXVxMTa1axK-fvR1zgoaR9AP-HaHa46NRPqEM_5Klgs-AX-lDBOvU7XSH0p1LWwHAAktkcjVi0pPEcHws7ehkYr4Z8DZop8nfA5GH1-ixkG3sPZas6b_OQ/s320/l0.png" style="background: rgb(255, 255, 255); border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; padding: 5px; position: relative;" width="320" /></a></div>
</div>
<div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Here is the log file for full backup.<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 315.9pt;" valign="top" width="421"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to target database: USBEN (DBID=2379284599)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
using target database control file instead of recovery catalog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: T01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: SID=61 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET COMMAND ID<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting full datafile backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: specifying datafile(s) in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
including current SPFILE in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: finished piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece handle=/backup/usben/USBEN_SPFILE_20160216_0927_133_45qu2cfv_1_1_903950847 tag=USBEN_L0_20160216_0927 comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: backup set complete, elapsed time: 00:00:01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting full datafile backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: specifying datafile(s) in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
including current control file in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: finished piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece handle=/backup/usben/USBEN_CTRL_20160216_0927_134_46qu2cg0_1_1_903950848 tag=USBEN_L0_20160216_0927 comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: backup set complete, elapsed time: 00:00:01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting compressed incremental level 0 datafile backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: specifying datafile(s) in backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile file number=00001 name=/data01/oradata/usben/system01.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background-color: yellow; color: red;">-- trimming the info here for brevity</span></b><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile file number=00003 name=/data01/oradata/usben/sysaux01.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: starting piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: finished piece 1 at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece handle=/backup/usben/USBEN_L0_20160216_0927_135_47qu2cg3_1_1_903950851 tag=USBEN_L0_20160216_0927 comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel T01: backup set complete, elapsed time: 00:02:15<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished backup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Control File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
piece handle=/ora/app/oracle/fast_recovery_area/USBEN/<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
autobackup/2016_02_16/o1_mf_s_903950986_cd6dltf7_.bkp comment=NONE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished Control File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
released channel: T01<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager complete.<o:p></o:p></div>
</td></tr>
</tbody></table>
</div>
<div>
<br /></div>
<div>
<b>usben_Arch_backup.sh</b></div>
<div>
<div style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzZZixdgaTpriKFh5LhxsNCchSAL1wqmnHg573u1Hi_Vl0VFoHU6q6r0ilO9NyBwWx3-Yc2Wu2mADjovldz5u-mkZY4nUNCu-kwojxrMuwhV1el0RRHvdqnNkx3UEu1dXCLElDWZ8Gl7E/s1600/arcg.png" imageanchor="1" style="clear: left; color: #888888; float: left; margin-bottom: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="212" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzZZixdgaTpriKFh5LhxsNCchSAL1wqmnHg573u1Hi_Vl0VFoHU6q6r0ilO9NyBwWx3-Yc2Wu2mADjovldz5u-mkZY4nUNCu-kwojxrMuwhV1el0RRHvdqnNkx3UEu1dXCLElDWZ8Gl7E/s320/arcg.png" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; padding: 5px; position: relative;" width="320" /></a></div>
</div>
<div style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
</div>
<div style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;">
<span style="color: black; font-family: "times new roman"; font-size: small; line-height: normal;"><br /></span>
<span style="color: black; font-family: "times new roman"; font-size: small; line-height: normal;"><br /></span>
<span style="color: black; font-family: "times new roman"; font-size: small; line-height: normal;">Here is the log file for archive log backup.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 369.9pt;" valign="top" width="493"><div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">connected to target
database: USBEN (DBID=2379284599)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">RMAN> 2> 3>
4> 5> 6> 7> 8> 9> 10><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">using target
database control file instead of recovery catalog<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">allocated channel:
T01<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01: SID=59
device type=DISK<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">executing command:
SET COMMAND ID<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">sql statement: alter
system archive log current<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Starting backup at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">current log archived<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
starting archived log backup set<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
specifying archived log(s) in backup set<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">input archived log
thread=1 sequence=267 RECID=261 STAMP=903951084<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">--
trimming the info here for brevity</span></b><span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">input archived log
thread=1 sequence=301 RECID=295 STAMP=903951315<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
starting piece 1 at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
finished piece 1 at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">piece
handle=/backup/usben/USBEN_Arch_20160216_0935_137_49qu2cuj_1_1_903951315
tag=TAG20160216T093515 comment=NONE<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01: backup
set complete, elapsed time: 00:01:05<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">channel T01:
deleting archived log(s)<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">archived log file
name=/data02/oradata/arch/1_267_902782329.dbf RECID=261 STAMP=903951084<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<b><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">--
trimming the info here for brevity</span></b><span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">archived log file
name=/data02/oradata/arch/1_301_902782329.dbf RECID=295 STAMP=903951315<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Finished backup at
16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Starting Control
File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">piece
handle=/ora/app/oracle/fast_recovery_area/USBEN/<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">autobackup/2016_02_16/o1_mf_s_903951381_cd6dz606_.bkp
comment=NONE<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Finished Control
File and SPFILE Autobackup at 16-FEB-16<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">released channel:
T01<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">RMAN><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 13.85pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="color: #222222; font-family: "arial" , "sans-serif"; font-size: 9.0pt;">Recovery Manager
complete.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><span style="color: red;"><b><u>Step2</u></b></span></span> FTP the RMAN backup files from target server to auxiliary server. </div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">The RMAN backup files are coped to auxiliary server as below. Also copy the password file from target server to auxiliary database server. Password file is placed under $ORACLE_HOME/dbs directory.</span></span></span><br />
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">The below backup list has full backup, Archive log bakcup & Archive logs.</span></span></span><br />
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTZJyXstq2tlUO1mVWdzRK3r40xD9JOdCAulGDUnTglIbKwRbs-Vzj9BFVaRoi-kqmCUS1-GwEjtBJRV92qcdcreIzVkSf9mGkz5DwhnShMebzF_wuHw95TsldiPzVX5qQWVvtEf1gg5A/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="243" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTZJyXstq2tlUO1mVWdzRK3r40xD9JOdCAulGDUnTglIbKwRbs-Vzj9BFVaRoi-kqmCUS1-GwEjtBJRV92qcdcreIzVkSf9mGkz5DwhnShMebzF_wuHw95TsldiPzVX5qQWVvtEf1gg5A/s320/1.png" width="320" /></a></div>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></span>
<br />
<div class="separator" style="background-color: white; clear: both; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; text-align: center;">
</div>
<div class="separator" style="background-color: white; clear: both; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px; text-align: center;">
</div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><span style="color: red;"><b><u>Step3</u></b></span></span> Create the necessary folders in auxiliary database. Here i am migrating the database from file system to ASM disk. This case, we don't need to create directory in the file system. I created the directory in ASM disk.<br />
<br />
[oracle@RACTEST1 ~]$ asmcmd<br />
ASMCMD> cd +DATA<br />
ASMCMD> mkdir USBEN<br />
<br />
Add entry in /etc/oratab for usben database.<br />
<br />
Edit the parameter file in auxiliary database according to the environment. Here is the modified pfile in auxiliary database.<br />
<br />
<b>initusben.ora</b><br />
<div>
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 249.85pt;" valign="top" width="333"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__data_transfer_cache_size=0<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__db_cache_size=536870912<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__java_pool_size=16777216<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__large_pool_size=150994944<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__oracle_base='/ora/app/oracle' <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__pga_aggregate_target=671088640<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__sga_target=989855744<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__shared_io_pool_size=50331648<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__shared_pool_size=218103808<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben.__streams_pool_size=0<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.compatible='12.1.0.2.0'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">*.control_files='+DATA','+DATA'</span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_block_size=8192<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_domain='localdomain'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_name='usben'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">*.db_create_file_dest='+DATA'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">*.db_recovery_file_dest='+DATA'</span><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.db_recovery_file_dest_size=4560m<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.diagnostic_dest='/ora/app/oracle'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.dispatchers='(PROTOCOL=TCP) (SERVICE=usbenXDB)'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_1='location=/backup/usben/arch'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_state_1='enable'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.open_cursors=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.processes=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.remote_login_passwordfile='EXCLUSIVE'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.undo_tablespace='UNDOTBS1'</div>
</td>
</tr>
</tbody></table>
<span style="background-color: yellow;"><span style="color: red;"><u style="background-color: yellow; color: red; font-weight: bold;"><br /></u></span></span>
<span style="background-color: yellow;"><span style="color: red;"><u style="background-color: yellow; color: red; font-weight: bold;">Step4</u><span style="background-color: white;"><span style="color: red;"> </span><span style="color: red;"> </span></span></span></span>Start the instance using the above parameter with nomount mode:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBnrqPNVfsMf5glppbNCEVgU1t4OP6uzbqzpwOtut4uba-IzDUaE6RrEvbBQbCAI2bdqYz-ft4Yq_f4QHgFeVOqEbG9gPgf6EjYouMUdCjT59t1rZyDKKzidGzAkDszRBNyczAjgLmRFM/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="233" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBnrqPNVfsMf5glppbNCEVgU1t4OP6uzbqzpwOtut4uba-IzDUaE6RrEvbBQbCAI2bdqYz-ft4Yq_f4QHgFeVOqEbG9gPgf6EjYouMUdCjT59t1rZyDKKzidGzAkDszRBNyczAjgLmRFM/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<u style="background-color: yellow; color: red; font-weight: bold;"><br /></u>
<u style="background-color: yellow; color: red; font-weight: bold;">Step5</u><span style="background-color: yellow; color: red; font-weight: bold;"> </span>Duplicate the database<br />
<br />
<span style="background-color: yellow;"><span style="color: red;"><span style="background-color: white;"><b>restore.sh</b></span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDk5mu_TzGSBx2Y8b_FfIFvkE3cr_93n7hFECOrF5YHJWHpQgeYbctQxqo01c7v3hjhTvnK8slA6alNbiHIzPpPpfVEkNz9RjNC-3yNUsK8d8Okees3aIbAYZWVVMQitvzhv42WTQKuYg/s1600/restore1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="312" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDk5mu_TzGSBx2Y8b_FfIFvkE3cr_93n7hFECOrF5YHJWHpQgeYbctQxqo01c7v3hjhTvnK8slA6alNbiHIzPpPpfVEkNz9RjNC-3yNUsK8d8Okees3aIbAYZWVVMQitvzhv42WTQKuYg/s320/restore1.png" width="320" /></a></div>
<span style="background-color: yellow;"><span style="color: red;"><span style="background-color: white;"><br /></span></span></span>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Start running the above script in background mode.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 usben]$ nohup ./restore.sh &</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[1] 14120</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 usben]$</span></div>
<div>
<br /></div>
Tailing the log file while restoring the database.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
tail -f restore.log<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;"><tbody>
</tbody></table>
<div class="MsoNormal">
<span style="font-size: 9.0pt; line-height: 115%;"><br /></span></div>
<div class="MsoNormal">
<span style="background-color: white;">Here is the complete restore log file.</span><br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Feb 17
13:23:26 2016<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to auxiliary database: USBEN (not mounted)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: a1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: SID=34 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting Duplicate Db at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql clone "create
spfile from memory";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: create spfile from memory<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
shutdown clone immediate;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
startup clone nomount;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle instance shut down<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
connected to auxiliary database (not started)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle instance started<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area
281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size
2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size
222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers
50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers
5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: a1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: SID=33 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql clone "alter system
set control_files = <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''+DATA/USBEN/CONTROLFILE/current.316.904051433'',
''+DATA/USBEN/CONTROLFILE/current.295.904051435'' comment=<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''Set by RMAN''
scope=spfile";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql clone "alter system
set db_name = <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''USBEN'' comment=<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''Modified by RMAN duplicate''
scope=spfile";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql clone "alter system
set db_unique_name = <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''USBEN'' comment=<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''Modified by RMAN duplicate''
scope=spfile";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
shutdown clone immediate;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
startup clone force nomount<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
restore clone primary
controlfile from
'/backup/usben/rman/USBEN_CTRL_20160216_0927_134_46qu2cg0_1_1_903950848';<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter clone database mount;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: alter system set
control_files = ''+DATA/USBEN/CONTROLFILE/current.316.904051433'',
''+DATA/USBEN/CONTROLFILE/current.295.904051435'' comment= ''Set by RMAN''
scope=spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: alter system set
db_name = ''USBEN'' comment=
''Modified by RMAN duplicate'' scope=spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: alter system set
db_unique_name = ''USBEN''
comment= ''Modified by RMAN duplicate'' scope=spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle instance shut down<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle instance started<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area
281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size
2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size
222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers
50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers
5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
allocated channel: a1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: SID=33 device type=DISK<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting restore at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring control file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restore complete, elapsed time: 00:00:02<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
output file name=+DATA/USBEN/CONTROLFILE/current.316.904051433<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
output file name=+DATA/USBEN/CONTROLFILE/current.295.904051435<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished restore at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
database mounted<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set until scn 2534513;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 1 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 2 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 3 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 4 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 5 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 6 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
datafile 7 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
restore<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
clone database<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET until clause<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting restore at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: starting datafile backup set restore<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: specifying datafile(s) to restore from backup set<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring datafile 00001 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring datafile 00002 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; line-height: 18.4667px;"><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9pt;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring datafile 00006 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring datafile 00007 to +DATA<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: reading from backup piece
/backup/usben/rman/USBEN_L0_20160216_0927_135_47qu2cg3_1_1_903950851<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: piece
handle=/backup/usben/rman/USBEN_L0_20160216_0927_135_47qu2cg3_1_1_903950851
tag=USBEN_L0_20160216_0927<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restore complete, elapsed time: 00:07:45<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished restore at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
switch clone datafile all;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 1 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=8 STAMP=904051938 file
name=+DATA/USBEN/DATAFILE/system.309.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 2 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; line-height: 18.4667px;"><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9pt;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=14 STAMP=904051938 file
name=+DATA/USBEN/DATAFILE/usben_indx.310.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set until scn 2534513;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
recover<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
clone database<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
delete archivelog<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET until clause<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Starting recover at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
starting media recovery<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log for thread 1 with sequence 302 is already on disk as
file /backup/usben/rman/1_302_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log for thread 1 with sequence 303 is already on disk as
file /backup/usben/rman/1_303_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; line-height: 18.4667px;"><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9pt;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log for thread 1 with sequence 331 is already on disk as
file /backup/usben/rman/1_331_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log for thread 1 with sequence 332 is already on disk as
file /backup/usben/rman/1_332_902782329.dbf<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: starting archived log restore to default destination<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=267<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=268<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=269<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; line-height: 18.4667px;"><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9pt;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restoring archived log<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log thread=1 sequence=301<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: reading from backup piece
/backup/usben/rman/USBEN_Arch_20160216_0935_137_49qu2cuj_1_1_903951315<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: piece
handle=/backup/usben/rman/USBEN_Arch_20160216_0935_137_49qu2cuj_1_1_903951315
tag=TAG20160216T093515<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel a1: restore complete, elapsed time: 00:00:55<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_267_902782329.dbf
thread=1 sequence=267<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel clone_default: deleting archived log(s)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_267_902782329.dbf
RECID=66 STAMP=904051990<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_268_902782329.dbf
thread=1 sequence=268<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel clone_default: deleting archived log(s)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_268_902782329.dbf
RECID=44 STAMP=904051963<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; line-height: 18.4667px;"><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9pt;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_300_902782329.dbf
thread=1 sequence=300<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel clone_default: deleting archived log(s)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_300_902782329.dbf
RECID=65 STAMP=904051989<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_301_902782329.dbf
thread=1 sequence=301<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
channel clone_default: deleting archived log(s)<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/arch/1_301_902782329.dbf
RECID=64 STAMP=904051989<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/rman/1_302_902782329.dbf
thread=1 sequence=302<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/rman/1_303_902782329.dbf
thread=1 sequence=303<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: white; line-height: 18.4667px;"><span style="background: yellow; color: red; font-family: "arial" , "sans-serif"; font-size: 9pt;">-- trimming the info here for brevity</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/rman/1_331_902782329.dbf
thread=1 sequence=331<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
archived log file name=/backup/usben/rman/1_332_902782329.dbf
thread=1 sequence=332<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
media recovery complete, elapsed time: 00:05:50<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished recover at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle instance started<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area
281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size
2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size
222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers
50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers
5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql clone "alter system
set db_name = <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''USBEN'' comment=<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
''Reset to original value by
RMAN'' scope=spfile";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql clone "alter system
reset db_unique_name
scope=spfile";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: alter system set
db_name = ''USBEN'' comment=
''Reset to original value by RMAN'' scope=spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: alter system reset
db_unique_name scope=spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Executing: create
pfile='/ora/app/oracle/product/12.1.0.1/db_1/dbs/initusben.ora' from spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Oracle instance started<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area
281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size
2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size
222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers
50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers
5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sql statement: CREATE CONTROLFILE REUSE SET DATABASE
"USBEN" RESETLOGS ARCHIVELOG <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MAXLOGFILES 16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MAXLOGMEMBERS 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MAXDATAFILES 100<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MAXINSTANCES 8<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
MAXLOGHISTORY 292<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
LOGFILE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
GROUP 1 ( '+DATA', '+DATA' ) SIZE 200 M ,<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
GROUP 2 ( '+DATA', '+DATA' ) SIZE 200 M <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
DATAFILE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'+DATA/USBEN/DATAFILE/system.309.904051473'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
CHARACTER SET WE8MSWIN1252<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
set newname for clone
tempfile 2 to new;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
switch clone tempfile all;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
catalog clone
datafilecopy
"+DATA/USBEN/DATAFILE/usben_data.299.904051473", <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"+DATA/USBEN/DATAFILE/sysaux.314.904051473",
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"+DATA/USBEN/DATAFILE/undotbs1.302.904051473",
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"+DATA/USBEN/DATAFILE/example.306.904051473",
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"+DATA/USBEN/DATAFILE/users.296.904051473",
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
"+DATA/USBEN/DATAFILE/usben_indx.310.904051473";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
switch clone datafile all;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing command: SET NEWNAME<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
renamed tempfile 2 to +DATA in control file<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloged datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile copy file name=+DATA/USBEN/DATAFILE/usben_data.299.904051473
RECID=1 STAMP=904052369<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloged datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile copy file name=+DATA/USBEN/DATAFILE/sysaux.314.904051473
RECID=2 STAMP=904052369<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloged datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile copy file name=+DATA/USBEN/DATAFILE/undotbs1.302.904051473
RECID=3 STAMP=904052369<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloged datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile copy file name=+DATA/USBEN/DATAFILE/example.306.904051473
RECID=4 STAMP=904052369<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloged datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile copy file name=+DATA/USBEN/DATAFILE/users.296.904051473
RECID=5 STAMP=904052369<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
cataloged datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile copy file name=+DATA/USBEN/DATAFILE/usben_indx.310.904051473
RECID=6 STAMP=904052369<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 2 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=1 STAMP=904052369 file
name=+DATA/USBEN/DATAFILE/usben_data.299.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 3 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=2 STAMP=904052369 file
name=+DATA/USBEN/DATAFILE/sysaux.314.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 4 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=3 STAMP=904052369 file
name=+DATA/USBEN/DATAFILE/undotbs1.302.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 5 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=4 STAMP=904052369 file
name=+DATA/USBEN/DATAFILE/example.306.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 6 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=5 STAMP=904052369 file
name=+DATA/USBEN/DATAFILE/users.296.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
datafile 7 switched to datafile copy<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
input datafile copy RECID=6 STAMP=904052369 file
name=+DATA/USBEN/DATAFILE/usben_indx.310.904051473<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
contents of Memory Script:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Alter clone database open
resetlogs;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
executing Memory Script<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
database opened<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Finished Duplicate Db at 17-FEB-16<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
RMAN> <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Recovery Manager complete.</div>
</td></tr>
</tbody></table>
<div class="MsoNormal">
<br />
<o:p style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><u style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; font-weight: bold; line-height: 18.915px;">Step 6</u><span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> </span><span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Create the spfile in ASM disk</span><span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">. We could do this step at the beginning too. However, i do this step at the end for my convenience. </span></o:p><br />
<o:p style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></o:p><span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="background-color: white; border-collapse: collapse; border: none; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 315.9pt;" valign="top" width="421"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> show parameter spfile;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NAME TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
spfile string<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: red;">-- Creating spfile in ASM disk</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> create spfile='+DATA/USBEN/PARAMETERFILE/spfileusben.ora' from PFILE;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
File created.</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> !<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p><span style="color: red;"><b>-- Here i updated the parameter file to point to SPFILE in ASM disk.</b></span></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p><span style="color: red;"><b><br /></b></span></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$ cat initusben.ora<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">SPFILE='+DATA/USBEN/PARAMETERFILE/spfileusben.ora'<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="color: red;">-- Restart the database with spfile.</span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> shutdown immediate<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> startup<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance started.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Total System Global Area 281018368 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Fixed Size 2923440 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Variable Size 222299216 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database Buffers 50331648 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Redo Buffers 5464064 bytes<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database mounted.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database opened.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> set echo on<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> set feedback on<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> show parameter spfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
NAME TYPE VALUE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
------------------------------------ ----------- ------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
spfile string +DATA/USBEN/PARAMETERFILE/spfileusben.ora</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben></div>
</td></tr>
</tbody></table>
</div>
<div class="MsoNormal">
<u style="background-color: yellow; color: red; font-weight: bold;"><br /></u>
<u style="background-color: yellow; color: red; font-weight: bold;"><br /></u>
<u style="background-color: yellow; color: red; font-weight: bold;">Step7 </u><span style="background-color: white;"><span style="color: red;"> </span></span><span style="background-color: white; color: #222222; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Verify all the files and make sure all files are moved to ASM disk. Also watch out the alert log for a while. Create the listener and make sure able to connect outside the database server.</span></div>
<div class="MsoNormal">
<span style="background-color: white;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO432q_aH8FXf2G4zKaTEtF7K7TvFyTsp8w8i9_ReaTEMi5xGO3fGP5SZrKjLJDZXHDgQW2J-hV-gkA0eI9wLvD1-7WWzRNInCY4uN5M2y-kbmguFXjxOeO47kGsJUWY1oQNJP5d3Eg94/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO432q_aH8FXf2G4zKaTEtF7K7TvFyTsp8w8i9_ReaTEMi5xGO3fGP5SZrKjLJDZXHDgQW2J-hV-gkA0eI9wLvD1-7WWzRNInCY4uN5M2y-kbmguFXjxOeO47kGsJUWY1oQNJP5d3Eg94/s320/1.png" width="210" /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8-XQPTf5OU2wdZBY3mrdOPBUaEQF-hMVCt9ILgy2eupMbAbxmAS5hNaen6c9DRO6CmUAQikvZyF2DMRCNGMLTIlv69SssW4TbxpOWfdSJUgdJh2xw_81VOk99WiApSTZGDaw_IpTWHb0/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8-XQPTf5OU2wdZBY3mrdOPBUaEQF-hMVCt9ILgy2eupMbAbxmAS5hNaen6c9DRO6CmUAQikvZyF2DMRCNGMLTIlv69SssW4TbxpOWfdSJUgdJh2xw_81VOk99WiApSTZGDaw_IpTWHb0/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span>
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;"><br /></span><br />
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">Now the database is successfully restored in different host. The database is also migrated to ASM disk as part of restore.</span><br />
<br style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13.2px; line-height: 18.48px;" />
<span style="background-color: white; color: #222222; font-family: "arial" , "tahoma" , "helvetica" , "freesans" , sans-serif; font-size: 13.2px; line-height: 18.48px;">Enjoy reading my blog!!</span></div>
</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: white;"><br /></span></div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-37948357671108846722016-01-30T10:48:00.001-08:002016-04-19T12:21:18.795-07:00Convert Single Instance to RAC - Manual Method<div dir="ltr" style="text-align: left;" trbidi="on">
This topic is for converting single instance stand alone database to RAC instance. I am demonstrating this in oracle12c version. There are several ways we can do this.. But RMAN restore is preferred method for least downtime in bigger Tera Byte size database.<br />
<br />
If you want to convert from Oracle11g to Oracle12c, then i would recommend to upgrade the stand alone DB to Oracle12c and complete the testing before you migrate to RAC. This will help narrow down the issues when we do one thing at a time.<br />
<br />
I followed the oracle document for this RAC migration. Here is the reference <a href="https://docs.oracle.com/database/121/RACAD/cvt2rac.htm#CACGBJHC">document</a> for my post. I also referred the metalink Doc ID 747457.1. Please review the oracle document before you start doing in your environment. All my steps needs to be tested in your Test environment before you do in your production environment.<br />
<br />
Prerequisite :<br />
<br />
Install cluster and ASM on all nodes<br />
Install the oracle software<br />
Stand alone DB and RAC must be same database version.<br />
ASM disks size should be good enough to accommodate the source database.<br />
Cluster should be up and running on RAC node.<br />
<span style="background-color: yellow;"><br /></span>
<span style="background-color: yellow;">Source DB info :</span><br />
<br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 313px;">
<colgroup><col style="mso-width-alt: 5193; mso-width-source: userset; width: 107pt;" width="142"></col>
<col style="mso-width-alt: 6253; mso-width-source: userset; width: 128pt;" width="171"></col>
</colgroup><tbody>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="height: 15.75pt; width: 107pt;" width="142">Host
Name</td>
<td class="xl65" style="border-left: none; width: 128pt;" width="171">usbenhost</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="border-top: none; height: 15.75pt;">Instance name</td>
<td class="xl65" style="border-left: none; border-top: none;">usben</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="border-top: none; height: 15.75pt;">DB name</td>
<td class="xl65" style="border-left: none; border-top: none;">usben</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="border-top: none; height: 15.75pt;">Storage type</td>
<td class="xl65" style="border-left: none; border-top: none;">file system</td>
</tr>
</tbody></table>
<br />
<span style="background-color: yellow;">Target DB info :</span><br />
<br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 313px;">
<colgroup><col style="mso-width-alt: 5193; mso-width-source: userset; width: 107pt;" width="142"></col>
<col style="mso-width-alt: 6253; mso-width-source: userset; width: 128pt;" width="171"></col>
</colgroup><tbody>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="height: 15.75pt; width: 107pt;" width="142">Host
Name</td>
<td class="xl65" style="border-left: none; width: 128pt;" width="171">ractest1,
ractest2, ractest3</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="border-top: none; height: 15.75pt;">Instance name</td>
<td class="xl65" style="border-left: none; border-top: none;">usben1, usben2,usben3</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="border-top: none; height: 15.75pt;">DB name</td>
<td class="xl65" style="border-left: none; border-top: none;">usben</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl65" height="21" style="border-top: none; height: 15.75pt;">Storage type</td>
<td class="xl65" style="border-left: none; border-top: none;">ASM</td>
</tr>
</tbody></table>
<br />
<div>
There are two major task on this migration, The first part is to migrate the database from stand alone server(usbenhost) to ractest1 database server. I am using RMAN restore to migrate the database.<br />
<br />
There are multiple ways we can restore the database. As part of the migration, i am also moving the database to ASM disk.<br />
<ol style="text-align: left;">
<li> Duplicate the database using target database backup. Click <a href="http://www.myorastuff.blogspot.com/2016/02/duplicate-database-using-target.html">here</a> for details.</li>
<li> Duplicate the database using Active database duplication. Click <a href="http://www.myorastuff.blogspot.com/2016/02/duplicate-database-using-active-database.html">here</a> for details.</li>
<li> Regular RMAN restore approach. Click <a href="http://www.myorastuff.blogspot.com/2016/02/step-by-step-rman-restore-to-different.html">here</a> for details.</li>
<li> Setup the Standby Database. Click <a href="http://www.myorastuff.blogspot.com/2015/12/restore-standby-database-from-another.html">here</a> for details.</li>
</ol>
Option 1 & Option 2 would cause longer downtime. Because, we have to keep the application down during the restore. Option 3 & Option 4 would reduce the application downtime significantly. Application will be down only during the RAC configuration if we choose option 3 & 4.<br />
<br />
Here are the high level steps for option 1 & Option 2.<br />
<ol style="text-align: left;">
<li>Shutdown the application.</li>
<li>Restore the database in RAC host and open the database</li>
<li>Convert the DB to RAC DB</li>
<li>Start the application.</li>
</ol>
Here are the high level steps for option 3 <br />
<ol>
<li>Restore the database in RAC host</li>
<li>Apply the daily archive log files in RAC host.</li>
<li>On the cut over date. apply all the archive log files. </li>
<li>Shutdown the application,</li>
<li>Open the stand alone database in RAC node</li>
<li>Convert the DB to RAC DB</li>
<li>Start the application.</li>
</ol>
Here are the high level steps for option 4<br />
<ol>
<li>Setup the standby database in RAC host.</li>
<li>Shutdown the application,</li>
<li>Switch over the database or activate the database in RAC host</li>
<li>Convert the DB to RAC DB</li>
<li>Start the application.</li>
</ol>
I followed Option 3 to migrate the database from usbenhost to ractest1 node.<br />
<br />
Now let us start converting the DB to RAC database!<br />
<br />
My standby alone database is already migrated from stand alone server to RAC node . Here is the database info :<br />
select name from v$datafile<br />
union<br />
select name from v$controlfile<br />
union<br />
select member from v$logfile<br />
union<br />
select name from v$tempfile<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAdilo3a3OCOFDRFl1CTzMnI-Mg77cE2pDBIOlckJzapg_2NSaAPJEFNZG0J3P1gr2fFtnFlQ416Z1cpSravt1RhxYfx6My12iSpC7zlR5-h8scRH0rYuHBowiZ832XLQqWCysG1K-lbI/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAdilo3a3OCOFDRFl1CTzMnI-Mg77cE2pDBIOlckJzapg_2NSaAPJEFNZG0J3P1gr2fFtnFlQ416Z1cpSravt1RhxYfx6My12iSpC7zlR5-h8scRH0rYuHBowiZ832XLQqWCysG1K-lbI/s320/1.png" width="169" /></a></div>
<br />
<br />
<span style="background-color: white;"><br /></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span><br />
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<b><u><span style="background-color: yellow; color: red;">Step 1</span></u></b><br />
Make sure, MAXINSTANCES and MAXLOGFILES Parameters are good enough for RAC environment. I verified my control file and looks good for me. If not, please recreate the control file with appropriate values.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN4_Ue_zfJp7NzrEMmwAwn4wfOVSnzePMQad9S9LshloIuHYeuXoTyJJiwckdMu-GJCAtMvG6AN1XQRLI_lgfuc8ePKdkdgEvVeCkFQ5UJhtUDX4i4yCuj0vizlDvlHTIkXmb0_6uhAnI/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="115" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN4_Ue_zfJp7NzrEMmwAwn4wfOVSnzePMQad9S9LshloIuHYeuXoTyJJiwckdMu-GJCAtMvG6AN1XQRLI_lgfuc8ePKdkdgEvVeCkFQ5UJhtUDX4i4yCuj0vizlDvlHTIkXmb0_6uhAnI/s320/1.png" width="320" /></a></div>
<br />
<br />
<span style="color: red;"><span style="background-color: white;"><br /></span></span>
<br />
<br />
<br />
<br />
<b><u><span style="background-color: yellow; color: red;"><br /></span></u></b>
<b><u><span style="background-color: yellow; color: red;"><br /></span></u></b>
<b><u><span style="background-color: yellow; color: red;">Step 2</span></u></b><br />
<span style="background-color: white;">Create the redo log group and undo tablespace for each instance. The redo and undo are handled on per instance basis. We need minimum two redo log groups for each instance and it should be created on shared storage. My case, I keep two redo log groups. I will let you choose the number of redo log groups according to your environment.</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">Each redo log group should be assigned to thread number in RAC database. </span><span style="background-color: white;">It is very important to specify the thread number when you add or create redo log files. This will ensure that the redo log file is assigned to right instance. </span><br />
<span style="background-color: white;"><br /></span>
Each instance is assigned a thread number starting at 1.<span style="background-color: white;"> Hence i am creating redo log groups for thread#2 and thread#3.</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">Here i have three node RAC. Hence i am creating redo and undo for other two instance.</span><br />
<span style="background-color: white;"><br /></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 239.4pt;" valign="top" width="319"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database add logfile <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
thread 2 group 6 ('+DATA') size 50m reuse;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database add logfile <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
thread 2 group 7 ('+DATA') size 50m reuse;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database add logfile <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
thread 3 group 8 ('+DATA') size 50m reuse;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database add logfile <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
thread 3 group 9 ('+DATA') size 50m reuse;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database enable public thread 2;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
alter database enable public thread 3;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
create undo tablespace UNDOTBS2 datafile <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'+DATA' size 50M;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
create undo tablespace UNDOTBS3 datafile <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
'+DATA' size 50M;</div>
</td>
</tr>
</tbody></table>
<span style="background-color: white;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhst9Q1w_2LQc1_N3fOnmTQwtDVsmHBFF8cn35hIjOLYuFLfl1Hu1iSf_Uu13kPUNw2ZNo4oKhaAx1qS6GwOYti7HEyHLqbOzZc2e5gL80fpgCTBCl37-Mjd66Nr1W2nUgbRWcV95UAJdQ/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhst9Q1w_2LQc1_N3fOnmTQwtDVsmHBFF8cn35hIjOLYuFLfl1Hu1iSf_Uu13kPUNw2ZNo4oKhaAx1qS6GwOYti7HEyHLqbOzZc2e5gL80fpgCTBCl37-Mjd66Nr1W2nUgbRWcV95UAJdQ/s320/1.png" width="210" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">Step 3</span><span style="background-color: white;"> Recreate the spfile with RAC parameters</span><br />
<b><u><span style="background-color: yellow; color: red;"><br /></span></u></b><span style="background-color: white;">The spfile is stored in ASM storage. Create pfile from spfile and m</span><span style="background-color: white;">odify the pfile with RAC related parameters</span><br />
<span style="background-color: white;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6ABJ-TkNJrzar8Jr65TgR_Y3IY8J66hLZKA_N5BM6bbkjheZMTltx7muupsica5KZvnoLEcZ4M_pc6jjcsMYd1GfzSbnH3HMllUeawArBp9TTAyc6dB5Ce9wvTPkCxLddE1NLgbkD2_Y/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="100" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6ABJ-TkNJrzar8Jr65TgR_Y3IY8J66hLZKA_N5BM6bbkjheZMTltx7muupsica5KZvnoLEcZ4M_pc6jjcsMYd1GfzSbnH3HMllUeawArBp9TTAyc6dB5Ce9wvTPkCxLddE1NLgbkD2_Y/s320/1.png" width="320" /></a></div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span><span style="background-color: white;"><br /></span><br />
<span style="background-color: white;">Add the below parameters in pfile for ractest1 node. I also changed the archive log destination location to ASM disk.</span><br />
<span style="background-color: white;"><br /></span>
<br />
<div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.7in;" valign="top" width="259"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.log_archive_dest_1='location=+DATA/USBEN/ARCH'<br />
*.cluster_database_instances=3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
*.cluster_database=true<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben1.instance_number=1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben2.instance_number=2<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben3.instance_number=3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben1.thread=1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben2.thread=2<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben3.thread=3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben1.undo_tablespace='UNDOTBS1'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben2.undo_tablespace='UNDOTBS2'<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
usben3.undo_tablespace='UNDOTBS3'<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
</div>
</div>
<div>
<div class="MsoNormal">
Now shutdown the single instance database in ractest1 node. Recreate the spfile from above modified pfile.<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 419.4pt;" valign="top" width="559"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben> shutdown immediate<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database closed.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Database dismounted.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORACLE instance shut down.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben1> create
spfile='+DATA/USBEN/PARAMETERFILE/spfileusben.ora' from PFILE;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
File created.<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
sys@usben1><o:p></o:p></div>
</td>
</tr>
</tbody></table>
<br />
Now spfile is updated with RAC parameters. Now we are ready to start the single instance into RAC instance.<br />
<div class="MsoNormal">
<br /></div>
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 4</b><span style="background-color: white;"> </span>Drop the static listener if you created during the database duplication process. Use NETCA to configure the listener in RAC environment. Copy the password file from ractest1 instance to other two nodes(ractest2, ractest3).<br />
<br /></div>
</div>
<div>
<span style="background-color: yellow;"><span style="background-color: yellow; color: red;"><b style="text-decoration: underline;">Step 5</b> </span><span style="background-color: white;">Start the RAC instance on all three node</span></span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">Add the entry in /etc/oratab</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: yellow;">ractest1 host : usben1:/ora/app/oracle/product/12.1.0.1/db_1:N</span><br />
<span style="background-color: yellow;">ractest2 host : usben2:/ora/app/oracle/product/12.1.0.1/db_1:N</span><br />
<div>
<span style="background-color: yellow;">ractest3 host : usben3:/ora/app/oracle/product/12.1.0.1/db_1:N</span></div>
<div>
<br /></div>
<span style="background-color: white;">Before you start the instance, make sure you set the new environment variable. Since the instance name is changed from usben to usben1. You get the below error if you don't set the ORACLE_SID with new value USBEN1</span><br />
<span style="background-color: white;"><br /></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 315.9pt;" valign="top" width="421"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
> startup nomount pfile=$ORACLE_HOME/dbs/initusben1.ora<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ORA-29760: instance_number parameter not specified<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<span style="background-color: white;">
</span><br />
<div class="MsoNormal">
<br /></div>
update the pfile on all three instance as below. The pfile initusben.ora is no longer valid. Since we are going to convert the single instance to RAC instance.<br />
<div class="MsoNormal">
<br />
[oracle@RACTEST1 dbs]$ cat initusben1.ora<br />
SPFILE='+DATA/USBEN/PARAMETERFILE/spfileusben.ora'<br />
[oracle@RACTEST1 dbs]$<br />
<div>
<br /></div>
</div>
<div class="MsoNormal">
[oracle@RACTEST2 dbs]$ cat initusben2.ora<br />
SPFILE='+DATA/USBEN/PARAMETERFILE/spfileusben.ora'<br />
[oracle@RACTEST2 dbs]$<br />
<div>
<br /></div>
</div>
<div class="MsoNormal">
[oracle@RACTEST3 dbs]$ cat initusben3.ora<br />
SPFILE='+DATA/USBEN/PARAMETERFILE/spfileusben.ora'<br />
[oracle@RACTEST3 dbs]$<br />
<div>
<br /></div>
</div>
Now start the instance on all three node with new spfile.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmI8yAodDgc5-vk7GW0iLpxG_sIvQta3WnVIpqoEMT74I1e6cl6yI4FMDxiEXPhp_yOoE3iff6RRs12BitJ3HQpf43Y-JbhZW0OJ4QTT7C4Y_7dFHm75Mu1DQiQ3JRneEUjtbTwMGsF3M/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmI8yAodDgc5-vk7GW0iLpxG_sIvQta3WnVIpqoEMT74I1e6cl6yI4FMDxiEXPhp_yOoE3iff6RRs12BitJ3HQpf43Y-JbhZW0OJ4QTT7C4Y_7dFHm75Mu1DQiQ3JRneEUjtbTwMGsF3M/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKVfHnMuZMy3g_k8ZYBtUMgtypWsJ7X_zmMArNqSyRegOYLmRlxDUcaEV4M0X59XPhKs9dMmKujPO3sSQBFrLOTkl4EWD5G7H5jLcxQ-WE-U12jBkJ2_pqV0_UfLxGauh0PpfwdUtYR5o/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKVfHnMuZMy3g_k8ZYBtUMgtypWsJ7X_zmMArNqSyRegOYLmRlxDUcaEV4M0X59XPhKs9dMmKujPO3sSQBFrLOTkl4EWD5G7H5jLcxQ-WE-U12jBkJ2_pqV0_UfLxGauh0PpfwdUtYR5o/s320/2.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx8scMwH1iTpjtqhryNv6fzcrLBZLNY2zZtIO5r5bvqbUDIAZFQ78dn7byWDPlqnWNrtHCXT1QABfAfNdhyQ3ZOG5rxdnPCS263RMwup-f7SMnqfecU0USphaItMH3aOpaC9o0g9PF1LQ/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx8scMwH1iTpjtqhryNv6fzcrLBZLNY2zZtIO5r5bvqbUDIAZFQ78dn7byWDPlqnWNrtHCXT1QABfAfNdhyQ3ZOG5rxdnPCS263RMwup-f7SMnqfecU0USphaItMH3aOpaC9o0g9PF1LQ/s320/3.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">Step 6</span><br />
Execute catclust.sql on ractest1 node. This script creates the dictionary views needed for Oracle RAC databases. I run this script even before we configure the RAC instance.<br />
<div class="MsoNormal">
</div>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; font-family: 'times new roman';"><tbody>
<tr><td style="border: 1pt solid; padding: 0in 5.4pt; width: 378.9pt;" valign="top" width="505"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
[oracle@RACTEST1 dbs]$ cd $ORACLE_HOME/rdbms/admin<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
[oracle@RACTEST1 admin]$ sqlplus / as sysdba<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
SQL*Plus: Release 12.1.0.2.0 Production on Sat Feb 27 05:34:27 2016<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Copyright (c) 1982, 2014, Oracle. All rights reserved.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Connected to:<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Advanced Analytics and Real Application Testing options<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
SQL> !pwd<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
/ora/app/oracle/product/12.1.0.1/db_1/rdbms/admin<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
SQL> @catclust.sql<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Session altered.</div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Package created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Package body created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
PL/SQL procedure successfully completed.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
View created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Grant succeeded.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
View created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Grant succeeded.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
View created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Grant succeeded.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Synonym created.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
PL/SQL procedure successfully completed.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
Session altered.<o:p></o:p></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
<br /></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div style="margin: 0px;">
SQL><o:p></o:p><br />
<div>
<br /></div>
</div>
</div>
</td></tr>
</tbody></table>
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;"><br /></span>
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">Step 7</span><span style="background-color: white;"> </span><span style="background-color: white;">Register the RAC instance in the CRS.</span></div>
<div>
<br />
<span style="background-color: yellow;">srvctl add database -d usben -o $ORACLE_HOME -p +DATA/USBEN/PARAMETERFILE/spfileusben.ora</span><br />
<span style="background-color: yellow;">srvctl add instance -d usben -i usben1 -n RACTEST1.localdomain</span><br />
<span style="background-color: yellow;">srvctl add instance -d usben -i usben2 -n RACTEST2.localdomain</span><br />
<span style="background-color: yellow;">srvctl add instance -d usben -i usben3 -n RACTEST3.localdomain</span><br />
<span style="background-color: yellow;"><br /></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 414.9pt;" valign="top" width="553"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl add database -d usben -o
$ORACLE_HOME -p
+DATA/USBEN/PARAMETERFILE/spfileusben.ora<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl add instance -d usben -i usben1 -n
RACTEST1.localdomain<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl add instance -d usben -i usben2 -n
RACTEST2.localdomain<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl add instance -d usben -i usben3 -n
RACTEST3.localdomain<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$</div>
</td>
</tr>
</tbody></table>
<br />
<span style="background-color: yellow;"><span style="color: red; font-weight: bold; text-decoration: underline;">Step 8</span><span style="background-color: white;"> </span><span style="background-color: white;">Move the password file to ASM Storage.</span></span><br />
<span style="background-color: yellow;"><span style="background-color: white;"><br /></span></span>
The password file is currently on local file system. Starting Oracle12c, it should be in ASM storage centralized location.<br />
<br />
Created the password file on ASM disk as below.<br />
<br />
<span style="background-color: yellow;">[oracle@RACTEST1 dbs]$ orapwd file='+DATA/USBEN/orapwusben' entries=10 dbuniquename=usben password=password</span><br />
<br />
Now the password file is common for all three nodes.<br />
<span style="background-color: yellow;"><span style="background-color: white;"><br /></span></span>
<span style="background-color: yellow;"><span style="background-color: white;"><span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">Step 9</span><span style="background-color: white;"><span style="background-color: yellow;"> </span><span style="background-color: white;"> </span></span><span style="background-color: white;">Restart the RAC instance using SRVCTL command.</span></span></span><br />
<span style="background-color: yellow;"><span style="background-color: white;"><span style="background-color: white;"><br /></span></span></span></div>
<div>
Let us shutdown the DB and start the database using srvctl command.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvA-IOYhIpd9s6xa3FD63iwZfmIel3AA07uIyCW1w_dKYxvGwOfoQrE9g2wc3ndyn0mcS8bg-EjhXlZLmaOENWQVbD8x-4AJISsMw0gAKIfhiiC1LPplgmIgfmVfVZT-ciV7Yaliq4U6w/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvA-IOYhIpd9s6xa3FD63iwZfmIel3AA07uIyCW1w_dKYxvGwOfoQrE9g2wc3ndyn0mcS8bg-EjhXlZLmaOENWQVbD8x-4AJISsMw0gAKIfhiiC1LPplgmIgfmVfVZT-ciV7Yaliq4U6w/s1600/1.png" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxhuPzj-P-1lcqdcTuBEebCFBmr277S3d-Lca03Co6T5IEkFaCRX1-9n8zRLjY3YgnXhmi9R-ivyiVxzdX0butU2sLS1EGoZQMJAIYl-7ZeH9UZ5vghFJA-gWahFN2a5LfUwAO_REqhgc/s1600/2.png" imageanchor="1" style="clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxhuPzj-P-1lcqdcTuBEebCFBmr277S3d-Lca03Co6T5IEkFaCRX1-9n8zRLjY3YgnXhmi9R-ivyiVxzdX0butU2sLS1EGoZQMJAIYl-7ZeH9UZ5vghFJA-gWahFN2a5LfUwAO_REqhgc/s1600/2.png" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgllfDDwcoCfcCwcmvZksKfCIwhGndf6u-rVQOH15Ms1h8yoxaKVsKZ4-mP_KJjqAhihCToZS9eOlX58smeX3HC9_En3a_KmdpCx9NkKSq-448NTgeuVv9qfrCXCjMZwgjYAcVqbN9mdRQ/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgllfDDwcoCfcCwcmvZksKfCIwhGndf6u-rVQOH15Ms1h8yoxaKVsKZ4-mP_KJjqAhihCToZS9eOlX58smeX3HC9_En3a_KmdpCx9NkKSq-448NTgeuVv9qfrCXCjMZwgjYAcVqbN9mdRQ/s1600/4.png" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 324.9pt;" valign="top" width="433"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl start database -d usben<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl stop database -d usben<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 dbs]$ srvctl start database -d usben</div>
</td>
</tr>
</tbody></table>
<br />
The conversion process is completed once we start the database by using srvctl.<br />
<br />
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">Step 10</span><span style="background-color: white;"><span style="background-color: yellow;"> </span><span style="background-color: white;"> </span></span><span style="background-color: white;">RAC instance verification.</span><br />
<span style="background-color: white;"><br /></span>
Let us run few command and see the status of all the instances in the Oracle RAC database.<br />
<br />
select * from v$active_instances;<br />
select host_name,instance_number,instance_name,status,thread# from gv$instance;<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGKEHxmc8hGcSzKomwCmm27BwZiNsurGAIVUnKD2smLuFdjsKBdqf8pNNuqATEQhtkf9z73UhCTwHV6hWoNBUIFlH2HAyL9z10GCdga6uxrXsKknK1YP6OSI4r0rcUHptKyLw4ypZQX1o/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="116" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGKEHxmc8hGcSzKomwCmm27BwZiNsurGAIVUnKD2smLuFdjsKBdqf8pNNuqATEQhtkf9z73UhCTwHV6hWoNBUIFlH2HAyL9z10GCdga6uxrXsKknK1YP6OSI4r0rcUHptKyLw4ypZQX1o/s320/1.png" width="320" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAYhl2nzTywxPFRi1EQGQR_DHPIaESmiNw2R2esrvyZzYMve4PGZdmUg1y4kWeyAN5xXDWyVJMNlFslwq0sqAmNqi7O6R1tqnQZf5jvBH5r4bLQ1e9q-akoPl5iEe03qYqkJBY0XBJA5w/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="70" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAYhl2nzTywxPFRi1EQGQR_DHPIaESmiNw2R2esrvyZzYMve4PGZdmUg1y4kWeyAN5xXDWyVJMNlFslwq0sqAmNqi7O6R1tqnQZf5jvBH5r4bLQ1e9q-akoPl5iEe03qYqkJBY0XBJA5w/s320/1.png" width="320" /></a></div>
<br />
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;"><br /></span>
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;"><br /></span>
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;"><br /></span>
<span style="background-color: yellow; text-decoration: underline;"><br /></span>
<br />
<span style="background-color: yellow; text-decoration: underline;"><br /></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 257.4pt;" valign="top" width="343"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$ srvctl status database -d usben<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben1 is running on node RACTEST1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben2 is running on node RACTEST2<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Instance usben3 is running on node RACTEST3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[oracle@RACTEST1 ~]$</div>
</td>
</tr>
</tbody></table>
<span style="background-color: yellow; text-decoration: underline;"><br /></span>
<span style="background-color: white;">Checking the RAC cluster global process :</span><br />
<span style="background-color: white;"><br /></span>
<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 401.4pt;" valign="top" width="535"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]# crsctl stat resource -t<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Name Target State
Server State
details<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Local Resources<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.DATA.dg<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OFFLINE
OFFLINE ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.TEST.dg<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.VOTE.dg<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.VOTE1.dg<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OFFLINE
OFFLINE ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE OFFLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE OFFLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.VOTE2.dg<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.asm<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
OFFLINE
ONLINE ractest1 Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2
Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3
Started,STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.net1.network<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE
ONLINE ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.ons<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Cluster Resources<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER_SCAN1.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER_SCAN2.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.LISTENER_SCAN3.lsnr<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.MGMTLSNR<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest3 169.254.214.12,STABL<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
E<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.cvu<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.govinddb.db<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 OFFLINE OFFLINE Instance
Shutdown,ST<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
2 OFFLINE OFFLINE Instance
Shutdown,ST<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
3 OFFLINE OFFLINE STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.mgmtdb<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 OFFLINE OFFLINE STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.oc4j<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.ractest1.vip<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest1 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.ractest2.vip<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.scan1.vip<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest2 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.scan2.vip<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
ora.scan3.vip<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1 ONLINE ONLINE
ractest3 STABLE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background-color: yellow; color: red;">ora.usben.db<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background-color: yellow; color: red;"> 1 ONLINE ONLINE
ractest1 Open,STABLE<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background-color: yellow; color: red;"> 2 ONLINE ONLINE
ractest2 Open,STABLE<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="background-color: yellow; color: red;"> 3 ONLINE ONLINE
ractest3 Open,STABLE</span></b><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
--------------------------------------------------------------------------------<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
[root@RACTEST1 ~]#<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<span style="background-color: white;">
</span><br />
<div class="MsoNormal">
<br /></div>
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">
</span>
<span style="background-color: yellow; color: red; font-weight: bold; text-decoration: underline;">Step 11</span><span style="background-color: white;"> Monitor the logs ,</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">Monitor the below log files and make sure no issues.</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostname/crsd/ – The log files for the CRS daemon</span><br />
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostname/cssd/ – The log files for the CSS daemon</span><br />
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostname/evmd/ – The log files for the EVM daemon</span><br />
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostname/client/ – The log files for the Oracle Cluster Registry (OCR)</span><br />
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostname/racg/ – The log files for the Oracle RAC high availability component</span><br />
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostname/racg – The log files for the Oracle RAC high availability component</span><br />
<span style="background-color: white; color: #404040; font-family: "arial" , "helvetica neue" , "helvetica" , sans-serif; font-size: 13px; line-height: 19px;">CRS_HOME/log/hostanme/alert.log – The alert.log for Clusterware issues.</span><br />
<div class="MsoNormal">
<br /></div>
</div>
<div>
Now we all set! RAC node conversion is completed now! Hope this post helps.<br />
Please provide your feedback,<br />
<br /></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-26346663922661194312016-01-24T19:18:00.001-08:002016-01-26T08:58:29.588-08:00How to Identify the Master node in RAC?<div dir="ltr" style="text-align: left;" trbidi="on">
This question came to my mind when i was doing the RAC course and thought i post this topic in my blog and it might be helpful for others.<br />
<div>
<br /></div>
<div>
The node which join first in the cluster is Master node. Each node has node id and it is assigned the order in which the node is joined in the cluster. If master node is evicted or rebooted, cluster choose the next node(node which joined in the cluster right after the master/first node) for master instance.</div>
<div>
<br /></div>
<div>
Master node is responsible for backing up the OCR file. Obliviously, who ever is backing up the OCR is master instance. This is one way we can find the master node.</div>
<div>
<br /></div>
<div>
<div>
<b><span style="background-color: yellow; color: red;">[root@RAC1 crsd]# ocrconfig -showbackup auto</span></b></div>
<div>
<b><span style="background-color: yellow; color: red;"><br /></span></b></div>
<div>
<b><span style="background-color: yellow; color: red;">rac1 2015/10/07 09:45:15 /grid/app/11.2.0/grid/cdata/RAC-cluster/backup00.ocr</span></b></div>
<div>
<b><span style="background-color: yellow; color: red;"><br /></span></b></div>
<div>
<b><span style="background-color: yellow; color: red;">rac1 2015/10/07 05:45:14 /grid/app/11.2.0/grid/cdata/RAC-cluster/backup01.ocr</span></b></div>
<div>
<b><span style="background-color: yellow; color: red;"><br /></span></b></div>
<div>
<b><span style="background-color: yellow; color: red;">rac1 2015/10/07 01:45:14 /grid/app/11.2.0/grid/cdata/RAC-cluster/backup02.ocr</span></b></div>
<div>
<b><span style="background-color: yellow; color: red;"><br /></span></b></div>
<div>
<b><span style="background-color: yellow; color: red;">rac1 2015/10/07 01:45:14 /grid/app/11.2.0/grid/cdata/RAC-cluster/day.ocr</span></b></div>
<div>
<b><span style="background-color: yellow; color: red;"><br /></span></b></div>
<div>
<b><span style="background-color: yellow; color: red;">rac1 2015/10/05 16:25:04 /grid/app/11.2.0/grid/cdata/RAC-cluster/week.ocr</span></b></div>
<div>
<b><span style="background-color: yellow; color: red;">[root@RAC1 crsd]#</span></b></div>
</div>
<div>
<br /></div>
<div>
As per the above output, RAC1 is master instance.</div>
<div>
<br /></div>
<div>
Second way to identify the master instance is, scanning the ocssd log file.</div>
<div>
<br /></div>
<div>
<div>
[oracle@RAC1 cssd]$ cat /grid/app/11.2.0/grid/log/rac1/cssd/ocssd.log|grep 'master node'|tail -1</div>
<div>
2016-01-24 20:35:25.670: [ CSSD][2105509648]clssgmCMReconfig: reconfiguration successful, incarnation 339437441 with 2 nodes, <span style="background-color: yellow; color: red;"><b>local node number 1, master node number 1</b></span></div>
<div>
[oracle@RAC1 cssd]$</div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Third way to identify the master instance is, scanning the crssd log file.</div>
<div>
<br /></div>
<div>
<div>
[oracle@RAC1 crsd]$ cat /grid/app/11.2.0/grid/log/rac1/crsd/crsd.log|grep 'OCR MASTER'|tail -1</div>
<div>
2016-01-24 20:35:25.077: [ OCRMAS][2206197520]th_master:12: <span style="background-color: yellow; color: red;"><b>I AM THE NEW OCR MASTER</b></span> at incar 1. Node Number 1</div>
<div>
[oracle@RAC1 crsd]$</div>
</div>
<div>
<br /></div>
<div>
Hope this post is helpful..</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-29605705201119336182016-01-21T11:41:00.001-08:002016-01-24T09:58:19.124-08:00What is Cache Fusion and how it works in RAC<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Oracle used disk pinging </span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Prior to Oracle RAC Cache Fusion concept. </span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">There was no data block transfer between the buffer cache of one instance buffer cache of another instance.</span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Instance A read the block from disk and Instance B wants to read the same block which is not in the instance B buffer cache, then Instance B needs to read the block from the disk which is causing additional disk read.</span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Instance A made changes on the particular data block and Instance B wanted to read the committed row, then, Instance A has to write the changes on the disk before Instance B read the same record.</span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">This becomes performance bottleneck and Oracle introduced Cache Fusion in Oracle 8i to enhance the performance improvement.</span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b>What is Cache Fusion?</b></span></span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Cache Fusion Oracle RAC transfer the data block from buffer cache of one instance to the buffer cache of another instance using the cluster high speed interconnect. </span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">For instance, Instance A read the block and it is in local buffer cache. Now Instance B wants to read the same block, then it can transfer the block(shared current image - SCUR ) from instance A buffer cache to Instance B buffer cache. It does not require additional disk read.</span><br />
<br style="background-color: #eeeecc; color: #333333; font-family: 'Trebuchet MS', Verdana, Arial, sans-serif; font-size: 12.61px; line-height: 18.915px;" />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Instance A made changes on the particular block and it is not committed yet. Now instance B wants to read the same block, then, Instance A send the consistent read (CR) image copy to instance B. </span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Cache Fusion avoids disk read and it greatly enhance the performance.</span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Let me demonstrate the cache fusion and how it works in RAC. I have three node RAC and node names are ractest1, ractest2 & ractest3. The instance names are govinddb1, govinddb2 & govinddb3. The Database version is oracle 12c. I am going to use only two nodes for this cache fusion experiment. I will create small tiny table with 6 rows and two columns and play around the cache fusion with different scenarios.</span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><b style="background-color: yellow;">Cache Fusion Demonstration :</b></span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> I</span><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> am going to use the below SQL multiple times in my demonstration.. hence i am storing the script on my server.</span><br />
<span style="background-color: #eeeecc; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b>vbh.sql</b></span></span><br />
<span style="background-color: #eeeecc; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b></b></span></span><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">select file#, block#,</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> decode(class#,1,'data block',2,'sort block',3,'save undo block', 4,</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 'segment header',5,'save undo header',6,'free list',7,'extent map',</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 8,'1st level bmb',9,'2nd level bmb',10,'3rd level bmb', 11,'bitmap block',</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 12,'bitmap index block',13,'file header block',14,'unused',</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 15,'system undo header',16,'system undo block', 17,'undo header',</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 18,'undo block') class_type, status, LOCK_ELEMENT_ADDR</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> from v$bh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">order by 1,2,3;</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; color: red; font-size: 12.61px; line-height: 18.915px;"><b>sess.sql</b></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">column name format a30</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">select sn.name,st.value</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">from v$statname sn</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">join v$sesstat st</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">on sn.statistic#=st.statistic#</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">where</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">sn.name in('session logical reads',</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">'physical reads', 'gc cr blocks received',</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">'gc current blocks received')</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">and st.sid = SYS_CONTEXT('USERENV','SID')</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">order by sn.statistic#;</span></span><br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">The below script has run on my first node ractest1(govinddb1 instance). I setup new schema with table to test the cache fusion. </span><br />
<br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">create user cfdemo identified by cfdemo;</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">grant dba to cfdemo;</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">grant select on V_$BH to cfdemo;</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">conn cfdemo/cfdemo</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">create table emp (empno number, ename char(10));</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">insert into emp values(1,'Scott');</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">insert into emp values(2,'Mark');</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">insert into emp values(3,'Ranny');</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">insert into emp values(4,'King');</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">insert into emp values(5,'Eddie');</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">insert into emp values(6,'Danny');</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">commit;</span></span><br />
<div>
<br /></div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Let us check how many blocks have occupied and what are the block numbers used for this tiny table. </span><br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> select extent_id, block_id, blocks</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 2 from dba_extents</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 3 where segment_name = 'EMP'</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 4 and owner='CFDEMO';</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> EXTENT_ID BLOCK_ID BLOCKS</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ----------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 0 216 8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">okay... This table used 8 blocks and starting from block# 216 to block#223. It is small tiny table and why would it use 8 blocks? The data block may be one or two. But other blocks might include header block & bitmap block. Let us look and see which block is used for data..</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> select EMPNO,</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 2 dbms_rowid.rowid_relative_fno(rowid) file#,</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 3 dbms_rowid.rowid_block_number(rowid) block#</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 4 from emp;</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> EMPNO FILE# BLOCK#</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ----------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 1 6 223</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 2 6 223</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 3 6 223</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 4 6 223</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 5 6 223</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 6 223</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">6 rows selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">oh.. Out of 8 blocks, the actual data are stored on only one block(#223).</span></span><br />
<br />
<b style="background-color: yellow; color: red; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;"> </b><span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Let us check if these blocks are on the database buffer cache.</span><br />
<br />
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> select data_object_id, object_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 2 from dba_objects</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 3 where object_name = 'EMP'</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 4 and owner='CFDEMO';</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">DATA_OBJECT_ID OBJECT_ID</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">-------------- ----------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 93446 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 216 1st level bmb xcur 0000000086F8B010</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 217 2nd level bmb xcur 0000000086F7D208</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header xcur 0000000086F8EF80</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block xcur 0000000086F966B8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block xcur 0000000086FA46F0</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block xcur 0000000086F715E8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block xcur 0000000086F78460</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> <span style="background-color: yellow;"> 6 223 data block xcur 0000000086F8C4D8</span></span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">8 rows selected.</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span></div>
</div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<div style="font-size: 12.61px; line-height: 18.915px;">
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><br /></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
<div style="font-size: 12.61px; line-height: 18.915px;">
Look at here... all the blocks are in memory and shows status XCUR(Exclusive current). why? Because, we created the table and rows a moment ago. so, all the rows are in memory and these are most recent current copy. Hence, it acquired Exclusive current lock. <br />
<br />
Another question is, all 6 rows are stored on block#223. But why there are more blocks(219,220,221,222) shows as a data block? I guess, Oracle allocates more blocks and reserve for future insert. This is my best guess.<br />
These may be empty blocks allocated for this table.</div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<br /></div>
<div style="font-size: 12.61px; line-height: 18.915px;">
Let us go to instance 2 and check if these buffers are in memory.</div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<br /></div>
<div>
<div style="font-size: medium; line-height: normal;">
<span style="font-size: 12.61px; line-height: 18.915px;">sys@govinddb2> @vbh</span></div>
<div style="font-size: medium; line-height: normal;">
<span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></div>
<div style="font-size: medium; line-height: normal;">
<span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></div>
<div style="font-size: medium; line-height: normal;">
<span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></div>
<div style="font-size: medium; line-height: normal;">
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div style="font-size: medium; line-height: normal;">
<span style="font-size: 12.61px; line-height: 18.915px;">no rows selected</span></div>
<div style="font-size: medium; line-height: normal;">
<div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">sys@govinddb2></span></div>
</div>
</div>
<div>
<div>
<div>
<br /></div>
</div>
</div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<span style="font-size: 12.61px; line-height: 18.915px;"> no rows selected. It means, these blocks are not in instance 2 buffer cache. It makes sense. Since we never selected these rows in instance 2.</span></div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<span style="background-color: #eeeecc; font-size: 12.61px; line-height: 18.915px;">Let us select a row in instance 2 and see if we have the data in buffer cache.</span></div>
</div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<br /></div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> select ENAME from EMP where EMPNO = &empno;</span></div>
</span><br />
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">Enter value for empno: 1</span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">old 1: select ENAME from EMP where EMPNO = &empno</span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">new 1: select ENAME from EMP where EMPNO = 1</span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">ENAME</span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">----------</span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">Scott</span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<span style="font-size: 12.61px; line-height: 18.915px;">1 row selected.</span></div>
</div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Now i selected one row from CFDEMO.EMP table on instance 2. Let us check the cache and see status.</span></div>
<div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif;">
<div>
<br /></div>
</div>
</div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> @vbh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000081FE23B0</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000081FEAC68</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000081FE4020</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000081FD8518</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000081FDD090</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block scur 0000000081FE01C8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">12 rows selected.</span></span><br />
<span style="font-size: 12.61px; line-height: 18.915px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Look at here.. All the blocks(buffer) shows CR(consistent read) and SCUR(Shared current). I selected only one row from the table. It supposed to bring one data block(#223) to instance 2 buffer cache. But why is it bringing all the data blocks? Because, when we select one row, Oracle does not know which row satisfy the condition.. Hence, It does the full table scan and brought all rows to buffer cache. Also note that, there are two copies(SCUR & CR) for each block. Why? Oracle Cache fusion transfer the buffer from instance 1 to instance 2 with CR mode. Once it is copied, it makes another copy of the block with SCUR mode. CR copy is used for consistent read for other readers. But SCUR copy is shared current image across all the instance. Once the buffer becomes SCUR, instance 1 should also change the buffer mode from XCUR to SCUR. We can not have XCUR in one instance and SCUR on other instance.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Let us go back to instance 1 and check the status of these buffer.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 216 1st level bmb xcur 0000000086F8B010</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 217 2nd level bmb xcur 0000000086F7D208</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000086F8EF80</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000086F966B8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000086FA46F0</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000086F715E8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000086F78460</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block scur 0000000086F8C4D8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">8 rows selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<br />
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Now look at above output. All the buffers on instance 1 changed from XCUR to SCUR. The buffers are now shared current. Oracle can go to either instance1 or instance 2 to get the data. The shared current buffers are identical across the instance. </span></div>
<div>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: #eeeecc; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">So far so good..... Let me bounce the database and clear all the buffers and let us play around few scenarios.</span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">[oracle@RACTEST1 ~]$ srvctl stop database -d govinddb -o immediate</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">[oracle@RACTEST1 ~]$ srvctl start database -d govinddb</span></span><br />
<div>
<br /></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Now the DB is bounced... </span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b style="background-color: yellow;">Scenario 1(READ-READ) :</b></span><span style="color: #333333;"> Instance 1 read the block and instance 2 is also reading the same block. let us check the buffer status. </span></span></span><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Read the block from govinddb1 and check the buffer status.</span><br />
<br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> select ename from emp where empno=&empno;</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for empno: 1</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 1: select ename from emp where empno=&empno</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 1: select ename from emp where empno=1</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">ENAME</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">----------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Scott</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1>@sess</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">NAME VALUE</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">------------------------------ ----------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">session logical reads 1792</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">physical reads 85</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">gc cr blocks received 0</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">gc current blocks received 9</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">4 rows selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080F7DBE0</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080F8F098</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080F8E490</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080F76048</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080F7F1C0</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block scur 0000000080F7A878</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">6 rows selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">When oracle reads the data from disk to buffer cache, it acquire shared current lock. Later it would change to exclusive current mode once started making the changes. </span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Let us read the same block from govinddb2 and check the status.</span></div>
<div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> select ename from emp where empno=&empno;</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for empno: 1</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 1: select ename from emp where empno=&empno</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 1: select ename from emp where empno=1</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">ENAME</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">----------</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Scott</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row selected.</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2>@sess</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">NAME VALUE</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">------------------------------ ----------</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">session logical reads 1572</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">physical reads 41</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">gc cr blocks received 2</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">gc current blocks received 39</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">4 rows selected.</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2>@vbh</span></span></div>
<div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080FD6560</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080FE6898</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080FEBCD0</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080FBFD88</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080FCE680</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block scur 0000000080FD0EF8</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">6 rows selected.</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<br /></div>
</div>
</div>
<div style="font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<span style="background-color: yellow;"><span style="color: red;">Confusion: </span></span><span style="background-color: yellow; color: #333333;"> On instance1, the physical read is 85. But on instance 2, the physical read is 41. The number of physical read is reduced in govinddb2. It means, the cache fusion played a role and transferred the block from instance 1 to instance 2. Also the block status is shared current. It means, no one has modified this block yet. Hence it is shared current image on the entire cluster. </span></div>
<div style="color: #333333; font-family: 'trebuchet ms', verdana, arial, sans-serif; font-size: 12.61px; line-height: 18.915px;">
<br /></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><span style="color: red;"><b style="background-color: yellow;">Scenario 2(WRITE-READ) :</b></span><span style="color: #333333;"> Instance 1 update the block and instance 2 is also reading the same block. let us check the buffer status. </span></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> Let us update row 2 on EMP table from instance 1.</span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> update emp set ename='A' where empno=2;</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row updated.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1>@vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080F7DBE0</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080F8F098</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080F8E490</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080F76048</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080F7F1C0</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block xcur 0000000080F7A878</span></span><br />
<br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">7 rows selected.</span></span></div>
<div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Look at the above output. In instance1, now we have two buffers for block#223. The shared current buffer became CR mode. Now we have new buffer with exclusive current(XCUR).</span></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;">Let us check the instance 2.</span></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> @vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080FD6560</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080FE6898</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080FEBCD0</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080FBFD88</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080FCE680</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">6 rows selected.</span></span></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">See... The buffer #223 changed from SCUR to CR. Why? The reason is, we made changes the block #223 on instance 1 and it acquired exclusive lock. Hence all other buffer becomes CR. Remember as i said, there should be only one XCUR for every block on entire cluster. </span></span></div>
<div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Let us select the same row on instance 2 and see how the buffers status changed on both instance.</span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> select ename from emp where empno=2;</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">ENAME</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">----------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">ZZZZ</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2>@vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080FD6560</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080FE6898</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080FEBCD0</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080FBFD88</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080FCE680</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">7 rows selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></span><br />
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Now it generated another CR copy for block #223. The reason is, Cache fusion generate the CR copy in instance 1 and transferred to instance 2 via cluster interconnect. Hence we see two CR copies on instance 2. Let us swing back and check the instance 1 and see any thing changed.</span></span></div>
<div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080F7ED60</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080F93698</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080F9B690</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080F794C8</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080F82F00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block xcur 0000000080F845F8</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">8 rows selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">hmm... look at here on instance 1. Previously there was on CR and one XCUR copy. But now we see two CR copy and 1 XCUR copy. Why? Because, Oracle generate CR copy from XCUR and sent over to intance2 via interconnect. It is not deleting the CR copy on instance 1 after sent over to instance 2. Now two CR + 1 XCUR on instance 1.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Interesting! imagine how many buffers are creating for small tiny table on the database.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="background-color: yellow; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;">Confusion: </span></span><span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> Whenever we make the changes, oracle acquire XCUR lock and downgrade the other buffer copy lock to CR across the cluster. Instance 1 made changes and it generated XCUR and other copy becomes CR. Instance 2 reads the same block, there is another CR copy created on both instance. Why? Instance one generate CR copy and keep one copy in instance 1 and send the same copy to instance 2.</span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /><span style="color: red; font-size: 12.61px; line-height: 18.915px;"><b style="background-color: yellow;">Scenario 3(WRITE-WRITE) :</b></span><span style="color: #333333; font-size: 12.61px; line-height: 18.915px;"> Instance 1 update the block and instance 2 is also updating the same block. let us check the buffer status. </span></span></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> update emp set ename='B' where empno=3;</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row updated.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080F7ED60</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080F93698</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080F9B690</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080F794C8</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080F82F00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block xcur 0000000080F845F8</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">9 rows selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span><br />
<div>
<br /></div>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Look at here.. previously there was 2CR + 1 XCUR copy. Now we see one more CR copy added. Why? The reason is, before it make the changes, Oracle take a CR copy and make the changes on the buffer. Other readers can read the CR copy for consistent read. This is the reason, one more CR copy is added on instance 1. Let us swing back to instance 2 and check the buffer status.</span><br />
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> @vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080FE1460</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080FF2058</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080FF7490</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080FCBE08</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080FDCA00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">7 rows selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></span><br />
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="background-color: white; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">There is no additional buffer copy on instance 2 which is correct. Because, we have not made any changes on instance 2. </span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;">Let us update the row on instance 2 for the same block.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> update emp set ename='B' where empno=4;</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">1 row updated.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2>@vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080FE1460</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080FF2058</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080FF7490</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080FCBE08</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080FDCA00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block xcur 0000000080FDAC78</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">9 rows selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Now we have one more CR copy and one XCUR copy added on instance 2. Why? Because, we modified the same block in instance 2. Cache fusion generate the CR copy and sent over to instance 2. After that, it takes one more copy as XCUR and acquired exclusive lock. The new CR copy is for other readers. The XCUR copy is latest and greatest image copy for the block#223.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Let us swing back to instance 1 and check the buffer status.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080F7ED60</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080F93698</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080F9B690</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080F794C8</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080F82F00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block pi 0000000080F845F8</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">10 rows selected.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: white; font-size: 12.61px; line-height: 18.915px;"></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Look at instance 1 now. Previously it was 3 CR + 1 XCUR. Now we see 4 CR + 1 PI copy. Why? Instance 2 modified the block. so, Cache Fusion creates new CR copy in instance 1 and sent over to instance 2 and covert XCUR copy to PI image(PI image will be used for instance recovery). The PI image will be discarded once the data is written to disk.</span></span><br />
<span style="font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Also see how the XCUR mode is changing back and forth on both the instance. Also block 223 has 4 CR copy in instance 1 and 3 CR copy + XCUR copy in instance 2. so.. one block can be duplicated multiple CR copies and always one XCUR copy across the instance. Every instance can go up to 6 CR copy for the same block and one XCUR copy. Hence every block can have up to 7 copies for each instance.</span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> PI copy is not used for consistent read or current image. PI is copy of the block before the block the written to disk. It is specifically used for instance recovery. Oracle use the PI copy to reconstruct the block during the instance recovery. It does not have to go through redo log when it has PI copy. PI copy will be discarded once the data is written to disk. </span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Let us run the checkpoint on instance 1 and see if PI image is discarded or not...</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> alter system checkpoint;</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">System altered.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @vbh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080F7ED60</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080F93698</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080F9B690</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080F794C8</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080F82F00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> <span style="background-color: yellow;"> 6 223 data block cr 00</span></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">10 rows selected.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="font-size: 12.61px; line-height: 18.915px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1></span></span><br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">After the checkpoint, PI copy is discarded.. But see there is one more CR copy. I guess, Oracle converted PI image to CR copy again. Just my guess. :-) </span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Let me check the instance 2 and see any changes on buffers.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> alter system checkpoint;</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">System altered.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2>@vbh</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header scur 0000000080FE1460</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block scur 0000000080FF2058</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block scur 0000000080FF7490</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block scur 0000000080FCBE08</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block scur 0000000080FDCA00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block cr 00</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block xcur 0000000080FDAC78</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">9 rows selected.</span></span><br />
<span style="font-size: 12.61px; line-height: 18.915px;"><span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">No change on the instance 2.</span></span></div>
<div>
<br /></div>
<div>
<span style="background-color: yellow; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="color: red;">Confusion: </span></span><span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"> Whenever we make the changes on the same block on both the instance, oracle crates PI copy for instance recovery. Also generate additional CR copies on both instance.</span></div>
<div>
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Let us flush the buffer cache on both instance and verify the buffer status.</span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"></span><br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> alter system flush buffer_cache;</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">System altered.</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb1> @xbh</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<br />
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
</span>
<div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;">
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">9 rows selected.</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2> alter system flush buffer_cache;</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">System altered.</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2>@xbh</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">Enter value for data_obj_id: 93446</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">old 9: where objd = &data_obj_id</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">new 9: where objd = 93446</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> FILE# BLOCK# CLASS_TYPE STATUS LOCK_ELEMENT_ADD</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">---------- ---------- ------------------ ---------- ----------------</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 218 segment header free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 219 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 220 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 221 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"> 6 222 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 223 data block free 00</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">9 rows selected.</span></div>
<div>
<span style="font-size: 12.61px; line-height: 18.915px;">cfdemo@govinddb2></span></div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<br /></div>
</span></div>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;">Now all the buffers are freed up and empty. Hope this post helps to explain how cache fusion know where to get the block.</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; color: red; font-size: 12.61px; line-height: 18.915px;"><b>Question & Answers :</b></span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="color: red; font-size: 12.61px; line-height: 18.915px;">If i have 100MB database, I can have 100MB buffer cache to completely avoid physical reads?</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">NO. As we see in the above post, the buffers are generating multiples copies for single block. It can go up to 7 CR copy for single block and XCUR copy. </span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="color: red; font-size: 12.61px; line-height: 18.915px;">At what mode, buffers can be retrieved?</span></span><br />
<span style="color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">Two modes. consistent read(CR) mode and Current mode(shared & exclusive)</span></span><br />
<br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">How many XCUR buffer copy in the cluster?</span><br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">There should be only one on entire cluster. But we can have one shared current per instance. Also we can go up to 6 CR copy per instance.</span><br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">What is the difference between buffer lock and row lock?</span><br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">These are two different things. Oracle acquire row lock the moment the record is changed. The row lock will be released the moment we commit or rollback the changes. The buffer lock will not be released even if we commit or rollback the changes. Buffer lock will stay until we flush the buffer cache or aged out the buffers.</span><br />
<span style="background-color: yellow; color: #333333; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">What are background process involved in cache fusion?</span><br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Global Cache service :<span style="background-color: yellow;"> It provides the buffer from one instance to another instance. But it does not know who has what type of buffer lock. </span></span><br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Global Enqueue service : <span style="background-color: yellow;">It holds the information on the locks on the buffers. The lock info is available in V$LOCK_ELEMENT & V$BH.LOCK_ELEMENT.</span></span><br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><span style="background-color: yellow;"><br /></span></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Global Resource Directory : </span><span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">It list all the master instance of all the buffers, Below query use to find out the master instance of each buffer.</span></span><br />
<br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">What is Master instance in Cache Fusion?</span><br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">Every buffer has master instance. It is also called resource master. When instance wants lock on the specific buffer, it has to reach master instance. Master instance will grant or revoke the privileges to acquire the lock. </span></span><br />
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><br /></span></span>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">How to find the Master instance(resource master) for specific object?</span><br />
<div>
<span style="background-color: yellow; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">There may be several ways we can find this info. However, here is one way we can find the resource master.</span></div>
<div>
<span style="background-color: yellow; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: yellow; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">93446 is EMP table in CFDEMO schema in my database.</span></div>
<div>
<span style="background-color: yellow; color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;"><div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">sys@govinddb1> select b.dbablk,r.kjblmaster master_node</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">from x$le l, x$kjbl r, x$bh b</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">where b.obj = &data_object_id</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">and b.le_addr = l.le_addr</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">and l.le_kjbl = r.kjbllockp 2 3 4 5</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 6 /</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">Enter value for data_object_id: 93446</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">old 3: where b.obj = &data_object_id</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">new 3: where b.obj = 93446</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"><br /></span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> DBABLK MASTER_NODE</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">---------- -----------</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 222 1</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 219 1</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 221 1</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 218 1</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;"> 220 1</span></div>
<div>
<span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">sys@govinddb1></span></div>
<div style="font-size: 12.61px; line-height: 18.915px;">
<br /></div>
</span></div>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif; font-size: 12.61px; line-height: 18.915px;">Any helpful Video's for Cache fusion?</span><br />
<div>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow; font-size: 12.61px; line-height: 18.915px;">Please refer this </span></span><a href="https://www.youtube.com/watch?v=U6FEXtXUt7c">Video</a>.</div>
<div>
<span style="color: red; font-family: "trebuchet ms" , "verdana" , "arial" , sans-serif;"><span style="background-color: yellow;"><span style="font-size: 12.61px; line-height: 18.915px;">Also few more slies <a href="https://www.youtube.com/watch?v=aUDDn3J2P_U">slde1</a>, <a href="https://www.youtube.com/watch?v=StsrtglboAI">slide2</a>, <a href="https://www.youtube.com/watch?v=z59-IH2Qz_c">slide3</a>, <a href="https://www.youtube.com/watch?v=dCPhBq7-Zlo">slide4</a>, <a href="https://www.youtube.com/watch?v=peLSqs5v3BQ">slide5</a>, <a href="https://www.youtube.com/watch?v=Krs4qFnbLLc&list=PLqg1piEvDWZiV9EsXlZBgXlJqXZzUipup&index=6">slide6</a></span></span></span></div>
<br />
<br /></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-76735031975466129992016-01-01T12:10:00.002-08:002016-01-01T12:10:55.029-08:00Register Archive log file manually in standby Database<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span style="font-family: Courier New;"><span style="font-size: 10pt;">Some time, the archive logs are not shipping to
standby location due to network issue.
There may be </span><span style="font-size: 13.3333px;">several</span><span style="font-size: 10pt;"> archive logs are waiting in standby location for
one archive log file. <o:p></o:p></span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">For instance, Archive log sequence # 100 is not
shipped to standby location. But other archive logs(sequence#101 to
sequence#200) were shipped to standby and it is waiting to ship the sequence#
100. In this scenario, DBA can copy the
archive log file and register manually. Once manually registered, the
sequence#101 to sequence#200 will apply automatically on standby database.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step 1</span></u></b><b><u><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Let us assume, the archive log file devdb12_1_283_801988635.arc
is not shipped to standby due to some reason. Copy the archive log file devdb12_1_283_801988635.arc
manually from primary to standby archive destination location.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step</span></u></b><b><u><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"> 2<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Run the below command in standby database.</span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">ALTER DATABASE REGISTER LOGFILE '/dbArch/oradata/devdb12/ devdb12_1_283_801988635.arc';</span></span><span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"> </span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step</span></u></b><b><u><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"> 3<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Verify the standby database and see if the copied
archive log file is applied.</span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Select sequence#,applied from v$archived_log where sequence# >= 283;</span></span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-19724337835615166482015-12-31T21:27:00.002-08:002016-01-01T12:08:11.852-08:00ORA-01578: ORACLE data block corrupted in Active Standby Database<div dir="ltr" style="text-align: left;" trbidi="on">
My database is Active Data Guard environment and it was running in 11.2.0.3 version.<br />
<br />
The Standby alert log file was throwing the error message.<br />
<br />
<span style="background-color: yellow;">ORA-01578: ORACLE data block corrupted (file # 4, block # 171)</span><br />
<span style="background-color: yellow;">ORA-01110: data file 4: '/data01/oradata/edcreport_f01.dbf'</span><br />
<span style="background-color: yellow;">ORA-26040: Data block was loaded using the NOLOGGING option</span><br />
<div>
<br /></div>
<div class="MsoNormal">
The root cause was, accidentally we enabled NO LOGGING mode in primary database and we are creating the reporting temp table with nologging mode for mid night report. This caused data file corruption in standby database.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I use DEV environment to demonstrate this exercise.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
My primary database is devdb12 and standby database is devdb12_dg.</div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><b><u><span style="background: yellow; color: red;">Step 1</span></u></b>
Change the primary database to NO FORCE LOGGING mode.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">sys@devdb12> alter database no force logging;<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">Database altered.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><b><u><span style="background: yellow; color: red;">Step </span></u></b><b><u><span style="color: red;">2</span></u></b>
create the table in primary database with unrecoverable mode.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">sys@devdb12> CREATE TABLE scott.GT UNRECOVERABLE
AS (SELECT * FROM dba_objects) ;<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">Table created.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><b><u><span style="background: yellow; color: red;">Step </span></u></b><b><u><span style="color: red;">3</span></u></b> Read the table in standby database.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">sys@devdb12_dg> select count(*) from scott.gt;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">select count(*) from scott.gt<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"> *<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">ERROR at line 1:<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">ORA-01578: ORACLE data block corrupted (file # 4,
block # 171)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">ORA-01110: data file 4:
'/data01/oradata/devdb12/users01.dbf'<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">ORA-26040: Data block was loaded using the
NOLOGGING option<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">sys@devdb12_dg><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><span style="background: yellow; color: red;">How
do we fix the above issue?</span><span style="color: red;"><o:p></o:p></span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><b><u><span style="background: yellow; color: red;">Step </span></u></b><b><u><span style="color: red;">1</span></u></b><span style="color: red;"> </span>On primary database, copy the file to /data01/stage
location. The tablespace should be in backup mode.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">Alter tablespace users begin backup;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"># copy the file to /data01/stage<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"># cp /data01/oradata/devdb12/users01.dbf
/data01/stage<o:p></o:p></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;">Alter tablespace users end backup;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge5Yo9S39GIV0ffNAnBZCKCkmd5_ZojM_kDURty22AZPqcfoRwlwOD6Bjm6HCN9weDwIbywssjcrNVOuJNskrWwgrftYFxWaxD3OjGTJak540CI5wJuKjWHHzNbg1UE79RfAR-gjjw1xs/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="89" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge5Yo9S39GIV0ffNAnBZCKCkmd5_ZojM_kDURty22AZPqcfoRwlwOD6Bjm6HCN9weDwIbywssjcrNVOuJNskrWwgrftYFxWaxD3OjGTJak540CI5wJuKjWHHzNbg1UE79RfAR-gjjw1xs/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times, Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="background: yellow; color: red;">Step </span></u></b><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="color: red;">2</span></u></b> scp
the data file from primary database to standby database.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">scp /data01/stage/users01.dbf <a href="mailto:oracle@10.156.24.169:/data01/stage">oracle@10.156.24.169:/data01/stage</a><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWgZ3d7uyeu4zDv3fjQ0h0B0rzPUKeej_UDodiv0biWxrnF8O2-BeWPwHHi6zgkVEB5mAY74ZhlafIoj6ks6q0doQcMTvCbtwiOAZwB8d63EEsVVeGunmXBYpcV-MVcQBsvwD-RsCa9XE/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="50" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWgZ3d7uyeu4zDv3fjQ0h0B0rzPUKeej_UDodiv0biWxrnF8O2-BeWPwHHi6zgkVEB5mAY74ZhlafIoj6ks6q0doQcMTvCbtwiOAZwB8d63EEsVVeGunmXBYpcV-MVcQBsvwD-RsCa9XE/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="background: yellow; color: red;">Step </span></u></b><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="color: red;">3</span></u></b> Move the data file to correct file system on
standby database. Login to standby database(devdb12_dg) and follow the below steps.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">mv /data01/oradata/devdb12/users01.dbf /data01/oradata/devdb12/users01.dbf.x<o:p></o:p></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">mv /data01/stage/users01.dbf /data01/oradata/devdb12/users01.dbf<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiijDFek3HwqoRGOAHfyE5915S9ED3WKhFI6RzSav_GS3h-ktESlJc_menE6q_kw6MFVu0o_1bHjbdWg-Vdi2FoeznX8i2CLIIcJGTnemOKx90u9Hgo5q0XDKsu4qxdgmzv1xorRPHNmgs/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="54" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiijDFek3HwqoRGOAHfyE5915S9ED3WKhFI6RzSav_GS3h-ktESlJc_menE6q_kw6MFVu0o_1bHjbdWg-Vdi2FoeznX8i2CLIIcJGTnemOKx90u9Hgo5q0XDKsu4qxdgmzv1xorRPHNmgs/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="background: yellow; color: red;">Step </span></u></b><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="color: red;">4</span></u></b> Restart the standby database.</span><br />
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span>
shutdown immediate<br />
startup mount<br />
alter database recover managed standby database disconnect from session;<br />
alter database recover managed standby database cancel;<br />
alter database open;<br />
alter database recover managed standby database using current logfile disconnect;<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd5vt8a7e5ySOAQ-gm10lwLvrSqTBjdLE1Ax_mREYRmUezv9ODVZeLku1Z3OWaacZKRNSoC9CuokflZejPi6kK7argmL3UZbb0C9aT1U28rVe6v1r2xoUwQ2fSlFhjce64GnXkHv6YFcY/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="98" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjd5vt8a7e5ySOAQ-gm10lwLvrSqTBjdLE1Ax_mREYRmUezv9ODVZeLku1Z3OWaacZKRNSoC9CuokflZejPi6kK7argmL3UZbb0C9aT1U28rVe6v1r2xoUwQ2fSlFhjce64GnXkHv6YFcY/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYFE1EEN0egt-bgLs0Eo6VXohrd0G6agpD-hdO_H1wK2hsfxiNetEYJnBng6gCKcbqhHxMDmuAFJ-com0MI6Zmk380rFmNb2ir3NjC_RqfPYzSqY1oUjtaYGeoZboa236EMQ2SBdSF58c/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="59" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYFE1EEN0egt-bgLs0Eo6VXohrd0G6agpD-hdO_H1wK2hsfxiNetEYJnBng6gCKcbqhHxMDmuAFJ-com0MI6Zmk380rFmNb2ir3NjC_RqfPYzSqY1oUjtaYGeoZboa236EMQ2SBdSF58c/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="background: yellow; color: red;"><br /></span></u></b></span>
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><b style="font-family: Times, 'Times New Roman', serif;"><u><span style="background: yellow; color: red;">Step 5</span></u></b> Verify that the block corruption is resolved in standby database.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5WtvfQDc5BFWZsegVUT3_dtA_KBXdUoZOtSXLVnr1RQkpKZcCN_i6QXomXOS12hoAkLKfM7cHymrHgy_HyTlnBHSkPmUrHWxRiQfioedO0qjFvd-qgHQxsT7sFpBicdgzHkrMkdSy20/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="76" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT5WtvfQDc5BFWZsegVUT3_dtA_KBXdUoZOtSXLVnr1RQkpKZcCN_i6QXomXOS12hoAkLKfM7cHymrHgy_HyTlnBHSkPmUrHWxRiQfioedO0qjFvd-qgHQxsT7sFpBicdgzHkrMkdSy20/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<br />
<br />
<br />
<br />
Note : The above steps works when the standby data file is deleted by human error. One important note is, when the broker is enabled, the MRP will start automatically when the standby database is mounted. After mount the standby, need to watch out the standby alert log and see if broker enable the Managed recovery. Ignore the below RED part if you don’t have broker.<br />
<br />
shutdown immediate<br />
startup mount<br />
<span style="background-color: yellow; color: red;"><b>Watch the alert log and see MRP is enabled by broker. If so, then</b></span><br />
<span style="background-color: yellow; color: red;"><b>alter database recover managed standby database cancel;</b></span><br />
alter database recover managed standby database disconnect from session;<br />
alter database recover managed standby database cancel;<br />
alter database open;<br />
alter database recover managed standby database using current logfile disconnect;<br />
<br />
Lesson learned : Primary database should be FORCE LOGGING mode. Otherwise, it will correct the data file in standby database if application creates the table with NO LOGGING option.</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-21918035747898908002015-12-29T19:17:00.001-08:002016-02-03T10:38:40.295-08:00Duplicate the Standby Database from Standby database backup<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Scenario : The
standby site is crashed or unavailable and need to restore from another standby without touching
the primary site. This post also will be useful who wants to duplicate the standby site from primary database backup on data guard environment. </span><br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">The below steps are worked well on my production environment. But i do not recommend to use the below script in your environment unless you change the scripts(instance name, DB name, host name, directory name etc) and test in test environment. </span><br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">For security reason, i used XXXXX for hiding my host name, instance name, directory names. Also i am using DEVDB for hiding the instance name.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">My instance names are devdb12(primary), devdb12_dg(first standby), devdb12_dr(second standby). Now devdb12_dg is crashed or unavailable. The goal is to restore devdb12_dg from other standby site(devdb12_dr). My environment has no ASM disks. </span><br />
<br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Prerequisite : </span><br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Oracle software should be installed and version should be same as other site.</span><br />
<span style="font-family: "times new roman" , serif;"><span style="font-size: 18px;">The directory structure and file system size should be same as other site.</span></span><br />
<br />
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step 1</b></span><span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Create pfile from spfile
on working standby site and copy to new standby site. Modify the pfile
parameter(instance name, DG parameter etc) according to new standby location.
Copy the password file, wallet file from standby location to new standby
location.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red;"><b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Step </span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;">2</span></b></span><span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Take L0 backup on working standby site and copy the RMAN backup files to new standby site. I am backing up the RMAN backup files under /backup file system. We will have to copy the backup files to same file system(/backup) on the new standby site. If you do not have same file system in new standby site, then you have to use the BACKUP LOCATION option on the restore command. Please review this <a href="https://oracle-base.com/articles/11g/duplicate-database-using-rman-11gr2">link</a> to find details for different options.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Sample RMAN backup
script is as below. DO NOT USE this in your environment without making the changes(directory location, instance name etc). I am using 8 channel for RMAN backup. However, i will let you choose the number of channel according to your server CPU power. We can also restore the database from tape.. please refer this link just in case if you don't prefer to backup the database in working standby site. </span><a href="http://www.myorastuff.blogspot.com/2015/12/restore-database-from-tape-when-primary.html" style="font-family: 'Times New Roman', serif; font-size: 13.5pt;">Restore from tape</a>. <span style="font-family: "times new roman" , serif; font-size: 18px;"> </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">ORACLE_BASE=/ora/app/oracle<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">ORACLE_HOME=/ora/app/oracle/product/11.1.0/db_1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">ORACLE_SID=XXXXXXX<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">RMAN_SCRIPT=/ora/app/oracle/admin/XXXXXXX/rman<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">BACKUP_LOG_PATH=$RMAN_SCRIPT/logs<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">MAIL_TO_1=XXXXX@XXXX.com<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export ORACLE_BASE<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export ORACLE_HOME<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export ORACLE_SID<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export RMAN_SCRIPT<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export BACKUP_LOG_PATH<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export MAIL_TO_1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">DT=`date
"+%m%d%Y_%H%M"`<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">LOG_FILE=${BACKUP_LOG_PATH}/bckp_level_0_${ORACLE_SID}_${DT}.log</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export TODAY=`date
+%Y%m%d'_'%H%M`<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export TAG=`echo
${ORACLE_SID}_L0_${TODAY}`<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">export
HOSTNAME=`hostname`</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">$ORACLE_HOME/bin/rman
msglog=${LOG_FILE} << EOF<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">connect target;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">run<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T01 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T02 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> ALLOCATE
CHANNEL T03 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T04 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T05 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T06 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T07 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
ALLOCATE CHANNEL T08 TYPE DISK FORMAT '/dbbackup/XXXXXXX/%d_L0_${TODAY}_%s_%U_%t';</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> SET
COMMAND ID TO 'LEVEL0 BACKUP';</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
CROSSCHECK BACKUP;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
DELETE NOPROMPT OBSOLETE;</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
BACKUP INCREMENTAL LEVEL 0 AS COMPRESSED BACKUPSET DATABASE TAG=${TAG};</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
BACKUP FORMAT '/dbbackup/XXXXXXX/%d_SPFILE_${TODAY}_%s_%U_%t' SPFILE
TAG=${TAG};<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
BACKUP FORMAT '/dbbackup/XXXXXXX/%d_CTRL_${TODAY}_%s_%U_%t' CURRENT
CONTROLFILE TAG=${TAG};</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T01;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T02;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T03;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T04;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T05;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T06;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T07;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">
RELEASE CHANNEL T08;</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> host
"cp /ora/app/oracle/admin/XXXXXXX/wallet/ewallet.p12 /dbbackup/XXXXXXX/ewallet.p12_`date
+%m%d%y%H%M%S`";<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> host
"cp /ora/app/oracle/admin/XXXXXXX/wallet/cwallet.sso /dbbackup/XXXXXXX/cwallet.sso_`date
+%m%d%y%H%M%S`";</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">exit;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">EOF</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">ERRM="RMAN-00569"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">cat ${LOG_FILE} | grep
"${ERRM}" > /dev/null 2>&1<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">if [ "$?" -eq
0 ]; then<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> SUBJ="RMAN
Level 0 Backup Failed ${ORACLE_SID} at ${HOSTNAME}"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> mailx -s
"${SUBJ}" ${MAIL_TO_1} < ${LOG_FILE}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;">else<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> SUBJ="RMAN
Level 0 Backup Successful ${ORACLE_SID} at ${HOSTNAME}"<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif;"> mailx -s
"${SUBJ}" ${MAIL_TO_1} < ${LOG_FILE}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif;"><span style="background-color: yellow;">fi</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>3 </b></span><b> </b></span><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Make sure, all the directories in new standby
site is same as other node.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>4</b></span></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Start the instance without mounting.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><span style="background-color: yellow;">startup nomount pfile=
initdevdb12_dg.ora</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>5</b></span></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Create spfile and start the instance again with
spfile<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><span style="background-color: yellow;">create spfile from
pfile= spfiledevdb12_dg.ora</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">shutdown immediate;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><span style="background-color: yellow;">startup nomount;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>6</b></span></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Check the RMAN connection between new standby to working standby site. This script will make sure, no connection issues between two sites. Make sure, you setup tnsnames.ora, listener.ora file on new standby site. <o:p></o:p></span><span style="font-family: "times new roman" , serif; font-size: 18px;"> </span><span style="font-family: "times new roman" , serif; font-size: 18px;">Auxiliary site(</span><span style="font-family: "times new roman" , serif;"><span style="font-size: 18px;">XXXXXXX_dg)</span></span><span style="font-family: "times new roman" , serif; font-size: 18px;"> is new standby site. Target site(</span><span style="font-family: "times new roman" , serif;"><span style="font-size: 18px;">XXXXXXX_dr)</span></span><span style="font-family: "times new roman" , serif; font-size: 18px;"> is existing standby site.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">DT=`date +%Y%m%d_%H%M%S`<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">export DT<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">$ORACLE_HOME/bin/rman
msglog=rman_create_standby_XXXXXXX_dg1_${DT}.log <<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">connect
target sys/password@XXXXXXX_dr<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">connect
auxiliary sys/password@XXXXXXX_dg<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> run<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy1 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy2 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy3 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy4 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy5 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy6 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy7 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate channel
prmy8 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby1 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby2 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby3 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby4 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby5 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby6 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby7 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> allocate
auxiliary channel stby8 type disk;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;"> exit<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><span style="background-color: yellow;">EOF</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>7</b></span></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Restore the new standby. Auxiliary site is new standby site.
Target site is existing standby site.</span><br />
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><br /></span>
<span style="font-family: "times new roman" , serif; font-size: 18px;">file name : rman_standby_to_standby.sh</span><br />
<span style="font-family: "times new roman" , serif; font-size: 18px;"><br /></span>
<span style="font-family: "times new roman" , serif;"><span style="font-size: 18px;">You need to run the script in background mode.. In my production environment, it took 10 hours to complete with 8 Channel. My database size was 10TB.</span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">DT=`date +%Y%m%d_%H%M%S`<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">export DT<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">$ORACLE_HOME/bin/rman msglog=rman_create_standby_XXXXXXX_dg_${DT}.log
<<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">connect target sys/password@XXXXXXX_dr<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "times new roman" , serif; font-size: 13.5pt;">connect auxiliary sys/password@XXXXXXX_dg</span></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> run<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> {<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy1 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy2 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy3 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy4 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy5 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy6 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy7 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate channel prmy8 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby1 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby2 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby3 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby4 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby5 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby6 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby7 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> allocate auxiliary channel stby8 type disk;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER
NOFILENAMECHECK;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> }<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;"> exit<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">EOF</span><span style="font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">The restore log file
should be as below. <o:p></o:p></span><br />
<br />
<span style="font-family: "times new roman" , serif;"><span style="font-size: 18px;">Note : The log file size is huge and several pages. Hence i trimmed the log file size to smaller. I removed many lines in the middle of log file.</span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">RMAN – log of
rman_standby_to_standby.sh<o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable">
<tbody>
<tr>
<td style="padding: 0in 0in 0in 0in; width: 730.5pt;" valign="top" width="974"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Recovery
Manager: Release 11.1.0.7.0 - Production on Fri Jan 11 16:54:37 2013</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Copyright
(c) 1982, 2007, Oracle. All rights reserved.</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN></span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN></span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">connected
to target database: XXXXXXX (DBID=1081194209)</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN></span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">connected
to auxiliary database: XXXXXXX (not mounted)</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN>
2> 3> 4> 5> 6> 7> 8>
9> 10> 11> 12> 13> 14> 15>
16> 17> 18> 19> 20></span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">using
target database control file instead of recovery catalog</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy1: SID=995 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy2</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy2: SID=916 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy3</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy3: SID=920 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy4</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy4: SID=908 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy5</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy5: SID=909 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy6</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy6: SID=914 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy7</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy7: SID=917 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: prmy8</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
prmy8: SID=919 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: SID=1085 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby2</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby2: SID=1105 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby3</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby3: SID=1080 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby4</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby4: SID=1079 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby5</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby5: SID=1078 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby6</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby6: SID=1084 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby7</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby7: SID=1083 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">allocated
channel: stby8</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby8: SID=1082 device type=DISK</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Starting
Duplicate Db at 01/11/2013 16:54:50</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">contents
of Memory Script:</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">{</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set until scn 51178358684;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
restore clone standby controlfile;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
sql clone 'alter database mount standby database';</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">}</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
Memory Script</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET until clause</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Starting
restore at 01/11/2013 16:55:15</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: starting datafile backup set restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: restoring control file</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: reading from backup piece /dbbackup/XXXXXXX/XXXXXXX_CTRL_20130110_2315_3526_e6nv4cje_1_1_804401774</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: piece handle=/dbbackup/XXXXXXX/XXXXXXX_CTRL_20130110_2315_3526_e6nv4cje_1_1_804401774
tag=XXXXXXX_L0_20130110_2315</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: restored backup piece 1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: restore complete, elapsed time: 00:00:03</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">output
file name=/data01/oradata/XXXXXXX/control01.ctl</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">output
file name=/data02/oradata/XXXXXXX/control02.ctl</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">output
file name=/data03/oradata/XXXXXXX/control03.ctl</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Finished
restore at 01/11/2013 16:55:19</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">sql
statement: alter database mount standby database</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">contents
of Memory Script:</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">{</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set until scn 51178358684;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for tempfile 1 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/orasys/oradata/XXXXXXX/temp01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for tempfile 2 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/orasys/oradata/XXXXXXX/temp02.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for tempfile 3 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
switch clone tempfile all;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 1 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/orasys/oradata/XXXXXXX/system01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 2 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/orasys/oradata/XXXXXXX/sysaux01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 3 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/undo/oradata/XXXXXXX/undotbs01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 4 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/undo/oradata/XXXXXXX/undotbs02.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 5 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/orasys/oradata/XXXXXXX/users01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 6 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/orasys/oradata/XXXXXXX/db_audit_f01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 7 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/data01/oradata/XXXXXXX/XXXXXX01_SMALL_F01.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 8 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/data02/oradata/XXXXXXX/XXXXXX01_SMALL_F02.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 225 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/data08/oradata/XXXXXXX/XXXXXX11_TRANSHISTORY_INDX_F39.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set newname for datafile 226 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;"> "/data11/oradata/XXXXXXX/XXXXXX08_TRANSPROC_INDX_F18.dbf";</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
clone database</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">}</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
Memory Script</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET until clause</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET NEWNAME</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET NEWNAME</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">renamed
tempfile 1 to /orasys/oradata/XXXXXXX/temp01.dbf in control file</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">renamed
tempfile 2 to /orasys/oradata/XXXXXXX/temp02.dbf in control file</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">renamed
tempfile 3 to /data14/oradata/XXXXXXX/temp03.dbf in control file</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">renamed
tempfile 4 to /data15/oradata/XXXXXXX/temp04.dbf in control file</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">renamed
tempfile 5 to /data16/oradata/XXXXXXX/temp05.dbf in control file</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET NEWNAME</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET NEWNAME</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Starting
restore at 01/11/2013 16:55:39</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: starting datafile backup set restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: specifying datafile(s) to restore from backup set</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: restoring datafile 00006 to /orasys/oradata/XXXXXXX/db_audit_f01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: restoring datafile 00028 to /data07/oradata/XXXXXXX/XXXXXX03_LARGE_F09.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby1: restoring datafile 00128 to</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">handle=/dbbackup/XXXXXXX/XXXXXXX_L0_20130110_2315_3515_drnv48r5_1_1_804397925
tag=XXXXXXX_L0_20130110_2315</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby3: restored backup piece 1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby3: restore complete, elapsed time: 00:57:32</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby4: piece handle=/dbbackup/XXXXXXX/XXXXXXX_L0_20130110_2315_3518_dunv49es_1_1_804398556
tag=XXXXXXX_L0_20130110_2315</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby4: restored backup piece 1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">channel
stby4: restore complete, elapsed time: 00:56:46</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Finished
restore at 01/11/2013 22:29:55</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">contents
of Memory Script:</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">{</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
switch clone datafile all;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">}</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
Memory Script</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
1 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=21 STAMP=804465000 file name=/orasys/oradata/XXXXXXX/system01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
2 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=22 STAMP=804465000 file name=/orasys/oradata/XXXXXXX/sysaux01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
3 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=23 STAMP=804465000 file name=/undo/oradata/XXXXXXX/undotbs01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
4 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=24 STAMP=804465000 file name=/undo/oradata/XXXXXXX/undotbs02.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
5 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=25 STAMP=804465000 file name=/orasys/oradata/XXXXXXX/users01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
6 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=26 STAMP=804465000 file name=/orasys/oradata/XXXXXXX/db_audit_f01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
7 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=27 STAMP=804465001 file name=/data01/oradata/XXXXXXX/XXXXXX01_SMALL_F01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
8 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=28 STAMP=804465001 file name=/data02/oradata/XXXXXXX/XXXXXX01_SMALL_F02.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
9 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">input
datafile copy RECID=29 STAMP=804465001 file name=/data03/oradata/XXXXXXX/XXXXXX02_MEDIUM_F01.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">datafile
10 switched to datafile copy</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">name=/data11/oradata/XXXXXXX/XXXXXX08_TRANSPROC_INDX_F18.dbf</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">contents
of Memory Script:</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">{</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
set until scn 51178358684;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
recover</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
standby</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
clone database</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
delete archivelog</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">
;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">}</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
Memory Script</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">executing
command: SET until clause</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Starting
recover at 01/11/2013 22:30:27</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">starting
media recovery</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Oracle
Error:</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ORA-01547:
warning: RECOVER succeeded but OPEN RESETLOGS would get error below</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ORA-01194:
file 1 needs more recovery to be consistent</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ORA-01110:
data file 1: '/orasys/oradata/XXXXXXX/system01.dbf'</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy2</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy3</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy4</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy5</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy6</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy7</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: prmy8</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby1</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby2</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby3</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby4</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby5</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby6</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby7</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">released
channel: stby8</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-00571:
===========================================================</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-00569:
=============== ERROR MESSAGE STACK FOLLOWS ===============</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-00571:
===========================================================</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-03002:
failure of Duplicate Db command at 01/11/2013 22:31:08</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-03015:
error occurred in stored script Memory Script</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06053:
unable to perform media recovery because of missing log</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06025:
no backup of archived log for thread 1 with sequence 90545 and starting SCN
of 51178331763 found to restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06025:
no backup of archived log for thread 1 with sequence 90544 and starting SCN
of 51178280286 found to restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06025:
no backup of archived log for thread 1 with sequence 90543 and starting SCN
of 51178228751 found to restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06025:
no backup of archived log for thread 1 with sequence 90542 and starting SCN
of 51178172350 found to restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06025:
no backup of archived log for thread 1 with sequence 90541 and starting SCN
of 51178116145 found to restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN-06025:
no backup of archived log for thread 1 with sequence 90430 and starting SCN
of 51172378542 found to restore</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">RMAN></span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">Recovery
Manager complete.</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>8</b></span></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Copy the archive logs from sequence# 90430 to sequence# 90550
(actually only up to 90545). Use SCP to Copy the archive log from working standby(devdb12_dr) to devdb12_dg site.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step </b></span><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"><span style="background-color: yellow; color: red;"><b>9</b></span></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Recover the database.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Standby database is in mount state<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><span style="background-color: yellow;">alter database recover standby database until cancel</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
You may want to give few archive log files manually and then put AUTO for
recovery Watch alert log in another window<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
It will recover standby database until last archive log file which
is in as defined by parameter log_archive_dest_1 - in our case it was
/dbArch01/XXXXXXX and media recovery will fail – this is expected<span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; color: red; font-family: "times new roman" , serif; font-size: 13.5pt;"><b>Step 10</b></span><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;"> Make the changes on Data Guard Parameter on primary as well
as other standby.<o:p></o:p></span><br />
<span style="font-family: "times new roman" , serif;"><span style="font-size: 18px;">You need to change the parameter according to your environment. </span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">On new standby(devdb12_dg) : <o:p></o:p></span><br />
<span style="font-family: "times new roman" , serif;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set db_unique_name='devdb12_dg' scope=spfile;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set instance_name='devdb12_dg' scope=spfile;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_2 = 'SERVICE=devdb12 LGWR ASYNC
DB_UNIQUE_NAME=devdb12 VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)';</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_3 = 'SERVICE=devdb12_dr LGWR ASYNC DB_UNIQUE_NAME=devdb12_dr VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)';</span><br />
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_config =
'dg_config=(devdb12,devdb12_dg,devdb12_dr)';</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_state_4 = 'ENABLE';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set standby_file_management = 'AUTO';<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_max_processes=5;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set fal_client=devdb12_dg;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set fal_server=devdb12,devdb12_dr ;</span><span style="font-family: "trebuchet ms" , sans-serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">On working standby(devdb12_dr) :<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_config = 'DG_CONFIG=(devdb12,devdb12_dg,devdb12_dr)' scope=both;</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_2 = 'SERVICE=devdb12_dg LGWR ASYNC DB_UNIQUE_NAME=devdb12_dg VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)';</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_3 = 'SERVICE=devdb12 LGWR ASYNC DB_UNIQUE_NAME=devdb12 VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)';<o:p></o:p></span></div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_max_processes=5;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set fal_client=devdb12_dr;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set fal_server=devdb12_dg,devdb12 scope=both;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system switch logfile;</span><br />
<span style="font-family: "times new roman" , serif;"><br /></span></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">On Primary(devdb12) :<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_config = 'DG_CONFIG=(devdb12,devdb12_dg,devdb12_dr)' scope=both;</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_2 = 'SERVICE=devdb12_dg LGWR ASYNC DB_UNIQUE_NAME=devdb12_dg
VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)';</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="MsoNormal" style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-bottom: 0.0001pt; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="margin: 0px;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_dest_3 = 'SERVICE=devdb12_dr LGWR ASYNC DB_UNIQUE_NAME=devdb12_dr VALID_FOR=(ONLINE_LOGFILE,PRIMARY_ROLE)';<o:p></o:p></span></div>
</div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set log_archive_max_processes=5;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set
fal_client=devdb12;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system set
fal_server=devdb12_dg,devdb12_dr scope=both;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;">alter system switch
logfile;</span><span style="font-family: "times new roman" , serif;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red; font-family: 'Times New Roman', serif; font-size: 18px;">Step 11</b><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;"> Create the temp file same as other standby node.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow;">alter tablespace temp add tempfile '/oratemp01/oradata/XXXXXXX/temp01.dbf'
size 16G;<span style="font-family: "times new roman" , serif;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red; font-family: 'Times New Roman', serif; font-size: 18px;">Step 12</b><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif; font-size: 13.5pt;"> Create the standby redo log file same as other standby node.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "times new roman" , serif; font-size: 13.5pt;">Create standby logs on
new standby database – by default oracle will create one standby redo log –
which you can drop<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable">
<tbody>
<tr>
<td style="padding: 0in 0in 0in 0in; width: 730.5pt;" valign="top" width="974"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">alter
database drop STANDBY LOGFILE GROUP 6;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ALTER
DATABASE ADD STANDBY LOGFILE GROUP 6 ('/redo01/oradata/XXXXXXX/std_redo01.log')
SIZE 300M;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ALTER
DATABASE ADD STANDBY LOGFILE GROUP 7 ('/redo02/oradata/XXXXXXX/std_redo02.log')
SIZE 300M;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ALTER
DATABASE ADD STANDBY LOGFILE GROUP 8 ('/redo03/oradata/XXXXXXX/std_redo03.log')
SIZE 300M;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ALTER
DATABASE ADD STANDBY LOGFILE GROUP 9 ('/redo01/oradata/XXXXXXX/std_redo04.log')
SIZE 300M;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ALTER
DATABASE ADD STANDBY LOGFILE GROUP 10 ('/redo02/oradata/XXXXXXX/std_redo05.log')
SIZE 300M;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "" "courier new" "" , "serif"; font-size: 10.0pt;">ALTER
DATABASE ADD STANDBY LOGFILE GROUP 11 ('/redo03/oradata/XXXXXXX/std_redo06.log')
SIZE 300M;</span><span style="font-family: "times new roman" , "serif"; font-size: 12.0pt;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="background-color: yellow; color: red; font-family: 'Times New Roman', serif; font-size: 18px;">Step 13</b><b><span style="color: red; font-family: "times new roman" , "serif"; font-size: 13.5pt;"> </span></b><span style="font-family: "times new roman" , serif;"><span style="font-size: 13.5pt;"> Shutdown the database and open in read mode. Watch the alert log on </span><span style="font-size: 18px;">separate</span><span style="font-size: 13.5pt;"> window.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "arial" , "helvetica" , sans-serif;">shutdown immediate;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "arial" , "helvetica" , sans-serif;">startup nomount;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "arial" , "helvetica" , sans-serif;"><span style="background-color: yellow;">alter database mount standby database;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "arial" , "helvetica" , sans-serif;">-- The below three lines are related to wallet. The below three lines can be ignored if you are not using the wallet.</span><br />
<span style="background-color: orange; font-family: "arial" , "helvetica" , sans-serif;"><span lang="EN">select
* from v$encryption_wallet;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: orange; font-family: "arial" , "helvetica" , sans-serif;"><span lang="EN">alter
system set wallet open iddentified by "XXXX";</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: orange; font-family: "arial" , "helvetica" , sans-serif;"><span lang="EN">select
* from v$encryption_wallet;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="background-color: yellow; font-family: "arial" , "helvetica" , sans-serif;">alter database recover managed standby database disconnect from session;</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "arial" , "helvetica" , sans-serif;"><span lang="EN">alter
database recover managed standby database cancel;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background-color: yellow; font-family: "arial" , "helvetica" , sans-serif;"><span lang="EN">alter
database open;</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="background-color: yellow; font-family: "arial" , "helvetica" , sans-serif;">alter
database recover managed standby database using current logfile disconnect;</span><span style="font-family: "times new roman" , serif; font-size: 13.5pt;"><o:p></o:p></span><br />
<br />
<span lang="EN" style="font-family: "times new roman" , serif;">Hope this post helps! Please provide your comments and feedback!</span></div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-3089021501691607882015-12-28T14:14:00.000-08:002015-12-29T18:58:31.024-08:00Restore Standby Database from Tape<div dir="ltr" style="text-align: left;" trbidi="on">
My Data Guard database was running on 11.2.0.3 version and the DB size was around 10 TB. Some time back, the primary database Hardware was crashed and whole DB server went down and UNIX admin not able to bring the server up. It is VERY critical and high SLA database, management wanted to bring it up as quickly as possible.<br />
<div>
<br /></div>
<div>
Here is what i have done to bring the application up. I would like to share this and thought it might be helpful for others.<br />
<br />
Environment : <br />
<br />
Oracle version 11.2.0.3<br />
Data Guard replication from primary to standby<br />
Flashback feature is not enabled on the database.<br />
Data Guard is running in Maximum performance mode</div>
<div>
<br /></div>
<div>
Here are the major steps :</div>
<div>
<br /></div>
<div>
<span style="background-color: yellow;">1. Activate the standby database</span></div>
<div>
<span style="background-color: yellow;">2. Point the application to old standby and currently it is primary</span><br />
<span style="background-color: yellow;">3. Drop the old primary and restore from tape and setup the standby</span></div>
<div>
<br /></div>
<div>
<span style="color: red;"><b style="background-color: yellow;">Step 1</b></span> Activate the standby database.</div>
<div>
<br /></div>
<div>
As a first step, we need to activate the current standby data base to bring the application up.</div>
<div>
Please refer <span id="goog_918488787"></span><span id="goog_918488788"></span><a href="https://www.blogger.com/"></a> <a href="http://www.myorastuff.blogspot.com/2015/07/how-to-activate-oracle11g-standby.html">How to Activate the Standby database</a></div>
<div>
<br /></div>
<div>
<span style="background-color: yellow; color: red;"><b>Step 2 </b></span> Point the application to current primary(activated the standby from step 1).</div>
<div>
<br /></div>
<div>
Application team will take care of this. DBA can provide the DB/Host info just in case application engineer needs it.</div>
<div>
<br /></div>
<div>
<span style="color: red;"><b style="background-color: yellow;">Step 3</b></span> Rebuild the standby database from tape.<br />
<br />
Now the old Primary database is useless. We will have to restore from the scratch. We have several ways we can restore the DB. But I restored the DB from tape. Since i did not want to clone the DB from current primary. The reason is, i did not want to add additional load on the current primary database. </div>
<div>
<br /></div>
<div>
<span style="color: red;"><b style="background-color: yellow;">Step A</b></span></div>
<div>
<br /></div>
<div>
<div class="MsoNormal">
Disable archive log delete job in current Primary
database. The reason is, we need to
apply the archive log files after building the standby database. It is safe to disable the archive log delete job. I just want to save all the archive logs on the server.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
</div>
<div>
<b style="background-color: yellow;"><span style="color: red;">Step B</span></b> Drop the broken database(the one it crashed)</div>
<div>
<br /></div>
<div>
Once UNIX SA bring the server up, drop the database and restore the database from the scratch.</div>
<div>
We don't need to restore the database from scratch if flashback is enabled on the database. But apparently, the flashback is not enabled on my environment and end up restoring the database from scratch.</div>
<div>
<br /></div>
<div>
We have several ways to drop the database. Please refer this just in case if you need more info. <a href="http://www.myorastuff.blogspot.com/2009/05/how-do-we-drop-database-in-oracle10g.html">How to drop the database</a></div>
<div>
<br /></div>
<div>
I used RMAN to drop the database. You can use different approach if you like.</div>
<div>
<br /></div>
<div>
<div class="MsoNormal">
RMAN> connect target<o:p></o:p></div>
<div class="MsoNormal">
RMAN> startup force mount<o:p></o:p></div>
<div class="MsoNormal">
RMAN> sql 'alter
system enable restricted session';<o:p></o:p></div>
<div class="MsoNormal">
RMAN> drop database;<o:p></o:p></div>
</div>
<div>
<br /></div>
<div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step C</span></b> Verify the backup list from tape.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Here is the sample command to check the tape backup list..<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/usr/openv/netbackup/bin/bplist -B -C hostname.bu -t
4 -l -s 02/22/2015 -e 02/22/2015 -R /<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
From the above command, we can find out the control file and spfile and backup info.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step D</span></b> Restore the SPFILE </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Restore the spfile from tape by using below script. I masked XXXX in some places due to security reason. Please use the appropriate name according to your environment. I restored the sfile under /work area. </div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
run</div>
<div class="MsoNormal">
{</div>
<div class="MsoNormal">
allocate channel t01 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div class="MsoNormal">
restore spfile to '/work/XXXXX_spfile.ora' from '/XXXXX_SPFILE_20140222_0400_58082_n2p1bbbi_1_1_840281458';</div>
<div class="MsoNormal">
RELEASE CHANNEL t01;</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Move the spfile to $ORACLE_HOME/dbs</div>
<div>
<br /></div>
<div>
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step E</span></b> Restore the control file</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Restore control file from tape using below script.</div>
<div class="MsoNormal">
run</div>
<div class="MsoNormal">
{</div>
<div class="MsoNormal">
allocate channel t01 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div class="MsoNormal">
restore controlfile to '/work/XXXX_control.ctl' from 'XXXXX_CTRL_20140222_0400_58083_n3p1bbdp_1_1_840281529';</div>
<div class="MsoNormal">
RELEASE CHANNEL t01;</div>
<div class="MsoNormal">
}</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Move the control file to appropriate location.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
cd /work/</div>
<div class="MsoNormal">
cp XXXXXX_control.ctl /data01/oradata/XXXX/control01.ctl</div>
<div class="MsoNormal">
cp XXXXXX_control.ctl /data02/oradata/XXXX/control02.ctl</div>
<div class="MsoNormal">
cp XXXXXX_control.ctl /data03/oradata/XXXX/control03.ctl</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step F</span></b> Start the instance.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US; mso-no-proof: yes;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_4" o:spid="_x0000_i1025" type="#_x0000_t75"
style='width:272.25pt;height:158.25pt;visibility:visible'>
<v:imagedata src="file:///C:\Users\Govind\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span></div>
<div class="MsoNormal">
<span style="font-family: Times New Roman, serif;">Startup the instance as below</span></div>
<div class="MsoNormal">
<span style="font-family: Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Times New Roman, serif;">SQL> startup nomount</span></div>
<div class="MsoNormal">
<span style="font-family: Times New Roman, serif;">SQL> alter database mount;</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: Times New Roman, serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy-sBjow5ZxRLJ_kroX9l6RY0UofMoT8dPKRL9P9n8hL1ZR7t8OdTGcmCUgpx8daYhQstiNqRUWleCDqx3LJvFpNXpTQ6CMGR4ese-E-nTypoLs42t3m4NzsUVHnZ3vAao5QeDm2FWUg0/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy-sBjow5ZxRLJ_kroX9l6RY0UofMoT8dPKRL9P9n8hL1ZR7t8OdTGcmCUgpx8daYhQstiNqRUWleCDqx3LJvFpNXpTQ6CMGR4ese-E-nTypoLs42t3m4NzsUVHnZ3vAao5QeDm2FWUg0/s320/1.png" width="320" /></a></div>
<span style="font-family: Times New Roman, serif;"><br /></span></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;"><br /></span></b>
<b><span style="background-color: yellow; color: red;">Step G</span></b> Restore and Recover the database. This step took me 10 hours. In your environment, restore time would be depends on your DB size, number of CPU on your host.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Go to Current primary and get the below SCN.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
system@XXXXXX> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)</div>
<div class="MsoNormal">
----------------------------------------</div>
<div class="MsoNormal">
66132064577</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
system@XXXXXX></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Apply the above SCN +1 on the below script.</div>
<div>
<br /></div>
<div>
Here is the shell script i used to restore the database. I ran this script in nohup background mode. I used 8 channel since my host has 8 CPU with hyper threading enabled.</div>
<div>
<br /></div>
<div>
<div>
$ORACLE_HOME/bin/rman msglog=rman_restore_db.log <<eof div=""></eof><br />
<div>
connect target</div>
<div>
run</div>
<div>
{</div>
<div>
allocate channel t01 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t02 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t03 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t04 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t05 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t06 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t07 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
allocate channel t08 device type 'sbt_tape' parms 'ENV=(NB_ORA_CLIENT=XXXXXX.bu,NB_ORA_SERV=hcmsnbu1)';</div>
<div>
SET UNTIL SCN 66132064578;</div>
<div>
RESTORE DATABASE;</div>
<div>
RECOVER DATABASE ;</div>
<div>
RELEASE CHANNEL t01;</div>
<div>
RELEASE CHANNEL t02;</div>
<div>
RELEASE CHANNEL t03;</div>
<div>
RELEASE CHANNEL t04;</div>
<div>
RELEASE CHANNEL t05;</div>
<div>
RELEASE CHANNEL t06;</div>
<div>
RELEASE CHANNEL t07;</div>
<div>
RELEASE CHANNEL t08;</div>
<div>
}</div>
<div>
exit</div>
<div>
EOF</div>
</div>
<div>
<br /></div>
<div class="MsoNormal">
Here is the log file info for the above restore step.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 534.1pt;" valign="top" width="712"><div class="MsoNormal">
Recovery Manager: Release 11.2.0.3.0 - Production on Mon
Feb 24 14:34:49 2014<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Copyright (c) 1982, 2011, Oracle and/or its
affiliates. All rights reserved.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
RMAN><o:p></o:p></div>
<div class="MsoNormal">
connected to target database: XXXXXX (DBID=1081194209, not
open)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
RMAN> 2> 3> 4> 5> 6> 7> 8> 9>
10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20>
21> 22><o:p></o:p></div>
<div class="MsoNormal">
using target database control file instead of recovery
catalog<o:p></o:p></div>
<div class="MsoNormal">
allocated channel: t01<o:p></o:p></div>
<div class="MsoNormal">
channel t01: SID=518 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t01: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t02<o:p></o:p></div>
<div class="MsoNormal">
channel t02: SID=604 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t02: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t03<o:p></o:p></div>
<div class="MsoNormal">
channel t03: SID=690 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t03: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t04<o:p></o:p></div>
<div class="MsoNormal">
channel t04: SID=776 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t04: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t05<o:p></o:p></div>
<div class="MsoNormal">
channel t05: SID=862 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t05: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t06<o:p></o:p></div>
<div class="MsoNormal">
channel t06: SID=948 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t06: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t07<o:p></o:p></div>
<div class="MsoNormal">
channel t07: SID=1034 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t07: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
allocated channel: t08<o:p></o:p></div>
<div class="MsoNormal">
channel t08: SID=1120 device type=SBT_TAPE<o:p></o:p></div>
<div class="MsoNormal">
channel t08: Veritas NetBackup for Oracle - Release 7.5
(2012060523)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
executing command: SET until clause<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Starting restore at 02/24/2014 14:34:53<o:p></o:p></div>
<div class="MsoNormal">
channel t01: starting datafile backup set restore<o:p></o:p></div>
<div class="MsoNormal">
channel t01: specifying datafile(s) to restore from backup
set<o:p></o:p></div>
<div class="MsoNormal">
channel t01: restoring datafile 00190 to
/data24/oradata/XXXXXX/EDCFDT11_TRANSHISTORY_INDX_F28.dbf<o:p></o:p></div>
<div class="MsoNormal">
channel t01: reading from backup piece <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Skipped
more lines due to volume of the log<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
channel t04: reading from backup piece
XXXXXX_AR_20140223_1045_58030_lep1b8li_1_1_840278706<o:p></o:p></div>
<div class="MsoNormal">
channel t06: piece
handle=XXXXXX_AR_20140222_1445_57789_dtp192bh_1_1_840206705
tag=XXXXXX_DG_AR_20140222_1445<o:p></o:p></div>
<div class="MsoNormal">
channel t06: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t06: restore complete, elapsed time: 00:03:26<o:p></o:p></div>
<div class="MsoNormal">
channel t05: piece
handle=XXXXXX_AR_20140222_1245_57767_d7p18rah_1_1_840199505
tag=XXXXXX_DG_AR_20140222_1245<o:p></o:p></div>
<div class="MsoNormal">
channel t05: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t05: restore complete, elapsed time: 00:03:26<o:p></o:p></div>
<div class="MsoNormal">
archived log file name=/dbArch/XXXXXX/XXXXXX_1_29305_818382098.arc
thread=1 sequence=29305<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29306_818382098.arc thread=1 sequence=29306<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29307_818382098.arc thread=1 sequence=29307<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29308_818382098.arc thread=1 sequence=29308<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29309_818382098.arc thread=1 sequence=29309<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29310_818382098.arc thread=1 sequence=29310<o:p></o:p></div>
<div class="MsoNormal">
channel t01: piece
handle=XXXXXX_AR_20140223_0045_57885_gtp1a5gh_1_1_840242705
tag=XXXXXX_DG_AR_20140223_0045<o:p></o:p></div>
<div class="MsoNormal">
channel t01: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t01: restore complete, elapsed time: 00:02:15<o:p></o:p></div>
<div class="MsoNormal">
channel t03: piece handle=XXXXXX_AR_20140222_2045_57849_fpp19neh_1_1_840228305
tag=XXXXXX_DG_AR_20140222_2045<o:p></o:p></div>
<div class="MsoNormal">
channel t03: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t03: restore complete, elapsed time: 00:02:35<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29311_818382098.arc thread=1 sequence=29311<o:p></o:p></div>
<div class="MsoNormal">
channel t07: piece
handle=XXXXXX_AR_20140222_2245_57865_g9p19ufi_1_1_840235506
tag=XXXXXX_DG_AR_20140222_2245<o:p></o:p></div>
<div class="MsoNormal">
channel t07: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t07: restore complete, elapsed time: 00:02:45<o:p></o:p></div>
<div class="MsoNormal">
archived log file name=/dbArch/XXXXXX/XXXXXX_1_29312_818382098.arc
thread=1 sequence=29312<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29313_818382098.arc thread=1 sequence=29313<o:p></o:p></div>
<div class="MsoNormal">
channel t08: piece
handle=XXXXXX_AR_20140223_0845_57988_k4p1b1kh_1_1_840271505
tag=XXXXXX_DG_AR_20140223_0845<o:p></o:p></div>
<div class="MsoNormal">
channel t08: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t08: restore complete, elapsed time: 00:02:37<o:p></o:p></div>
<div class="MsoNormal">
channel t02: piece
handle=XXXXXX_AR_20140223_0245_57905_hhp1achi_1_1_840249906
tag=XXXXXX_DG_AR_20140223_0245<o:p></o:p></div>
<div class="MsoNormal">
channel t02: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t02: restore complete, elapsed time: 00:02:37<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29314_818382098.arc thread=1 sequence=29314<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29315_818382098.arc thread=1 sequence=29315<o:p></o:p></div>
<div class="MsoNormal">
archived log file name=/dbArch/XXXXXX/XXXXXX_1_29316_818382098.arc
thread=1 sequence=29316<o:p></o:p></div>
<div class="MsoNormal">
channel t04: piece
handle=XXXXXX_AR_20140223_1045_58030_lep1b8li_1_1_840278706
tag=XXXXXX_DG_AR_20140223_1045<o:p></o:p></div>
<div class="MsoNormal">
channel t04: restored backup piece 1<o:p></o:p></div>
<div class="MsoNormal">
channel t04: restore complete, elapsed time: 00:02:03<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29317_818382098.arc thread=1 sequence=29317<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29318_818382098.arc thread=1 sequence=29318<o:p></o:p></div>
<div class="MsoNormal">
archived log file name=/dbArch/XXXXXX/XXXXXX_1_29319_818382098.arc
thread=1 sequence=29319<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29320_818382098.arc thread=1 sequence=29320<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29321_818382098.arc thread=1 sequence=29321<o:p></o:p></div>
<div class="MsoNormal">
archived log file name=/dbArch/XXXXXX/XXXXXX_1_29322_818382098.arc
thread=1 sequence=29322<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29323_818382098.arc thread=1 sequence=29323<o:p></o:p></div>
<div class="MsoNormal">
archived log file
name=/dbArch/XXXXXX/XXXXXX_1_29324_818382098.arc thread=1 sequence=29324<o:p></o:p></div>
<div class="MsoNormal">
media recovery complete, elapsed time: 00:05:16<o:p></o:p></div>
<div class="MsoNormal">
Finished recover at 02/25/2014 02:06:15<o:p></o:p></div>
<div class="MsoNormal">
released channel: t01<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t02<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t03<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t04<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t05<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t06<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t07<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
released channel: t08<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
RMAN><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Recovery Manager complete.<o:p></o:p></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US; mso-no-proof: yes;"><br /></span></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step H</span></b> <span style="font-family: 'Times New Roman', serif;">Convert the database to Standby</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: Times New Roman, serif;">ALTER DATABASE COVERT TO PHYSICAL STANDBY</span><br />
<span style="font-family: Times New Roman, serif;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLnSB2xwGhP2z_h0F8rrAapV2zgoUJ3hd_22FvKLjf9cl9ilcPqrfu0_-NoQj67wvUqI36COIhH4qE5MkhVhxCDWat479Hh6EAOPcpu0o_wSmvm6ne2niIIubHWKcjDOmETsR-CB8O8g4/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="155" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLnSB2xwGhP2z_h0F8rrAapV2zgoUJ3hd_22FvKLjf9cl9ilcPqrfu0_-NoQj67wvUqI36COIhH4qE5MkhVhxCDWat479Hh6EAOPcpu0o_wSmvm6ne2niIIubHWKcjDOmETsR-CB8O8g4/s320/1.png" width="320" /></a></div>
<span style="font-family: Times New Roman, serif;"><br /></span></div>
<div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Now the DB is converted to standby database. Run the below SQL to check the status.</div>
<div>
<br /></div>
<div>
<div class="MsoNormal">
set linesize 200<o:p></o:p></div>
<div class="MsoNormal">
col DB_UNIQUE_NAME form a30<o:p></o:p></div>
<div class="MsoNormal">
col DATABASE_ROLE for a20<o:p></o:p></div>
<div class="MsoNormal">
col OPEN_MODE for a30<o:p></o:p></div>
<div class="MsoNormal">
col SWITCHOVER_STATUS for a15<o:p></o:p></div>
<div class="MsoNormal">
column protection_mode form a30<o:p></o:p></div>
<div class="MsoNormal">
select
DB_UNIQUE_NAME,Database_role,open_mode,switchover_status,protection_mode from v$database;<o:p></o:p></div>
</div>
<div class="MsoNormal">
<br />
In my environment, the status shows as below.<br />
<br />
database role = Physical Standby<br />
open mode = Mounted<br />
switch over status = sessions active<br />
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step I</span></b> Start the Standby and Enable the MRP</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Enable the log shipping in primary database. In my environment, log_archive_dest_stat_2 is pointing to standby database. Open the primary and standby database alert log and tail the log files on different putty window. <br />
<br />
Login to current primary database and run the below command.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
alter system set log_archive_dest_state_2 = 'ENABLE'<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDGJqdHW0sc-5mAUX33RA6ZOqohPGCO_5JLAAdzLSq27NcAeP9sQAICb8rWcj0MmSp5q3ofBEyaiZN4CWMW8aCFh1Dq6lATH2SkzkUzWpmelwMehIgtsPBUQ0UUPYL4I83geLeYqUTBkI/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="99" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDGJqdHW0sc-5mAUX33RA6ZOqohPGCO_5JLAAdzLSq27NcAeP9sQAICb8rWcj0MmSp5q3ofBEyaiZN4CWMW8aCFh1Dq6lATH2SkzkUzWpmelwMehIgtsPBUQ0UUPYL4I83geLeYqUTBkI/s320/1.png" width="320" /></a></div>
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br />
<br />
<br />
<br />
<br />
<br />
Start up the current restored database in standby mode as below. Login the current standby database<br />
and run the below command. Monitor the alert log while running the below commands.</div>
<div class="MsoNormal">
<br />
<span style="background-color: yellow;">shutdown immediate;</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">startup nomount;</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">alter database mount standby database;</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">alter database recover managed standby database disconnect from session;</span><br />
<span style="background-color: white;">-- Stop here and verify the alert and make sure it is shipping the log files to standby</span><br />
<span style="background-color: white;">-- wait for 5 minutes and double check the alert log and make sure no issues.</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">alter database recover managed standby database cancel;</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">alter database open;</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">alter database recover managed standby database using current logfile disconnect;</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Verify the log shipping and DG replication.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="background-color: yellow; color: red;">Step J</span></b> Post Verification.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Verify the alert log on both database and make sure no errors. Enable the archive log delete join in primary database once standby is caught up with primary database.</div>
<div>
<br /></div>
<div>
<b><span style="background-color: yellow; color: red;">Lesson learned : </span></b>Enabling flashback is highly important on data guard environment. Otherwise, we will have to rebuild the database from the scratch if the DB is crashed. I enabled flashback features on all the data guard environment after i went through the costly exercise.<br />
<br />
Hope this post helps! Please let me know if you have any questions or comments.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
</div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-77675602756278199932015-12-09T11:18:00.000-08:002016-02-29T11:43:06.097-08:00Convert Single Instance to RAC using RCONFIG<div dir="ltr" style="text-align: left;" trbidi="on">
In this post, i will focus on how to covert single instance database to RAC instance.<br />
<br />
Environment :<br />
<br />
Stand alone database is sitting on ractest1 host and it is using file system. The goal is to covert the stand alone database to RAC instance.<br />
<br />
Stand alone DB :<br />
<br />
DB name : texasdb<br />
host : ractest1<br />
<br />
SQL> select instance_name,host_name from v$instance;<br />
<br />
INSTANCE_NAME HOST_NAME<br />
------------------------------ ------------------------------<br />
texasdb RACTEST1.localdomain<br />
<br />
SQL> select file_name from dba_data_files;<br />
<br />
FILE_NAME<br />
--------------------------------------------------------------------------------<br />
/backup/texasdb/texasdb/users01.dbf<br />
/backup/texasdb/texasdb/undotbs01.dbf<br />
/backup/texasdb/texasdb/system01.dbf<br />
/backup/texasdb/texasdb/sysaux01.dbf<br />
<br />
SQL><br />
<div>
<br /></div>
<div>
<br /></div>
After RAC migration, it will be as below.<br />
<br />
DB name : texasdb<br />
Instances names : txdb1, txdb2, txdb3.<br />
Hostnames : ractest1, ractest2, ractest3.<br />
<br />
Let us start the migration.<br />
<br />
<b><u style="background-color: yellow;"><span style="color: red;">Step 1</span></u></b><br />
<br />
Login to ractest1 node. Go to $ORACLE_HOME/assistants/rconfig/sampleXMLs and<br />
update the below parameter on ConvertToRAC_AdminManaged.xml file.<br />
<br />
<div>
Before we make the changes, backup the XML file.</div>
<div>
<br /></div>
<div>
The following parameter needs to be changed.,<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 461px;">
<colgroup><col style="mso-width-alt: 7277; mso-width-source: userset; width: 149pt;" width="199"></col>
<col style="mso-width-alt: 9581; mso-width-source: userset; width: 197pt;" width="262"></col>
</colgroup><tbody>
<tr height="21" style="height: 15.75pt;">
<td class="xl63" height="21" style="height: 15.75pt; width: 149pt;" width="199">Parameter</td>
<td class="xl63" style="border-left: none; width: 197pt;" width="262">Values</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">convert_verify</td>
<td class="xl64" style="border-left: none; border-top: none;">YES</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">Source DB
home</td>
<td class="xl64" style="border-left: none; border-top: none;">/ora/app/oracle/product/12.1.0.1/db_1</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">Target DB
home</td>
<td class="xl64" style="border-left: none; border-top: none;">/ora/app/oracle/product/12.1.0.1/db_1</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">Source DB
name, SYS password</td>
<td class="xl64" style="border-left: none; border-top: none;">texasdb, password</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">RAC node list</td>
<td class="xl64" style="border-left: none; border-top: none;">ractest1, ractest2,
ractest3</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">RAC instance
prefix</td>
<td class="xl64" style="border-left: none; border-top: none;">txdb</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">Shared
Storage type</td>
<td class="xl64" style="border-left: none; border-top: none;">ASM</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">Target DB
area</td>
<td class="xl64" style="border-left: none; border-top: none;">TEST</td>
</tr>
<tr height="21" style="height: 15.75pt;">
<td class="xl64" height="21" style="border-top: none; height: 15.75pt;">Target DB
recovery</td>
<td class="xl64" style="border-left: none; border-top: none;">TEST</td>
</tr>
</tbody></table>
</div>
<div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkAcTdYN1dN6eYCK4hXt4egwAJEcV1g8eclY2AgE-lIH74WB56Hj-C3RJ9XSzNCDGDFFzF93KcaBgX6U5ZrdpQUt2zfP2yVt35h4tfh3oDf06Z9UGkAOvOdfBM6KPGaYYV-qYeymdJ9C4/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkAcTdYN1dN6eYCK4hXt4egwAJEcV1g8eclY2AgE-lIH74WB56Hj-C3RJ9XSzNCDGDFFzF93KcaBgX6U5ZrdpQUt2zfP2yVt35h4tfh3oDf06Z9UGkAOvOdfBM6KPGaYYV-qYeymdJ9C4/s320/1.png" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b>
<b><u style="background-color: yellow;"><span style="color: red;">Step 2 </span></u></b><span style="background-color: #fce5cd;">G</span><span style="background-color: white;">o to $ORACLE_HOME/assistants/rconfig/sampleXMLs location and execute the below script. This is real conversion step. Please tail the logs(single instance alert log, RAC instance alert log, rconfig logs) and watch out while migrating to RAC instance.</span></div>
<div>
<br /></div>
<div>
<span style="background-color: yellow;">$ORACLE_HOME/bin/rconfig ConvertToRAC_AdminManaged.xml</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfQQU4MpMuIi9d024YpBybEjhQvTPAZnwPH9JQKsan2MEDl5iyK2f_hz1GnzXrUIO-2r9LLouHN3O2YgCLi5A-r6j6Jf7rVilAWYbdNz7zpsNOMim3_N9LylYcg80ihIFWb5pi0iKxkcE/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfQQU4MpMuIi9d024YpBybEjhQvTPAZnwPH9JQKsan2MEDl5iyK2f_hz1GnzXrUIO-2r9LLouHN3O2YgCLi5A-r6j6Jf7rVilAWYbdNz7zpsNOMim3_N9LylYcg80ihIFWb5pi0iKxkcE/s1600/1.png" /></a></div>
<span style="background-color: yellow;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
<div>
<span style="background-color: yellow;"><span style="color: red;"><u style="background-color: yellow; color: red; font-weight: bold;">Step 3</u><span style="background-color: #fce5cd;"> </span></span></span><span style="background-color: white;">This command provides more info about RAC instance.</span></div>
<div>
<b><u style="background-color: yellow;"><span style="color: red;"><br /></span></u></b></div>
<div>
<span style="background-color: yellow;"> srvctl config database -d texasdb</span></div>
<div>
[root@RACTEST1 ~]# srvctl config database -d texasdb<br />
Database unique name: texasdb<br />
Database name: texasdb<br />
Oracle home: /ora/app/oracle/product/12.1.0.1/db_1<br />
Oracle user: oracle<br />
Spfile: +TEST/spfiletexasdb.ora<br />
Password file: +TEST/orapwtexasdb<br />
Domain:<br />
Start options: open<br />
Stop options: immediate<br />
Database role: PRIMARY<br />
Management policy: AUTOMATIC<br />
Server pools:<br />
Disk Groups: TEST<br />
Mount point paths:<br />
Services:<br />
Type: RAC<br />
Start concurrency:<br />
Stop concurrency:<br />
OSDBA group: dba<br />
OSOPER group: oper<br />
Database instances: txdb1,txdb2,txdb3<br />
Configured nodes: ractest1,ractest2,ractest3<br />
Database is administrator managed<br />
[root@RACTEST1 ~]#</div>
<div>
<span style="background-color: white;">
</span>
<br />
<div>
<br /></div>
<div>
<span style="background-color: white;"><u style="background-color: yellow; color: red; font-weight: bold;">Step 4</u> </span><span style="background-color: white;">Check if the database has converted successfully.</span><br />
<span style="background-color: #fce5cd;"><span style="background-color: white;"><br /></span>
<span style="background-color: white;">[root@RACTEST1 ~]# srvctl status database -d texasdb</span></span><br />
<span style="background-color: white;">Instance txdb1 is running on node ractest1</span><br />
<span style="background-color: white;">Instance txdb2 is running on node ractest2</span><br />
<span style="background-color: white;">Instance txdb3 is running on node ractest3</span><br />
<span style="background-color: white;">[root@RACTEST1 ~]#</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;"><u style="background-color: yellow; color: red; font-weight: bold;">Step 5</u><span style="background-color: white;"> </span><span style="background-color: white;"><span style="background-color: white;"> </span><span style="background-color: #fce5cd;">Modify the tnsentry in local node and copy to other node. The existing tnsentry will have local host name. It needs to be updated with SCAN name and copied to across other nodes.</span></span></span></div>
<span style="background-color: #fce5cd;"><span style="background-color: white;">
</span>
</span><br />
<div>
<span style="background-color: white;">Here is the modified entry for my environment.</span></div>
<span style="background-color: #fce5cd;"><span style="background-color: white;">
</span>
</span><br />
<div>
<span style="background-color: white;">TEXASDB =</span></div>
<div>
<div>
<span style="background-color: white;"> (DESCRIPTION =</span></div>
<div>
<span style="background-color: white;"> (ADDRESS = (PROTOCOL = TCP)(HOST = RACTEST-scan.localdomain)(PORT = 1522))</span></div>
<div>
<span style="background-color: white;"> (CONNECT_DATA =</span></div>
<div>
<span style="background-color: white;"> (SERVER = DEDICATED)</span></div>
<div>
<span style="background-color: white;"> (SERVICE_NAME = texasdb)</span></div>
<div>
<span style="background-color: white;"> )</span></div>
<div>
<span style="background-color: white;"> )</span></div>
</div>
<span style="background-color: white;">
</span></div>
<div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><u style="background-color: yellow; color: red; font-weight: bold;">Step 6</u><span style="background-color: white;"> </span><span style="background-color: white;">Check all the data files were migrated to ASM disk.</span></span><br />
<span style="background-color: white;"><br /></span>
SQL> select instance_name,host_name from v$instance;<br />
<br />
INSTANCE_NAME HOST_NAME<br />
------------------------------ ------------------------------<br />
txdb1 RACTEST1.localdomain<br />
<br />
SQL> select file_name from dba_data_files;<br />
<br />
FILE_NAME<br />
--------------------------------------------------------------------------------<br />
+TEST/TEXASDB/DATAFILE/system.266.897834935<br />
+TEST/TEXASDB/DATAFILE/sysaux.264.897834965<br />
+TEST/TEXASDB/DATAFILE/undotbs2.291.897835567<br />
+TEST/TEXASDB/DATAFILE/users.262.897835005<br />
+TEST/TEXASDB/DATAFILE/undotbs3.290.897835573<br />
+TEST/TEXASDB/DATAFILE/undotbs1.263.897834991<br />
<br />
6 rows selected.<br />
<br />
<span style="background-color: white;"></span><br />
SQL><br />
<div>
<br /></div>
<div>
<br />
<div>
<span style="background-color: yellow;">Now QA session!</span></div>
<div>
<br /></div>
<div>
<span style="background-color: yellow; color: red;"><b>What is the best scenario for using RCONFIG?</b></span><br />
<br />
RCONFIG invokes RMAN internally to back up the database to proceed with converting non-ASM to ASM. This is time consuming task if the DB is in Terabyte size and it will cause longer outage.<br />
Hence this is good option only for small database and customer allows significant amount downtime.<br />
<br />
<span style="color: red;"><b style="background-color: yellow;">How do we improve the conversion time with RCONFIG?</b></span><br />
<br />
We can increase RMAN backup channel to reduce the backup time. Again it depends on how many number of CPU you have in your node. Here is the command to adjust the parallelism. The channel can be adjusted according to your server capacity.<br />
<span style="background-color: white; color: #555555; font-family: "verdana" , "bitstream vera sans" , "helvetica" , sans-serif; font-size: 12px; line-height: 17.4px;"><br /></span><span style="background-color: white; color: #555555; font-family: "verdana" , "bitstream vera sans" , "helvetica" , sans-serif; font-size: 12px; line-height: 17.4px;">RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 6;</span><br />
<b><span style="background-color: yellow; color: red;"><br /></span></b><b><span style="background-color: yellow; color: red;">What does RCONFIG do during the conversion?</span></b><br />
<br />
<ol style="text-align: left;">
<li>Migrate the database to ASM storage if we specified in XML file</li>
<li>Create Database Instances on all nodes in the cluster </li>
<li>Configure Listener and NetService entries</li>
<li>Configure and register CRS resources </li>
<li>Start the instances on all nodes in the cluster.</li>
</ol>
</div>
<div>
<span style="background-color: yellow;"><span style="color: red;"><b>What are the Pre-requisite for RCONFIG utility?</b></span></span></div>
<div>
<ol style="text-align: left;">
<li>Cluster should installed and all the cluster process is up and running on all the nodes.</li>
<li>The oracle RAC RDBMS is installed on all nodes.</li>
<li>ASM disk must be mounted across all nodes if we want to migrate from file system to ASM.</li>
<li>The source and target should be in same home and same OS version.</li>
<li>Make sure, ASM disk has enough storage to migrate all the data files</li>
</ol>
</div>
<div>
<b><span style="background-color: yellow; color: red;">How do we test RCONFIG before we do real conversion?</span></b><br />
<br />
We have convert verify parameter in XML file and it has below options. Please choose ONLY.<br />
<br />
Convert verify="YES"<br />
Runs through verification checks to ensure that the<br />
prerequisites for single-instance to RAC db<br />
conversion have been met before it acutually starts<br />
the conversion.<br />
<br />
Convert verify="NO"<br />
Bypass the prerequisite verification checks, and<br />
starts conversion straight away<br />
<br />
Convert verify="ONLY"<br />
Do not perform the acutal conversion process.<br />
Rather, just run through the prerequisite verification<br />
checks and ends.</div>
<div>
<br /></div>
<div>
<span style="background-color: yellow; color: red;"><b>What can do if it fails middle of the conversion?</b></span><br />
<br />
Don't get panic. This will perform the clean-up operation on converted Instance or will delete the files created by earlier run.<br />
<br />
<b><span style="background-color: yellow; color: red;">How do we monitor conversion process during the migration?</span></b><br />
<br />
There are few logs and we can tail the log during the process. We can monitor (tail -f)<br />
single instance alert log, RAC database alert log, rconfig alert log, rman logs. Log info will give better idea and we can see what is going on.<br />
<br />
In my environment, i tailed the below logs.<br />
tail -f /ora/app/oracle/diag/rdbms/texasdb/texasdb/trace/alert_texasdb.log<br />
tail -f /ora/app/oracle/diag/rdbms/texasdb/txdb1/trace/alert_txdb1.log<br />
tail -f /ora/app/oracle/cfgtoollogs/rconfig/rconfig_12_07_15_14_34_51.log<br />
tail -f /ora/app/oracle/cfgtoollogs/rconfig/texasdb/sqlLog<br />
tail -f /ora/app/oracle/cfgtoollogs/rconfig/texasdb/rman<br />
tail -f /ora/app/oracle/cfgtoollogs/rconfig/txdb1/sqlLog<br />
tail -f /ora/app/oracle/cfgtoollogs/rconfig/txdb1/rman<br />
<div>
<span style="color: red;"><span style="background-color: yellow;"><br /></span></span>
<span style="color: red;"><span style="background-color: yellow;"><b>How do we convert using RCONFIG if the stand alone DB is in different host?</b></span></span><br />
<span style="color: red;"><span style="background-color: yellow;"><b><br /></b></span></span>
You would accomplish this task by first restoring single instance database in one of RAC node and , then you would use RCONFIG to convert to RAC option.<br />
<span style="color: red;"><b style="background-color: yellow;"><br /></b></span></div>
<span style="color: red;"><b style="background-color: yellow;">Where does RMAN store the backup piece?</b></span><br />
<br />
In my environment, i am able to find the backup piece under +TEST/TEXASDB/BACKUPSET/2015_12_07<br />
<br />
I can find the info from /ora/app/oracle/cfgtoollogs/rconfig/rconfig_12_07_15_14_34_51.log<br />
<br />
name=+TEST/TEXASDB/DATAFILE/undotbs1.263.897834991<br />
[Thread-203] [ 2015-12-07 14:39:34.817 EST ] [RMANEngine.readSqlOutput:889] Log RMAN Output=recovering datafile copy file number=00006 name=+TEST/TEXASDB/DATAFILE/users.262.897835005<br />
[Thread-203] [ 2015-12-07 14:39:34.876 EST ] [RMANEngine.readSqlOutput:889] Log RMAN Output=channel ORA_DISK_1: reading from backup piece +TEST/TEXASDB/BACKUPSET/2015_12_07/nnndn1_rconfig_backup_0.261.897835009<br />
[Thread-203] [ 2015-12-07 14:39:35.879 EST ] [RMANEngine.readSqlOutput:889] Log RMAN Output=channel ORA_DISK_1: piece handle=<span style="background-color: yellow;"><span style="color: red;">+TEST/TEXASDB/BACKUPSET/2015_12_07/nnndn1_rconfig_backup_0.261.897835009</span></span> tag=RCONFIG_BACKUP<br />
[Thread-203] [ 2015-12-07 14:39:35.880 EST ] [RMANEngine.readSqlOutput:889] Log RMAN Output=channel ORA_DISK_1: restored backup piece 1<br />
[Thread-203] [ 2015-12-07 14:39:35.881 EST ] [RMANEngine.readSqlOutput:889] Log RMAN Output=channel ORA_DISK_1: restore complete, elapsed time: 00:00:01<br />
[Thread-203] [ 2015-12-07 14:39:36.025 EST ] [RMANEngine.readSqlOutput:889] Log RMAN Output=Finished recover at 07-DEC-15<br />
<div>
<span style="background-color: yellow; color: red;"><b><br /></b></span>
<span style="background-color: yellow; color: red;"><b>How do i cleanup my old single instance data files?</b></span><br />
<br />
I successfully converted single instance to RAC instance and all my data files are migrated to ASM disk. I need to clean up the single instance data files in the file system to free up the space.<br />
You can just go and delete the data files.<br />
<br />
[oracle@RACTEST1 texasdb]$ pwd<br />
/backup/texasdb/texasdb<br />
[oracle@RACTEST1 texasdb]$ ls -ltr<br />
total 1859196<br />
-rw-r-----. 1 oracle asmadmin 62922752 Dec 7 14:35 temp01.dbf<br />
-rw-r-----. 1 oracle asmadmin 817897472 Dec 7 14:37 system01.dbf<br />
-rw-r-----. 1 oracle asmadmin 272637952 Dec 7 14:37 undotbs01.dbf<br />
-rw-r-----. 1 oracle asmadmin 629153792 Dec 7 14:37 sysaux01.dbf<br />
-rw-r-----. 1 oracle asmadmin 5251072 Dec 7 14:37 users01.dbf<br />
-rw-r-----. 1 oracle asmadmin 10043392 Dec 7 14:40 control01.ctl<br />
-rw-r-----. 1 oracle asmadmin 10043392 Dec 7 14:40 control02.ctl<br />
-rw-r-----. 1 oracle asmadmin 52429312 Dec 7 14:41 redo02.log<br />
-rw-r-----. 1 oracle asmadmin 52429312 Dec 7 14:41 redo03.log<br />
-rw-r-----. 1 oracle asmadmin 52429312 Dec 7 14:41 redo01.log<br />
[oracle@RACTEST1 texasdb]$<br />
<br />
[oracle@RACTEST1 texasdb]$ rm *<br />
<br />
<span style="color: red;"><b style="background-color: yellow;">Do we have any useful links to read about RCONFIG?</b></span><br />
<br /></div>
Hope this topic helps!<br />
<br />
Metalink Doc ID 387046.1 is good one! I also like this you tube <a href="https://www.youtube.com/watch?v=TI2nADjokfc">video</a>.<br />
<br />
<br /></div>
</div>
<span style="background-color: white;"><br /></span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-23343788968246912462015-11-11T07:53:00.001-08:002016-02-01T19:45:51.636-08:00Oracle PL SQL Questions and Answers for Newbies<div dir="ltr" style="text-align: left;" trbidi="on">
I thought, it would be helpful to post sample PL SQL questions for newbies. You can be PLSQL Programmer if you practice these questions. :-)<br />
<br />
1.Write a program to print the following format<br />
WELCOME TO PL/SQL PROGRAMMING<br />
BEGIN<br />
DBMS_OUTPUT.PUT_LINE('WELCOME TO PL/SQL PROGRAMMING');<br />
END;<br />
/<br />
2.Write a program to print the numbers from 1 to 100<br />
DECLARE<br />
N NUMBER(3):=1;<br />
V VARCHAR2(1000);<br />
BEGIN<br />
WHILE N <=1000<br />
LOOP<br />
V:=V||''||N;<br />
N:=N+1;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
3.write a program to print the even numbers from 1 to 100<br />
DECLARE<br />
N NUMBER(3):=0;<br />
BEGIN<br />
WHILE N <=100<br />
LOOP<br />
N:=N+2;<br />
DBMS_OUTPUT.PUT_LINE(N);<br />
END LOOP;<br />
END;<br />
/<br />
4.Write a program to print the odd numbers from 1 to 100<br />
DECLARE<br />
N NUMBER(3):=1;<br />
BEGIN<br />
WHILE N <=100<br />
LOOP<br />
N:=N+2;<br />
DBMS_OUTPUT.PUT_LINE(N);<br />
END LOOP;<br />
END;<br />
/<br />
5.write a program for multiplication table<br />
DECLARE<br />
A NUMBER(2):=&A;<br />
B NUMBER(2):=1;<br />
C NUMBER(3);<br />
BEGIN<br />
WHILE B <=10<br />
LOOP<br />
C:=A*B;<br />
DBMS_OUTPUT.PUT_LINE(A||'*'||B||'='||C);<br />
B:=B+1;<br />
END LOOP;<br />
END;<br />
/<br />
6.write a program to find the sum of numbers from 1 to 100<br />
DECLARE<br />
N NUMBER(3):=1;<br />
S NUMBER(4):=0;<br />
BEGIN<br />
WHILE N <=100<br />
LOOP<br />
S:=S+N;<br />
N:=N+1;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE SUM OF 1 TO 100 IS '||S);<br />
END;<br />
/<br />
7.Write a program to find the sum of all odd numbers from 1 to 100<br />
DECLARE<br />
N NUMBER(3):=1;<br />
S NUMBER(4):=0;<br />
BEGIN<br />
WHILE N <=100<br />
LOOP<br />
S:=S+N;<br />
N:=N+2;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE SUM OF 1 TO 100 ODD NUMBERS IS '||S);<br />
END;<br />
/<br />
8.Write a program to find the sum of all even numbers from 1 to 100<br />
DECLARE<br />
N NUMBER(3):=0;<br />
S NUMBER(4):=0;<br />
BEGIN<br />
WHILE N <=100<br />
LOOP<br />
S:=S+N;<br />
N:=N+2;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE SUM OF 1 TO 100 EVEN NUMBERS IS '||S);<br />
END;<br />
/<br />
9.Write a program to accept a number and find how many digits it contain<br />
DECLARE<br />
N NUMBER(5):=&N;<br />
CNT NUMBER:=0;<br />
R NUMBER(2):=0;<br />
BEGIN<br />
WHILE N !=0<br />
LOOP<br />
R:=MOD(N,10);<br />
CNT:=CNT+1;<br />
N:=TRUNC(N/10);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('NUMBER OF DIGITS OF GIVEN NUMBER IS '||CNT);<br />
END;<br />
/<br />
10.Write a program to accept a number and find the sum of the digits<br />
DECLARE<br />
N NUMBER(5):=&N;<br />
S NUMBER:=0;<br />
R NUMBER(2):=0;<br />
BEGIN<br />
WHILE N !=0<br />
LOOP<br />
R:=MOD(N,10);<br />
S:=S+R;<br />
N:=TRUNC(N/10);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF DIGITS OF GIVEN NUMBER IS '||S);<br />
END;<br />
/<br />
11.Write a program to accept a number and print it in reverse order<br />
DECLARE<br />
N NUMBER(5):=&N;<br />
REV NUMBER(5):=0;<br />
R NUMBER(5):=0;<br />
BEGIN<br />
WHILE N !=0<br />
LOOP<br />
R:=MOD(N,10);<br />
REV:=REV*10+R;<br />
N:=TRUNC(N/10);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE REVERSE OF A GIVEN NUMBER IS '||REV);<br />
END;<br />
/<br />
12.Write a program to accept a no and check whether it is Armstrong number or not<br />
13.Write a porgram to generate all the Armstrong numbers from 1 to 1000<br />
14.Write a program to generate all prime numbers between 1 to 100<br />
15.Write a program to aceept a number and check whether it is prime number or not<br />
16.Write a program to display the fibonacci series from 1 to 10<br />
17.Write a program to aceept a number and print it in binary format<br />
18.Write a program to accept a number and find the factorial of the number<br />
19.Find the factorials of numbers from 1 to 10<br />
DECLARE<br />
FACT NUMBER:=1;<br />
V VARCHAR2(100);<br />
BEGIN<br />
FOR I IN 1..10<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
FACT:=FACT*J;<br />
V:=J||'*'||V;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(RTRIM(V,'*')||'='||FACT);<br />
FACT:=1;<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
20.Write a program to aceept a number and display it in the Octal format<br />
DECLARE<br />
N NUMBER(2):=&N;<br />
R NUMBER(2);<br />
V VARCHAR2(1000);<br />
BEGIN<br />
WHILE N>0<br />
LOOP<br />
R:=MOD(N,8);<br />
V:=R||V;<br />
N:=TRUNC(N/8);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('OCTAL OF A GIVEN NUMBER IS '||V);<br />
END;<br />
/<br />
21.Write a program to accept a number and print the multiplication tables upto soo<br />
DECLARE<br />
N NUMBER(2):=&N;<br />
M NUMBER;<br />
BEGIN<br />
FOR I IN N..N+5<br />
LOOP<br />
FOR J IN 1..10<br />
LOOP<br />
M:=I*J;<br />
DBMS_OUTPUT.PUT_LINE(I||'*'||J||'='||M);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('*********************');<br />
END LOOP;<br />
END;<br />
/<br />
22.Write a program to accept the temp in Centigrade and convert it into Fahrenheit(c=F-32/1.8)<br />
DECLARE<br />
C NUMBER:=&C;<br />
F NUMBER;<br />
BEGIN<br />
F:=C*1.8+32;<br />
DBMS_OUTPUT.PUT_LINE('THE FARENHETT OF GIVEN OC IS '||F);<br />
END;<br />
/<br />
23.Write a program to calculate the area of a triangle by accepting the 3 sides<br />
(s=(a+b+c)/2 area=sqrt(s*(s-a)*(s-b)*(s-c)))<br />
DECLARE<br />
S NUMBER;<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
C NUMBER:=&C;<br />
AREA NUMBER(7,2);<br />
BEGIN<br />
S:=(A+B+C)/2;<br />
AREA:=SQRT(S*(S-A)*(S-B)*(S-C));<br />
DBMS_OUTPUT.PUT_LINE('THE AREA OF TRIANGLE IS '||AREA);<br />
END;<br />
/<br />
24.Write a program to calculate the area of a circle by accepting the radius and unit of measure Area=PI*r2<br />
DECLARE<br />
R NUMBER:=&R;<br />
AREA NUMBER(7,2);<br />
BEGIN<br />
AREA:=(22/7)*R*R;<br />
DBMS_OUTPUT.PUT_LINE('THE AREA OF CIRCLE IS '||AREA);<br />
END;<br />
/<br />
25.Write a program to calculate the perimeter of a circle(perimeter=2*PI*r)<br />
DECLARE<br />
R NUMBER:=&R;<br />
PERIMETER NUMBER(7,2);<br />
BEGIN<br />
PERIMETER:=2*(22/7)*R;<br />
DBMS_OUTPUT.PUT_LINE('THE PERIMETER OF CIRCLE IS '||PERIMETER);<br />
END;<br />
/<br />
26.Write a program to accept the 3 sides of the triangle and display the type of triangle<br />
DECLARE<br />
A NUMBER(4,2):=&A;<br />
B NUMBER(4,2):=&B;<br />
C NUMBER(4,2):=&C;<br />
PERIMETER NUMBER(7,2);<br />
BEGIN<br />
IF (A=B AND B=C AND C=A) THEN<br />
DBMS_OUTPUT.PUT_LINE('EQUILATERAL TRIANGLE');<br />
ELSIF A=B OR A=C OR C=B THEN<br />
DBMS_OUTPUT.PUT_LINE('ISOSOCELESS TRIANGLE');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('SCALEN TRIANGLE');<br />
END IF;<br />
END;<br />
/<br />
27.Write a program accept the value of A,B&C display which is greater<br />
DECLARE<br />
A NUMBER(4,2):=&A;<br />
B NUMBER(4,2):=&B;<br />
C NUMBER(4,2):=&C;<br />
BEGIN<br />
IF (A>B AND A>C) THEN<br />
DBMS_OUTPUT.PUT_LINE('A IS GREATER '||''||A);<br />
ELSIF B>C THEN<br />
DBMS_OUTPUT.PUT_LINE('B IS GREATE '||''||B);<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('C IS GREATER '||''||C);<br />
END IF;<br />
END;<br />
/<br />
28.Write a program accept a string and check whether it is palindrome or not<br />
DECLARE<br />
S VARCHAR2(10):='&S';<br />
L VARCHAR2(20);<br />
TEMP VARCHAR2(10);<br />
BEGIN<br />
FOR I IN REVERSE 1..LENGTH(S)<br />
LOOP<br />
L:=SUBSTR(S,I,1);<br />
TEMP:=TEMP||''||L;<br />
END LOOP;<br />
IF TEMP=S THEN<br />
DBMS_OUTPUT.PUT_LINE(TEMP ||''||' IS PALINDROME');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE(TEMP ||''||' IS NOT PALINDROME');<br />
END IF;<br />
END;<br />
/<br />
29.Write a program aceepts the value of A,B and swap the nos and print the values<br />
DECLARE<br />
A NUMBER(2):=&A;<br />
B NUMBER(2):=&B;<br />
FLAG NUMBER(2);<br />
BEGIN<br />
FLAG:=A;<br />
A:=B;<br />
B:=FLAG;<br />
DBMS_OUTPUT.PUT_LINE('A '||'= '||A||' AND '||''||'B '||'= '||B);<br />
END;<br />
/<br />
30.Write a program to accept the values of A , B and swap the numbers and print the values<br />
without using third variable<br />
DECLARE<br />
A NUMBER(2):=&A;<br />
B NUMBER(2):=&B;<br />
FLAG NUMBER(2);<br />
BEGIN<br />
FLAG:=A;<br />
A:=B;<br />
B:=FLAG;<br />
DBMS_OUTPUT.PUT_LINE('A '||'= '||A||' AND '||''||'B '||'= '||B);<br />
END;<br />
/<br />
31.Write a program to accept the side of a square and calculate the area area =a2<br />
DECLARE<br />
A NUMBER:=&A;<br />
AREA NUMBER(5);<br />
BEGIN<br />
AREA:=A*A;<br />
DBMS_OUTPUT.PUT_LINE('AREA OF A SQUARE IS '||''||AREA);<br />
END;<br />
/<br />
32.Write a program to accept principle amount ,rate,time calculate the simple interest si=(p*t*r)/100<br />
DECLARE<br />
P NUMBER(6,2):=&P;<br />
R NUMBER(6,2):=&R;<br />
T NUMBER(6,2):=&T;<br />
SI NUMBER(6,2);<br />
BEGIN<br />
SI:=(P*R*T)/100;<br />
DBMS_OUTPUT.PUT_LINE('SIMPLE INTEREST IS '||''||SI);<br />
END;<br />
/<br />
33.Erite a program to aceept the principle amount,rate,time and find the compound interest<br />
ci=p*(1+r/100)n<br />
DECLARE<br />
P NUMBER(6,2):=&P;<br />
R NUMBER(6,2):=&R;<br />
T NUMBER(6,2):=&T;<br />
CI NUMBER(6,2);<br />
BEGIN<br />
CI:=P*POWER(1+(R/100),T);<br />
DBMS_OUTPUT.PUT_LINE('COMPOUND INTEREST IS '||CI);<br />
END;<br />
/<br />
34.WAP to calculate the sum of 1!+2!+......+n!<br />
DECLARE<br />
N NUMBER:=&N;<br />
S NUMBER:=0;<br />
F NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
F:=F*J;<br />
END LOOP;<br />
S:=S+F;<br />
F:=1;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF FACT IS '||S);<br />
END;<br />
/<br />
35.WAP to calculate the sum of 1+1/2+1/3+......+1/n<br />
DECLARE<br />
N NUMBER:=&N;<br />
A NUMBER;<br />
S NUMBER(6,2):=0;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
A:=1/I;<br />
S:=S+A;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF NO ARE '||S);<br />
END;<br />
/<br />
36.WAP to calculate the sum of 1/1!+1/2!+.....+1/n!<br />
DECLARE<br />
N NUMBER:=&N;<br />
S NUMBER(6,2):=0;<br />
F NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
F:=F*J;<br />
END LOOP;<br />
S:=S+(1/F);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM IS '||S);<br />
END;<br />
/<br />
37.WAP to calculate the sum of 1/1!+2/2!+......+n/n!<br />
DECLARE<br />
N NUMBER(4):=&N;<br />
S NUMBER(6,2):=0;<br />
F NUMBER(4):=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
F:=F*J;<br />
END LOOP;<br />
S:=S+(I/F);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF FACT IS '||S);<br />
END;<br />
/<br />
38.Write a program to display the months between two dates of a year<br />
DECLARE<br />
D DATE:='&D';<br />
D1 DATE:='&D1';<br />
BEGIN<br />
WHILE D < D1<br />
LOOP<br />
DBMS_OUTPUT.PUT_LINE(TO_CHAR(D,'MONTH'));<br />
D:=ADD_MONTHS(D,1);<br />
END LOOP;<br />
END;<br />
/<br />
39.Write a program to accept the date and print the weekdays from the given date<br />
DECLARE<br />
D DATE:='&D';<br />
WD DATE;<br />
BEGIN<br />
WD:=D+6;<br />
WHILE D <= WD<br />
LOOP<br />
DBMS_OUTPUT.PUT_LINE(TO_CHAR(D,'DAY'));<br />
D:=D+1;<br />
END LOOP;<br />
END;<br />
/<br />
40.WAP to accept the date and print the weekdays from the given date along with date format<br />
DECLARE<br />
D DATE:='&D';<br />
WD DATE;<br />
BEGIN<br />
WD:=D+6;<br />
WHILE D <= WD<br />
LOOP<br />
DBMS_OUTPUT.PUT_LINE(TO_CHAR(D,'DAY')||D);<br />
D:=D+1;<br />
END LOOP;<br />
END;<br />
/<br />
41.Writa a program to accept a year and check whether it is leap year or not<br />
DECLARE<br />
Y NUMBER:=&Y;<br />
R NUMBER;<br />
BEGIN<br />
IF MOD(Y,4)=0 AND MOD(Y,100)!=0 OR MOD(Y,400)=0<br />
THEN<br />
DBMS_OUTPUT.PUT_LINE(Y ||' IS A LEAP YEAR');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE(Y ||' IS NOT A LEAP YEAR');<br />
END IF;<br />
END;<br />
/<br />
42.Write a program to accept a year and display all sundays along with the date<br />
DECLARE<br />
Y NUMBER(4):=&YYYY;<br />
A DATE;<br />
B DATE;<br />
I NUMBER(2):=1;<br />
BEGIN<br />
A:=TO_DATE('01-JAN-'||Y,'DD-MON-YYYY');<br />
B:=LAST_DAY(ADD_MONTHS(A,11));<br />
WHILE A <= B<br />
LOOP<br />
IF TO_CHAR(A,'D')=1 THEN<br />
DBMS_OUTPUT.PUT_LINE(LPAD(I,2,'0')||'-'||UPPER(TO_CHAR(A,'DAY'))||A);<br />
I:=I+1;<br />
END IF;<br />
A:=A+1;<br />
END LOOP;<br />
END;<br />
/<br />
43.WAP to accept a string and count how many vowels present in the string<br />
DECLARE<br />
V VARCHAR2(300):='&V';<br />
CNT NUMBER(5):=0;<br />
C CHAR;<br />
BEGIN<br />
FOR I IN 1..LENGTH(V)<br />
LOOP<br />
C:=SUBSTR(V,I,1);<br />
IF C IN ('A','E','I','O','U') THEN<br />
CNT:=CNT+1;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('NO OF VOWELS PRESENT = '||CNT);<br />
END;<br />
/<br />
44.Write a program to accept a year and check whether it is leap year or not . If it is<br />
leap year then display how many sundays present in that year<br />
DECLARE<br />
D DATE:='&YEAR';<br />
Y VARCHAR2(20);<br />
CNT NUMBER(5):=0;<br />
V VARCHAR2(20);<br />
BEGIN<br />
Y:=TO_CHAR(D,'YYYY');<br />
D:=TO_DATE('01-JAN-'||Y);<br />
IF MOD(Y,4)=0 AND MOD(Y,100)!=0 OR MOD(Y,400)=0 THEN<br />
FOR I IN 1..366<br />
LOOP<br />
V:=TO_CHAR(D,'D');<br />
IF V=1 THEN<br />
CNT:=CNT+1;<br />
END IF;<br />
D:=D+1;<br />
DBMS_OUTPUT.PUT_LINE('NO OF VOWELS PRESENT = '||CNT);<br />
END LOOP;<br />
END;<br />
/<br />
45.Write a program to accept a char and check it is vowel or consonant<br />
DECLARE<br />
C CHAR:='&C';<br />
BEGIN<br />
IF C='A' OR C='E' OR C='I' OR C='O' OR C='U' THEN<br />
DBMS_OUTPUT.PUT_LINE('VOWEL');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('CONSONANT');<br />
END IF;<br />
END;<br />
/<br />
46.WAP to accept A,B,C & D check whether it is Ramanujan number or not<br />
DECLARE<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
C NUMBER:=&C;<br />
D NUMBER:=&D;<br />
BEGIN<br />
IF<br />
POWER(A,3)+POWER(B,3)=POWER(C,3)+POWER(D,3) THEN<br />
DBMS_OUTPUT.PUT_LINE(A||CHR(179)||'+'||B||CHR(179)||'='||C||CHR(179)||'+'||D||CHR(179));<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE(A||CHR(179)||'+'||B||CHR(179)||'!='||C||CHR(179)||'+'||D||CHR(179));<br />
END IF;<br />
END;<br />
/<br />
47.WAP to accept the CMR & LMR & find out the total bill amount<br />
i)0-100 units Rs.50 per unit ii)101-200n units Rs.o.25 per unit<br />
iii)>200 units Rs.1.25 per unit<br />
DECLARE<br />
LMR NUMBER(5):=&LMR;<br />
CMR NUMBER(5):=&CMR;<br />
TOT NUMBER(5):=0;<br />
BILL NUMBER(7,2):=0;<br />
BEGIN<br />
TOT:=CMR-LMR;<br />
IF TOT <= 100 THEN<br />
BILL:=TOT*.50;<br />
ELSIF TOT > 100 AND TOT <= 200 THEN<br />
BILL:=(100*.50)+((TOT-100)*.75);<br />
ELSE<br />
BILL:=(100*.50)+(100*.75)+(TOT-200)*1.25;<br />
END IF;<br />
DBMS_OUTPUT.PUT_LINE('TOTAL UNIT CONSUMED '||TOT);<br />
DBMS_OUTPUT.PUT_LINE('TOTAL BILL AMOUNT '||BILL);<br />
END;<br />
/<br />
48.WAP or accept marks of 3 subject as i/p and calculate the total marks and division of a student<br />
i) If totmark>=60 then division is First<br />
ii) If totmark <60 and="" totmark="">=50 then division is second<!--60--></60><br />
iii) If totmark< 50 and >=35 then division is third<br />
iv) If totmark< 35 then fail<br />
DECLARE<br />
M1 NUMBER(2):=&M1;<br />
M2 NUMBER(2):=&M2;<br />
M3 NUMBER(2):=&M3;<br />
TOTMARK NUMBER(5,2);<br />
AVE NUMBER(5,2):=0;<br />
BEGIN<br />
TOTMARK:=M1+M2+M3;<br />
AVE:=TOTMARK/3;<br />
IF AVE>=60 THEN<br />
DBMS_OUTPUT.PUT_LINE('THE DIVISION IS FIRST '||AVE);<br />
ELSIF AVE<60 and="" ave="">=50 THEN<!--60--></60><br />
DBMS_OUTPUT.PUT_LINE('THE DIVISION IS SECOND '||AVE);<br />
ELSIF AVE<50 and="" ave="">=35 THEN<!--50--></50><br />
DBMS_OUTPUT.PUT_LINE('THE DIVISION IS THIRD '||AVE);<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('FAIL '||AVE);<br />
END IF;<br />
END;<br />
/<br />
49.WAP to accept a number and print its multiplication table horinzontally<br />
DECLARE<br />
J NUMBER:=&J;<br />
V VARCHAR2(1000);<br />
K NUMBER(3);<br />
BEGIN<br />
FOR I IN 1..10<br />
LOOP<br />
K:=J*I;<br />
V:=V||J||'*'||I||'='||K||' ';<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
50.WAP to accept a string and print it in reverse order<br />
DECLARE<br />
STR VARCHAR2(100):='&sTR';<br />
STR1 VARCHAR2(100);<br />
N NUMBER(5);<br />
L VARCHAR2(20);<br />
BEGIN<br />
N:=LENGTH(STR);<br />
FOR I IN 1..N<br />
LOOP<br />
L:=SUBSTR(STR,I,1);<br />
STR1:=L||STR1;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(STR1);<br />
END;<br />
/<br />
51.Write a program to accept a number and find out the sum of first and<br />
last digits<br />
DECLARE<br />
A NUMBER(4):=&A;<br />
B NUMBER(5):=0;<br />
C NUMBER(5):=0;<br />
S NUMBER(5);<br />
BEGIN<br />
IF A>9 THEN<br />
C:=SUBSTR(A,1,1);<br />
B:=SUBSTR(A,LENGTH(A),1);<br />
S:=B+C;<br />
ELSE<br />
S:=A;<br />
END IF;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF FIRST AND LAST DIGIT IS '||S);<br />
END;<br />
/<br />
52.WAP to accept the basic salary and find out the ta,da,hra,lic and gs<br />
i)ta 20% of basic, da 10% of basic, hra 30% of basic, lic 5% of basic<br />
DECLARE<br />
BS NUMBER(6,2):=&BS;<br />
TA NUMBER(6,2);<br />
DA NUMBER(6,2);<br />
HRA NUMBER(6,2);<br />
GS NUMBER(6,2);<br />
LIC NUMBER(6,2);<br />
NS NUMBER(8,2);<br />
BEGIN<br />
TA:=BS*(20/100);<br />
HRA:=BS*(30/100);<br />
DA:=BS*(10/100);<br />
LIC:=BS*(5/100);<br />
GS:=TA+HRA+DA;<br />
NS:=GS-LIC;<br />
DBMS_OUTPUT.PUT_LINE('EMPLOYEE BS IS '||BS);<br />
DBMS_OUTPUT.PUT_LINE('GROSS SALARY IS '||GS);<br />
DBMS_OUTPUT.PUT_LINE('NET SALARY IS '||NS);<br />
END;<br />
/<br />
53.WAP to accept the length and breadth of a rectangle and find out the perimeter<br />
DECLARE<br />
L NUMBER(4,2):=&L;<br />
B NUMBER(4,2):=&B;<br />
A NUMBER(4,2);<br />
BEGIN<br />
A:=2*(L+B);<br />
DBMS_OUTPUT.PUT_LINE('THE PERIMETER OF RECTANGLE IS '||A);<br />
END;<br />
/<br />
54.WAP to accept the cost price and selling price of an item and find<br />
the loss or profit<br />
DECLARE<br />
CP NUMBER(25,2):=&CP;<br />
SP NUMBER(25,2):=&SP;<br />
AMT NUMBER(7,2);<br />
BEGIN<br />
IF CP < SP THEN<br />
AMT:=SP-CP;<br />
DBMS_OUTPUT.PUT_LINE('PROFIT IS '||AMT);<br />
ELSE<br />
AMT:=CP-SP;<br />
DBMS_OUTPUT.PUT_LINE('LOSS IS '||AMT);<br />
END IF;<br />
END;<br />
/<br />
55.Writ a program to generate the following series<br />
53 53 53 53 53<br />
43 43 43 43<br />
33 33 33<br />
23 23<br />
13<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN REVERSE 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||I||CHR(179);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
56.WAP to accept a no in binary format and print it in decimal format<br />
DECLARE<br />
N VARCHAR2(20):=&N;<br />
PRO NUMBER(10,4):=0;<br />
L VARCHAR2(10);<br />
BEGIN<br />
FOR I IN 1..LENGTH(N)<br />
LOOP<br />
L:=SUBSTR(N,I,1);<br />
PRO:=PRO+L*POWER(2,LENGTH(N)-I);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE DECIMAL NUMBER IS '||PRO);<br />
END;<br />
/<br />
57.WAP to accept two nos and input and find one no is raised to another one (without using any function)<br />
DECLARE<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
R NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..B<br />
LOOP<br />
R:=R*A;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('A RAISED POWER B IS '||R);<br />
END;<br />
/<br />
58.WAP to accept a sentence and count the no of chars in that sentence<br />
DECLARE<br />
STR VARCHAR2(100):='&STR';<br />
NO NUMBER(5):=0;<br />
I NUMBER;<br />
BEGIN<br />
I:=INSTR(STR,'.');<br />
DBMS_OUTPUT.PUT_LINE('NO OF CHAR IS '||I);<br />
END;<br />
/<br />
59.WAP to accept two strings and display the large one among those<br />
DECLARE<br />
STR1 VARCHAR2(100):='&STR1';<br />
STR2 VARCHAR2(100):='&STR2';<br />
BEGIN<br />
IF LENGTH(STR1) > LENGTH(STR2) THEN<br />
DBMS_OUTPUT.PUT_LINE(STR1 ||' IS GREATER');<br />
ELSIF LENGTH(STR1) < LENGTH(STR2) THEN<br />
DBMS_OUTPUT.PUT_LINE(STR2 ||' IS GREATER');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('BOTH STRINGS ARE EQUAL');<br />
END IF;<br />
END;<br />
/<br />
60.WAP to display all the nos whose sum of digits is 9 from 1 to 9999<br />
DECLARE<br />
N NUMBER;<br />
M NUMBER;<br />
S NUMBER:=0;<br />
BEGIN<br />
FOR I IN 1..999<br />
LOOP<br />
N:=I;<br />
WHILE N>0<br />
LOOP<br />
M:=MOD(N,10);<br />
S:=S+M;<br />
N:=TRUNC(N/10);<br />
END LOOP;<br />
IF S=9 THEN<br />
DBMS_OUTPUT.PUT_LINE(I||' ');<br />
END IF;<br />
S:=0;<br />
END LOOP;<br />
END;<br />
/<br />
61.WAP to accept a no and find the sum in a single digit<br />
DECLARE<br />
N NUMBER(4):=&N;<br />
S NUMBER(10):=0;<br />
BEGIN<br />
WHILE LENGTH(N)>1<br />
LOOP<br />
FOR I IN 1..LENGTH(N)<br />
LOOP<br />
S:=S+SUBSTR(N,I,1);<br />
END LOOP;<br />
N:=S;<br />
S:=0;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE SUM IN SINGLE DIGIT IS '||N);<br />
END;<br />
/<br />
62.Ente the no of days and find out the no of years and no of days and months<br />
DECLARE<br />
D NUMBER:=&D;<br />
Y NUMBER;<br />
M NUMBER;<br />
BEGIN<br />
Y:=TRUNC(D/365);<br />
M:=TRUNC(MOD(D,365)/30);<br />
D:=MOD(MOD(D,365),30);<br />
DBMS_OUTPUT.PUT_LINE(Y||' YEARS '||M||' MONTHS '||D||' DAYS');<br />
END;<br />
/<br />
63.WAP to accept the date and print all the weekdays along with the given date<br />
DECLARE<br />
D DATE:='&D';<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..7<br />
LOOP<br />
V:=TO_CHAR(D,'DAY')||D;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
D:=D+1;<br />
END LOOP;<br />
END;<br />
/<br />
64.WAP while purchasing certain items,discount of each is as follows<br />
i) If qty purchased > 1000 discount is 20%<br />
ii) If the qty and price per item are i/p then calculate the expenditure<br />
DECLARE<br />
QTY NUMBER(5):=&QTY;<br />
UP NUMBER(6,2):=&UP;<br />
DIS NUMBER(6,2):=0;<br />
TAMT NUMBER(10,2);<br />
BILL NUMBER(10,2);<br />
BEGIN<br />
BILL:=QTY*UP;<br />
IF BILL > 1000 THEN<br />
DIS:=BILL*20/1000;<br />
END IF;<br />
TAMT:=BILL-DIS;<br />
DBMS_OUTPUT.PUT_LINE('THE TOTAL AMOUNT IS '||TAMT);<br />
END;<br />
/<br />
65.Write a program to accept a string and count the no of individual chars<br />
DECLARE<br />
V VARCHAR2(100):='&V';<br />
V1 VARCHAR2(100);<br />
LB NUMBER;<br />
LA NUMBER;<br />
DIFF NUMBER;<br />
C CHAR;<br />
N NUMBER(5):=0;<br />
BEGIN<br />
V1:=V;<br />
WHILE LENGTH(V1)>0<br />
LOOP<br />
C:=SUBSTR(V1,1,1);<br />
LB:=LENGTH(V1);<br />
V1:=REPLACE(V1,C);<br />
LA:=NVL(LENGTH(V1),0);<br />
DIFF:=LB-LA;<br />
IF ASCII(C)=32 THEN<br />
DBMS_OUTPUT.PUT_LINE('SPACE'||' EXISTS '||DIFF||' TIMES');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE(C||' EXISTS '||DIFF||' TIMES');<br />
END IF;<br />
N:=N+DIFF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('TOTAL LENGTH OF THE GIVEN STRING '||V||'='||N);<br />
END;<br />
/<br />
66.Write a program to display all combination of 1,2,&3<br />
BEGIN<br />
FOR I IN 1..3<br />
LOOP<br />
FOR J IN 1..3<br />
LOOP<br />
FOR K IN 1..3<br />
LOOP<br />
DBMS_OUTPUT.PUT_LINE(I||J||K);<br />
END LOOP;<br />
END LOOP;<br />
END LOOP;<br />
END;<br />
/<br />
67.Write a program to find out the series 12+22+32+42+....++n2<br />
DECLARE<br />
N NUMBER:=&N;<br />
A NUMBER:=1;<br />
B NUMBER:=2;<br />
C NUMBER:=0;<br />
D NUMBER:=0;<br />
S NUMBER:=0;<br />
BEGIN<br />
WHILE A<=N<br />
LOOP<br />
C:=C+A*A;<br />
A:=A+2;<br />
END LOOP;<br />
WHILE B<=N<br />
LOOP<br />
D:=D+B*B;<br />
B:=B+2;<br />
END LOOP;<br />
S:=C-D;<br />
DBMS_OUTPUT.PUT_LINE('RESULT IS '||S);<br />
END;<br />
/<br />
68.Write a program to accep the time in HH & MIN format and find the total senconds<br />
DECLARE<br />
H NUMBER:=&HOUR;<br />
M NUMBER:=&MINUTE;<br />
S NUMBER(10):=0;<br />
BEGIN<br />
S:=(H*60*60)+(M*60);<br />
DBMS_OUTPUT.PUT_LINE(H||' HOURS '||M||' MINUTES '||'IS'||S||' SECONDS');<br />
END;<br />
/<br />
69.WAP to accept the distance between two cities in km and convert into mts ,cm & ft<br />
DECLARE<br />
D NUMBER:=&D;<br />
M NUMBER:=0;<br />
CM NUMBER:=0;<br />
FT NUMBER:=0;<br />
BEGIN<br />
M:=D*1000;<br />
CM:=M*100;<br />
FT:=ROUND(CM/12.3);<br />
DBMS_OUTPUT.PUT_LINE('DISTANCE IN METERS IS '||M);<br />
DBMS_OUTPUT.PUT_LINE('DISTANCE IN CENTIMETERS IS '||CM);<br />
DBMS_OUTPUT.PUT_LINE('DISTANCE IN FOOT IS '||FT);<br />
END;<br />
/<br />
70.Write a program to find the series x+x2/2!+x3/3!+.....+xn/n!<br />
DECLARE<br />
N NUMBER:=&N;<br />
X NUMBER:=&X;<br />
S NUMBER:=0;<br />
F NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
F:=F*J;<br />
END LOOP;<br />
S:=ROUND(s+(POWER(X,I)/F),3);<br />
F:=1;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF NUMBER IS '||S);<br />
END;<br />
/<br />
71.Write a program to accept the population of hyderabad each year the population increases<br />
2% after 4y what is the population of hyd<br />
DECLARE<br />
P NUMBER:=&P;<br />
L NUMBER;<br />
BEGIN<br />
FOR J IN 1..4<br />
LOOP<br />
L:=P*2/100;<br />
P:=P+L;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('POPULATION OF HYDERABAD AFTER 4 YEARS IS '||TRUNC(P));<br />
END;<br />
/<br />
72.WAP to accept the 3 dates and display the most recently month among 3 dates<br />
DECLARE<br />
D1 DATE:='&D1';<br />
D2 DATE:='&D2';<br />
D3 DATE:='&D3';<br />
M1 NUMBER;<br />
M2 NUMBER;<br />
M3 NUMBER;<br />
BEGIN<br />
M1:=TO_CHAR(D1,'MM');<br />
M2:=TO_CHAR(D2,'MM');<br />
M3:=TO_CHAR(D3,'MM');<br />
IF M1>M2 AND M1>M3 THEN<br />
DBMS_OUTPUT.PUT_LINE(TO_CHAR(D1,'MON')||' IS RECENT MONTH');<br />
ELSIF M2>M1 AND M2>M3 THEN<br />
DBMS_OUTPUT.PUT_LINE(TO_CHAR(D2,'MON')||' IS RECENT MONTH');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE(TO_CHAR(D3,'MON')||' IS RECENT MONTH');<br />
END IF;<br />
END;<br />
/<br />
73.Accept a string and print in the following format<br />
O<br />
OR<br />
ORA<br />
ORAC<br />
ORACL<br />
ORACLE<br />
DECLARE<br />
V VARCHAR2(20):='&V';<br />
C VARCHAR(20);<br />
BEGIN<br />
FOR I IN 1..LENGTH(V)<br />
LOOP<br />
C:=SUBSTR(V,1,I);<br />
DBMS_OUTPUT.PUT_LINE(C);<br />
END LOOP;<br />
END;<br />
/<br />
74.Write a program to accept the annual income of the emp and find the income tax<br />
i) If the annsal > 60000 then tax is 10% of income<br />
ii) If the annsal > 100000 then tax is Rs 800+16% of income<br />
iii) If the annsal > 140000 then tax is Rs 2500+25% of income<br />
DECLARE<br />
AI NUMBER(10,2):=&ANNUALINCOME;<br />
TAX NUMBER(10,3):=0;<br />
BEGIN<br />
IF AI BETWEEN 36000 AND 50000 THEN<br />
TAX:=AI*10/100;<br />
ELSIF AI BETWEEN 50000 AND 100000 THEN<br />
TAX:=800+AI*16/100;<br />
ELSIF AI > 100000 THEN<br />
TAX:=2500+AI*25/100;<br />
END IF;<br />
DBMS_OUTPUT.PUT_LINE('ANNUAL INCOME '||AI);<br />
DBMS_OUTPUT.PUT_LINE('TAX '||TAX);<br />
END;<br />
/<br />
75.WAP to accept a year as i/p & find how many even number present in that year<br />
DECLARE<br />
Y NUMBER:=&YEAR;<br />
A VARCHAR2(20);<br />
CNT NUMBER(5):=0;<br />
BEGIN<br />
FOR I IN 1..LENGTH(Y)<br />
LOOP<br />
A:=SUBSTR(Y,I,1);<br />
IF MOD(A,2)=0 THEN<br />
CNT:=CNT+1;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('NUMBER OF EVEN DIGIT IS '||CNT);<br />
END;<br />
/<br />
76.WAP to accept a year as i/p & find how many odd number present in that year<br />
DECLARE<br />
Y NUMBER:=&YEAR;<br />
A VARCHAR2(20);<br />
CNT NUMBER(5):=0;<br />
BEGIN<br />
FOR I IN 1..LENGTH(Y)<br />
LOOP<br />
A:=SUBSTR(Y,I,1);<br />
IF MOD(A,2)!=0 THEN<br />
CNT:=CNT+1;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('NUMBER OF EVEN DIGIT IS '||CNT);<br />
END;<br />
/<br />
77.WAP to accept a number and calculate the sum of numbers in even places<br />
DECLARE<br />
N NUMBER:=&NUMBER;<br />
A VARCHAR2(10);<br />
S NUMBER:=0;<br />
BEGIN<br />
FOR I IN 1..LENGTH(N)<br />
LOOP<br />
A:=SUBSTR(N,I,1);<br />
IF MOD(I,2)=0 THEN<br />
S:=S+A;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF EVEN PLACE IS '||S);<br />
END;<br />
/<br />
78.WAP to accept the emp details and calculate the bonus based on the following conditions<br />
i) If sal < 500 then bonus is 10% sal<br />
ii) If sal > 3500 then bonus is 12% sal<br />
iii) If sal > 1000 then bonus is 13.5% sal<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNOV;<br />
SALV NUMBER;<br />
B NUMBER(7,2);<br />
BEGIN<br />
SELECT SAL INTO SALV FROM EMP WHERE EMPNO=EMPNOV;<br />
IF SALV BETWEEN 500 AND 3500 THEN<br />
B:=SALV*10/100;<br />
ELSIF SALV BETWEEN 3500 AND 10000 THEN<br />
B:=SALV*12/100;<br />
ELSIF SALV>10000 THEN<br />
B:=SALV*13.5/100;<br />
END IF;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||EMPNOV);<br />
DBMS_OUTPUT.PUT_LINE('SALARY '||SALV);<br />
DBMS_OUTPUT.PUT_LINE('BONUS '||B);<br />
END;<br />
/<br />
79.WAP to accept the empno and display ename,sal,hiredate and calculate ta,da,hra,lic,gross,exp and<br />
print all emp details. ta is 30% of sal,da is 20% of sal,hra is 15% of sal,lic is 5% of sal<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNOV;<br />
ENAMEV EMP.ENAME%TYPE;<br />
SALV EMP.SAL%TYPE;<br />
HIREDATEV EMP.HIREDATE%TYPE;<br />
EXP NUMBER(7,2);<br />
TA NUMBER(7,2);<br />
DA NUMBER(7,2);<br />
HRA NUMBER(7,2);<br />
LIC NUMBER(7,2);<br />
GROSS NUMBER(7,2);<br />
S NUMBER:=0;<br />
BEGIN<br />
SELECT ENAME,SAL,HIREDATE INTO ENAMEV,SALV,HIREDATEV FROM EMP WHERE EMPNO=EMPNOV;<br />
EXP:=ROUND(MONTHS_BETWEEN(SYSDATE,HIREDATEV)/12,3);<br />
TA:=SALV*30/100;<br />
DA:=SALV*20/100;<br />
HRA:=SALV*15/100;<br />
LIC:=SALV*5/100;<br />
GROSS:=SALV+TA+DA+HRA-LIC;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||EMPNOV);<br />
DBMS_OUTPUT.PUT_LINE('ENAME '||ENAMEV);<br />
DBMS_OUTPUT.PUT_LINE('SALARY '||SALV);<br />
DBMS_OUTPUT.PUT_LINE('EXPERIENCE '||EXP);<br />
DBMS_OUTPUT.PUT_LINE('TA '||TA);<br />
DBMS_OUTPUT.PUT_LINE('DA '||DA);<br />
DBMS_OUTPUT.PUT_LINE('HRA '||HRA);<br />
DBMS_OUTPUT.PUT_LINE('LIC '||LIC);<br />
DBMS_OUTPUT.PUT_LINE('GROSS '||GROSS);<br />
END;<br />
/<br />
80.WAP to accept the item no ,item name,qty,unit price and calculate the bill<br />
If the bill > 500 then give discount 2% of bill amount and display the details<br />
DECLARE<br />
INO NUMBER:=&INO;<br />
INAME VARCHAR2(50):='&INAME';<br />
QTY NUMBER(5):=&QTY;<br />
UP NUMBER(7,2):=&UP;<br />
DIS NUMBER(7,2):=0;<br />
BILL NUMBER(7,2);<br />
NET NUMBER(7,2);<br />
BEGIN<br />
BILL:=QTY*UP;<br />
IF BILL>500 THEN<br />
DIS:=BILL*2/100;<br />
END IF;<br />
NET:=BILL-DIS;<br />
DBMS_OUTPUT.PUT_LINE('ITEM NO '||INO);<br />
DBMS_OUTPUT.PUT_LINE('ITEM NAME '||INAME);<br />
DBMS_OUTPUT.PUT_LINE('QUANTITY '||QTY);<br />
DBMS_OUTPUT.PUT_LINE('UNIT PRICE '||UP);<br />
DBMS_OUTPUT.PUT_LINE('BILL AMT '||BILL);<br />
DBMS_OUTPUT.PUT_LINE('DISCOUNT '||DIS);<br />
DBMS_OUTPUT.PUT_LINE('NET AMT '||NET);<br />
END;<br />
/<br />
81.Write a program to generate sequence of numbers horizontally from 1 to 25<br />
DECLARE<br />
V VARCHAR2(100);<br />
BEGIN<br />
FOR I IN 1..25<br />
LOOP<br />
V:=V||' '||I;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
82.WAP to accept a empno and display empno,name,sal,exp,dname,grade and loc.<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNO;<br />
ENAMEV EMP.ENAME%TYPE;<br />
HIREDATEV DATE;<br />
SALV EMP.SAL%TYPE;<br />
EXP NUMBER;<br />
DNAMEV DEPT.DNAME%TYPE;<br />
GRADEV SALGRADE.GRADE%TYPE;<br />
BEGIN<br />
SELECT ENAME,SAL,HIREDATE,DNAME,GRADE INTO ENAMEV,SALV,HIREDATEV,DNAMEV,GRADEV FROM EMP,DEPT,SALGRADE<br />
WHERE EMPNO=EMPNOV AND EMP.DEPTNO=DEPT.DEPTNO AND SAL BETWEEN LOSAL AND HISAL;<br />
EXP:=ROUND(MONTHS_BETWEEN(SYSDATE,HIREDATEV)/12,3);<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||EMPNOV);<br />
DBMS_OUTPUT.PUT_LINE('ENAME '||ENAMEV);<br />
DBMS_OUTPUT.PUT_LINE('SALARY '||SALV);<br />
DBMS_OUTPUT.PUT_LINE('EXPERIENCE '||EXP||' YEARS');<br />
DBMS_OUTPUT.PUT_LINE('DNAME '||DNAMEV);<br />
DBMS_OUTPUT.PUT_LINE('GRADE '||GRADEV);<br />
END;<br />
/<br />
83.WAP to accept a empno and display empno,based on experience calculate the bonus and store it into the bonus table<br />
If exp > 5 years then bonus is 1 month salary<br />
If exp between 5 and 9 years then bonus is 20% of annual salary<br />
If exp more than 9 years then bonus is 1 month sal plus 25% of annual salary<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNO;<br />
ENAMEV EMP.ENAME%TYPE;<br />
HIREDATEV DATE;<br />
SALV EMP.SAL%TYPE;<br />
EXP NUMBER;<br />
DNAMEV DEPT.DNAME%TYPE;<br />
GRADEV SALGRADE.GRADE%TYPE;<br />
BEGIN<br />
SELECT ENAME,SAL,HIREDATE,DNAME,GRADE INTO ENAMEV,SALV,HIREDATEV,DNAMEV,GRADEV FROM EMP,DEPT,SALGRADE<br />
WHERE EMPNO=EMPNOV AND EMP.DEPTNO=DEPT.DEPTNO AND SAL BETWEEN LOSAL AND HISAL;<br />
EXP:=ROUND(MONTHS_BETWEEN(SYSDATE,HIREDATEV)/12,3);<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||EMPNOV);<br />
DBMS_OUTPUT.PUT_LINE('ENAME '||ENAMEV);<br />
DBMS_OUTPUT.PUT_LINE('SALARY '||SALV);<br />
DBMS_OUTPUT.PUT_LINE('EXPERIENCE '||EXP||' YEARS');<br />
DBMS_OUTPUT.PUT_LINE('DNAME '||DNAMEV);<br />
DBMS_OUTPUT.PUT_LINE('GRADE '||GRADEV);<br />
END;<br />
/<br />
84.WAP to accept the empno, based upon the dname transfer the emps ie, make the changes in the emp table. Transfer the emps from Accounting dept to Research, Research dept to Operation, Opertion dept to Sales<br />
and Sales to Accounting dept<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNO;<br />
DNAMEV VARCHAR2(20);<br />
DNAMEVV VARCHAR2(20);<br />
BEGIN<br />
SELECT DNAME INTO DNAMEV FROM EMP,DEPT WHERE EMPNO=EMPNOV AND EMP.DEPTNO=DEPT.DEPTNO;<br />
IF DNAMEV='ACCOUNTING' THEN<br />
DNAMEVV:='RESEARCH';<br />
ELSIF DNAMEV='RESEARCH' THEN<br />
DNAMEVV:='SALES';<br />
ELSIF DNAMEV='SALES' THEN<br />
DNAMEVV:='OPERATIONS';<br />
ELSIF DNAMEV='OPERATIONS' THEN<br />
DNAMEVV:='ACCOUNTING';<br />
END IF;<br />
UPDATE EMP SET DEPTNO=(SELECT DEPTNO FROM DEPT WHERE DNAME=DNAMEVV) WHERE EMPNO=EMPNOV;<br />
END;<br />
/<br />
85.WAP to accept the empno and display all the details of emp. If emp doesnot exist display the appreciate message<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNO;<br />
EMPV EMP%ROWTYPE;<br />
BEGIN<br />
SELECT * INTO EMPV FROM EMP WHERE EMPNO=EMPNOV;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||EMPV.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME '||EMPV.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('JOB '||EMPV.JOB);<br />
DBMS_OUTPUT.PUT_LINE('SALARY '||EMPV.SAL);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE '||EMPV.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO '||EMPV.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('MGRNO '||EMPV.MGR);<br />
DBMS_OUTPUT.PUT_LINE('COMMISSION '||EMPV.COMM);<br />
EXCEPTION<br />
WHEN NO_DATA_FOUND THEN<br />
DBMS_OUTPUT.PUT_LINE('EMP NUMBER DOES NOT EXIST');<br />
END;<br />
/<br />
86.WAP to accept the empno and print all the details of emp,dept and salgrade<br />
DECLARE<br />
E EMP%ROWTYPE;<br />
D DEPT%ROWTYPE;<br />
S SALGRADE%ROWTYPE;<br />
BEGIN<br />
SELECT * INTO E FROM EMP WHERE EMPNO=&EMPNO;<br />
SELECT * INTO D FROM DEPT WHERE E.DEPTNO=DEPT.DEPTNO;<br />
SELECT * INTO S FROM SALGRADE WHERE E.SAL BETWEEN LOSAL AND HISAL;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||E.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO '||D.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('DNAME '||D.DNAME);<br />
DBMS_OUTPUT.PUT_LINE('LOCATION '||D.LOC);<br />
DBMS_OUTPUT.PUT_LINE('GRADE '||S.GRADE);<br />
DBMS_OUTPUT.PUT_LINE('HISALARY '||S.HISAL);<br />
DBMS_OUTPUT.PUT_LINE('LOWSALARY '||S.LOSAL);<br />
END;<br />
/<br />
87.WAP to accept the mgrno and display the empno,ename,sal,dname and grade of all emps working under that mgr<br />
DECLARE<br />
MGRV NUMBER:=&MGRV;<br />
CURSOR EMPCUR IS<br />
SELECT EMPNO,ENAME,SAL,DEPTNO,GRADE FROM EMP,SALGRADE WHERE MGR=MGRV AND SAL BETWEEN LOSAL AND HISAL;<br />
X EMPCUR%ROWTYPE;<br />
BEGIN<br />
OPEN EMPCUR;<br />
LOOP<br />
FETCH EMPCUR INTO X;<br />
EXIT WHEN EMPCUR%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO '||X.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME '||X.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SALARY '||X.SAL);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO '||X.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('GRADE '||X.GRADE);<br />
DBMS_OUTPUT.PUT_LINE('******************');<br />
END LOOP;<br />
CLOSE EMPCUR;<br />
END;<br />
/<br />
88.WAP to accept the empno and display the exp with minimum 3 decimal places<br />
DECLARE<br />
EMPNOV NUMBER:=&EMPNOV;<br />
HIREDATEV DATE;<br />
EXPV NUMBER(10,5);<br />
BEGIN<br />
SELECT HIREDATE INTO HIREDATEV FROM EMP WHERE EMPNO=EMPNOV;<br />
EXPV:=ROUND(MONTHS_BETWEEN(SYSDATE,HIREDATEV)/12,3);<br />
DBMS_OUTPUT.PUT_LINE('EXPERIENCE OF EMP'||EMPNOV||' IS '||EXPV||' YEARS ');<br />
END;<br />
/<br />
89.Write a program to print the following series<br />
1<br />
1 2<br />
1 2 3<br />
1 2 3 4<br />
1 2 3 4 5<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||J;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
90.Write a program to print the following series<br />
1<br />
2 1<br />
3 2 1<br />
4 3 2 1<br />
5 4 3 2 1<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN REVERSE 1..I<br />
LOOP<br />
V:=V||' '||J;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
91.Write a program to print the following series<br />
1 2 3 4 5<br />
1 2 3 4<br />
1 2 3<br />
1 2<br />
1<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN REVERSE 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||J;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
92.Write a program to print the following series<br />
1 1 1 1 1<br />
2 2 2 2 2<br />
3 3 3 3 3<br />
4 4 4 4 4<br />
5 5 5 5 5<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..5<br />
LOOP<br />
V:=V||' '||I;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
93.Write a program to print the following series<br />
1 2 3 4 5<br />
1 2 3 4 5<br />
1 2 3 4 5<br />
1 2 3 4 5<br />
1 2 3 4 5<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..5<br />
LOOP<br />
V:=V||' '||J;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
94.Write a program to print the following series<br />
5 4 3 2 1<br />
5 4 3 2<br />
5 4 3<br />
5 4<br />
5<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN REVERSE 1..5<br />
LOOP<br />
IF I<=J THEN<br />
V:=V||' '||J;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
95.Write a program to print the following series<br />
5 5 5 5 5<br />
4 4 4 4<br />
3 3 3<br />
2 2<br />
1<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN REVERSE 1..5<br />
LOOP<br />
FOR J IN 1..5<br />
LOOP<br />
IF I>=J THEN<br />
V:=V||' '||I;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
96.Write a program to print the following series<br />
1<br />
2 2<br />
3 3 3<br />
4 4 4 4<br />
5 5 5 5 5<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||I;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
97.Write a program to print the following series<br />
1<br />
0 1<br />
1 0 1<br />
0 1 0 1<br />
1 0 1 0 1<br />
DECLARE<br />
A NUMBER:=1;<br />
V VARCHAR2(20):=1;<br />
BEGIN<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
FOR I IN 1..4<br />
LOOP<br />
IF SUBSTR(V,1,1)='1' THEN<br />
V:='0'||V;<br />
ELSE<br />
V:='1'||V;<br />
END IF;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END LOOP;<br />
END;<br />
/<br />
98.Write a program to print the following series<br />
*<br />
* *<br />
* * *<br />
* * * *<br />
* * * * *<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||'*';<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
99.Write a program to print the following series<br />
*<br />
* *<br />
* * *<br />
* * * *<br />
* * * * *<br />
* * * *<br />
* * *<br />
* *<br />
*<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||'*';<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
FOR I IN REVERSE 1..5<br />
LOOP<br />
FOR J IN 2..I<br />
LOOP<br />
V:=V||' '||'*';<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
100.Write a program to print the following series<br />
1 2 3 4 5<br />
2 3 4 5<br />
3 4 5<br />
4 5<br />
5<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN I..5<br />
LOOP<br />
V:=V||' '||J;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
101.Write a program to print the following series<br />
5 4 3 2 1<br />
4 3 2 1<br />
3 2 1<br />
2 1<br />
1<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN REVERSE 1..5<br />
LOOP<br />
FOR J IN REVERSE 1..I<br />
LOOP<br />
V:=V||' '||J;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
102.WAP to accept 2 nos and find the sum and product of the nos and print the output<br />
DECLARE<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
S NUMBER;<br />
M NUMBER;<br />
BEGIN<br />
S:=A+B;<br />
M:=A*B;<br />
DBMS_OUTPUT.PUT_LINE('SUM OF '||'A'||' AND '||'B'||' IS '||S);<br />
DBMS_OUTPUT.PUT_LINE('PRODUCT OF '||'A'||' AND '||'B'||' IS '||M);<br />
END;<br />
/<br />
103.WAP to accept 2 nos and find the remainder when the first number is divided by sencond(dont use mod function)<br />
DECLARE<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
C NUMBER;<br />
M NUMBER;<br />
BEGIN<br />
C:=TRUNC(A/B);<br />
M:=A-C*B;<br />
DBMS_OUTPUT.PUT_LINE('REMAINDER IS '||M);<br />
END;<br />
/<br />
104.WAP to display all the ASCII characters 0-9--48-57,A-Z--65-90,a-z--97-122<br />
BEGIN<br />
FOR I IN 1..255<br />
LOOP<br />
DBMS_OUTPUT.PUT_LINE(I||'-'||CHR(I));<br />
END LOOP;<br />
END;<br />
/<br />
105.Print the following format<br />
ORACLE<br />
ORACL<br />
ORAC<br />
ORA<br />
OR<br />
O<br />
DECLARE<br />
STR VARCHAR2(10):='&STR';<br />
L VARCHAR2(10);<br />
N NUMBER(15);<br />
BEGIN<br />
N:=LENGTH(STR);<br />
WHILE N>=1<br />
LOOP<br />
L:=SUBSTR(STR,1,N);<br />
N:=N-1;<br />
DBMS_OUTPUT.PUT_LINE(L);<br />
END LOOP;<br />
END;<br />
/<br />
106.WAP to display "GOOD MORNING" or "GOOD AFTERNOON" or "GOOD NIGHT" depending upon the current time<br />
DECLARE<br />
HH NUMBER;<br />
BEGIN<br />
HH:=TO_CHAR(SYSDATE,'HH24');<br />
IF HH>6 AND HH<12 p="" then="">DBMS_OUTPUT.PUT_LINE('GOOD MORNING');<br />
ELSIF HH>=12 AND HH<18 p="" then="">DBMS_OUTPUT.PUT_LINE('GOOD AFTERNOON');<br />
ELSIF HH>=18 AND HH<25 p="" then="">DBMS_OUTPUT.PUT_LINE('GOOD NIGHT');<br />
END IF;<br />
END;<br />
/<br />
107.WAP to accept two strings and concat the two strings<br />
DECLARE<br />
STR VARCHAR2(20):='&STR';<br />
STR1 VARCHAR2(20):='&STR1';<br />
V VARCHAR2(40);<br />
BEGIN<br />
V:=STR||''||STR1;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
108.WAP to accept a string and count the no of chars,words in that string<br />
DECLARE<br />
STR VARCHAR2(20):='&STR';<br />
NOC NUMBER(4):=0;<br />
NOW NUMBER(4):=1;<br />
S CHAR;<br />
BEGIN<br />
FOR I IN 1..LENGTH(STR)<br />
LOOP<br />
S:=SUBSTR(STR,I,1);<br />
NOC:=NOC+1;<br />
IF S=' ' THEN<br />
NOW:=NOW+1;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE NO. OF CHARS '||NOC);<br />
DBMS_OUTPUT.PUT_LINE('THE NO. OF WORDS '||NOW);<br />
END;<br />
/<br />
109.WAP to accept the octal number and print it in decimal format<br />
DECLARE<br />
N VARCHAR2(20):='&N';<br />
A NUMBER;<br />
P NUMBER:=0;<br />
C CHAR;<br />
BEGIN<br />
A:=LENGTH(N);<br />
FOR I IN 1..A<br />
LOOP<br />
C:=SUBSTR(N,I,1);<br />
P:=P+C*POWER(8,A-I);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE INTEGER OF A GIVEN OCTAL IS '||P);<br />
END;<br />
/<br />
110.WAP to accept the mgr and find how many emps are working under that mgr<br />
DECLARE<br />
MGRV EMP.MGR%TYPE:=&MGRNO;<br />
N NUMBER:=0;<br />
BEGIN<br />
SELECT COUNT(*) INTO N FROM EMP WHERE MGR=MGRV;<br />
DBMS_OUTPUT.PUT_LINE('NUMBER OF EMPLOYEE UNDER THAT MANAGER ARE '||N);<br />
END;<br />
/<br />
111.WAP to accept the empno and update the employee row on the following<br />
If sal < 2600 then sal=sal+10% of sal make the changes in the emp table<br />
DECLARE<br />
EMPNOV EMP.EMPNO%TYPE:=&EMPNO;<br />
SALV NUMBER(7,2):=0;<br />
BEGIN<br />
SELECT SAL INTO SALV FROM EMP WHERE EMPNO=EMPNOV;<br />
IF SALV < 2600 THEN<br />
SALV:=SALV+SALV*(10/100);<br />
END IF;<br />
UPDATE EMP SET SAL=SALV WHERE EMPNO=EMPNOV;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO IS '||EMPNOV);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS '||SALV);<br />
END;<br />
/<br />
112.Write the floyd's triangle<br />
1<br />
2 3<br />
4 5 6<br />
7 8 9 10<br />
11 12 13 14 15<br />
16 17 18 19 20 21<br />
...............<br />
79..............91<br />
DECLARE<br />
N NUMBER:=1;<br />
V VARCHAR2(100);<br />
BEGIN<br />
FOR I IN 1..92<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||N;<br />
N:=N+1;<br />
EXIT WHEN N=92;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
EXIT WHEN N=92;<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
113.WAP to accept the real value and print integer value only<br />
DECLARE<br />
N NUMBER(7,3):=&N;<br />
A NUMBER(5);<br />
BEGIN<br />
A:=TRUNC(N);<br />
DBMS_OUTPUT.PUT_LINE('REAL VALUE IS '||A);<br />
END;<br />
/<br />
114.WAP to calculate the sum of n odd factorials<br />
DECLARE<br />
N NUMBER:=&N;<br />
S NUMBER:=0;<br />
F NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
IF MOD(I,2)!=0 THEN<br />
FOR J IN 1..I<br />
LOOP<br />
F:=F*J;<br />
END LOOP;<br />
S:=S+F;<br />
F:=1;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM '||S);<br />
END;<br />
/<br />
115.WAP to calculate the sum of n even factorials<br />
DECLARE<br />
N NUMBER:=&N;<br />
S NUMBER:=0;<br />
F NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
IF MOD(I,2)=0 THEN<br />
FOR J IN 1..I<br />
LOOP<br />
F:=F*J;<br />
END LOOP;<br />
S:=S+F;<br />
F:=1;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('SUM '||S);<br />
END;<br />
/<br />
116.WAP to generate the nos which are prime and odd between 1 and 100<br />
DECLARE<br />
N NUMBER;<br />
CNT NUMBER:=0;<br />
BEGIN<br />
FOR I IN 1..100<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
IF MOD(I,J)=0 THEN<br />
CNT:=CNT+1;<br />
END IF;<br />
END LOOP;<br />
IF CNT <= 2 THEN<br />
IF MOD(I,2)!=0 THEN<br />
DBMS_OUTPUT.PUT_LINE(I);<br />
END IF;<br />
END IF;<br />
CNT:=0;<br />
END LOOP;<br />
END;<br />
/<br />
117.Write a program to generate following series<br />
12<br />
12 22<br />
12 22 32<br />
12 22 32 42<br />
12 22 32 42 52<br />
DECLARE<br />
V VARCHAR2(20);<br />
BEGIN<br />
FOR I IN 1..5<br />
LOOP<br />
FOR J IN 1..I<br />
LOOP<br />
V:=V||' '||J||CHR(178);<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
V:=NULL;<br />
END LOOP;<br />
END;<br />
/<br />
118.Find the roots of a quadratic equation<br />
DECLARE<br />
A NUMBER(4):=&A;<br />
B NUMBER(4):=&B;<br />
C NUMBER(4):=&C;<br />
D NUMBER(8,2);<br />
R1 NUMBER(8,2);<br />
R2 NUMBER(8,2);<br />
BEGIN<br />
D:=POWER(B,2)-4*A*C;<br />
IF D = 0 THEN<br />
DBMS_OUTPUT.PUT_LINE('ROOTS ARE EQUAL');<br />
ELSIF D > 0 THEN<br />
R1:=(-B+SQRT(D))/2*A;<br />
R2:=(-B-SQRT(D))/2*A;<br />
DBMS_OUTPUT.PUT_LINE('FIRST ROOT IS '||R1);<br />
DBMS_OUTPUT.PUT_LINE('SECOND ROOT IS '||R2);<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('ROOTS ARE IMAGINARY');<br />
END IF;<br />
END;<br />
/<br />
119.WAP to accept the 2 diff nos, assume that first one is smaller and second one is highest value then print the all even nos in between them horizontally<br />
DECLARE<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
V VARCHAR2(100);<br />
BEGIN<br />
FOR I IN A..B<br />
LOOP<br />
IF MOD(I,2)=0 THEN<br />
V:=V||' '||I;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
120.WAP to accept two diff nos assume that first one is smaller and second one is highest value then print the all odd nos in between them horizontally<br />
DECLARE<br />
A NUMBER:=&A;<br />
B NUMBER:=&B;<br />
V VARCHAR2(100);<br />
BEGIN<br />
FOR I IN A..B<br />
LOOP<br />
IF MOD(I,2)!=0 THEN<br />
V:=V||' '||I;<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
121. Write a program to accept a year and display the emps belongs to that year?<br />
DECLARE<br />
Y NUMBER(4):=&YEAR;<br />
CURSOR YEAR IS<br />
SELECT * FROM EMP WHERE TO_CHAR(HIREDATE,'YYYY')=Y;<br />
B YEAR%ROWTYPE;<br />
BEGIN<br />
OPEN YEAR;<br />
LOOP<br />
FETCH YEAR INTO B;<br />
EXIT WHEN YEAR%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('EMP NAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('EMP SAL IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE YEAR;<br />
END;<br />
/<br />
122.Write a program to accept a mgr and display who are working under that mgr?<br />
DECLARE<br />
MGRV NUMBER(4):=&MGR;<br />
CURSOR AMGR IS<br />
SELECT * FROM EMP WHERE MGR=MGRV;<br />
B AMGR%ROWTYPE;<br />
BEGIN<br />
OPEN AMGR;<br />
LOOP<br />
FETCH AMGR INTO B;<br />
EXIT WHEN AMGR%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('EMP NAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('EMP SAL IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE AMGR;<br />
END;<br />
/<br />
123. Write a program to accept the grade and display emps belongs to that grade?<br />
DECLARE<br />
GRADEV SALGRADE.GRADE%TYPE:=&GRADE;<br />
CURSOR A IS<br />
SELECT EMP.*,GRADE FROM EMP,SALGRADE WHERE SAL BETWEEN LOSAL AND HISAL AND GRADE=GRADEV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('MGR NO IS ' || B.MGR);<br />
DBMS_OUTPUT.PUT_LINE('COMM IS ' || B.COMM);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('GRADE IS ' || B.GRADE);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
124. Write a program to accept a deptno and display who are working in that dept?<br />
DECLARE<br />
DEPTV EMP.DEPTNO%TYPE:=&DEPTNO;<br />
CURSOR A IS<br />
SELECT * FROM EMP WHERE DEPTNO=DEPTV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('MGR NO IS ' || B.MGR);<br />
DBMS_OUTPUT.PUT_LINE('COMM IS ' || B.COMM);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO IS ' || B.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
125. Write a program to display all the information of emp table?<br />
DECLARE<br />
CURSOR A IS<br />
SELECT * FROM EMP;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('MGR NO IS ' || B.MGR);<br />
DBMS_OUTPUT.PUT_LINE('COMM IS ' || B.COMM);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO IS ' || B.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
126. Write a program to accept the location and display empno, name, sal , date of join and also display the total salary, avg salary and no of emps?<br />
DECLARE<br />
LOCV DEPT.LOC%TYPE:='&LOC';<br />
TOT NUMBER(10,2):=0;<br />
ASAL NUMBER(10,2):=0;<br />
NOEMPS NUMBER(5):=0;<br />
CURSOR A IS<br />
SELECT EMP.*,LOC FROM EMP,DEPT WHERE EMP.DEPTNO=DEPT.DEPTNO AND LOC=LOCV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
NOEMPS:=NOEMPS+1;<br />
TOT:=TOT+B.SAL;<br />
ASAL:=TOT/NOEMPS;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO IS ' || B.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('LOC IS ' || B.LOC);<br />
DBMS_OUTPUT.PUT_LINE('TOT IS ' || TOT);<br />
DBMS_OUTPUT.PUT_LINE('NOEMPS IS ' || NOEMPS);<br />
DBMS_OUTPUT.PUT_LINE('ASAL IS ' || ASAL);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
127. Write a program to accept a range of salary (that is lower boundary and higher boundary) and print the details of emps along with loc,grade and exp?<br />
DECLARE<br />
LOSALV SALGRADE.LOSAL%TYPE:=&LOSAL;<br />
HISALV SALGRADE.HISAL%TYPE:=&HISAL;<br />
EXP NUMBER(5,2);<br />
CURSOR A IS<br />
SELECT EMP.*,LOC,GRADE FROM EMP,DEPT,SALGRADE WHERE EMP.DEPTNO=DEPT.DEPTNO<br />
AND SAL BETWEEN LOSALV AND HISALV<br />
AND SAL BETWEEN LOSAL AND HISAL;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
EXP:=MONTHS_BETWEEN(SYSDATE,B.HIREDATE)/12;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('LOC IS ' || B.LOC);<br />
DBMS_OUTPUT.PUT_LINE('EXP IS ' || EXP);<br />
DBMS_OUTPUT.PUT_LINE('GRADE IS ' || B.GRADE);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
128. Write a program to print all the details of emps accepting the job?<br />
DECLARE<br />
JOBV EMP.JOB%TYPE:='&JOB';<br />
CURSOR A IS<br />
SELECT * FROM EMP WHERE JOB=JOBV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMP NO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('EMP JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
129. Write a program to display the details of emps year wise?<br />
DECLARE<br />
CURSOR YEARS IS<br />
SELECT DISTINCT TO_CHAR(HIREDATE,'YYYY') YEARS1 FROM EMP ORDER BY 1;<br />
YEAR YEARS%ROWTYPE;<br />
CURSOR A IS<br />
SELECT * FROM EMP WHERE TO_CHAR(HIREDATE,'YYYY')=YEAR.YEARS1;<br />
B A%ROWTYPE;<br />
BEGIN<br />
DBMS_OUTPUT.ENABLE(10000);<br />
OPEN YEARS;<br />
DBMS_OUTPUT.PUT_LINE('********************');<br />
LOOP<br />
FETCH YEARS INTO YEAR;<br />
EXIT WHEN YEARS%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('YEAR :' || YEAR.YEARS1);<br />
DBMS_OUTPUT.PUT_LINE('**********************');<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SALARY IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO IS ' || B.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END LOOP;<br />
CLOSE YEARS;<br />
END;<br />
/<br />
130. Write a program to accept empno and print all the details along with loc and grade?<br />
DECLARE<br />
EMPNOV EMP.EMPNO%TYPE:=&EMPNO;<br />
CURSOR A IS<br />
SELECT EMP.*,GRADE,LOC FROM EMP,DEPT,SALGRADE<br />
WHERE EMP.DEPTNO=DEPT.DEPTNO<br />
AND SAL BETWEEN LOSAL AND HISAL AND EMPNO=EMPNOV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO IS ' || B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS ' || B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SALARY IS ' || B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('JOB IS ' || B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS ' || B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('LOC IS ' || B.LOC);<br />
DBMS_OUTPUT.PUT_LINE('GRADE IS ' || B.GRADE);<br />
DBMS_OUTPUT.PUT_LINE('*************************');<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
131. Write a procedure to create your own print statement?<br />
CREATE OR REPLACE PROCEDURE PRINT(V VARCHAR2)<br />
IS<br />
BEGIN<br />
DBMS_OUTPUT.PUT_LINE(V);<br />
END;<br />
/<br />
132. Write a procedure to accept the deptno as parameter and display the details of that dept also display the total salary, no of employees, max sal and avg sal?<br />
CREATE OR REPLACE PROCEDURE EMPPRO(DEPTNOV NUMBER)<br />
IS<br />
CURSOR A IS<br />
SELECT * FROM EMP WHERE DEPTNO=DEPTNOV;<br />
B A%ROWTYPE;<br />
NOE NUMBER:=0;<br />
TOT NUMBER:=0;<br />
AVGS NUMBER(7,2):=0;<br />
MAXS NUMBER(7,2):=0;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO :'||B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME :'||B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('JOB :'||B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('SAL :'||B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE :'||B.HIREDATE);<br />
DBMS_OUTPUT.PUT_LINE('COMM :'||B.COMM);<br />
DBMS_OUTPUT.PUT_LINE('**********************');<br />
TOT:=TOT+B.SAL;<br />
NOE:=NOE+1;<br />
IF B.SAL>MAXS THEN<br />
MAXS:=B.SAL;<br />
END IF;<br />
END LOOP;<br />
AVGS:=TOT/NOE;<br />
DBMS_OUTPUT.PUT_LINE('NO OF EMPLOYEE :'||NOE);<br />
DBMS_OUTPUT.PUT_LINE('TOTAL SALARY :'||TOT);<br />
DBMS_OUTPUT.PUT_LINE('AVG SALARY :'||AVGS);<br />
DBMS_OUTPUT.PUT_LINE('MAX SALARY :'||MAXS);<br />
CLOSE A;<br />
END;<br />
/<br />
133. Write a procedure to accept two different numbers and print all odd numbers between the two given numbers?<br />
CREATE OR REPLACE PROCEDURE ODDNO(A NUMBER,B NUMBER)<br />
IS<br />
N NUMBER(4);<br />
BEGIN<br />
N:=A;<br />
WHILE N<b p="">LOOP<br />
IF MOD(N,2)!=0 THEN<br />
DBMS_OUTPUT.PUT_LINE(N);<br />
END IF;<br />
N:=N+1;<br />
END LOOP;<br />
END;<br />
/<br />
134. Write a procedure to accept two different numbers and print even numbers between the two given numbers?<br />
CREATE OR REPLACE PROCEDURE EVENNO(A NUMBER,B NUMBER)<br />
IS<br />
N NUMBER(4);<br />
BEGIN<br />
N:=A;<br />
WHILE N<b p="">LOOP<br />
IF MOD(N,2)=0 THEN<br />
DBMS_OUTPUT.PUT_LINE(N);<br />
END IF;<br />
N:=N+1;<br />
END LOOP;<br />
END;<br />
/<br />
135. Write a procedure to accept deptno as input and print the details of emps along with grade?<br />
CREATE OR REPLACE PROCEDURE EMP_DETAIL(DEPTNOV NUMBER)<br />
IS<br />
CURSOR A IS<br />
SELECT EMP.*,GRADE FROM EMP,SALGRADE<br />
WHERE SAL BETWEEN LOSAL AND HISAL<br />
AND DEPTNO=DEPTNOV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO IS '||B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS '||B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('JOB IS '||B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS '||B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('DEPTNO IS '||B.DEPTNO);<br />
DBMS_OUTPUT.PUT_LINE('GRADE IS '||B.GRADE);<br />
END LOOP;<br />
CLOSE A;<br />
END;<br />
/<br />
136. Write a procedure to accept a number as parameter and print its multiplication table?<br />
CREATE OR REPLACE PROCEDURE MULT(A NUMBER)<br />
IS<br />
B NUMBER(2) DEFAULT 1;<br />
C NUMBER(3);<br />
BEGIN<br />
WHILE B<=10<br />
LOOP<br />
C:=A*B;<br />
DBMS_OUTPUT.PUT_LINE(A||'*'||B||'='||C);<br />
B:=B+1;<br />
END LOOP;<br />
END;<br />
/<br />
137. Write a procedure to accept two different numbers as input and print all even numbers and odd numbers in between them in two different horizontal lines?<br />
CREATE OR REPLACE PROCEDURE EVENODD(A NUMBER,B NUMBER)<br />
IS<br />
N NUMBER;<br />
EV VARCHAR2(1000);<br />
OD VARCHAR2(1000);<br />
BEGIN<br />
N:=A;<br />
WHILE N<b p="">LOOP<br />
IF MOD(N,2)!=0 THEN<br />
OD:=OD||' '||N;<br />
ELSE<br />
EV:=EV||' '||N;<br />
END IF;<br />
N:=N+1;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('THE ODD NOS ARE '||OD);<br />
DBMS_OUTPUT.PUT_LINE('THE EVEN NOS ARE '||EV);<br />
END;<br />
/<br />
138. Write a procedure to accept a string and check whether it is palindrome or not?<br />
CREATE OR REPLACE PROCEDURE STRPAL(STR VARCHAR2)<br />
IS<br />
STR1 VARCHAR2(10);<br />
S VARCHAR2(10);<br />
BEGIN<br />
FOR I IN REVERSE 1..LENGTH(STR)<br />
LOOP<br />
S:=SUBSTR(STR,I,1);<br />
STR1:=STR1||S;<br />
END LOOP;<br />
IF STR1=STR THEN<br />
DBMS_OUTPUT.PUT_LINE('IT IS PALINDROME '||STR1);<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE('IT IS NOT PALINDROME '||STR1);<br />
END IF;<br />
END;<br />
/<br />
139. Write a procedure to accept a string and print it in reverse order?<br />
CREATE OR REPLACE PROCEDURE STRREV(STR VARCHAR2)<br />
IS<br />
STR1 VARCHAR2(10);<br />
S VARCHAR2(10);<br />
BEGIN<br />
FOR I IN REVERSE 1..LENGTH(STR)<br />
LOOP<br />
S:=SUBSTR(STR,I,1);<br />
STR1:=STR1||S;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('ORIGINAL '||STR);<br />
DBMS_OUTPUT.PUT_LINE('REVERSE '||STR1);<br />
END;<br />
/<br />
140. Write a procedure to accept the empno and print all the details of emp along with exp, grade and loc?<br />
CREATE OR REPLACE PROCEDURE EMP_DET(EMPNOV NUMBER)<br />
IS<br />
EXP NUMBER(6,2);<br />
E EMP%ROWTYPE;<br />
GRADEV SALGRADE.GRADE%TYPE;<br />
LOCV DEPT.LOC%TYPE;<br />
BEGIN<br />
SELECT EMP.* INTO E FROM EMP WHERE EMPNO=EMPNOV;<br />
SELECT LOC INTO LOCV FROM DEPT WHERE DEPT.DEPTNO=E.DEPTNO;<br />
SELECT GRADE INTO GRADEV FROM SALGRADE WHERE E.SAL BETWEEN LOSAL AND HISAL;<br />
EXP:=MONTHS_BETWEEN(SYSDATE,E.HIREDATE)/12;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO IS '||E.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS '||E.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS '||E.SAL);<br />
DBMS_OUTPUT.PUT_LINE('JOB IS '||E.JOB);<br />
DBMS_OUTPUT.PUT_LINE('LOC IS '||LOCV);<br />
DBMS_OUTPUT.PUT_LINE('GRADE IS '||GRADEV);<br />
DBMS_OUTPUT.PUT_LINE('EXP IS '||EXP);<br />
END;<br />
/<br />
141. Write a procedure to accept dname irrespective of case and print all the details of emps?<br />
CREATE OR REPLACE PROCEDURE DETAILS(DNAMEV VARCHAR2)<br />
IS<br />
CURSOR A IS<br />
SELECT EMP.*,DNAME FROM EMP,DEPT WHERE EMP.DEPTNO=DEPT.DEPTNO AND DNAME=DNAMEV;<br />
B A%ROWTYPE;<br />
BEGIN<br />
OPEN A;<br />
LOOP<br />
FETCH A INTO B;<br />
EXIT WHEN A%NOTFOUND;<br />
DBMS_OUTPUT.PUT_LINE('EMPNO IS '||B.EMPNO);<br />
DBMS_OUTPUT.PUT_LINE('ENAME IS '||B.ENAME);<br />
DBMS_OUTPUT.PUT_LINE('SAL IS '||B.SAL);<br />
DBMS_OUTPUT.PUT_LINE('JOB IS '||B.JOB);<br />
DBMS_OUTPUT.PUT_LINE('DNAME IS '||B.DNAME);<br />
DBMS_OUTPUT.PUT_LINE('HIREDATE IS '||B.HIREDATE);<br />
END LOOP;<br />
END;<br />
/<br />
142. Write a procedure to accept a string and print it in reverse case?<br />
CREATE OR REPLACE PROCEDURE S_R_CASE(STR VARCHAR2)<br />
IS<br />
S VARCHAR2(10);<br />
V VARCHAR2(10);<br />
N NUMBER(3);<br />
BEGIN<br />
FOR I IN 1..LENGTH(STR)<br />
LOOP<br />
S:=SUBSTR(STR,I,1);<br />
N:=ASCII(S);<br />
IF N BETWEEN 65 AND 90 THEN<br />
V:=V||CHR(N+32);<br />
ELSE<br />
V:=V||CHR(N-32);<br />
END IF;<br />
END LOOP;<br />
DBMS_OUTPUT.PUT_LINE('STRING IN REVERSE CASE IS '||V);<br />
END;<br />
/<br />
143. Write a function to accept the empno and return exp with minimum 3 decimal?<br />
CREATE OR REPLACE FUNCTION E_DETAILS(EMPNOV NUMBER) RETURN NUMBER<br />
IS<br />
HIREDATEV EMP.HIREDATE%TYPE;<br />
EXP NUMBER(6,3);<br />
BEGIN<br />
SELECT HIREDATE INTO HIREDATEV FROM EMP WHERE EMPNO=EMPNOV;<br />
EXP:=MONTHS_BETWEEN(SYSDATE,HIREDATEV)/12;<br />
RETURN EXP;<br />
END;<br />
/<br />
144. Write a function to accept a number and print the factorial of that number?<br />
CREATE OR REPLACE FUNCTION FAC(NUM NUMBER) RETURN NUMBER<br />
IS<br />
FACT NUMBER(4):=1;<br />
BEGIN<br />
FOR I IN REVERSE 1..NUM<br />
LOOP<br />
FACT:=FACT*I;<br />
END LOOP;<br />
RETURN FACT;<br />
END;<br />
/<br />
145. Write a function to accept a grade and return the number of emps belongs to that grade?<br />
CREATE OR REPLACE FUNCTION EMPGRADE(GRADEV NUMBER) RETURN VARCHAR2<br />
IS<br />
N NUMBER(4);<br />
BEGIN<br />
SELECT COUNT(*) INTO N FROM EMP,SALGRADE<br />
WHERE SAL BETWEEN LOSAL AND HISAL AND GRADE=GRADEV;<br />
RETURN 'NO OF EMPS ARE'||N;<br />
END;<br />
/<br />
146. Write a program to accept the mgr number and return no of emp working at that mgr?<br />
CREATE OR REPLACE FUNCTION N_EMPS(MGRV NUMBER) RETURN VARCHAR2<br />
IS<br />
N NUMBER(4);<br />
BEGIN<br />
SELECT COUNT(*) INTO N FROM EMP WHERE MGR=MGRV;<br />
RETURN 'THE NO OF EMPS ARE WORKING UNDER THIS MGR IS '||N;<br />
END;<br />
/<br />
147. Write a function to accept a character string and print it in reverse case?<br />
CREATE OR REPLACE FUNCTION REVERSE(STR VARCHAR2) RETURN VARCHAR2<br />
IS<br />
STR1 VARCHAR2(20);<br />
S VARCHAR2(20);<br />
N NUMBER(4);<br />
BEGIN<br />
FOR I IN 1..LENGTH(STR)<br />
LOOP<br />
S:=SUBSTR(STR,I,1);<br />
N:=ASCII(S);<br />
IF N BETWEEN 65 AND 90 THEN<br />
STR1:=STR1||CHR(N+32);<br />
ELSE<br />
STR1:=STR1||CHR(N-32);<br />
END IF;<br />
END LOOP;<br />
RETURN 'THE REVERSE CASE IS '||STR1;<br />
END;<br />
/<br />
148. Write a function to accept a string and check whether it is palindrome or not?<br />
CREATE OR REPLACE FUNCTION STRPAL1(STR VARCHAR2) RETURN VARCHAR2<br />
IS<br />
STR1 VARCHAR2(10);<br />
S VARCHAR2(10);<br />
BEGIN<br />
FOR I IN REVERSE 1..LENGTH(STR)<br />
LOOP<br />
S:=SUBSTR(STR,I,1);<br />
STR1:=STR1||S;<br />
END LOOP;<br />
IF STR1=STR THEN<br />
RETURN 'IT IS PALINDROME '||STR1;<br />
ELSE<br />
RETURN 'IT IS NOT PALINDROME '||STR1;<br />
END IF;<br />
END;<br />
/<br />
149. Write a function to accept the grade and return max, tot, avg salary and number of emps belongs to that grade as script without using any group functions?<br />
CREATE OR REPLACE FUNCTION EMP_DETAILS_SCRIPT (GRADEV SALGRADE.GRADE%TYPE) RETURN VARCHAR2<br />
IS<br />
V VARCHAR2(30000);<br />
CURSOR EMP_CUR IS<br />
SELECT EMP.*,GRADE,DNAME FROM DEPT,EMP,SALGRADE<br />
WHERE GRADE=GRADEV AND EMP.DEPTNO=DEPT.DEPTNO AND<br />
SAL BETWEEN LOSAL AND HISAL;<br />
EMP_CUR_V EMP_CUR%ROWTYPE;<br />
MAXSAL EMP.SAL%TYPE:=0;<br />
MINSAL EMP.SAL%TYPE;<br />
AVGSAL NUMBER(6,2);<br />
SUMSAL NUMBER(10,2):=0;<br />
CNT NUMBER:=0;<br />
FLAG CHAR:=0;<br />
EX EXCEPTION;<br />
BEGIN<br />
OPEN EMP_CUR;<br />
LOOP<br />
FETCH EMP_CUR INTO EMP_CUR_V;<br />
EXIT WHEN EMP_CUR%NOTFOUND;<br />
IF MAXSAL < EMP_CUR_V.SAL THEN<br />
MAXSAL:=EMP_CUR_V.SAL;<br />
END IF;<br />
IF FLAG=0 THEN<br />
MINSAL:=EMP_CUR_V.SAL;<br />
FLAG:=1;<br />
ELSIF FLAG=1 AND MINSAL > EMP_CUR_V.SAL THEN<br />
MINSAL:=EMP_CUR_V.SAL;<br />
END IF;<br />
SUMSAL:=SUMSAL+EMP_CUR_V.SAL;<br />
CNT:=CNT+1;<br />
ENDLOOP;<br />
IF CNT=0 THEN<br />
RAISE EX;<br />
END IF;<br />
AVGSAL:=SUMSAL/CNT;<br />
V:='THE MAXIMUM SALARY OF GRADE' ||GRADEV||' IS'||MAXSAL||' MINIMUM SALARY IS'||MINSAL||<br />
'AVERAGE SALARY IS'||AVGSAL||' TOTAL EMPS WORKING FOR THIS GRADE ARE'||CNT;<br />
CLOSE EMP_CUR;<br />
RETURN V;<br />
EXCEPTION<br />
WHEN EX THEN<br />
RETURN 'THERE IS NO EMPLOYEE WORKING FOR THIS GRADE, CHECK AND RE-ENTER THE GRADE....';<br />
END;<br />
/<br />
150. Create a package to store the following procedure for multiplication table,even-odd, function for factorial and function for palindrome?<br />
CREATE OR REPLACE PACKAGE DATA<br />
IS<br />
PROCEDURE MULT(A NUMBER);<br />
PROCEDURE EVEN_ODD(N NUMBER);<br />
FUNCTION FACT(N NUMBER) RETURN NUMBER;<br />
PRAGMA RESTRICT_REFERENCES(FACT,WNDS);<br />
FUNCTION PALEN(SRT VARCHAR2) RETURN VARCHAR2;<br />
PRAGMA RESTRICT_REFERENCES(PALEN,WNDS);<br />
END;<br />
/<br />
CREATE OR REPLACE PACKAGE BODY DATA<br />
IS<br />
PROCEDURE MULT(A NUMBER)<br />
IS<br />
M NUMBER;<br />
BEGIN<br />
FOR I IN 1..10<br />
LOOP<br />
M:=A*I;<br />
DBMS_OUTPUT.PUT_LINE(A||'*'||I||'='||M);<br />
END LOOP;<br />
END;<br />
PROCEDURE EVEN_ODD(N NUMBER)<br />
IS<br />
BEGIN<br />
IF MOD(N,2)=0 THEN<br />
DBMS_OUTPUT.PUT_LINE(N||' IS EVEN NUMBER');<br />
ELSE<br />
DBMS_OUTPUT.PUT_LINE(N||' IS NOT EVEN NUMBER');<br />
END IF;<br />
END;<br />
FUNCTION FACT(N NUMBER) RETURN NUMBER<br />
IS<br />
F NUMBER:=1;<br />
BEGIN<br />
FOR I IN 1..N<br />
LOOP<br />
F:=F*I;<br />
END LOOP;<br />
RETURN F;<br />
END;<br />
FUNCTION PALEN(SRT VARCHAR2) RETURN VARCHAR2<br />
IS<br />
S CHAR;<br />
V VARCHAR2(50);<br />
BEGIN<br />
FOR I IN REVERSE 1..LENGTH(SRT)<br />
LOOP<br />
S:=SUBSTR(SRT,I,1);<br />
V:=V||S;<br />
END LOOP;<br />
IF V=SRT THEN<br />
RETURN 'PALINDROME';<br />
ELSE<br />
RETURN 'NOT PALINDROME';<br />
END IF;<br />
END;<br />
END;<br />
/<br />
151.Write a database trigger halt the transaction on Sunday on EMP table<br />
CREATE OR REPLACE TRIGGER SUN_TRI<br />
AFTER INSERT OR UPDATE OR DELETE ON EMP<br />
DECLARE<br />
DY VARCHAR2(200);<br />
BEGIN<br />
DY:=TO_CHAR(SYSDATE,'DY');<br />
IF DY='SUN' THEN<br />
RAISE_APPLICATION_ERROR(-20005,'TODAY IS SUNDAY TRANSACTION NOT ALLOWED TODAY');<br />
END IF;<br />
END;<br />
/<br />
152.Write a database trigger halt the transaction of USER SCOTT on table EMP<br />
CREATE OR REPLACE TRIGGER SCOTT_TRI<br />
BEFORE INSERT OR UPDATE OR DELETE ON EMP<br />
BEGIN<br />
IF USER = 'SCOTT' THEN<br />
RAISE_APPLICATION_ERROR(-20006,'TRANSACTION NOT ALLOWED FOR SCOTT');<br />
END IF;<br />
END;<br />
/<br />
153.Write a database trigger halt the transaction between the the time 6pm to 10am on table emp<br />
CREATE OR REPLACE TRIGGER OVER_TIME_TRI<br />
BEFORE INSERT OR DELETE OR UPDATE ON EMP<br />
DECLARE<br />
T NUMBER;<br />
BEGIN<br />
T:=TO_CHAR(SYSDATE,'HH24');<br />
IF T NOT BETWEEN 10 AND 18 THEN<br />
RAISE_APPLICATION_ERROR(-20007,'TIME ALREADY OVER.....TRANSACTION NOT ALLOWED NOW');<br />
END IF;<br />
END;<br />
154.Write a database trigger to halt the transaction for the employee SALESMAN and<br />
PRESIDENT<br />
CREATE OR REPLACE TRIGGER SALES_PRI<br />
BEFORE INSERT OR UPDATE OR DELETE ON EMP<br />
FOR EACH ROW<br />
WHEN (OLD.JOB IN ('SALESMAN','PRESIDENT') OR<br />
NEW.JOB IN ('SALESMAN','PRESIDENT'))<br />
BEGIN<br />
RAISE_APPLICATION_ERROR(-20008,'TRANSACTION NOT ALLOWED FOR SALESMAN AND PRESIDENT....');<br />
END;<br />
/<br />
155.Write a database trigger stroe the username ,type of transaction ,date of transaction and time of transaction of table emp into the table EMP_LOG<br />
CREATE OR REPLACE TRIGGER TRANS_TYPE<br />
AFTER INSERT OR UPDATE OR DELETE ON EMP<br />
DECLARE<br />
V VARCHAR2(50);<br />
BEGIN<br />
IF INSERTING THEN<br />
V:='I';<br />
ELSIF UPDATING THEN<br />
V:='U';<br />
ELSE<br />
V:='D';<br />
END IF;<br />
INSERT INTO EMP_LOG VALUES (USER,V,SYSDATE,TO_CHAR(SYSDATE,'HH:MI:SS'));<br />
END;<br />
/<br />
156.Write a database trigger store the deleted data of EMP table in EMPDEL table<br />
CREATE OR REPLACE TRIGGER DEL_TRI<br />
BEFORE DELETE ON EMP<br />
FOR EACH ROW<br />
BEGIN<br />
INSERT INTO EMPDEL<br />
VALUES (:OLD.EMPNO,:OLD.ENAME,:OLD.JOB,:OLD.MGR,:OLD.HIREDATE,:OLD.SAL,:OLD.COMM,<br />
:OLD.DEPTNO,SYSDATE,TO_CHAR(SYSDATE,'HH:MI:SS));<br />
END;<br />
/<br />
157.Write a database trigger display the message when the inserting hiredate is greater than system date<br />
CREATE OR REPLACE TRIGGER HIREDATE_OVER<br />
AFTER INSERT ON EMP<br />
FOR EACH ROW<br />
BEGIN<br />
IF :NEW.HIREDATE > SYSDATE THEN<br />
RAISE_APPLICATION_ERROR(-20009,'INVALID HIREDATE.....');<br />
END IF;<br />
END;<br />
/<br />
158.Write a database trigger halt the transaction of EMP table if the deptno is does not exist in the dept table<br />
CREATE OR REPLACE TRIGGER DEPT_NO<br />
BEFORE INSERT OR UPDATE OR DELETE ON EMP<br />
FOR EACH ROW<br />
DECLARE<br />
DNO NUMBER:=0;<br />
BEGIN<br />
SELECT COUNT(*) INTO DNO FROM DEPT WHERE DEPTNO=:NEW.DEPTNO;<br />
DBMS_OUTPUT.PUT_LINE(DNO);<br />
IF DNO=0 THEN<br />
RAISE_APPLICATION_ERROR(-20009,'DEPTNO NOT EXIST IN DEPT TABLE....');<br />
END IF;<br />
END;<br />
/<br />
159.Write a database trigger add Rs 500 if the inserting salary is less than Rs 1000<br />
CREATE OR REPLACE TRIGGER SAL_ADD<br />
BEFORE INSERT ON EMP<br />
FOR EACH ROW<br />
BEGIN<br />
IF :NEW.SAL <= 1000 THEN<br />
:NEW.SAL:=:NEW.SAL+500;<br />
END IF;<br />
END;<br />
/<br />
160.Write a database trigger give the appropriate message if the record exceed more than 100 on EMP table<br />
CREATE OR REPLACE TRIGGER EMP_OVER_REC<br />
AFTER INSERT ON EMP<br />
DECLARE<br />
R NUMBER;<br />
BEGIN<br />
SELECT COUNT(*) INTO R FROM EMP;<br />
IF R>=100 THEN<br />
RAISE_APPLICATION_ERROR(-20009,'100 RECORD ALLOWED IN EMP TABLE.....');<br />
END IF;<br />
END;<br />
/<br />
161.Write a program to month and year and display the Calendar of that month.<br />
DECLARE<br />
D NUMBER:=1;<br />
M VARCHAR2(10):='&MONTH';<br />
Y NUMBER:=&YEAR;<br />
C CHAR(20);<br />
V VARCHAR2(500);<br />
N NUMBER;<br />
BEGIN<br />
N:=TO_CHAR(LAST_DAY(D||'-'||M||'-'||Y),'DD');<br />
C:= TO_CHAR(TO_DATE(D||'-'||M||'-'||Y),'DY');<br />
dbms_output.put_line('*********************************');<br />
dbms_output.put_line('* '||M||'-'||Y||' *');<br />
dbms_output.put_line('*SUN MON TUE WED THU FRI SAT *');<br />
dbms_output.put_line('**********************************');<br />
IF C='MON' THEN<br />
V:=' ';<br />
ELSIF C='TUE' THEN<br />
V:=' ';<br />
ELSIF C='WED' THEN<br />
V:=' ';<br />
ELSIF C='THU' THEN<br />
V:=' ';<br />
ELSIF C='FRI' THEN<br />
V:=' ';<br />
ELSIF C='SAT' THEN<br />
V:=' ';<br />
END IF;<br />
FOR I IN 1..N<br />
LOOP<br />
V:=V||LPAD(I,4);<br />
IF LENGTH(V)=28 THEN<br />
dbms_output.put_line(LPAD(V,29,'*')||' *');<br />
V:=NULL;<br />
END IF;<br />
END LOOP;<br />
dbms_output.put_line('*'||RPAD(V,29)||'*');<br />
END;<br />
/</b></b></b><!--25--><!--18--><!--12--></25></18></12><br />
<b p=""><b p=""><b p=""><br /></b></b></b>
<b p=""><b p=""><b p="">Please refer this link for more sql questions. <a href="http://myorastuff.blogspot.com/2009/09/oracle-sql-questions.html">SQL </a></b></b></b></div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-90091377937597428132015-11-01T15:15:00.003-08:002015-11-30T12:06:59.820-08:00How to Recover the Voting disk in RAC Environment<div dir="ltr" style="text-align: left;" trbidi="on">
I am demonstrating the Voting disk recovery on this blog. This exercise is tested in oracle12c test cluster environment. It is two node RAC and node names are RACTEST1 and RACTEST2.<br />
<br />
My voting disk has external redundancy. Hence it is only one copy of voting disk present on the ASM disk.<br />
<br />
My goal is to corrupt the voting disk and restore in new disk. Here are the high level steps.<br />
<br />
<ol style="text-align: left;">
<li><span style="background-color: yellow;">corrupt the voting disk</span></li>
<li><span style="background-color: yellow;">shutdown the database</span></li>
<li><span style="background-color: yellow;">stop the CRS service on all nodes</span></li>
<li><span style="background-color: yellow;">start the CRS service on exclusive mode for ONE node</span></li>
<li><span style="background-color: yellow;">create the new disk or Use existing disk</span></li>
<li><span style="background-color: yellow;">Restore the voting disk to newly created node</span></li>
<li><span style="background-color: yellow;">stop the CRS which is started on exclusive mode</span></li>
<li><span style="background-color: yellow;">start the CRS on both node</span></li>
<li><span style="background-color: yellow;">start the database and make sure all the instance are up </span></li>
<li><span style="background-color: yellow;">verify the cluster service and make sure all good!</span></li>
</ol>
<br />
<br />
<span style="color: red;"><b style="background-color: yellow;"><u>Step 1</u></b></span><br />
<br />
Let us check where the Voting disk is present on the cluster.<br />
<br />
<span style="background-color: yellow;">crsctl query css votedisk</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipmEs34DazwBf0WXFeHmLBnJVc2w-38n_dN_Jmn1XO9EDKOxCdhoL9a_IkGQPSGvLlV-4bpkqiZd79cVoJtv4lmpmz8IhC3dJFKvvq5ehUOrsE6eAg1omhvEcdMji2WnsSrDZzdzgOxsc/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="75" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipmEs34DazwBf0WXFeHmLBnJVc2w-38n_dN_Jmn1XO9EDKOxCdhoL9a_IkGQPSGvLlV-4bpkqiZd79cVoJtv4lmpmz8IhC3dJFKvvq5ehUOrsE6eAg1omhvEcdMji2WnsSrDZzdzgOxsc/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
The voting disk is stored on VOTE1 disk on the VOTE1 disk group.<br />
<br />
<b style="background-color: yellow; color: red;"><u>Step 2</u></b><br />
<b style="background-color: yellow; color: red;"><u><br /></u></b>
<span style="background-color: white;">Let me corrupt the voting disk. Here is the command to corrupt the disk.</span><br />
<span style="background-color: #fff2cc;"><span style="background-color: white;"><br /></span>
<span style="background-color: white;">dd if=/dev/zero of=/dev/oracleasm/disks/VITE1 bs=4096 count=100</span></span><br />
<span style="background-color: white;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZF1Te9dOndfAk1vLyohYWTSvVG2VpLOdspb4csi-akFedbGH7tx3dH1xthxWYnRVwG6DKv4cllfXmL7Pl5QlR1k64HDn115dxo6r50b9yJHD4o8BMmUUYKj6t9dJUrVM3Mhfbb8k8Dq8/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="64" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZF1Te9dOndfAk1vLyohYWTSvVG2VpLOdspb4csi-akFedbGH7tx3dH1xthxWYnRVwG6DKv4cllfXmL7Pl5QlR1k64HDn115dxo6r50b9yJHD4o8BMmUUYKj6t9dJUrVM3Mhfbb8k8Dq8/s320/1.png" width="320" /></a></div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span><br />
<span style="background-color: white;">At this stage, clusterware should have stopped working. </span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">I rebooted the node and checked the cluster and the service was down. It is not necessary to reboot the node. It is test environment and just rebooted to check the cluster service. In production environment, it is enough to bounce the CRS service. </span><br />
<span style="background-color: white;"><br /></span>
<b style="background-color: yellow; color: red;"><u>Step 3</u></b><br />
<br />
<span style="background-color: yellow;">crsctl check crs</span><br />
<span style="background-color: yellow;">crsctl check cluster</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZpumIxN8-TOC37gO-F4IdNdzQfJ9jPspeMTIqhudNzzpujl-fpCoNgG8KmQihwJG2qa3fLE9i5d_dGSD3X-S6GhyphenhyphenNvf337hh7WsVbVj4pOdZJAciuXfA3UXrMdGci-f5iF15GmUcQ0EU/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="88" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZpumIxN8-TOC37gO-F4IdNdzQfJ9jPspeMTIqhudNzzpujl-fpCoNgG8KmQihwJG2qa3fLE9i5d_dGSD3X-S6GhyphenhyphenNvf337hh7WsVbVj4pOdZJAciuXfA3UXrMdGci-f5iF15GmUcQ0EU/s320/1.png" width="320" /></a></div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><br /><b style="background-color: yellow; color: red;"><u>Step 4</u> </b><b style="background-color: yellow; color: red;">S</b>hutdown the database</span><br />
<span style="background-color: white;"><br /></span>
<br />
[oracle@RACTEST1 ~]$ srvctl status database -db govinddb<br />
Instance govinddb1 is running on node ractest1<br />
Instance govinddb2 is running on node ractest2<br />
[oracle@RACTEST1 ~]$ srvctl stop database -db govinddb<br />
[oracle@RACTEST1 ~]$ srvctl status database -db govinddb<br />
Instance govinddb1 is not running on node ractest1<br />
Instance govinddb2 is not running on node ractest2<br />
<span style="background-color: yellow; color: red;"></span><br />
[oracle@RACTEST1 ~]$<br />
<div>
<br /></div>
<b style="background-color: yellow; color: red;"><u>Step 5</u> </b>Stop the CRS on all nodes<br />
<br />
[root@RACTEST1 bin]# ./crsctl stop crs -f<br />
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'ractest1'<br />
CRS-2673: Attempting to stop 'ora.gpnpd' on 'ractest1'<br />
CRS-2673: Attempting to stop 'ora.evmd' on 'ractest1'<br />
CRS-2673: Attempting to stop 'ora.mdnsd' on 'ractest1'<br />
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'ractest1'<br />
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'ractest1'<br />
CRS-2673: Attempting to stop 'ora.gipcd' on 'ractest1'<br />
CRS-2677: Stop of 'ora.drivers.acfs' on 'ractest1' succeeded<br />
CRS-2677: Stop of 'ora.cssdmonitor' on 'ractest1' succeeded<br />
CRS-2677: Stop of 'ora.gpnpd' on 'ractest1' succeeded<br />
CRS-2677: Stop of 'ora.mdnsd' on 'ractest1' succeeded<br />
CRS-2677: Stop of 'ora.evmd' on 'ractest1' succeeded<br />
CRS-2677: Stop of 'ora.gipcd' on 'ractest1' succeeded<br />
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ractest1' has completed<br />
CRS-4133: Oracle High Availability Services has been stopped.<br />
[root@RACTEST1 bin]#<br />
<br />
<br />
[root@RACTEST2 bin]# ./crsctl stop crs -f<br />
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'ractest2'<br />
CRS-2673: Attempting to stop 'ora.gipcd' on 'ractest2'<br />
CRS-2673: Attempting to stop 'ora.mdnsd' on 'ractest2'<br />
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'ractest2'<br />
CRS-2673: Attempting to stop 'ora.gpnpd' on 'ractest2'<br />
CRS-2673: Attempting to stop 'ora.evmd' on 'ractest2'<br />
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'ractest2'<br />
CRS-2677: Stop of 'ora.cssdmonitor' on 'ractest2' succeeded<br />
CRS-2677: Stop of 'ora.drivers.acfs' on 'ractest2' succeeded<br />
CRS-2677: Stop of 'ora.gipcd' on 'ractest2' succeeded<br />
CRS-2677: Stop of 'ora.mdnsd' on 'ractest2' succeeded<br />
CRS-2677: Stop of 'ora.gpnpd' on 'ractest2' succeeded<br />
CRS-2677: Stop of 'ora.evmd' on 'ractest2' succeeded<br />
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ractest2' has completed<br />
CRS-4133: Oracle High Availability Services has been stopped.<br />
<span style="background-color: white;"></span><br />
[root@RACTEST2 bin]#<br />
<div>
<br /></div>
<div>
<b style="background-color: yellow; color: red;"><u>Step 6</u> </b>Start the CRS on one node with exclusive mode</div>
<div>
<br /></div>
<div>
<div>
[root@RACTEST1 bin]# ./crsctl start crs -excl</div>
<div>
CRS-4123: Oracle High Availability Services has been started.</div>
<div>
CRS-2672: Attempting to start 'ora.evmd' on 'ractest1'</div>
<div>
CRS-2672: Attempting to start 'ora.mdnsd' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.mdnsd' on 'ractest1' succeeded</div>
<div>
CRS-2676: Start of 'ora.evmd' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.gpnpd' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.gpnpd' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'ractest1'</div>
<div>
CRS-2672: Attempting to start 'ora.gipcd' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.cssdmonitor' on 'ractest1' succeeded</div>
<div>
CRS-2676: Start of 'ora.gipcd' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.cssd' on 'ractest1'</div>
<div>
CRS-2672: Attempting to start 'ora.diskmon' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.diskmon' on 'ractest1' succeeded</div>
<div>
CRS-2676: Start of 'ora.cssd' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.crf' on 'ractest1'</div>
<div>
CRS-2672: Attempting to start 'ora.ctssd' on 'ractest1'</div>
<div>
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.crf' on 'ractest1' succeeded</div>
<div>
CRS-2676: Start of 'ora.ctssd' on 'ractest1' succeeded</div>
<div>
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.asm' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.asm' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.storage' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.storage' on 'ractest1' succeeded</div>
<div>
CRS-2672: Attempting to start 'ora.crsd' on 'ractest1'</div>
<div>
CRS-2676: Start of 'ora.crsd' on 'ractest1' succeeded</div>
<div>
[root@RACTEST1 bin]#</div>
</div>
<div>
<br /></div>
<div>
<b style="background-color: yellow; color: red;"><u>Step 7</u> </b><span style="background-color: white;">Verify the ASM instance and make sure it is up and running. Start the ASM instance if it is down. My case, ASM instance is started as part of starting the CRS service. We need ASM instance to restore the voting disk.</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<span style="background-color: white;">Login to ASM instance.</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<div>
<span style="background-color: yellow;">echo INSTANCE_TYPE=ASM >> /u01/app/oracle/init+ASM1.ora </span></div>
<div>
<span style="background-color: yellow;">startup pfile='/u01/app/oracle/init+ASM1.ora';</span></div>
<div style="background-color: white;">
<br /></div>
</div>
<div>
<div>
<b style="background-color: yellow; color: red;"><u>Step 7</u> </b><span style="background-color: white;">Create the new disk VOTE2 for restoring the voting disk.</span></div>
</div>
<div>
<br /></div>
<div>
SQL>CREATE DISKGROUP VOTE2 EXTERNAL REDUNDANCY<br />
DISK 'ORCL:VOTE2'<br />
ATTRIBUTE 'au_size'='4M',<br />
'compatible.asm' = '11.2.0.2.0',<br />
'compatible.rdbms' = '11.2.0.2.0',<br />
'compatible.advm' = '11.2.0.2.0';<br />
SQL><br />
<br />
Diskgroup created.<br />
<br />
<span style="background-color: white;"></span><br />
SQL><br />
<span style="background-color: white;">
</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<div style="background-color: white;">
<b style="background-color: yellow; color: red;"><u>Step 8</u></b><b style="background-color: yellow; color: red;"> Restore the voting disk on newly created disk VOTE2. </b></div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
<span style="background-color: #fff2cc;">Let us check the current voting disk location. Now no voting disk is displaying here. Since the voting disk is already corrupted.</span></div>
<div style="background-color: white;">
<span style="background-color: #fff2cc;"><br /></span></div>
<div style="background-color: white;">
<div>
<span style="background-color: #fff2cc;">[oracle@RACTEST1 bin]$ ./crsctl query css votedisk</span></div>
<div>
<span style="background-color: #fff2cc;">Located 0 voting disk(s).</span></div>
</div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
<b>Now recover the voting disk as below. Voting disk is automatically recovererd using the lastest available copy of OCR.</b></div>
<div style="background-color: white;">
<br /></div>
<div>
<div>
<span style="background-color: yellow;"><span style="color: red;">[oracle@RACTEST1 bin]$ ./crsctl replace votedisk +VOTE2</span></span></div>
<div>
<span style="background-color: yellow;"><span style="color: red;">Successful addition of voting disk 5d17422445e54f1abf131f15b967c07f.</span></span></div>
<div>
<span style="background-color: yellow;"><span style="color: red;">Successfully replaced voting disk group with +VOTE2.</span></span></div>
<div>
<span style="background-color: yellow;"><span style="color: red;">CRS-4266: Voting file(s) successfully replaced</span></span></div>
</div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
Let us check the voting disk again.</div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
<div>
<br /></div>
<div>
[oracle@RACTEST1 bin]$ ./crsctl query css votedisk</div>
<div>
## STATE File Universal Id File Name Disk group</div>
<div>
-- ----- ----------------- --------- ---------</div>
<div>
1. ONLINE 5d17422445e54f1abf131f15b967c07f (ORCL:VOTE2) [VOTE2]</div>
<div>
Located 1 voting disk(s).</div>
<div>
[oracle@RACTEST1 bin]$</div>
</div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
<b style="background-color: yellow; color: red;"><u>Step 9</u></b><b style="background-color: yellow; color: red;"> </b> Stop the CRS on RACTEST1 which was started in exclusive mode.</div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
<div>
<br /></div>
<div>
[root@RACTEST1 bin]# ./crsctl stop crs</div>
<div>
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.crsd' on 'ractest1'</div>
<div>
CRS-2677: Stop of 'ora.crsd' on 'ractest1' succeeded</div>
<div>
CRS-2673: Attempting to stop 'ora.storage' on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.mdnsd' on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.gpnpd' on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'ractest1'</div>
<div>
CRS-2677: Stop of 'ora.storage' on 'ractest1' succeeded</div>
<div>
CRS-2677: Stop of 'ora.drivers.acfs' on 'ractest1' succeeded</div>
<div>
CRS-2673: Attempting to stop 'ora.crf' on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.ctssd' on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.evmd' on 'ractest1'</div>
<div>
CRS-2673: Attempting to stop 'ora.asm' on 'ractest1'</div>
<div>
CRS-2677: Stop of 'ora.gpnpd' on 'ractest1' succeeded</div>
<div>
CRS-2677: Stop of 'ora.mdnsd' on 'ractest1' succeeded</div>
<div>
CRS-2677: Stop of 'ora.crf' on 'ractest1' succeeded</div>
<div>
CRS-2677: Stop of 'ora.ctssd' on 'ractest1' succeeded</div>
<div>
CRS-2677: Stop of 'ora.evmd' on 'ractest1' succeeded</div>
<div>
CRS-2677: Stop of 'ora.asm' on 'ractest1' succeeded</div>
<div>
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'ractest1'</div>
<div>
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'ractest1' succeeded</div>
<div>
CRS-2673: Attempting to stop 'ora.cssd' on 'ractest1'</div>
<div>
CRS-2677: Stop of 'ora.cssd' on 'ractest1' succeeded</div>
<div>
CRS-2673: Attempting to stop 'ora.gipcd' on 'ractest1'</div>
<div>
CRS-2677: Stop of 'ora.gipcd' on 'ractest1' succeeded</div>
<div>
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ractest1' has complet ed</div>
<div>
CRS-4133: Oracle High Availability Services has been stopped.</div>
</div>
<div style="background-color: white;">
<br /></div>
</div>
<div>
<b style="background-color: yellow; color: red;"><u>Step 10</u></b><b style="background-color: yellow; color: red;"> </b><span style="background-color: white;"> </span><span style="background-color: white;">Start the CRS on RACTEST1 and RACTEST1</span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
[root@RACTEST1 bin]# ./crsctl start crs</div>
<div style="background-color: white;">
CRS-4123: Oracle High Availability Services has been started.</div>
<div style="background-color: white;">
[root@RACTEST1 bin]#</div>
<div style="background-color: white;">
<br /></div>
<div style="background-color: white;">
<div>
<br /></div>
<div>
[root@RACTEST2 bin]# ./crsctl start crs</div>
<div>
CRS-4123: Oracle High Availability Services has been started.</div>
<div>
[root@RACTEST2 bin]#</div>
</div>
<div style="background-color: white;">
<br /></div>
<div>
<b style="background-color: yellow; color: red;"><u>Step 11</u></b><b style="background-color: yellow; color: red;"> </b><span style="background-color: white;">Make sure Cluster is up and running. Restart the cluster if it is down. But my case, cluster is up and running. </span></div>
<div>
<span style="background-color: white;"><br /></span></div>
<div>
<span style="background-color: white;"></span><br />
<div>
<span style="background-color: white;">[root@RACTEST1 bin]# ./crsctl check crs</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4638: Oracle High Availability Services is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4537: Cluster Ready Services is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4529: Cluster Synchronization Services is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4533: Event Manager is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;"><br /></span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">[root@RACTEST1 bin]# ./crsctl check cluster</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4537: Cluster Ready Services is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4529: Cluster Synchronization Services is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">CRS-4533: Event Manager is online</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;">[root@RACTEST1 bin]#</span></div>
<span style="background-color: white;">
</span>
<br />
<div>
<span style="background-color: white;"><br /></span>
<span style="background-color: white;"><b style="background-color: yellow; color: red;"><u>Step 11</u></b><b style="background-color: yellow; color: red;"> </b><span style="background-color: white;"> </span><span style="background-color: white;">Start the database and monitor the alert log</span></span><br />
<span style="background-color: white;"><span style="background-color: white;"><br /></span></span>
[oracle@RACTEST1 ~]$ srvctl status database -db govinddb<br />
Instance govinddb1 is not running on node ractest1<br />
Instance govinddb2 is not running on node ractest2<br />
[oracle@RACTEST1 ~]$ srvctl start database -db govinddb<br />
[oracle@RACTEST1 ~]$ srvctl status database -db govinddb<br />
Instance govinddb1 is running on node ractest1<br />
Instance govinddb2 is running on node ractest2<br />
<span style="background-color: white;"><span style="background-color: white;"></span></span><br />
[oracle@RACTEST1 ~]$<br />
<br />
Additional note......<br />
<br />
We do not need to bring the CRS service down when there is at least one working copy is intact.</div>
<div>
<br />
CRS should be up on all nodes for the following operations(per Doc ID 428681.1)<br />
<br />
1. Adding additional voting disk on the disk group<br />
2. Moving the voting disk<br />
3. Deleting one of the voting disk on the diskgroup<br />
4. Adding another copy of OCR file on different disk<br />
5. Moving the OCR file to different disk<br />
6. Removing one copy of OCR file<br />
<br />
CRS should be up in ONLY one node with exclusive mode as per Doc ID 1062983.1 for the following operations.<br />
<br />
1. We have ONLY one copy of OCR file and it is corrupted.<br />
2. We have ONLY one copy of voting disk and it is corrupted<br />
<br /></div>
<span style="background-color: white;">
</span></div>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-77109783925725776062015-10-28T12:54:00.001-07:002015-10-29T15:44:52.233-07:00How to Configure and Create ASM disks using ASMLib<div dir="ltr" style="text-align: left;" trbidi="on">
I am going to cover the steps to configure and create the ASM disk group on Two node RAC cluster environment.<br />
<br />
Storage team will attach the raw disk on the node and handover to UNIX SA and SA will format, scan and label the disk, then handover to DBA team. DBA will create the diskgroup on the ASM instance. I am using Two node RAC and node names are RACTEST1 & RACTEST2.<br />
<div>
<br /></div>
<div>
High level steps for adding disk.</div>
<div>
<br /></div>
<div>
<ol style="text-align: left;">
<li><span style="background-color: yellow;">Storage team add disk on the server</span></li>
<li><span style="background-color: yellow;">Format the disk on ractest1 node</span></li>
<li><span style="background-color: yellow;">Label the disk on ractest1 node </span></li>
<li><span style="background-color: yellow;">Query and List the disk </span></li>
<li><span style="background-color: yellow;">Scan the disk on ractest2 node</span></li>
<li><span style="background-color: yellow;">Create the diskgroup on ASM instance on ractest1</span></li>
<li><span style="background-color: yellow;">verify the disk on ASM instance for both node</span></li>
</ol>
</div>
<div>
<br /></div>
<div>
We are adding 6 disks on the server and names are as follows.</div>
<div>
<br /></div>
<div>
<ol style="text-align: left;">
<li>ORACLEDISK01_PRI</li>
<li>ORACLEDISK01_SEC</li>
<li>ORACLEDISK02_PRI</li>
<li>ORACLEDISK02_SEC</li>
<li>ORACLEDISK03_PRI</li>
<li>ORACLEDISK03_SEC</li>
</ol>
<div>
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 1</b><span style="background-color: white;"> Storage team add raw disk on the server.</span></div>
</div>
<div>
<br /></div>
<div>
Storage team add the above 6 disk on the first node and make the disk shareable. Then attach the above said disk on the second node. Now we can see the above disks on both the nodes.<br />
<br /></div>
<div>
After adding the disk, the names will appear on server as below.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyEiaPTRrl-AhipVr6fBMPC0gTQOr1NjUfEKD4wphdgtzAUxtLxcu_BSoe-kuffC6BJt5kH0sToVbo-mmOeY3FKOTiAEOcXkaT2mNzh528dhQ4PujHSxhh4-oQrXdf9VxqXECrBz8lgF4/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyEiaPTRrl-AhipVr6fBMPC0gTQOr1NjUfEKD4wphdgtzAUxtLxcu_BSoe-kuffC6BJt5kH0sToVbo-mmOeY3FKOTiAEOcXkaT2mNzh528dhQ4PujHSxhh4-oQrXdf9VxqXECrBz8lgF4/s320/1.png" width="280" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<div style="-webkit-text-stroke-width: 0px; color: black; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
</div>
<br />
<div style="orphans: auto; text-align: left; text-indent: 0px; widows: 1;">
<div style="margin: 0px;">
<b style="-webkit-text-stroke-width: 0px; background-color: yellow; color: red; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-decoration: underline; text-transform: none; white-space: normal; word-spacing: 0px;">Step 2</b><span style="-webkit-text-stroke-width: 0px; background-color: white; color: red; font-family: 'Times New Roman'; font-size: xx-small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; text-transform: none; white-space: normal; word-spacing: 0px;"> </span><span style="background-color: white;">Format the newly added disk on the node1</span></div>
<div style="-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="background-color: white;"><br /></span></div>
</div>
</div>
<div>
Login to RACTEST1 node and Partition the disk as below. Follow the below step for sdf, sdg, sdh,sdi,sdj & sdk.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4P3uUqcDK3ZPE9830EsKj98TSkrGXl_d2d9cSNlQS42zd_MWr22oGbzXn304hNA6SbgpYKLOmH2KVlsI3jJ3LaQag29U1c6xum32T_vO9nNkzWlSlZ7GHZUZOWPxUh5h322nEt1ZN4DU/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="243" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4P3uUqcDK3ZPE9830EsKj98TSkrGXl_d2d9cSNlQS42zd_MWr22oGbzXn304hNA6SbgpYKLOmH2KVlsI3jJ3LaQag29U1c6xum32T_vO9nNkzWlSlZ7GHZUZOWPxUh5h322nEt1ZN4DU/s320/1.png" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
After formatting the disk, it will show on the server as below. </div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiunAXZNOTHtzS6gV8idm9lN2gR0YGgYQizLZNcI-k39lgsg29bjKsrxTHEw0WxKLpL0A1Zpcwbb5NxiySHzzFM1eiUd19LatQTXVvPPTyOT9UywSIlJDyQhtxXBGP2dbsMf6-QAsBe85M/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiunAXZNOTHtzS6gV8idm9lN2gR0YGgYQizLZNcI-k39lgsg29bjKsrxTHEw0WxKLpL0A1Zpcwbb5NxiySHzzFM1eiUd19LatQTXVvPPTyOT9UywSIlJDyQhtxXBGP2dbsMf6-QAsBe85M/s320/1.png" width="233" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<b style="background-color: yellow; color: red; text-decoration: underline;"><br /></b>
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 3</b><span style="background-color: white; color: red;"> </span><span style="background-color: white;">Label the newly added disk on the node1</span><br />
<span style="background-color: white;"><br /></span>
Here is the command to label the disk<br />
<span style="background-color: yellow;">oracleasm createdisk ORACLEDISK01_PRI /dev/sdf1</span><br />
<span style="background-color: yellow;">oracleasm createdisk ORACLEDISK01_SEC /dev/sdg1</span><br />
<span style="background-color: yellow;">oracleasm createdisk ORACLEDISK02_PRI /dev/sdh1</span><br />
<span style="background-color: yellow;">oracleasm createdisk ORACLEDISK02_SEC /dev/sdi1</span><br />
<span style="background-color: yellow;">oracleasm createdisk ORACLEDISK03_PRI /dev/sdj1</span><br />
<span style="background-color: yellow;">oracleasm createdisk ORACLEDISK03_SEC /dev/sdk1</span><br />
<div>
<br /></div>
<span style="background-color: white;"><br /></span>
<br />
<div>
Now label the disk as below in RACTEST1 node</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Ge8hOFBMQYrGmq5WFUm4aB4-ptYIxcRSG-3Eaeg3MMMoexiX6IGKzmlRg6oTIkTE3W-QIUjqfNcl-8bituW-HewAKF8-AjfUnP0JXQoYbsXh0jMDTrctc0uv5MwxRfFYUKQ4tVHelxE/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="189" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Ge8hOFBMQYrGmq5WFUm4aB4-ptYIxcRSG-3Eaeg3MMMoexiX6IGKzmlRg6oTIkTE3W-QIUjqfNcl-8bituW-HewAKF8-AjfUnP0JXQoYbsXh0jMDTrctc0uv5MwxRfFYUKQ4tVHelxE/s320/1.png" width="320" /></a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<br />
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 4</b><span style="background-color: white; color: red;"> </span><span style="background-color: white;">Query the newly added disk on the node1</span></div>
<div>
<br /></div>
<div>
Now We can Query the disk on RACTEST1 as below. This is verification step to make sure the disk is created as we expected. </div>
<div>
<br />
<span style="background-color: yellow;">oracleasm querydisk /dev/sdf1</span><br />
<span style="background-color: yellow;">oracleasm querydisk /dev/sdg1</span><br />
<span style="background-color: yellow;">oracleasm querydisk /dev/sdh1</span><br />
<span style="background-color: yellow;">oracleasm querydisk /dev/sdi1</span><br />
<span style="background-color: yellow;">oracleasm querydisk /dev/sdj1</span><br />
<span style="background-color: yellow;">oracleasm querydisk /dev/sdk1</span></div>
<div>
<span style="background-color: yellow;">oracleasm listdisks</span></div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpfBrFhQ5rFxXDSeXflOEEprUsBNBMzKZnBWmrvoa0s0ttCiq9yS0HtNxcw-rV2hGjzcfaxqm9pWcPPk7tOjiA9_mDoZnlnwvJWEPN8XlOIGl-pzeomDI8sxBYPVOnRqZzQNB4Ks_ulX4/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpfBrFhQ5rFxXDSeXflOEEprUsBNBMzKZnBWmrvoa0s0ttCiq9yS0HtNxcw-rV2hGjzcfaxqm9pWcPPk7tOjiA9_mDoZnlnwvJWEPN8XlOIGl-pzeomDI8sxBYPVOnRqZzQNB4Ks_ulX4/s320/1.png" width="315" /></a></div>
<div>
<br /></div>
<div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<b style="background-color: yellow; color: red; text-decoration: underline;"><br /></b>
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 5</b><span style="background-color: white; color: red;"> </span><span style="background-color: white;">Scan the above disk on RACTEST2 node. This disk will not appear on node2 unless we scan the disk on the second node.</span><br />
<span style="background-color: white;"><br /></span>
<span style="background-color: white;">Here is the command to scan the disk.</span><br />
<span style="background-color: white;"><br /></span><span style="background-color: yellow;">
oracleasm scandisks</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZN5hZzsvRsXwr28TsMGhA9NlWK93J9b9_4CEC5g7rD6qKrgMEG9e4CuWwE3Le1zdjcNzx0j0AXg2THItQzodOVMB5KZJJ1GeJ7cTfycO1wHf2MC1Cdvlx-Poxt4cTOiTy0Iyt5GkQWgA/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="292" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZN5hZzsvRsXwr28TsMGhA9NlWK93J9b9_4CEC5g7rD6qKrgMEG9e4CuWwE3Le1zdjcNzx0j0AXg2THItQzodOVMB5KZJJ1GeJ7cTfycO1wHf2MC1Cdvlx-Poxt4cTOiTy0Iyt5GkQWgA/s320/1.png" width="320" /></a></div>
<br /></div>
<div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br /></div>
</div>
</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div>
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 6</b><span style="background-color: white; color: red;"> </span><span style="background-color: white;">Now the disk is ready to create in ASM instance. Here we are adding new disk group on ASM instance.</span><br />
<span style="background-color: white;"><br /></span>
<br />
SQL> CREATE DISKGROUP oracledata NORMAL REDUNDANCY<br />
FAILGROUP oracledisk01 DISK<br />
'/dev/oracleasm/disks/ORACLEDISK01_PRI' NAME ORADISK01_PRI,<br />
'/dev/oracleasm/disks/ORACLEDISK02_PRI' NAME ORADISK01_SEC<br />
FAILGROUP oracledisk02 DISK<br />
'/dev/oracleasm/disks/ORACLEDISK01_SEC' NAME ORADISK02_PRI,<br />
'/dev/oracleasm/disks/ORACLEDISK02_SEC' NAME ORADISK02_SEC<br />
ATTRIBUTE 'au_size'='4M',<br />
'compatible.asm' = '11.2.0.2.0',<br />
'compatible.rdbms' = '11.2.0.2.0',<br />
'compatible.advm' = '11.2.0.2.0'; 2 3 4 5 6 7 8 9 10 11<br />
CREATE DISKGROUP oracledata NORMAL REDUNDANCY<br />
*<br />
ERROR at line 1:<br />
ORA-15018: diskgroup cannot be created<br />
ORA-15031: disk specification '/dev/oracleasm/disks/ORACLEDISK02_SEC' matches no disks<br />
ORA-15014: path '/dev/oracleasm/disks/ORACLEDISK02_SEC' is not in the discovery set<br />
ORA-15031: disk specification '/dev/oracleasm/disks/ORACLEDISK01_SEC' matches no disks<br />
ORA-15014: path '/dev/oracleasm/disks/ORACLEDISK01_SEC' is not in the discovery set<br />
ORA-15031: disk specification '/dev/oracleasm/disks/ORACLEDISK02_PRI' matches no disks<br />
ORA-15014: path '/dev/oracleasm/disks/ORACLEDISK02_PRI' is not in the discovery set<br />
ORA-15031: disk specification '/dev/oracleasm/disks/ORACLEDISK01_PRI' matches no disks<br />
ORA-15014: path '/dev/oracleasm/disks/ORACLEDISK01_PRI' is not in the discovery set<br />
<br />
<span style="background-color: white;"></span><br />
SQL></div>
<div>
<br /></div>
<div>
The above step failed, because, it is configured using asmlib. We will have to use <a href="https://oracle-base.com/articles/linux/udev-scsi-rules-configuration-in-oracle-linux">UDEV</a> for the above disk group creation command to be successful.<br />
<br />
<span style="background-color: yellow;">SQL> CREATE DISKGROUP oracledata NORMAL REDUNDANCY</span><br />
<span style="background-color: yellow;">FAILGROUP oracledisk01 DISK</span><br />
<span style="background-color: yellow;">'ORCL:ORACLEDISK01_PRI' NAME ORADISK01_PRI,</span><br />
<span style="background-color: yellow;">'ORCL:ORACLEDISK02_PRI' NAME ORADISK01_SEC</span><br />
<span style="background-color: yellow;">FAILGROUP oracledisk02 DISK</span><br />
<span style="background-color: yellow;">'ORCL:ORACLEDISK01_SEC' NAME ORADISK02_PRI,</span><br />
<span style="background-color: yellow;">'ORCL:ORACLEDISK02_SEC' NAME ORADISK02_SEC</span><br />
<span style="background-color: yellow;"> 2 3 4 5 6 7 8 ATTRIBUTE 'au_size'='4M',</span><br />
<span style="background-color: yellow;">'compatible.asm' = '11.2.0.2.0',</span><br />
<span style="background-color: yellow;">'compatible.rdbms' = '11.2.0.2.0',</span><br />
<span style="background-color: yellow;">'compatible.advm' = '11.2.0.2.0'</span><br />
<span style="background-color: yellow;">/ 9 10 11 12</span><br />
<span style="background-color: yellow;"><br /></span>
<span style="background-color: yellow;">Diskgroup created.</span><br />
<span style="background-color: yellow;"><br /></span>
<span style="background-color: yellow;">SQL></span></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<b style="background-color: yellow; color: red; text-decoration: underline;">Step 7 </b><span style="background-color: white; color: red;"> </span><span style="background-color: white;">Now the diskgroup is successfully created. Let us verify the disk on the ASM instance.</span><br />
<span style="background-color: white;"><br /></span>
First let us check the disk status on both node.</div>
<div>
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMQdl0q009OALbsxxWmbruaYkNELpJTfaI5IgC9XkOGuTBNhHMXes9JKXLWIJy8RNffQG8SaJAgn-7_AXJm1MJuqnerxmV25Se5A8l93CIi8wppafYXYfEPSDjRg8g5d61bvUAo-vTEBs/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="174" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMQdl0q009OALbsxxWmbruaYkNELpJTfaI5IgC9XkOGuTBNhHMXes9JKXLWIJy8RNffQG8SaJAgn-7_AXJm1MJuqnerxmV25Se5A8l93CIi8wppafYXYfEPSDjRg8g5d61bvUAo-vTEBs/s320/1.png" width="320" /></a></div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Oh.. The disk group status shows DISMOUNTED on second node. Let us mount the database now.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNvWiYYVDcEgcwHniuh5J5ItyV_bpt2eqbyXrKTuoONOugd7un6WD3HtocthaZJ7yz8MTxYYN4Gae_UFOUufgpLkH8p5zc7YB7ldv3Ict4hD7PMVhOAwNYpw_4uyCdJKIFGtzucI3t2zA/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="174" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNvWiYYVDcEgcwHniuh5J5ItyV_bpt2eqbyXrKTuoONOugd7un6WD3HtocthaZJ7yz8MTxYYN4Gae_UFOUufgpLkH8p5zc7YB7ldv3Ict4hD7PMVhOAwNYpw_4uyCdJKIFGtzucI3t2zA/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br />
<br />
<br />
<br />
<br />
<br />
Now both node looks good.<br />
<br />
let us check the more info about the disk and diskgroup.<br />
<br />
Query to check the diskspace :<br />
<br />
<span style="background-color: yellow;">select name Diskgroup,</span><br />
<span style="background-color: yellow;">round(total_mb/1024,2) "Total_TB",</span><br />
<span style="background-color: yellow;">round(free_mb/1024,2) "Free_GB",</span><br />
<span style="background-color: yellow;">round(((free_mb/total_mb)*100),2) "Available%" </span><br />
<span style="background-color: yellow;">from v$asm_diskgroup where name='ORACLEDATA';</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6oIxf13DCf9TR-0VESp-F6ivezwFzuzLYYquj2Eu2KXN3Fi-PMHOI4wd5TLyWhif7D1dWxslAuD49ubFhQU36EnYuSJxhQJDxHTDxkmwR70CdxG-t0xZbQk3UWyRlg2oJMXcmsN7bEjI/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6oIxf13DCf9TR-0VESp-F6ivezwFzuzLYYquj2Eu2KXN3Fi-PMHOI4wd5TLyWhif7D1dWxslAuD49ubFhQU36EnYuSJxhQJDxHTDxkmwR70CdxG-t0xZbQk3UWyRlg2oJMXcmsN7bEjI/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Query to check the disk status info.<br />
<br />
<span style="background-color: yellow;"><br /></span>
<span style="background-color: yellow;">select dg.inst_id, </span><br />
<span style="background-color: yellow;">dg.name dg_name, </span><br />
<span style="background-color: yellow;">dg.state dg_state, </span><br />
<span style="background-color: yellow;">dg.type, </span><br />
<span style="background-color: yellow;">d.MOUNT_STATUS, </span><br />
<span style="background-color: yellow;">d.HEADER_STATUS H_status, </span><br />
<span style="background-color: yellow;">d.MODE_STATUS,</span><br />
<span style="background-color: yellow;">d.FAILGROUP ,</span><br />
<span style="background-color: yellow;">d.DISK_NUMBER dsk_no </span><br />
<span style="background-color: yellow;">FROM GV$ASM_DISK d, </span><br />
<span style="background-color: yellow;">Gv$asm_diskgroup dg</span><br />
<span style="background-color: yellow;">where dg.inst_id=d.inst_id </span><br />
<span style="background-color: yellow;">and dg.group_number(+)=d.group_number </span><br />
<span style="background-color: yellow;">and dg.name='ORACLEDATA'</span><br />
<span style="background-color: yellow;">/</span><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF9LbFtGc6TGxHoJnCciQ4Zbyxqwx8QVO_hufqtLw5P6-qzHbXEQeGm1v4A1Av6eyBS8-5h3fOkw2GWYJVsOwrIAM9KcmeGC5lbzmedmNH2thBplGuoe1ALVN3AMbJ298eB0r2pTQ8uzY/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="193" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF9LbFtGc6TGxHoJnCciQ4Zbyxqwx8QVO_hufqtLw5P6-qzHbXEQeGm1v4A1Av6eyBS8-5h3fOkw2GWYJVsOwrIAM9KcmeGC5lbzmedmNH2thBplGuoe1ALVN3AMbJ298eB0r2pTQ8uzY/s320/1.png" width="320" /></a></div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Now we are done with creating the diskgroup. Now we can use the diskgroup for database!</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-16845094258617743922015-10-13T08:29:00.000-07:002015-10-13T08:35:46.188-07:00Registering archive logfiles manually on a standby database<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">Some time, the standby database might go far behind with primary database. One of the reason, the archive logs are not shipping to standby database quickly due to network issue. There may be several archive logs are waiting in standby location for one archive log file. </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;">For instance, Archive log sequence # 100 is not
shipped to standby location. But other archive logs(sequence#101 to
sequence#200) were shipped to standby and it is waiting to ship the sequence#
100.<span style="mso-spacerun: yes;"> </span>In this scenario, DBA can copy the
archive log file and register manually. Once manually registered, the
sequence#101 to sequence#200 will apply automatically on standby database.</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;"> </span><b style="mso-bidi-font-weight: normal;"><u><span style="background: yellow; color: red; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step 1</span></u></b></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;">Let us assume, the archive log file devdb12_1_283_801988635.arc
is not shipped to standby due to some reason. Copy the archive log file devdb12_1_283_801988635.arc
manually from primary to standby archive destination location.</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><b style="mso-bidi-font-weight: normal;"><u><span style="background: yellow; color: red; font-family: "Courier New"; font-size: 10pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><b style="mso-bidi-font-weight: normal;"><u><span style="background: yellow; color: red; font-family: "Courier New"; font-size: 10pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step</span></u></b><b style="mso-bidi-font-weight: normal;"><u><span style="color: red; font-family: "Courier New"; font-size: 10pt; mso-fareast-language: ZH-CN;"> 2</span></u></b></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;">Run the below command in standby database.</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="font-family: "Courier New"; font-size: 9pt; mso-fareast-language: ZH-CN;"> </span><span style="background: silver; font-family: "Courier New"; font-size: 9pt; mso-fareast-language: ZH-CN; mso-highlight: silver;">ALTER
DATABASE REGISTER LOGFILE '/dbArch/oradata/devdb12/</span><span style="background: silver; font-size: 9pt; mso-highlight: silver;"> </span><span style="background: silver; font-family: "Courier New"; font-size: 9pt; mso-fareast-language: ZH-CN; mso-highlight: silver;">devdb12_1_<b style="mso-bidi-font-weight: normal;"><span style="color: red;">283</span></b>_801988635.arc';</span></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif;"><b style="mso-bidi-font-weight: normal;"><u><span style="background: yellow; color: red; font-family: "Courier New"; font-size: 10pt; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step</span></u></b><b style="mso-bidi-font-weight: normal;"><u><span style="color: red; font-family: "Courier New"; font-size: 10pt; mso-fareast-language: ZH-CN;"> 3</span></u></b></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;">Verify the standby database and see if the copied
archive log file is applied.</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;"> </span></div>
<span style="background: silver; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN; mso-highlight: silver;">Select
sequence#,applied from v$archived_log where sequence# >= 283</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="margin: 0in 0in 0pt;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt; mso-fareast-language: ZH-CN;">Monitor the alert log and keep watch the archive log files shipment.</span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-64087338899872515962015-10-10T19:22:00.001-07:002015-10-10T20:12:02.220-07:00Oracle Data Guard fail over using Broker<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
This topic demonstrates how to fail over on Oracle 11g data guard environment.<br />
<br /></div>
<div class="MsoNormal">
The below scenario is tested in 11.2.0.4 version. The following database is used for fail over testing.</div>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; margin-left: 4.7pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 220px;">
<tbody>
<tr style="height: 15.75pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td nowrap="" style="background: yellow; border: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 94.0pt;" valign="bottom" width="125"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;">Data Guard</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
<td nowrap="" style="background: yellow; border-left: none; border: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 71.2pt;" valign="bottom" width="95"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;">Database</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr style="height: 15.75pt; mso-yfti-irow: 1;">
<td nowrap="" style="border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 94.0pt;" valign="bottom" width="125"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;">Primary</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
<td nowrap="" style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 71.2pt;" valign="bottom" width="95"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;">devdb12</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr style="height: 15.75pt; mso-yfti-irow: 2; mso-yfti-lastrow: yes;">
<td nowrap="" style="border-top: none; border: solid windowtext 1.0pt; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 94.0pt;" valign="bottom" width="125"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;">Standby</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
<td nowrap="" style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.75pt; padding: 0in 5.4pt 0in 5.4pt; width: 71.2pt;" valign="bottom" width="95"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-size: 12.0pt; mso-ascii-font-family: Calibri; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;">devdb12_dg</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
The manual fail over is tested from primary(devdb12) to
standby(devdb12_dg). </div>
<div class="MsoNormal">
<br />
<span style="background-color: yellow;">Things to check prior to fail over :</span><br />
<br />
<div style="text-align: left;">
Make sure, application is down and no application connection on the database.<br />
<br />
Verify the data guard replication and see standby is close to primary. we need to ensure that, all the archive logs are shipped to standby and applied successfully. If not, then there will be data loss after fail over.<br />
<br />
If we have multiple standby, then it is better to choose the standby which has highest log sequence# to minimize the data loss.</div>
<div>
<br /></div>
</div>
<div class="MsoNormal">
<span style="background-color: yellow;">Generally Fail over can be done for the following
circumstances</span></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li>Primary is crashed</li>
<li>Primary is not performing well</li>
<li>Primary database is in mount mode and not able to open the database </li>
</ul>
<span style="background-color: yellow;">Prerequisite : </span>The data guard broker should be configured on the database. <a href="http://www.myorastuff.blogspot.com/2015/10/how-to-configure-data-guard-broker_9.html">Click</a> here to review the broker configuration steps in case you need.<br />
<br />
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">>dgmgrl</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">DGMGRL for Linux: Version 11.2.0.3.0 - 64bit Production</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Copyright (c) 2000, 2009, Oracle. All rights reserved.</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Welcome to DGMGRL, type "help" for information.</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">DGMGRL> connect /</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Connected.</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">DGMGRL> show configuration;</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Configuration - devdb12_dg_broker</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"> Protection Mode: MaxPerformance</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"> Databases:</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"> chfsdb43 - Primary database</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"> Error: ORA-16810: multiple errors or warnings detected for the database</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"> devdb12_dg - Physical standby database</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Fast-Start Failover: DISABLED</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Configuration Status:</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">ERROR</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"><span style="background-color: white;">DGMGRL></span><span style="background-color: yellow;"> <span style="color: red;"><b>failover to devdb12_dg;</b></span></span></span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Performing failover NOW, please wait...</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Error: ORA-16798: unable to complete recovery during failover</span></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Failed.</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Unable to failover</span></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"><span style="background-color: white;">DGMGRL> </span><span style="background-color: yellow;"><b><span style="color: red;">failover to devdb12_dg immediate;</span></b></span></span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Performing failover NOW, please wait...</span></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">Failover succeeded, new primary is "devdb12_dg"</span></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">
<div style="background-color: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;">DGMGRL> exit</span></span></div>
<div style="background-color: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"><br /></span></span></div>
<div style="background-color: white;">
<span style="font-family: Courier New;"><span style="font-size: 13.3333px;"><br /></span></span></div>
<span style="font-family: Courier New;"><span style="background-color: #fff2cc; font-size: 13.3333px;"><br /></span></span>
<span style="font-family: Courier New;"><span style="background-color: #fff2cc; font-size: 13.3333px;">After fail over, we need to rebuild the standby or flash back to prior stage and apply the archive log files.</span></span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-18739520065178375312015-10-10T15:45:00.001-07:002015-10-10T20:12:51.893-07:00Oracle Data Guard switch over using Broker<div dir="ltr" style="text-align: left;" trbidi="on">
I am covering switch over steps(using Broker) on this topic. The below step is tested in Oracle 11.2.0.4 version.<br />
<br />
<span style="background-color: yellow;">Primary database : devdb12</span><br />
<span style="background-color: yellow;">Standby database : devdb12_dg</span><br />
<br />
Just in case if you want to do manual switch over, refer this <a href="http://www.myorastuff.blogspot.com/2015/08/oracle11g-data-guard-manual-switch-over_21.html">Click</a><br />
<br />
Prerequisite : The data guard broker should be configured on the database. <a href="http://www.myorastuff.blogspot.com/2015/10/how-to-configure-data-guard-broker_9.html">Click</a> here to review the broker configuration steps in case you need. Also double check the archive log files and make sure standby is not behind. Otherwise, switch over might take long time and it will cause longer application outage.<br />
<br />
<span style="background-color: yellow; color: red;"><b>Step 1</b></span> Just make sure application is down and no other connection on the database.<br />
<br />
Run this query and verify the DB connections.<br />
<br />
<span style="background-color: yellow;">select count(*),username from v$session</span><br />
<span style="background-color: yellow;">group by username;</span><br />
<br />
<div class="MsoNormal">
Some times, if
there is a lot of activity on the database, oracle LOCAL process’ may
optionally be killed. Here is the sample script using example of
chfdallindb41/42.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
$tokill=`ps -ef
| grep LOCAL=NO | grep -v grep | awk '{print $2}'`; echo $tokill;<o:p></o:p></div>
<div class="MsoNormal">
6809 6811 6813 6815
6817 6819 6873 6941<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
$tokill=`ps -ef
| grep LOCAL=NO | grep -v grep | awk '{print $2}'`; kill -9 $tokill;</div>
<div class="MsoNormal">
<o:p></o:p></div>
<br />
<b style="background-color: yellow;"><span style="color: red;">Step 2</span></b> Login to devdb12 and connect as sys using broker<br />
<br />
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">switchover to devdb12_dg ;</span><o:p></o:p></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpClVv6u-N6E7WlrEoEz3pc2DRSTLYy0eygZsAhwPlsWnchpIkWpKvMTUTojF8xbj5qGj9-bRDcYzIT8CTnSYMVxh6SvdbcG2O4tnhhOt1OM2h0AP-zpAkR5lylQlLUnIjeH3UaKroaIQ/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="109" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpClVv6u-N6E7WlrEoEz3pc2DRSTLYy0eygZsAhwPlsWnchpIkWpKvMTUTojF8xbj5qGj9-bRDcYzIT8CTnSYMVxh6SvdbcG2O4tnhhOt1OM2h0AP-zpAkR5lylQlLUnIjeH3UaKroaIQ/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
Watch out the alert log and make sure replicating the data between devdb12_dg to devdb12.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b style="background-color: yellow;"><span style="color: red;">Step 3</span></b> It is optional step. Just in case if you want to switch back to old primary.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">switchover to devdb12<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjONJZpNgqKqbHZQP981rOpJwBIoYn6awLugU7T-skkDNi2uTlo1h0o1OLn45jT-_1hZLvY8CTFwslY3vbA2RyLW3pgXgUNFTEbsXQaaQXWaxD-72q2k_r7v75oHuVHVhktTeFK9kEq8Sg/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="96" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjONJZpNgqKqbHZQP981rOpJwBIoYn6awLugU7T-skkDNi2uTlo1h0o1OLn45jT-_1hZLvY8CTFwslY3vbA2RyLW3pgXgUNFTEbsXQaaQXWaxD-72q2k_r7v75oHuVHVhktTeFK9kEq8Sg/s320/2.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br />
Watch out the alert log and make sure replicating the data between devdb12 to devdb12_dg.</div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-21675221786905869332015-10-09T10:00:00.000-07:002015-10-09T11:59:04.934-07:00How to Configure the Data Guard broker?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><span style="background-color: #fff2cc;">Data Guard broker is a nice tool to switch over and fail over the database in data guard environment. </span></span><span style="background-color: #fff2cc;">Using data guard broker is like a driving a car with navigation system. Hence, if broker fails in the middle of switch over, then we don't know where we are and we got to troubleshoot and see which step it failed.</span></div>
<div class="MsoNormal">
<span style="background-color: #fff2cc;"><br /></span></div>
<div class="MsoNormal">
<span style="background-color: #fff2cc;">I personally use manual switch over and of course there are some database i use broker too.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
How do we configure the broker? Please follow these steps.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
My Database info :</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background-color: yellow;">Primary database devdb12</span></div>
<div class="MsoNormal">
<span style="background-color: yellow;">Standby database devdb12_dg</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step 1</span></u></b><span style="color: red; mso-fareast-language: ZH-CN;">
</span><span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Configuring the
broker parameters<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Set initialization parameter DG_BROKER_START to a
value of TRUE on <b><u><span style="background: yellow; color: red; mso-highlight: yellow;">both databases</span></u></b>
so that Data Guard Broker background process (DMON) would start automatically
whenever a Data Guard configuration was successfully implemented.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">ALTER SYSTEM SET dg_broker_start = TRUE;<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6Yh2ABtaGMLMDICv4P7dnPA6hyt2HyiFn6ThYsYshoZnAuMN2Uyqo62-_eCEoWSuyvrZudQpdjAmGhQxszSLU1MMR_b855xIny200-x805GisM7Ke-sR_8sn0BlJOx4AAROSWVe3rbx0/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="73" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6Yh2ABtaGMLMDICv4P7dnPA6hyt2HyiFn6ThYsYshoZnAuMN2Uyqo62-_eCEoWSuyvrZudQpdjAmGhQxszSLU1MMR_b855xIny200-x805GisM7Ke-sR_8sn0BlJOx4AAROSWVe3rbx0/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /><!--[endif]--></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-ansi-language: EN-US; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Broker creates two data file to store the
information. It creates on the default directory$ORACLE_HOME/dbs. We can also change the directory by using the
below command.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">alter system set dg_broker_config_file1 =
'/data01/dbArch/' scope=both;<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">alter system set dg_broker_config_file2 =
'/data01/dbArch/' scope=both;<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step </span></u></b><b><u><span style="color: red; mso-fareast-language: ZH-CN;">2</span></u></b><span style="color: red; mso-fareast-language: ZH-CN;"> </span><span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Configuring the
listener.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">During actions like a swichtover and a failover the
Dataguard Broker interface will stop and start the instances. The Dataguard
Broker Interface needs static registration of the databases in the listener.ora
files. The required format is db_unique_name_DGMGRL[.db_domain].<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">The below entry should be in primary database
listener.ora file. Listener should be up and running.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">LISTENER =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (DESCRIPTION_LIST =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (DESCRIPTION =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ADDRESS = (PROTOCOL =
TCP)(HOST = 99.999.99.999)(PORT = 1521))<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ADDRESS = (PROTOCOL =
IPC)(KEY = EXTPROC1521))<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">SID_LIST_LISTENER =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_LIST =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_DESC =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (GLOBAL_DBNAME = devdb12)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ORACLE_HOME =
/ora/app/oracle/product/11.2.0/db_1)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_NAME = devdb12)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_DESC =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (GLOBAL_DBNAME =
devdb12_dgmgrl)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ORACLE_HOME =
/ora/app/oracle/product/11.2.0/db_1)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_NAME = devdb12)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">)</span><span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">The below entry should be in standby database
listener.ora file. Listener should be up and running.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">LISTENER =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (DESCRIPTION_LIST =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (DESCRIPTION =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ADDRESS = (PROTOCOL =
TCP)(HOST = <span style="font-size: 13.3333px;">99.999.99.999</span>)(PORT = 1521))<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ADDRESS = (PROTOCOL =
IPC)(KEY = EXTPROC1521))<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">SID_LIST_LISTENER =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_LIST =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_DESC =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (GLOBAL_DBNAME = devdb12_dg)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ORACLE_HOME =
/ora/app/oracle/product/11.2.0/db_1)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_NAME = devdb12_dg)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_DESC =<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (GLOBAL_DBNAME =
devdb12_dg_dgmgrl)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (ORACLE_HOME =
/ora/app/oracle/product/11.2.0/db_1)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> (SID_NAME = devdb12_dg)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"> )<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">)<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step </span></u></b><b><u><span style="color: red; mso-fareast-language: ZH-CN;">3</span></u></b><span style="color: red; mso-fareast-language: ZH-CN;"> </span><span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Create the broker
for primary database. This command can be executed <b><span style="background: yellow; color: red; mso-highlight: yellow;">only</span></b>
on primary database. Use the CREATE
CONFIGURATION command to initialize a Data Guard Broker configuration named devdb12_broker,
and confirm its creation with the SHOW CONFIGURATION command:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver;">create
configuration 'devdb12_broker' as<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver;">primary
database is devdb12<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver;">connect
identifier is devdb12;</span><span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhmZ_63GR7kQunW6B-ff79_YjZ4HMgE20_eag8haEdvFvZMhqO0V7mn-vpkhQzF4Ma2X3ShlZMQZ2Fsc3nx4u33z-jjzoRPZi1vNRS32V-yS5uiA2aIUPa7LpzuIqWTVz7i_K0YMS4oJU/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="64" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhmZ_63GR7kQunW6B-ff79_YjZ4HMgE20_eag8haEdvFvZMhqO0V7mn-vpkhQzF4Ma2X3ShlZMQZ2Fsc3nx4u33z-jjzoRPZi1vNRS32V-yS5uiA2aIUPa7LpzuIqWTVz7i_K0YMS4oJU/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;">show configuration</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUkV1rVIoLlryKy9Dnv9EjauwWgMm6fFXiuEkN8imOaBh7aEHcy-K1dxNHr9OVSLs3ELu7SreP3wn80V3yItXMrdQYckMFb8AmiEz_OksOT1sZCSwmlkr0F54ZMCydtUJ9OfSos0B_o6o/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUkV1rVIoLlryKy9Dnv9EjauwWgMm6fFXiuEkN8imOaBh7aEHcy-K1dxNHr9OVSLs3ELu7SreP3wn80V3yItXMrdQYckMFb8AmiEz_OksOT1sZCSwmlkr0F54ZMCydtUJ9OfSos0B_o6o/s1600/1.png" /></a></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><o:p><br /></o:p></span></div>
<div class="MsoNormal">
<a href="https://www.blogger.com/null" name="_Toc279672558"></a><a href="https://www.blogger.com/null" name="_Toc277515449"></a><span style="background: #D9D9D9; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><!--[if gte vml 1]><v:shape id="_x0000_i1027"
type="#_x0000_t75" style='width:206.25pt;height:136.5pt'>
<v:imagedata src="file:///C:\Users\Govind\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step </span></u></b><b><u><span style="color: red; mso-fareast-language: ZH-CN;">4</span></u></b> Add the broker for standby database. This
command can be excuted <b><span style="background: yellow; color: red; mso-highlight: yellow;">only</span></b> on primary
database. If we have three standby then, we need to add broker config for three
times on the primary database.<span style="background: silver; mso-highlight: silver;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: silver; mso-fareast-language: ZH-CN; mso-highlight: silver;">add database devdb12_dg as<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: silver; mso-fareast-language: ZH-CN; mso-highlight: silver;"> connect
identifier is devdb12_dg<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: silver; mso-fareast-language: ZH-CN; mso-highlight: silver;"> maintained
as physical;</span><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhjpBScOrurA-UQTbZQKsGyl1MXKATPgb6UtFV30QO5-zCxGtmX2WiZ3Uk7qRSRScgX4iWNzqwCDMMnyFUiLo3-_UGLWJL-q7mzrODPMelvR2-6p846XBbTGA9mUyY0XhhyphenhyphenAXjgtGxs5U/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhjpBScOrurA-UQTbZQKsGyl1MXKATPgb6UtFV30QO5-zCxGtmX2WiZ3Uk7qRSRScgX4iWNzqwCDMMnyFUiLo3-_UGLWJL-q7mzrODPMelvR2-6p846XBbTGA9mUyY0XhhyphenhyphenAXjgtGxs5U/s1600/1.png" /></a></div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<o:p><br /></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span>
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;">show configuration</span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZblqyAJ2ZnntXdIOn9SlGFGztKxzPA7RXDKtcqu-qKUyrTBWUhN9SHUiEP687ozqSqxKwleJhq-W1Mxo2TVQX20HVXBADOR3sYBSq1pQBDIEYhLCOLO61AeUBfzjzxvyftb6_wXrBc70/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZblqyAJ2ZnntXdIOn9SlGFGztKxzPA7RXDKtcqu-qKUyrTBWUhN9SHUiEP687ozqSqxKwleJhq-W1Mxo2TVQX20HVXBADOR3sYBSq1pQBDIEYhLCOLO61AeUBfzjzxvyftb6_wXrBc70/s320/1.png" width="320" /></a></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: silver; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-highlight: silver; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;"><br /></span></u></b></div>
<div class="MsoNormal">
<b><u><span style="background: yellow; color: red; mso-fareast-language: ZH-CN; mso-highlight: yellow;">Step </span></u></b><b><u><span style="color: red; mso-fareast-language: ZH-CN;">5</span></u></b> Enabling
the broker<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;">Issue the ENABLE CONFIGURATION command to activate
the configuration and then confirm the successful activation of the primary and
standby databases via the SHOW DATABASE command:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">enable configuration;<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-language: ZH-CN;"><!--[if gte vml 1]><v:shape id="_x0000_i1030"
type="#_x0000_t75" style='width:177pt;height:21pt'>
<v:imagedata src="file:///C:\Users\Govind\AppData\Local\Temp\msohtmlclip1\01\clip_image011.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUlrKLdklYWKI5hZoVj9NT92nKyayGkeccxAS8DqiLko5sdazsk4WamLqhd8ELe040V-pKRrtoJyAwvdY9FJqm9JMRWUK1-tBsQM3xo-YS-azMQe6eLrp5421uYnChMK1Lv3AA6fzpkOQ/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUlrKLdklYWKI5hZoVj9NT92nKyayGkeccxAS8DqiLko5sdazsk4WamLqhd8ELe040V-pKRrtoJyAwvdY9FJqm9JMRWUK1-tBsQM3xo-YS-azMQe6eLrp5421uYnChMK1Lv3AA6fzpkOQ/s1600/1.png" /></a></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<br />
<br />
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">show database devdb12</span><br />
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">show database devdb12_dg</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF3Bp8dTGC2TpvCOLTi4fvYLMsxWexob8NXjD9IBg11HNYATaubbAF0zQ5OYTc80AjL5ORgcE029E6zPESWZg35LaqJloTBzhm6xrUdO741fLURRnp_vympMs0IybpkEB9iLmKuGN6tWA/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF3Bp8dTGC2TpvCOLTi4fvYLMsxWexob8NXjD9IBg11HNYATaubbAF0zQ5OYTc80AjL5ORgcE029E6zPESWZg35LaqJloTBzhm6xrUdO741fLURRnp_vympMs0IybpkEB9iLmKuGN6tWA/s320/2.png" width="318" /></a></div>
<br />
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><!--[if gte vml 1]><v:shape id="_x0000_i1031" type="#_x0000_t75"
style='width:210.75pt;height:271.5pt'>
<v:imagedata src="file:///C:\Users\Govind\AppData\Local\Temp\msohtmlclip1\01\clip_image013.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;">Show configuration<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="background: #D9D9D9; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-language: ZH-CN; mso-pattern: gray-15 auto; mso-shading: white;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfbhAEhRSEtvG0TwqEEk2E19pdjL9E4Th-cL0KIVRKk6Xl9BN-ylSrYg62sfTrLMLueIHqV55AVOocJ8DKXYsCGqKS6kxcshvXxrVP8quVxDz01o7PSadWLYG_j5-XuD7n2Kimlm5hFpw/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="178" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfbhAEhRSEtvG0TwqEEk2E19pdjL9E4Th-cL0KIVRKk6Xl9BN-ylSrYg62sfTrLMLueIHqV55AVOocJ8DKXYsCGqKS6kxcshvXxrVP8quVxDz01o7PSadWLYG_j5-XuD7n2Kimlm5hFpw/s320/3.png" width="320" /></a></div>
<div class="MsoNormal">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="background-color: #fff2cc;"><br /></span>
<span style="background-color: #fff2cc;"><br /></span><br />
<span style="background-color: #fff2cc;">Now you are done with Broker setup! :-)</span></div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0tag:blogger.com,1999:blog-599273791400702751.post-64621587242057521682015-10-08T18:58:00.000-07:002015-10-09T12:02:47.828-07:00Soft Link Versus Hard Link in Unix<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: Arial, Helvetica, sans-serif;">We all work on unix for long time. But many of us may not know the exact difference between soft link(symlink) and Hard Link. Today i am going to cover how to create and what is the difference between two.</span><br />
<br />
<div style="text-align: left;">
<span style="background-color: yellow; color: red; font-weight: bold;">Soft Link(Symlink) </span><span style="background-color: #fff2cc;"><span style="font-family: Arial, Helvetica, sans-serif;">Soft link is like shortcut in windows. It is pointer to another file. Soft Link creates new file with new inode </span><span style="font-family: Arial, Helvetica, sans-serif;"><span style="color: #111111; font-size: 14px; line-height: 21.994px; text-align: justify;"> </span><span style="color: #111111; font-size: 14px; line-height: 21.994px; text-align: justify;">which has the pointer to the inode location of the original file. </span></span></span></div>
<div style="text-align: left;">
<span style="background-color: #fff2cc;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">The below diagram explain how soft link works.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL3E5BSDFe92veupo5YKKWHclIc6tmAcglKsrmXD85tvvx5MKb6bKtVS2e84WhZMOmKZnJj5zXeEUgD4bCuil56nTetJqtrIIR5WJOhBsp2JL896up1o09XpxZ7g6nRUJ95Qf-w6X0nA4/s1600/soft_link.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL3E5BSDFe92veupo5YKKWHclIc6tmAcglKsrmXD85tvvx5MKb6bKtVS2e84WhZMOmKZnJj5zXeEUgD4bCuil56nTetJqtrIIR5WJOhBsp2JL896up1o09XpxZ7g6nRUJ95Qf-w6X0nA4/s320/soft_link.png" width="293" /></a></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: justify;">
<span style="color: #111111; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: #fff2cc; font-size: 14px; line-height: 21.994px;">Here is an example to create soft link.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG5QkmggCqUFLUXQj346nnokN1oTBUZ8mLNbRvZHYlslAcf56v7prhP3AQ2LJPa81uzzlPd1He3umx3j73hjmjV8InhdC2zrVoRZzSH3sm9Tje_Jw2hFcy3nhpys9wTby6E42xOGVZ0YA/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="98" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG5QkmggCqUFLUXQj346nnokN1oTBUZ8mLNbRvZHYlslAcf56v7prhP3AQ2LJPa81uzzlPd1He3umx3j73hjmjV8InhdC2zrVoRZzSH3sm9Tje_Jw2hFcy3nhpys9wTby6E42xOGVZ0YA/s320/1.png" width="320" /></a></div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; color: #111111; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; color: #111111; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; color: #111111; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></span>
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: white; color: #111111; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span><br />
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">The soft link will be invalid if we delete or move the original file to different location. </span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn-7zTBmpnEjsbQu6e1yY3ptYChFsIH0YIymFufddZFUFng6YncKo6H5H1ie5ZJj5emkVKi-xwfNzXYyeb8p0qRQlwfvJltL1Rt45Lo00OO6SoN9EGoSCEQqx7CIqyMAjm5awJdo9zzJc/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="139" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn-7zTBmpnEjsbQu6e1yY3ptYChFsIH0YIymFufddZFUFng6YncKo6H5H1ie5ZJj5emkVKi-xwfNzXYyeb8p0qRQlwfvJltL1Rt45Lo00OO6SoN9EGoSCEQqx7CIqyMAjm5awJdo9zzJc/s320/1.png" width="320" /></a></div>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<br />
<br />
<br />
<span style="background-color: #fff2cc;">Soft link can also be pointer to different file system or directory.</span><br />
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqR0J67YooZUDxHp4pfCw5ncYg-ZQlpJi6FFXfxNDbk9X99u7MBlPu7YnOwI1aMWdPZ0XT7uMnn7GtbipNT1pxh3Oi22W_yKzU56HD7_8TmpsGNdqhopLyHk3bhwSPf_z3b-pFQUeyrCg/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="129" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqR0J67YooZUDxHp4pfCw5ncYg-ZQlpJi6FFXfxNDbk9X99u7MBlPu7YnOwI1aMWdPZ0XT7uMnn7GtbipNT1pxh3Oi22W_yKzU56HD7_8TmpsGNdqhopLyHk3bhwSPf_z3b-pFQUeyrCg/s320/1.png" width="320" /></a></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtRA6a78p0TpjoaARHAE8VTWv223yueXuHixTBfVG-TWcRPPPp63pD130EGwpPeBddIV_59TjgzcM_suZ0VPFBJAYEdFCAkk73R84ibav1MhrPP8VetZEoLJmxEwIOU15IeyI8OKzHlS8/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="115" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtRA6a78p0TpjoaARHAE8VTWv223yueXuHixTBfVG-TWcRPPPp63pD130EGwpPeBddIV_59TjgzcM_suZ0VPFBJAYEdFCAkk73R84ibav1MhrPP8VetZEoLJmxEwIOU15IeyI8OKzHlS8/s320/2.png" width="320" /></a></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span></div>
<div style="text-align: left;">
<br />
<span style="background-color: yellow; color: red; font-weight: bold;"><br /></span>
<span style="background-color: yellow; color: red; font-weight: bold;">Hard Link </span><span style="background-color: #fff2cc;">Hard Link is bit different than the soft link. It reference the inode directly on the disk. The hard link will not break if we move the original files to different location or delete the original file. We can create the hardlink only for files(not directories) . </span><br />
<span style="background-color: #fff2cc;"><br />
The below diagram explain how the hard link works!</span><br />
<span style="background-color: white;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRWspqSK3a72a7DPwCgGU_9Doe-_dqL8oop5AEHe63-pUK7Dwg4obuM6jCOQ3H5Rjn7s1AQK763-VsoyexuCiwB4shCLsEIzjtFC03OofCqn-OIKVdCkfBFdUlFF998QwrOzddqik5XCs/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRWspqSK3a72a7DPwCgGU_9Doe-_dqL8oop5AEHe63-pUK7Dwg4obuM6jCOQ3H5Rjn7s1AQK763-VsoyexuCiwB4shCLsEIzjtFC03OofCqn-OIKVdCkfBFdUlFF998QwrOzddqik5XCs/s320/1.png" width="293" /></a></div>
<br />
<span style="background-color: yellow; color: red; font-weight: bold;"><br /></span></div>
<div style="text-align: left;">
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span><span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">Here is an example to create Hard link.</span><br />
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzWMKUwYDy877RQS-IYEsmgSDw_vWOAVzLKjHzgighJcq5tDn7ZSY0ZfpeFuJOXGdC6YAstoiIakqPc5z72EPm3lv94R4bCWDxz5elosCHMVe1KD2qoePpFdHJrftdG14FDj6mv1kZWYY/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="122" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzWMKUwYDy877RQS-IYEsmgSDw_vWOAVzLKjHzgighJcq5tDn7ZSY0ZfpeFuJOXGdC6YAstoiIakqPc5z72EPm3lv94R4bCWDxz5elosCHMVe1KD2qoePpFdHJrftdG14FDj6mv1kZWYY/s320/1.png" width="320" /></a></div>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span><br />
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">The hard link never be broken when we delete or move the original file to different location.</span><br />
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_F1SNlBMNpOzEyHO5m_u9UaDaWdjVOpbjxQPROYh0QL0N5NWqEfWxxzaRxIZ9dPGiPlU38fjtksgVel06MGzyeukCmHB9FaZxv3F680xD8ykxdoYPNbvUdGnfJwObVwVKYhRlXiqP2bU/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="186" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_F1SNlBMNpOzEyHO5m_u9UaDaWdjVOpbjxQPROYh0QL0N5NWqEfWxxzaRxIZ9dPGiPlU38fjtksgVel06MGzyeukCmHB9FaZxv3F680xD8ykxdoYPNbvUdGnfJwObVwVKYhRlXiqP2bU/s320/1.png" width="320" /></a></div>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /><span style="background-color: #fff2cc;"><br /></span></span><br />
<span style="color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><span style="background-color: #fff2cc;">Hard Link can not be created across the file system. but soft link does!</span></span><br />
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHC8TRIfzIyczLWQhrAvx8oHxGbBM3RNMFy68OmsOQ8T95Xs2GipK-WI1YMWz1OSIRQX_MQwNZdGle7KJz9v9bzLKGnv1hmfhECf4ldXeIF3CwF9n7LjIoBEQdWWEPg1To3bkecSUrNts/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="50" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHC8TRIfzIyczLWQhrAvx8oHxGbBM3RNMFy68OmsOQ8T95Xs2GipK-WI1YMWz1OSIRQX_MQwNZdGle7KJz9v9bzLKGnv1hmfhECf4ldXeIF3CwF9n7LjIoBEQdWWEPg1To3bkecSUrNts/s320/1.png" width="320" /></a></div>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span><br />
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">Hard Link can not be created for directories! but soft link does!</span><br />
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoW29uiN6J8CnhOl7M-VQGNSkfhosV2NNYlX5OCSfdHRQrmr71gdZITdLTycil-URxVPhi_Ul9ernxGksO52o-cynoCXu1JizmimlVVR4zZVDzSBPfvLle6OpEcrjZsoSQKwGoUY7aWR0/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="103" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoW29uiN6J8CnhOl7M-VQGNSkfhosV2NNYlX5OCSfdHRQrmr71gdZITdLTycil-URxVPhi_Ul9ernxGksO52o-cynoCXu1JizmimlVVR4zZVDzSBPfvLle6OpEcrjZsoSQKwGoUY7aWR0/s320/1.png" width="320" /></a></div>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span><br />
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">Now we have better idea how both links works.</span><br />
<span style="background-color: #fff2cc;"><span style="color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">Conclusion :</span></span><br />
<span style="background-color: #fff2cc;"><span style="color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">When to use Soft link?</span></span><br />
<br />
<ol style="text-align: left;">
<li><span style="color: #111111; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: yellow; font-size: 14px; line-height: 21.994px;">To create a link across the file system</span></span></li>
<li><span style="color: #111111; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: yellow; font-size: 14px; line-height: 21.994px;">To create the link for directories</span></span></li>
</ol>
<br />
<span style="background-color: white; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;"><br /></span>
<span style="background-color: #fff2cc; color: #111111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21.994px; text-align: justify;">When to use Hard link?</span><br />
<br />
<ol style="text-align: left;">
<li><span style="color: #111111; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: yellow; font-size: 14px; line-height: 21.994px;">In case if you want to move the file to some other location on the same file system</span></span></li>
<li><span style="color: #111111; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: yellow; font-size: 14px; line-height: 21.994px;">It does not create new file with different inode. Hence it takes less storage. </span></span></li>
<li><span style="color: #111111; font-family: Arial, Helvetica, sans-serif;"><span style="background-color: yellow; font-size: 14px; line-height: 21.994px;">Performance wise it is slightly better. since it is direct access</span></span></li>
</ol>
</div>
</div>
Govindhttp://www.blogger.com/profile/00856394547947096626noreply@blogger.com0