<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tech Blog</title>
	<atom:link href="http://newdelhitime.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://newdelhitime.wordpress.com</link>
	<description>Just another WordPress.com site</description>
	<lastBuildDate>Wed, 13 Apr 2011 19:17:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='newdelhitime.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Tech Blog</title>
		<link>http://newdelhitime.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://newdelhitime.wordpress.com/osd.xml" title="Tech Blog" />
	<atom:link rel='hub' href='http://newdelhitime.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Tech Time 01/31/2011</title>
		<link>http://newdelhitime.wordpress.com/2011/01/31/tech-time-01312011/</link>
		<comments>http://newdelhitime.wordpress.com/2011/01/31/tech-time-01312011/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 17:48:44 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=97</guid>
		<description><![CDATA[DBA Quick Tip of the week: Measuring Redo Generated One topic that DBAs frequently need to assess when planning for new projects such as 11g Data Guard and 11g Streams is how to calculate redo generated by an Oracle database. This is key to understand because redo generation affects throughput and performance with both standby [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=97&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>DBA Quick Tip of the week: Measuring Redo Generated<br />
One topic that DBAs frequently need to assess when planning for new projects such as 11g Data Guard and 11g Streams is how to calculate redo generated by an Oracle database. This is key to understand because redo generation affects throughput and performance with both standby databases and replication based activities. I am going to show you a quick and dirty way to calculate the amount of redo generated by an Oracle 11g database. To do so, you will need to run a new 11g Automatic Workload Repository (AWR) report either from Oracle Enterprise Manager or via the awrrpt.sql script.<br />
Second, your database must currently be licensed to use the AWR </p>
<p>Now lets examine our 11g AWR report:</p>
<p>WORKLOAD REPOSITORY report for</p>
<p>DB Name DB Id Instance Inst Num Startup Time Release RAC<br />
&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;<br />
BEN11G 3769640271 ben11g 1 18-Jun-09 15:17 11.1.0.6.0 NO</p>
<p>Host Name Platform CPUs Cores Sockets Memory(GB)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;- &#8212;&#8211; &#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
sandiego.localdo Linux IA (32-bit) 1 .99</p>
<p>Snap Id Snap Time Sessions Curs/Sess<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br />
Begin Snap: 24 04-Aug-09 12:55:42 37 1.2<br />
End Snap: 30 07-Aug-09 18:11:18 36 1.0<br />
Elapsed: 4,635.59 (mins)<br />
DB Time: 1.47 (mins)</p>
<p>Cache Sizes Begin End<br />
~~~~~~~~~~~ &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
Buffer Cache: 76M 76M Std Block Size: 8K<br />
Shared Pool Size: 156M 156M Log Buffer: 5,988K</p>
<p>Scroll down to the following section of the AWR report:</p>
<p>Load Profile Per Second Per Transaction Per Exec Per Call<br />
~~~~~~~~~~~~ &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;-<br />
DB Time(s): 0.0 0.0 0.00 0.03<br />
DB CPU(s): 0.0 0.0 0.00 0.03<br />
Redo size: 62.9 5,874.9<br />
Logical reads: 1.2 113.1<br />
Block changes: 0.3 31.5<br />
Physical reads: 0.0 2.0<br />
Physical writes: 0.0 2.0<br />
User calls: 0.0 1.0<br />
Parses: 0.1 9.9<br />
Hard parses: 0.0 0.1<br />
W/A MB processed: 8,664.4 808,959.0<br />
Logons: 0.0 0.3<br />
Executes: 0.2 18.8<br />
Rollbacks: 0.0 0.0<br />
Transactions: 0.0</p>
<p>Under the heading for Load Profile generated by the AWR, you can examine redo size generated by second, per transaction, per execution or per system call. So in our example above, we had a grand total of 62.9K of redo per second. We can correlate this to the V$ data dictionary performance views with the following SQL*PLUS script that queries against the V$LOG and V$DATABASE performance views:</p>
<p>SELECT Start_Date,<br />
Start_Time,<br />
Num_Logs,<br />
Round(Num_Logs * (Vl.Bytes / (1024 * 1024)),<br />
2) AS Mbytes,<br />
Vdb.NAME AS Dbname<br />
FROM (SELECT To_Char(Vlh.First_Time,<br />
&#8216;YYYY-MM-DD&#8217;) AS Start_Date,<br />
To_Char(Vlh.First_Time,<br />
&#8216;HH24&#8242;) || &#8216;:00&#8242; AS Start_Time,<br />
COUNT(Vlh.Thread#) Num_Logs<br />
FROM V$log_History Vlh<br />
GROUP BY To_Char(Vlh.First_Time,<br />
&#8216;YYYY-MM-DD&#8217;),<br />
To_Char(Vlh.First_Time,<br />
&#8216;HH24&#8242;) || &#8216;:00&#8242;) Log_Hist,<br />
V$log Vl,<br />
V$database Vdb<br />
WHERE Vl.Group# = 1<br />
ORDER BY Log_Hist.Start_Date,<br />
Log_Hist.Start_Time;</p>
<p>START_DATE START NUM_LOGS MBYTES DBNAME<br />
&#8212;&#8212;&#8212;- &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;<br />
2009-03-21 15:00 8 400 BEN11G<br />
2009-03-21 16:00 1 50 BEN11G<br />
2009-03-22 10:00 1 50 BEN11G<br />
2009-03-23 17:00 4 200 BEN11G<br />
2009-03-25 21:00 2 100 BEN11G<br />
2009-03-26 13:00 2 100 BEN11G<br />
2009-04-06 22:00 1 50 BEN11G</p>
<p>We can then take the number of redo logs from the NUM_LOGS column of the above query and multiply by size of each online redo log (ORL) file.</p>
<p>SQL&gt; select group#, members, bytes, archived, status<br />
2 from v$log<br />
3 ;</p>
<p>GROUP# MEMBERS BYTES ARC STATUS<br />
&#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212; &#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1 1 52428800 YES INACTIVE<br />
2 1 52428800 NO CURRENT<br />
3 1 52428800 YES INACTIVE</p>
<p>I will leave the math calculations up to you. </p>
<p>For those of you who cannot afford the AWR licensed option for 10g/11g, in this down economy, I will provide you with a low cost low tech way to figure out how much redo is generated by Oracle. </p>
<p>Another method to calculate redo generated for Oracle is to examine the pattern of log switches that occur within your Oracle database. Upon examination of your alert.log file, you can take a differential of log switches to assess exactly how much redo is generated at peak and idle times. </p>
<p>First lets perform some log switches in our test 11g database!</p>
<p>SQL&gt; alter system switch logfile;</p>
<p>System altered.</p>
<p>Note: we are using 11gR1 on Oracle Enterprise Linux 5.2 for the examples here. So we start a new ADRCI session</p>
<p>[oracle@sandiego ~]$ adrci</p>
<p>ADRCI: Release 11.1.0.6.0 &#8211; Beta on Fri Aug 7 18:41:22 2009</p>
<p>Copyright (c) 1982, 2007, Oracle. All rights reserved.</p>
<p>ADR base = &#8220;/u01/app/oracle&#8221;<br />
adrci&gt; show alert</p>
<p>Choose the alert log from the following homes to view:</p>
<p>1: diag/rdbms/ben11g/ben11g<br />
2: diag/clients/user_oracle/host_3399978961_11<br />
3: diag/clients/user_unknown/host_411310321_11<br />
4: diag/tnslsnr/sandiego/listener<br />
Q: to quit</p>
<p>2009-08-07 18:45:58.653000 -07:00<br />
Thread 1 advanced to log sequence 21<br />
Current log# 3 seq# 21 mem# 0: /u01/app/oracle/oradata/ben11g/redo03.log<br />
2009-08-07 18:46:03.171000 -07:00<br />
Thread 1 advanced to log sequence 22<br />
Current log# 1 seq# 22 mem# 0: /u01/app/oracle/oradata/ben11g/redo01.log<br />
Thread 1 cannot allocate new log, sequence 23<br />
Checkpoint not complete<br />
Current log# 1 seq# 22 mem# 0: /u01/app/oracle/oradata/ben11g/redo01.log<br />
2009-08-07 18:46:05.556000 -07:00<br />
Thread 1 advanced to log sequence 23<br />
Current log# 2 seq# 23 mem# 0: /u01/app/oracle/oradata/ben11g/redo02.log<br />
2009-08-07 18:46:07.060000 -07:00<br />
Thread 1 advanced to log sequence 24<br />
Current log# 3 seq# 24 mem# 0: /u01/app/oracle/oradata/ben11g/redo03.log<br />
2009-08-07 18:46:09.209000 -07:00<br />
Thread 1 advanced to log sequence 25<br />
Current log# 1 seq# 25 mem# 0: /u01/app/oracle/oradata/ben11g/redo01.log</p>
<p>So you can add up the total number of logs between log switches and divide by total time to obtain a rough estimate. </p>
<p>By understanding how to calculate redo generation, you will be prepared to understand one key component of planning for your Data Guard, Streams or replication environments as this will give you some idea on how much network bandwidth you will require to efficiently move the redo logs between source and target databases.</p>
<p>UPDATE: </p>
<p>Fellow Oracle professional, Coskan Gundogar provided a SQL script to examine redo log generation. Here is the sample output:</p>
<p>SQL*Plus: Release 11.1.0.6.0 &#8211; Production on Sun Aug 9 17:06:48 2009</p>
<p>Copyright (c) 1982, 2007, Oracle. All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 &#8211; Production<br />
With the Partitioning, OLAP, Data Mining and Real Application Testing options</p>
<p>SQL&gt; select trunc(first_time),sum(blocks*block_size)<br />
from (select distinct first_change#,first_time,blocks,block_size,completion_time<br />
from v$archived_log)<br />
group by trunc(first_time)<br />
order by trunc(first_time); </p>
<p>TRUNC(FIR SUM(BLOCKS*BLOCK_SIZE)<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
26-MAR-09 51228160<br />
06-APR-09 44119040<br />
18-JUN-09 35488768<br />
07-AUG-09 51233280</p>
<p>The primary difference in this script is that it queries redo generation from the V$ARCHIVED_LOG dynamic performance view rather than the earlier script that queries the V$LOG_HISTORY and V$LOG dynamic performance views.</p>
<p>So there you have it, multiple ways to calculate exactly how much redo is generated by your Oracle database! Stay tuned, next time we will provide some quick tips on tuning network and disk I/O for your Oracle database.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=97&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2011/01/31/tech-time-01312011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Tech Time 07/06/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/07/06/tech-time-07062010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/07/06/tech-time-07062010/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 13:37:58 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=92</guid>
		<description><![CDATA[Hello&#8230;.. There is no greater happiness than freedom from worry, and there is no greater wealth than contentment. _______________________________________________________________________________________________ Data Recovery Advisor Oracle Database includes a Data Recovery Advisor tool that automatically diagnoses persistent data failures, presents appropriate repair options, and executes repairs at your request. Data Recovery Advisor provides a single point of entry for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=92&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;">Hello&#8230;..</p>
<p style="text-align:center;"><strong>There is no greater happiness than freedom from worry, and there is no greater wealth than contentment.</strong></p>
<p><strong>_______________________________________________________________________________________________</strong></p>
<p><strong><br />
</strong></p>
<h2 id="insertedID4">Data Recovery Advisor</h2>
<p>Oracle Database includes a <a name="sthref66"></a><a href="http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/glossary.htm#CHDJEBCF">Data Recovery Advisor</a> tool that automatically diagnoses persistent data failures, presents appropriate repair options, and executes repairs at your request. Data Recovery Advisor provides a single point of entry for Oracle backup and recovery solutions. You can use Data Recovery Advisor through the Enterprise Manager Database Control or Grid Control console or through the RMAN command-line client.</p>
<p>A database failure usually manifests itself as a set of symptoms: error messages, alerts, trace files and dumps, and failed data integrity checks. Data Recovery Advisor automatically diagnoses and informs you of these failures. Within the context of Data Recovery Advisor, a <a href="http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/glossary.htm#CHDFEHCC">failure</a> is a persistent data corruption that can be directly mapped to a set of repair actions. Each failure has a status of open or closed. Each failure also has a priority of critical, high, or low.</p>
<p>Failures are detected by data integrity checks, which are diagnostic procedures executed to assess the health of the database or its components. If a <a name="sthref67"></a><a href="http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/glossary.htm#CHDDJAGH">data integrity check</a> reveals a failure, then Data Recovery Advisor automatically assesses the effect of a set of failures and maps it to a set of repair options. In most cases, Data Recovery Advisor presents both automated and manual repair options.</p>
<p>Data Recovery Advisor determines the best automated repair option and its effect on the database. The <a href="http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/glossary.htm#CHDIABIB">repair option</a> may include repairs such as datafile restore and recovery, media recovery, Flashback Database, and so on. Before presenting an automated repair option, Data Recovery Advisor validates it for the specific environment and the availability of media components required to complete the proposed repair.</p>
<p>If you choose an <a name="sthref68"></a><a name="sthref69"></a>automated repair option, then RMAN coordinates sessions on the Oracle database to perform the <a href="http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/glossary.htm#CHDJDAGB">repair</a> for you. The Data Recovery Advisor tool verifies the repair success and closes the appropriate failures.</p>
<p style="text-align:center;"><strong>||||||||||||||||||||||||||||        Today&#8217;s OO ..Looks like some Electronics.. ||||||||||||||||||||||||||||</strong></p>
<h1 style="text-align:center;">This Overwhelming Offer Has Not Started Yet</h1>
<h2>What is it? Here is a hint: Shake it to shuffle&#8230;</h2>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/92/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/92/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/92/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=92&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/07/06/tech-time-07062010/feed/</wfw:commentRss>
		<slash:comments>116</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle World 06/24/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/18/oracle-world-06182010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/18/oracle-world-06182010/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 15:10:58 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=88</guid>
		<description><![CDATA[Hello.. If we command our wealth, we shall be rich and free. If our wealth commands us, we are poor indeed. Edmund Burke ___________________________________________________________________________________________________________ Send EMAIL using UTL_MAIL in Oracle 10g The UTL_MAIL package is introduced in Oracle 10g and it is easier to use when compared to UTL_SMTP. In order to use Oracle UTL_MAIL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=88&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello..</p>
<blockquote>
<p style="text-align:center;">If we command our wealth, we shall be rich and free. If our wealth commands us, we are poor indeed.</p>
</blockquote>
<p style="text-align:center;">Edmund Burke</p>
<p style="text-align:center;">___________________________________________________________________________________________________________</p>
<p style="text-align:center;">
<p style="text-align:center;"><strong>Send EMAIL using UTL_MAIL in Oracle 10g</strong></p>
<p>The UTL_MAIL package is introduced in Oracle 10g and it is easier to use when compared to UTL_SMTP. In order to use Oracle UTL_MAIL package you need to set a new init.ora parameter “SMTP_OUT_SERVER”, set to your outgoing mailserver.</p>
<p>Follow the simple steps to send an email using UTL_MAIL package</p>
<p>Step 1: Install UTL_MAIL package<br />
To install the UTL_MAIL package, run the below files as user &#8220;SYS&#8221;<br />
$ORACLE_HOME/rdbms/admin/utlmail.sql<br />
$ORACLE_HOME/rdbms/admin/prvtmail.plb</p>
<p>Step 2: Grant permissions<br />
Grants the execute permission on UTL_MAIL privilege to PUBLIC or the user which will use the package. Run the beow command as user “SYS”<br />
SQL&gt; GRANT EXECUTE ON UTL_MAIL TO PUBLIC;<br />
-or-<br />
SQL&gt; GRANT EXECUTE ON UTL_MAIL TO ;</p>
<p>Step 3: Set SMTP_OUT_SERVER parameter<br />
SQL&gt; ALTER SYSTEM SET smtp_out_server=’smtp.domain.com’ SCOPE=both;</p>
<p>Step 4: Create procedure to send email<br />
CREATE OR REPLACE PROCEDURE test_email AS<br />
BEGIN<br />
UTL_MAIL.SEND(sender =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
recipients =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
cc =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
bcc =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
subject =&gt; &#8216;Test Mail&#8217;,<br />
message =&gt; &#8216;Hi, This is just a test mail&#8217;);<br />
EXCEPTION<br />
WHEN OTHERS THEN<br />
RAISE_APPLICATION_ERROR(-20001,&#8217;The following error has occured:&#8217; ||sqlerrm);<br />
END;</p>
<p>SQL&gt; exec test_email;</p>
<p>Step 5: Send email using UTL_MAIL with attachments<br />
You must set UTL_FILE_DIR to a directory, where the attachment files exists</p>
<p>CREATE OR REPLACE PROCEDURE test_email_attach AS<br />
BEGIN<br />
UTL_MAIL.SEND_ATTACH_VARCHAR2(sender =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
recipients =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
cc =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
bcc =&gt; &#8216;xxx@oracleracexpert.com&#8217;,<br />
subject =&gt; &#8216;Test Mail&#8217;,<br />
message =&gt; &#8216;Hi, This is just a test mail&#8217;<br />
attachment =&gt; ‘text’<br />
att_filename =&gt; ‘test_attach.txt’);<br />
EXCEPTION<br />
WHEN OTHERS THEN<br />
RAISE_APPLICATION_ERROR(-20001,&#8217;The following error has occured: &#8216;<br />
sqlerrm);<br />
END;</p>
<p>Please note that with att_inline you can specify, whether the attachment is viewable inline with the message body or not.</p>
<p>You can also use the below parameters<br />
attachment &#8211; A text attachment.<br />
priority &#8211; The message priority, the default is NULL.<br />
mime_type &#8211; The mime type of the message, default is ‘text/plain; charset=us-ascii‘.<br />
att_inline - Specifies whether the attachment is viewable inline with the message body, default is TRUE.<br />
att_mime_type &#8211; The mime type of the attachment, default is ‘text/plain; charset=us-ascii‘.<br />
att_filename - The string specifying a filename containing the attachment, default is NULL.</p>
<p>Regards,<br />
Satishbabu Gunukula</p>
<p>http://www.oracleracexpert.com</p>
<p>___________________________________________________________________________________________________________</p>
<p>Today&#8217;s OO</p>
<p>06-18-2010</p>
<p>$50 Off Gifts for Dad at Sears ((<strong>Excludes Gift Cards</strong>)<br />
Today at 12PM ET<br />
List Price:	$100.00<br />
You Save:	$50.00 (50%)<br />
$50 Cash Rebate<br />
Overwhelming Price:<br />
$50.00<br />
(Price before Tax, S&amp;H)</p>
<p>Offer applies to Entire Online Selection In-Stock (<strong>Excludes Gift Cards</strong>). Purchase can be picked up in store but cannot be altered.</p>
<p>====</p>
<p>Sandisk Cruzer Micro 4GB U3 USB Flash Drive Black $5 through Ebay</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=88&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/18/oracle-world-06182010/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Desk 06/16/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/16/oracle-desk-06162010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/16/oracle-desk-06162010/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 13:18:58 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=85</guid>
		<description><![CDATA[Hello&#8230;. Great minds have purposes; others have wishes. Washington Irving _____________________________________________________________________________________________________________ Performing a Backup Validation with RMAN You can use the VALIDATE keyword of the BACKUP command to do the following: Check datafiles for physical and logical corruption Confirm that all database files exist and are in the correct locations RMAN does not actually produce backup sets, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=85&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello&#8230;.</p>
<blockquote>
<p style="text-align:center;"><strong>Great minds have purposes; others have wishes.</strong></p>
</blockquote>
<p style="text-align:center;">Washington Irving</p>
<p style="text-align:center;">_____________________________________________________________________________________________________________</p>
<p style="text-align:center;">
<h2><span style="font-family:Arial, Helvetica, sans-serif;color:#330099;">Performing a Backup Validation with RMAN</span></h2>
<p><a name="446290"></a></p>
<p>You can use the <code>VALIDATE</code> keyword of the <code>BACKUP</code> command to do the following:</p>
<ul>
<li><a name="446291"></a>Check datafiles for physical and logical corruption</li>
<li><a name="446292"></a>Confirm that all database files exist and are in the correct locations</li>
</ul>
<p><a name="446293"></a></p>
<p>RMAN does not actually produce backup sets, but rather scans the specified files to determine whether they can be backed up and are not corrupted. In this sense, the<code>BACKUP</code> <code>VALIDATE</code> command is similar to the <code>RESTORE</code> <code>VALIDATE</code> command, except for backups rather than restore jobs. If the backup validation discovers corrupt blocks, then RMAN updates the <code>V$DATABASE_BLOCK_CORRUPTION</code> view with rows describing the corruptions. After a corrupt block is repaired, the row identifying this block is deleted from the view.</p>
<p><a name="446294"></a></p>
<p>For example, you can validate that all database files and archived redo logs can be backed up by running a command as follows:</p>
<pre><a name="446297"></a>BACKUP VALIDATE DATABASE ARCHIVELOG ALL;
<a name="446300"></a></pre>
<p><a name="446302"></a></p>
<p>RMAN displays the same output that it would if it were really backing up the files. If RMAN cannot validate the backup of one or more of the files, then it displays an error message. For example, RMAN may show output similar to the following:</p>
<pre><a name="455089"></a>RMAN-00571: ===========================================================
<a name="455090"></a>RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
<a name="455091"></a>RMAN-00571: ===========================================================
<a name="455092"></a>RMAN-03002: failure of backup command at 08/29/2001 14:33:47
<a name="455093"></a>ORA-19625: error identifying file /oracle/oradata/trgt/arch/archive1_6.dbf
<a name="455095"></a>ORA-27037: unable to obtain file status
<a name="455096"></a>SVR4 Error: 2: No such file or directory
<a name="455097"></a>Additional information: 3
<a name="446355"></a></pre>
<p><a name="446356"></a></p>
<p>You cannot use the <code>MAXCORRUPT</code> or <code>PROXY</code> parameters with the <code>VALIDATE</code> option.</p>
<table dir="ltr" border="0" cellspacing="0" cellpadding="0" width="80%" summary="This is a layout table to format a note">
<tbody>
<tr>
<td>
<hr /><a name="434862"></a><span style="font-family:Arial, Helvetica, sans-serif;"><strong>Note:</strong></span><a name="434863"></a>You cannot make incremental copies, although you can use the <code>LEVEL</code> parameter to make a copy serve as a basis for subsequent incremental backup sets.</p>
<hr />
<p>Today OO seems to be of Home Depot&#8230;..</p>
<p><strong>This Overwhelming Offer Has Not Started Yet</strong></p>
<h2>What is it? Here is a hint: more saving. more doing&#8230;.</h2>
</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=85&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/16/oracle-desk-06162010/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Update 06/14/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/14/oracle-update-06142010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/14/oracle-update-06142010/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 12:43:10 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=83</guid>
		<description><![CDATA[Hello&#8230; When the power of love overcomes the love of power, the world will know peace. Jimi Hendrix _____________________________________________________________________________________________ Determining When to Back Up Standby Database Archived Redo Logs If you are making all your backups at the standby site, then you must ensure that you have backed up all the archived logs generated by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=83&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello&#8230;</p>
<blockquote>
<p style="text-align:center;"><strong>When the power of love overcomes the love of power, the world will know peace.</strong></p>
</blockquote>
<p style="text-align:center;"><strong>Jimi Hendrix</strong></p>
<p style="text-align:center;"><strong>_____________________________________________________________________________________________</strong></p>
<h3><span style="font-family:Arial, Helvetica, sans-serif;color:#330099;">Determining When to Back Up Standby Database Archived Redo Logs</span></h3>
<p><a name="446136"></a></p>
<p>If you are making all your backups at the standby site, then you must ensure that you have backed up all the archived logs generated by the primary database. You have two methods for determining whether you need to back up a standby database archived log so that RMAN can use it for recovery:</p>
<ul>
<li><a name="454380"></a>Running <code>LIST</code> command</li>
<li><a name="454381"></a>Querying <code>RC_ARCHIVED_LOG</code></li>
</ul>
<p><a name="446137"></a></p>
<h4><span style="font-family:Arial, Helvetica, sans-serif;color:#330099;">Using the LIST Command to Determine When to Back Up Standby Logs</span></h4>
<p><a name="446138"></a></p>
<p>Use the <code>LIST</code> <code>BACKUP</code> <code>OF</code> <code>ARCHIVELOG</code> <code>ALL</code> command to determine which logs RMAN has backed up.</p>
<p><a name="446139"></a></p>
<p><strong>To determine whether a log backup is needed by using the LIST command:</strong></p>
<ol type="1">
<li><a name="446140"></a>Query the recovery catalog to determine the locations of the archived redo logs. For example, issue:
<pre><a name="446141"></a>SELECT SEQUENCE#, IS_STANDBY
<a name="455742"></a>FROM RC_ARCHIVED_LOG;
<a name="446142"></a>
<a name="446143"></a> SEQUENCE# IS_
<a name="446144"></a>---------- ---
<a name="446145"></a>       113 YES
<a name="446146"></a>       114  NO
<a name="446147"></a>       115  NO
<a name="446148"></a>       116  NO
<a name="446149"></a></pre>
<p><a name="446150"></a>This output indicates that log sequence 113 is at the standby site but not at the primary site, and archived logs 114 through 116 are at the primary site but not the standby site.</li>
<li><a name="446151"></a>Determine which logs are backed up by connecting to the recovery catalog and running a <code>LIST</code> <code>BACKUP</code> command in RMAN. For example:
<pre><a name="446152"></a>LIST BACKUP OF ARCHIVELOG ALL;
<a name="446153"></a>
<a name="446160"></a>List of Backup Sets
<a name="446161"></a>Key     Recid      Stamp      LV Set Stamp  Set Count  Completion Time
<a name="446162"></a>------- ---------- ---------- -- ---------- ---------- ----------------------
<a name="446163"></a>319     4          394624547  0  394624546  5          11-APR-00
<a name="446164"></a>
<a name="446165"></a>    List of Backup Pieces
<a name="446166"></a>    Key     Pc# Cp# Status      Completion Time        Piece Name
<a name="446167"></a>    ------- --- --- ----------- ---------------------- ------------------------
<a name="446168"></a>    320     1   1   AVAILABLE   11-APR-00              /vobs/oracle/dbs/05boavh2_1_1
<a name="446169"></a>
<a name="446170"></a>    List of Archived Logs Included
<a name="446171"></a>    Thrd Seq     Low SCN    Next SCN   Low Time        Next Time
<a name="446172"></a>    ---- ------- ---------- ---------- --------------- ---------------
<a name="446173"></a>    1    116     95153      95156      07-APR-00       07-APR-00
<a name="446174"></a></pre>
<p><a name="446175"></a>This output shows that RMAN has backed up archived log 116, but has not backed up archived log 113. Because log 113 exists only at the standby site, you should either back up this log or copy it to the primary site.</li>
</ol>
<p><a name="446176"></a></p>
<h4><span style="font-family:Arial, Helvetica, sans-serif;color:#330099;">Querying RC_ARCHIVED_LOG to Determine When to Back Up Standby Logs</span></h4>
<p><a name="446177"></a></p>
<p>You can query the recovery catalog to determine which logs RMAN has backed up.</p>
<p><a name="446178"></a></p>
<p><strong>To determine whether a log backup is needed by querying the catalog:</strong></p>
<ol type="1">
<li><a name="446179"></a>Query the <code>RC_ARCHIVED_LOG</code> recovery catalog view to determine whether all archived logs necessary for recovery are on disk. For example, issue the following query, where <em><code>first_log_needed_for_recovery</code></em> is the sequence number of the log that begins recovery and <em><code>expected_num_of_logs</code></em> is the number of logs that should be applied during complete recovery:
<pre><a name="446180"></a>SELECT 1 FROM RC_ARCHIVED_LOG
<a name="446181"></a>WHERE SEQUENCE# &gt;= <em>first_log_needed_for_recovery</em>
<a name="446182"></a>AND IS_STANDBY='NO'
<a name="446183"></a>AND STATUS='A'
<a name="446184"></a>HAVING COUNT(*) = <em>expected_num_of_logs</em>;
<a name="446185"></a></pre>
<p><a name="446186"></a>If the query returns no rows, then you do not have all logs necessary for complete recovery on disk. If the query does return rows, then you do have the necessary logs for complete recovery on disk.</li>
<li><a name="446187"></a>Query the <code>RC_BACKUP_REDOLOG</code> view to determine whether you have backups of the logs necessary for complete recovery. For example, issue the following query, where<em><code>first_log_needed_for_recovery</code></em> is the sequence number of the log that begins recovery and <em><code>expected_num_of_logs</code></em> is the number of logs that should be applied during complete recovery:
<pre><a name="446188"></a>SELECT 1 FROM RC_BACKUP_REDOLOG
<a name="446189"></a>WHERE SEQUENCE# &gt;= <em>first_log_needed_for_recovery</em>
<a name="446190"></a>AND STATUS='A'
<a name="446191"></a>HAVING COUNT(DISTINCT SEQUENCE#) = <em>expected_num_of_logs</em>;
<a name="446192"></a></pre>
<p><a name="446193"></a>If the query returns no rows, then you do not have backups of all logs necessary for complete recovery. If the query does return rows, then you do have backups of all logs necessary for complete recovery.</li>
</ol>
<h1>________________________________________________</h1>
<h1 style="text-align:center;">This Overwhelming Offer Has Not Started Yet</h1>
<h2 style="text-align:center;">What is it? Here is a hint: Black(Mii + Mii) = ?..</h2>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=83&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/14/oracle-update-06142010/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Friday Fun 06/11/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/11/oracle-friday-fun-06112010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/11/oracle-friday-fun-06112010/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 13:29:36 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=79</guid>
		<description><![CDATA[Hello. There is more to life than increasing its speed. Mahatma Ghandi FIFA Soccer World Cup 2010 Starts Today&#8230;. Today&#8217;s Game Game1 : South Africa V Mexico Game2 : Uruguay  V France ________________________________________________________________________________________________ Recover in a Flash By Arup Nanda Reduce database recovery time, using the Oracle flash recovery area. If you are using Oracle [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=79&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello.</p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;">There is more to life than increasing its speed.</span><strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif;"><br />
Mahatma Ghandi</span></strong></p>
<p style="text-align:center;">
<p style="text-align:center;"><strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif;">FIFA Soccer World Cup 2010 Starts Today&#8230;.</span></strong></p>
<p style="text-align:center;"><strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif;">Today&#8217;s Game</span></strong></p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;"><strong>Game1 : South Africa V Mexico</strong></span></p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;"><strong><strong>Game2 : Uruguay  V France</strong></strong></span></p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;"><strong><br />
</strong></span></p>
<p style="text-align:center;"><strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif;">________________________________________________________________________________________________</span></strong></p>
<p style="text-align:center;">
<p style="text-align:center;">Recover in a Flash<br />
By Arup Nanda</p>
<p>Reduce database recovery time, using the Oracle flash recovery area.</p>
<p>If you are using Oracle Recovery Manager (RMAN) as a backup tool for your Oracle database, you probably already know that you have two options for the backup location: disk and tape. If you choose the former, you may back up to any location available to the server, but you must make sure the location has enough space for the backups. You also have to remove the old backups to make room for the new ones, keep track of the redundant backups, and make sure that backups and archive logs are available.</p>
<p>Flash Recovery Area</p>
<p>To help manage disk backups, in Oracle Database 10<em>g</em> Release 1 and later, you can define a special disk area that serves as a location for all types of backups. This location is the flash recovery area (FRA). Oracle Database manages the space inside this area; keeps track of backups that are needed; and if necessary, deletes old ones to make room for new ones. By default, the Oracle RMAN backups (both regular and image copies), online redo logs, archived logs, control files, and flashback logs are created in the FRA. When new backups or files demand more room, Oracle Database automatically removes the nonessential backups, freeing the DBA from this chore. The files in the FRA are considered nonessential when they become obsolete according to the retention policy, or when they have already been backed up to tape with Oracle RMAN.</p>
<p>Setting Up</p>
<p>To set up the FRA, first decide on its location and size. To set /home/oracle/FRA as the location and 2GB as the size, you issue the following while logged in as the SYS user:</p>
<pre>alter system set
db_recovery_file_dest_size = 2G;
alter system set
db_recovery_file_dest = '/home/oracle/FRA';</pre>
<p>To ensure that the values are set after the database is restarted, put the following lines in the initialization parameter file:</p>
<pre>db_recovery_file_dest_size = 2G
db_recovery_file_dest = '/home/oracle/FRA'</pre>
<p>If you are setting up the FRA on an Oracle Real Application Clusters (Oracle RAC) database, the FRA location must be visible to all database nodes. So it must be one of the following: a shared file system, an NFS-mounted file system, or an Automatic Storage Management (ASM) disk group. If you use ASM, the parameter is set as</p>
<pre>db_recovery_file_dest = '+DISKGROUP1'</pre>
<p>You can check the values of the FRA parameters set by querying the V$RECOVERY_FILE_DEST data dictionary view:</p>
<pre>select *
from v$recovery_file_dest;</pre>
<p>For my example, the result shows that there are 51 files in the FRA (the NUMBER_OF_FILES column). To determine the file types, you can check the V$FLASH_RECOVERY_AREA_USAGE view. This view shows the used and reclaimable spaces of each type of file as percentages of this total space. To get a more useful picture, you can combine these two views in a single query, shown in Listing 1, which shows the total size of the files instead of percentages. As you can see from the output, there are 34 archived log files, 16 Oracle RMAN backup files, and 1 flashback log file. The nonessential backups that can be deleted show up as RECLAIMABLE. If there is not sufficient space, the Oracle RMAN backup will return with an error:</p>
<p>Code Listing 1: Space, by file type, consumed in the FRA</p>
<pre><span>
select file_type, space_used*percent_space_used/100/1024/1024 used,
space_reclaimable*percent_space_reclaimable/100/1024/1024 reclaimable, frau.number_of_files
from v$recovery_file_dest rfd, v$flash_recovery_area_usage frau;

FILE_TYPE       USED      RECLAIMABLE    NUMBER_OF_FILES
-----------     ----      -----------    ---------------
CONTROLFILE      .00              .00                  0
ONLINELOG        .00              .00                  0
ARCHIVELOG    664.86           547.20                 34
BACKUPPIECE   573.23           520.73                 16
IMAGECOPY        .00              .00                  0
FLASHBACKLOG    6.07              .00                  1
</span></pre>
<pre>ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 104857600 bytes disk space from 1073741824 limit</pre>
<p>To create enough space for the Oracle RMAN backups to complete successfully, either manually remove some backups or increase the size of the FRA. To see the list of image copies in the FRA made by Oracle RMAN, you can use the Oracle RMAN list copy of database command, shown in Listing 2.</p>
<p>Code Listing 2: RMAN report of image copy datafiles in the FRA</p>
<pre><span>
RMAN&gt; list copy of database;
List of Datafile Copies
Key    File   S   Completion Time  Ckp SCN   Ckp Time     Name
----   ----   -   ---------------  -------   ---------    -------------------------------------------------------------
4404   1      A   26-SEP-06        1607862   26-SEP-06    /home/oracle/FRA/PRODB2/datafile/o1_mf_system_2kmqnygd_.dbf
4407   2      A   26-SEP-06        1607935   26-SEP-06    /home/oracle/FRA/PRODB2/datafile/o1_mf_undotbs1_2kmqqy2b_.dbf
4405   3      A   26-SEP-06        1607907   26-SEP-06    /home/oracle/FRA/PRODB2/datafile/o1_mf_sysaux_2kmqpcnz_.dbf
4408   4      A   26-SEP-06        1607939   26-SEP-06    /home/oracle/FRA/PRODB2/datafile/o1_mf_users_2kmqr57t_.dbf
4406   5      A   26-SEP-06        1607926   26-SEP-06    /home/oracle/FRA/PRODB2/datafile/o1_mf_example_2kmqqgto_.dbf
</span></pre>
<p>In addition to storing the backups of datafiles and flashback logs, the FRA can also be configured to store archived logs, control files, and online redo logs. For information on these storage options, see &#8220;<a href="http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconfg001.htm#sthref476" target="_blank">Configuring the Flash Recovery Area: Advanced Topics</a>.&#8221;</p>
<p>Image Copy</p>
<table border="1" cellpadding="5" width="50%" align="right" bgcolor="#DDDDDD">
<tbody>
<tr>
<td>Oracle Data Guard and the FRA</p>
<p>If you are familiar with Oracle Data Guard, you might wonder how using this FRA recovery method is different. Oracle Data Guard maintains physical or logical standby databases that are kept synchronized with the primary database through the transfer and application of redo data. These standby databases are geared toward disaster recovery and should not replace your backup-and-recovery operations. For example, if you lose a file, you can restore that file from the physical standby database, but that approach may take time, depending on the state and location of the standby database, and is the same as a traditional recovery solution.</p>
<p>Oracle Data Guard, however, allows fast failover/switchover (role transition) to a standby database running on separate servers and storage, which may be geographically separated, maintaining data availability, in the event the primary database site goes down for any reason. The FRA, on the other hand, is local to the database server, so although it provides quick access for recovery purposes, it is prone to the same failure as the local site. For Oracle Data Guard, applications that utilize the database must be reconnected to use the new primary database in case of a role transition. Because the FRA is local to the database, no application reconnection is needed. Oracle Data Guard provides a predictable recovery time (time to perform role transition), versus the time to recover FRA image copies, which is gated by the amount of redo application needed to bring the image copies up-to-date with the rest of the database.</td>
</tr>
</tbody>
</table>
<p>Backup sets are the Oracle RMAN default backups, in which only the used blocks in the datafiles are captured in the backup files. Oracle RMAN image copies are exact copies of the datafiles, withall the blocks—used or not. Oracle RMAN takes this image copy while the database is up and running, and the database need not be put into any special mode. Here is how to make an Oracle RMAN image copy backup:</p>
<pre>run {
  backup as copy
  database;
}</pre>
<p>This command, when run from the Oracle RMAN command prompt, creates the copies of the datafiles in the FRA with an Oracle-generated name such as o1_mf_users_2kmqr57t_.dbf.</p>
<p>Instant Recovery</p>
<p>Image copies in the FRA become truly useful when you need an &#8220;instant recovery.&#8221; Remember that these image copies are copies of the datafiles—a fact recorded in the Oracle RMAN catalog and the control file. In case of a disaster, you don&#8217;t need to restore the file; you can use the copy as the principal datafile immediately.</p>
<p>Suppose that one of your datafiles has become corrupted and needs recovery. Traditionally, you follow this general approach:</p>
<p>1. Take the tablespace offline.<br />
2. Restore the datafile from the backup.<br />
3. Recover the datafile to the point of failure.<br />
4. Place the tablespace online.</p>
<p>Step 2 may take a long time, depending on the size of the file, the speed of the underlying disks, the transfer rate from backup to the original datafile location, and the other processes running on the system. Suppose that on your system, it takes more than two hours to complete this step, making the tablespace data unavailable for the entire duration. This motivates you to take a look at minimizing recovery time. You consider using image copies to speed up the recovery.</p>
<p>Using image copies, step 2 in the recovery is replaced by &#8220;Instruct the database to use the copy of the datafile instead of the original.&#8221; This reduces the time taken by the step from hours to seconds. Here is the description of the recovery process, assuming that the USERS tablespace has been damaged:</p>
<p>First, check the file ID (number) and name of the datafile of the tablespace. The output is shown in vertical format:</p>
<pre>select file_id, file_name
from dba_data_files
where tablespace_name  = 'USERS';
FILE_ID : 4
NAME    : /home/oracle/oradata/PRODB2/
              users01.dbf</pre>
<p>Connect to Oracle RMAN and complete the rest of the recovery activities, which are similar to the steps listed above except that Step 2 is now &#8220;Switch datafile 4 to the copy in the FRA.&#8221; All the operations are shown in Listing 3.</p>
<p>Code Listing 3: RMAN operations to switch to the FRA</p>
<pre><span>
RMAN&gt; sql 'alter tablespace users offline';
sql statement: alter tablespace users offline
RMAN&gt; switch datafile 4 to copy;
datafile 4 switched to datafile copy "/home/oracle/FRA/PRODB2/datafile/o1_mf_users_2kmqr57t_.dbf"
RMAN&gt; recover datafile 4;
Starting recover at 26-SEP-06
using channel ORA_DISK_1
starting media recovery
media recovery complete, elapsed time: 00:00:03
Finished recover at 26-SEP-06
RMAN&gt; sql 'alter tablespace users online';
sql statement: alter tablespace users online
</span></pre>
<p>After the tablespace is brought online, check the filename:</p>
<pre>select name from v$datafile
where file# = 4;

NAME
----------------------------------
/home/oracle/FRA/PRODB2/datafile/
o1_mf_users_2kmqr57t_.dbf</pre>
<p>Note that the filename is no longer /home/oracle/oradata/PRODB2/users01.dbf; rather, the copy in the FRA is shown as the original datafile. The tablespace becomes usable very quickly without a restore operation. Figure 1 shows original and copy datafile status before and after switching from a damaged datafile 4.</p>
<table width="100%" align="center">
<tbody>
<tr>
<td align="center"><img src="http://www.oracle.com/technology/oramag/oracle/07-jan/images/o17recovery_f1.gif" border="0" alt="figure 1" width="650" height="430" /></td>
</tr>
<tr>
<td align="center">Figure 1. Using a copy of a datafile</td>
</tr>
</tbody>
</table>
<p>Switchback</p>
<p>Even though the datafile has been quickly brought online to minimize downtime, it is now in the backup location, which may be on slower disks than what the main database is on. You may not want to run the database with the datafile at this location for long; you would typically want to move the datafile back to the original location—/home/oracle/oradata/PRODB2/—as soon as it becomes available. You can use Oracle RMAN to accomplish this. Here is a summary of the steps:</p>
<p>1. Make an image copy of the datafile at the original location.<br />
2. Take the tablespace offline.<br />
3. Switch the datafile to the &#8220;copy&#8221; (however, in this case, the &#8220;copy&#8221; is at the original location).<br />
4. Recover the tablespace.<br />
5. Place the tablespace online.</p>
<p>These steps are presented in Listing 4. After the switchover, you can make sure the datafile is back in its original location:</p>
<pre>select name from v$datafile
where file# = 4;

NAME
---------------------------------------
/home/oracle/oradata/PRODB2/users01.dbf</pre>
<p>Code Listing 4: Switching back from the FRA to the original location</p>
<pre><span>
RMAN&gt; backup as copy datafile 4 format '/home/oracle/oradata/PRODB2/users01.dbf';

Starting backup at 27-SEP-06
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile fno=00004 name=/home/oracle/FRA/PRODB2/datafile/o1_mf_users_2kmqr57t_.dbf
output filename=/home/oracle/oradata/PRODB2/users01.dbf tag=TAG20060927T103710 recid=45 stamp=602246230
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 27-SEP-06

Starting Control File Autobackup at 27-SEP-06
piece handle=/home/oracle/FRA/PRODB2/autobackup/2006_09_27/
o1_mf_n_602246232_2ko34s42_.bkp comment=NONE
Finished Control File Autobackup at 27-SEP-06
RMAN&gt; sql 'alter tablespace users offline';
...
RMAN&gt; switch datafile 4 to copy;

datafile 4 switched to datafile copy "/home/oracle/oradata/PRODB2/users01.dbf"

RMAN&gt; recover datafile 4;
...
RMAN&gt; sql 'alter tablespace users online';
...
</span></pre>
<table border="1" cellpadding="5" width="30%" align="right" bgcolor="#DDDDDD">
<tbody>
<tr>
<td>Next Steps</p>
<p>READ more about the<br />
Flashback database command</p>
<p>VIEW the <a href="http://www.oracle.com/technology/deploy/availability/htdocs/rman_switch_swf.html?_template=/ocom/blank_template" target="_blank">Oracle RMAN switch to image copy demo</a></td>
</tr>
</tbody>
</table>
<p>In case of a failure, you save valuable time by quickly using the image copy of the datafile in the FRA, and there is no need to restore it first. The same concept can be applied to the entire database as well. If the original location of all the datafiles is damaged, you can easily switch the entire database to the copy stored in the FRA. To switch to the FRA copy, issue the following, which directs the whole database to use all the latest image copies in the FRA location as its datafiles:</p>
<pre>RMAN&gt; switch database to copy;</pre>
<p>Note that you can also perform the above operations on the image copies in any location without using the FRA. However, using the FRA moves the burden of managing the space from the DBA to the database.</p>
<p>Back Up to Tape</p>
<p>Although the backup to the FRA comes with great benefits, it is still not foolproof for normal disaster protection. Disks can fail, making these FRA backups disappear. Similarly, unlike tapes, disks cannot be removed easily and stored at a different location. Therefore, you still need to back up the FRA to tape. To do so, use the following command in RMAN. It backs up all contents of the FRA, including archived logs:</p>
<pre>run {
  allocate channel c1 type sbt_tape;
  backup recovery area;
}</pre>
<p>Conclusion</p>
<p>The primary objective of any backup design is to enhance the process of recovery—to make it faster and more reliable. Using the flash recovery area, DBAs can direct all backups to a single location that is managed by Oracle Database. Using the Oracle RMAN image copies in the FRA, DBAs can very quickly recover from damage to a datafile without using a traditional restore-and-recovery operation.</p>
<p>====</p>
<p>Today&#8217;s OO looks useless as well.</p>
<p>It seems today&#8217;s OO is Barns and Nobels gift card</p>
<p>====</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=79&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/11/oracle-friday-fun-06112010/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>

		<media:content url="http://www.oracle.com/technology/oramag/oracle/07-jan/images/o17recovery_f1.gif" medium="image">
			<media:title type="html">figure 1</media:title>
		</media:content>
	</item>
		<item>
		<title>Tech Time 06/10/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/10/tech-time-06102010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/10/tech-time-06102010/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 12:37:19 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=75</guid>
		<description><![CDATA[Hello, Success is the sum of small efforts, repeated day in and day out. Robert Collier _____________________________________________________________________________________________ Oracle Flashback Technology reduces recovery time from hours to minutes. According to many studies, 40% of application outages are caused by operator or user errors. Part of being human is making mistakes. But these errors are extremely difficult [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=75&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;">Success is the sum of small efforts, repeated day in and day out.</span><strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif;"><br />
Robert Collier</span></strong></p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;"><strong>_____________________________________________________________________________________________</strong></span></p>
<p style="text-align:center;">
<blockquote><p>Oracle Flashback Technology reduces recovery time from hours to minutes.</p></blockquote>
<p>According to many studies, 40% of application outages are caused by operator or user errors. Part of being human is making mistakes. But these errors are extremely difficult to avoid and can be particularly difficult to recover from without advance planning and the right technology. Such errors can result in &#8220;logical&#8221; data corruption, or cause downtime of one or more components of the IT infrastructure. While it is relatively simple to rectify the failure of an individual component, detection and repair of logical data corruption, such as accidental deletion of valuable data, is a time consuming operation that causes enormous loss of business productivity. Typical user-errors may include accidental deletion of valuable data, deleting the wrong data, and dropping the wrong table.</p>
<p>Guarding Against Human Errors<br />
<img src="http://www.oracle.com/technology/deploy/availability/images/fb_nav.gif" alt="" width="145" height="210" align="right" />The Oracle Database architecture leverages the unique technological advances in the area of database recovery due to human errors. Oracle Flashback Technology provides a set of new features to view and rewind data back and forth in time. The Flashback features offer the capability to query historical data, perform change analysis, and perform self-service repair to recover from logical corruptions while the database is online. With Oracle Flashback Technology, you can indeed undo the past!</p>
<p>Oracle9<em>i</em> introduced Flashback Query to provide a simple, powerful and completely non-disruptive mechanism for recovering from human errors. It allows users to view the state of data at a point in time in the past without requiring any structural changes to the database.</p>
<p>Oracle Database 10<em>g</em> extended the Flashback Technology to provide fast and easy recovery at the database, table, row, and transaction level. Flashback Technology revolutionizes recovery by operating just on the changed data. The time it takes to recover the error is now equal to the same amount of time it took to make the mistake. Oracle 10<em>g</em> Flashback Technologies includes Flashback Database, Flashback Table, Flashback Drop, Flashback Versions Query, and Flashback Transaction Query.</p>
<p>Flashback technology can just as easily be utilized for non-repair purposes, such as historical auditing with Flashback Query and undoing test changes with Flashback Database. Oracle Database 11g introduces an innovative method to manage and query long-term historical data with Flashback Data Archive. This release also provides an easy, one-step transaction backout operation, with the new Flashback Transaction capability.</p>
<p><a name="Flashback11gFeatures"></a>New Features in Oracle Database 11g</p>
<p>Flashback Data Archive</p>
<p>Flashback Data Archive can be used to automatically track and maintain historical changes to all Oracle data in a highly application transparent, secure and efficient manner. Part of the Oracle Total Recall Option, Flashback Data Archive provides enterprises with a quick, centralized and extremely efficient solution to meet all historical data management needs. Flashback Data Archive automatically tracks every single change made to the data stored inside the database and maintains a secure, efficient and easily accessible archive of historical data. The captured historical data can be retained for as long as the business demands and is easily accessible using Flashback SQL queries. Historical data tracking can be enabled on both existing and new tables instantaneously and more importantly, in a completely application transparent manner.</p>
<p>Flashback Data Archive presents a high-performance, storage optimized solution with a centralized management interface for satisfying data retention and change control requirements for organizations. The primary advantages of using Flashback Data Archive for historical data tracking include:</p>
<ul>
<li><strong><em>Application Transparent:</em></strong> Enabling historical data capture on one or more tables can be done instantaneously with no or minimal application changes. Customers can therefore use this feature to capture historical data for both packaged as well as home grown applications.</li>
<li><strong><em>Seamless Access:</em></strong> Historical data can be easily accessed using familiar Flashback SQL constructs. Flashback Data Archive includes support for Flashback Queries. Applications can seamlessly query the history of table data, as it existed in different points in time. No special snapshots need to be taken to take advantage of this feature.</li>
<li><strong><em>Security:</em></strong> Historical data, once generated, is immutable to all users. This is enabled out-of-the-box and no special or extra setup is required. Access to the internal history tables is restricted to reads only. No DML operations are allowed to users, including administrators. Applications need not query the internal history tables directly as seamless access is provided through the Flashback Query mechanism.</li>
<li><strong><em>Minimal performance overhead:</em></strong> Regular user transactions will see negligible impact. Flashback Data Archive employs a lightweight mechanism to mark DML operations on tracked tables for archiving. The actual history generation and archiving is done asynchronously through a background process as explained later.</li>
<li><strong><em>Storage Optimized: </em></strong>The history data is internally partitioned and highly compressed to reduce the storage footprint. Flashback Data Archive employs a highly efficient compression scheme to compress the internal history tables. In addition, it automatically partitions the internal history tables based on a range-partitioning scheme. Both compression and partitioning in flashback data archive are managed automatically and require no special administration.</li>
<li><strong><em>Centralized Management: </em></strong>Flashback Data Archive provides a centralized and policy-based management interface to automate a number of ongoing administrative tasks. With Flashback Data Archive, you can easily group tables and set a common retention policy. New tables will automatically inherit the retention parameter from the flashback data archive in which it resides. Oracle will automatically purge aged-out history data for all tracked tables based on the specified retention. This frees up the administrator from the repetitive management of history data and avoids costly errors associated with manual maintenance, such as purging incorrect history data.</li>
</ul>
<p>Flashback Transaction</p>
<p>Large-scale database applications rely on complex sequences of transactions, to ensure atomicity and consistency of a group of inserts, updates, or deletes. In the event of a ‘bad’ transaction, the administrator must trail back-in-time to see what changes were effected by the transaction and ascertain any dependencies (e.g. transactions that modified the same data after the ‘bad’ transaction), to ensure that undoing the transaction preserves the original, good state of the data and any related data. Performing this type of transaction analysis can be laborious, especially for very complex applications.</p>
<p>With Flashback Transaction, a single transaction, and optionally, all of its dependent transactions, can be flashed back with a single PL/SQL operation or by using an intuitive EM wizard to identify and flashback the problem transactions. Flashback Transaction relies on the availability of undo data and archived redo logs for the given transaction and its dependents, to backout the changes.</p>
<p>New Features in Oracle Database 10g Release 2</p>
<p>Restore Points</p>
<p>When an Oracle database point-in-time recovery operation is required, a DBA must determine a time or SCN to which the data must be rolled back. Oracle Database 10g Release 2 simplifies point in time recovery with restore points. A restore point is a user-defined name that can be substituted for an SCN or clock time when used in conjunction with Flashback Database, Flashback Table, and Recovery Manager (RMAN), and can be created at the command-line with SQL*Plus or RMAN, or through Enterprise Manager. Restore points eliminate the need to investigate the SCN or time of a transaction and provides users with the ability to bookmark a database transaction event. Guaranteed restore points ensure that sufficient flashback logs are always maintained to get back to that restore point. This means that flashback logs will not be deleted by the Flash Recovery Area, unless they are not needed for the current guaranteed restore points. These special restore points can be created before major database changes, such as a database batch job or schema upgrade, and used for flashback if the changes need to be undone.</p>
<p>Flashback Database Through RESETLOGS</p>
<p>Flashback Database through RESETLOGS allows flashback logs created prior to a RESETLOGS operation to be utilized for Flashback Database operations. In Oracle Database 10g Release 2, flashback logs are preserved after opening the database with RESETLOGS. This new feature is useful when a long-standing logical error is not discovered until after RESETLOGS is performed, and a flashback prior to RESETLOGS is needed. In an Oracle Data Guard environment, this capability allows a physical standby database that has been opened read-write to later flashback the changes and be converted back to a physical standby database. If a logical error is discovered after a switchover operation, the primary and standby databases can be flashed back to an SCN or a point in time prior to the switchover operation.</p>
<p>New Features in Oracle Database 10g Release 1</p>
<p>Flashback Database</p>
<p>Flashback Database quickly rewinds an Oracle database to a previous time, to correct any problems caused by logical data corruptions or user errors. Flashback Database is like a &#8216;rewind button&#8217; for your database. It provides database point in time recovery without requiring a backup of the database to first be restored. When you eliminate the time it takes to restore a database backup from tape, database point in time recovery is fast</p>
<p><img src="http://www.oracle.com/technology/deploy/availability/images/fb_db.gif" alt="" width="155" height="282" align="left" /></p>
<p>The Flashback Database capability, accessible from both RMAN and SQL*Plus by using the FLASHBACK DATABASE command, is similar to conventional point-in-time recovery in its effects. It allows you to return a database to its state at a time in the recent past. To enable the Flashback Database capability, a DBA configures the Flash Recovery Area. The Flash Recovery Area is a new feature in Oracle Database 10<em>g</em> that provides a unified storage location for all recovery related files and activities in an Oracle database. Besides Flashback Database logs, the recovery area contains archived redo logs and RMAN backups. For more information on the Flash Recovery Area, consult the Oracle Backup and Recovery documentation.</p>
<p>Oracle automatically creates and manages Flashback Logs within the Flash Recovery Area. Since the Flash Recovery Area is configured with a space quota, the Flashback Logs are subject to those disk space restrictions. The size of Flashback Logs can vary considerably, depending on the read/write ratio of database changes during a given flashback-logging interval. A copy of the old block version is written to the Flashback Log. If, over the course of a day, 10% of the database blocks are updated, then the size of Flashback Logs for 24 hours is approximately one-tenth the size of your database. The DBA may change this disk quota dynamically if more disk space is required to recover the database to an earlier time in the past.</p>
<p>Flashback provides Data Guard with an easy-to-use method to correct user errors. Flashback Database can be used on both the primary and standby database to quickly revert the databases to an earlier point in time to back out user errors. If the administrator decides to failover to a standby database, but those user-errors were already applied to the standby database (for example, because Real Time Apply was enabled), the administrator can simply flashback the standby database to a safe point in time.</p>
<p><img src="http://www.oracle.com/technology/deploy/availability/images/fb_dg.gif" alt="" width="423" height="203" /></p>
<p>The performance overhead of enabling Flashback Database is less than 2%. While you may not be willing to sacrifice any performance overhead for your production database, think about the trade-off. If you could recover the database in minutes instead of hours, saving your company millions of dollars in lost revenue, would you then give 2% of the resources to Flashback Database? Enabling Flashback Database functionality provides the following benefits.</p>
<ul>
<li><strong><em>Eliminate the time to restore a backup</em></strong>. When a database is down because it runs into a catastrophic problem, considerable revenue can be lost because the company cannot do business.</li>
<li><strong><em>Eliminate standby database redo apply delay.</em></strong> Flashback database is seamlessly integrated with Data Guard. A standby database can now be quickly and easily flashed back to an arbitrary point in time, so a delay in redo apply is not necessary.</li>
<li><em><strong>Unanticipated error correction. </strong></em>Flashback Database provides a continuous snapshot of the Oracle database. The database can be rewound back to a SCN or timestamp.</li>
</ul>
<p>Flashback Table</p>
<p>When a human or application error occurs, you want to be able to restore the state of one or more tables to a point in time before the problem occurred. Flashback Table provides the DBA the ability to recover a table or a set of tables to a specified point in time quickly, easily, and online. Flashback Table restores the tables while automatically maintaining its associated attributes such as &#8211; the current indexes, triggers and constraints, not requiring the DBA to find and restore application specific properties. Flashback Table alleviates the need for you to perform more complicated point in time recovery operations. The following command flashes back the ORDERS and ORDER_ITEMS tables to 2:33 PM on July 7.</p>
<blockquote><p>FLASHBACK TABLE orders, order_items TO TIMESTAMP (JUL-07-2003, 02:33:00);</p></blockquote>
<p>Like Flashback Query, Flashback Table also relies on the undo data to recover the tables. The undo data, therefore, must be available in order for a Flashback Table to be successful. The Automatic Undo Management feature allows you to specify how long they wish to retain the undo data using the UNDO_RETENTION initialization parameter. By using this parameter and sizing the undo tablespace appropriately, DBAs can control how far back in time a table can be repaired using Flashback Table.</p>
<p>While a DBA can use the Flashback Table feature to quickly recover from human errors, it also serves as a self-service repair tool to recover from accidental modifications or deletions. An application developer can incorporate the Flashback Table functionality into their customized application. This tool provides significant benefits over media recovery in terms of ease of use, availability and faster restoration with point-in-time object based recovery. Flashback Table</p>
<ul>
<li>Performs the restore operation online</li>
<li>Restores all data in a specified table to a previous point in time described by a timestamp or SCN</li>
<li>Automatically restores all of the table attributes, such as indexes, triggers, and the like that are necessary for an application to function with the flashed back table</li>
<li>Maintains any remote state in a distributed environment. For example, all of the table modifications required by replication are flashed back.</li>
<li>Maintains data integrity as specified by constraints. Oracle preserves all dependent objects and the referential integrity.</li>
<li>Provides the ability to revert it back to its original state even after a flashback operation.</li>
</ul>
<p>Flashback Drop<br />
Dropping of objects by accident has always been a problem for users and DBAs alike. Users soon realize their mistake but then it&#8217;s too late and historically there is no easy way to recover those dropped tables, indexes, constraints, triggers, etc. Flashback Drop provides a safety net when dropping objects in Oracle Database 10<em>g</em>. When a user drops a table, Oracle automatically places it into the Recycle Bin.</p>
<p><img src="http://www.oracle.com/technology/deploy/availability/images/fb_drop.gif" alt="" width="282" height="173" /></p>
<p>What is the Recycle Bin?</p>
<p>The Recycle Bin is a virtual container where all dropped objects reside. Underneath the covers, the objects are occupying the same space as when they were created. If table EMP was created in the USERS tablespace, the dropped table EMP remains in the USERS tablespace. Dropped tables and any associated objects such as indexes, constraints, nested tables, and other dependant objects are not moved, they are simply renamed with a prefix of BIN$$. You can continue to access the data in a dropped table or even use Flashback Query against it. Each user has the same rights and privileges on Recycle Bin objects before they were dropped. You can view your dropped tables by querying the new RECYCLEBIN view. Objects in the Recycle Bin will remain in the database until the owner of the dropped objects decides to permanently remove them using the new PURGE command. The Recycle Bin objects are counted against a user&#8217;s quota. But Flashback Drop is a non-intrusive feature. Objects in the Recycle Bin will be automatically purged by the space reclamation process if</p>
<ul>
<li>a user creates a new table or adds data that causes their quota to be exceeded.</li>
<li>the tablespace needs to extend its file size to accommodate create/insert operations.</li>
</ul>
<p>Dropped the wrong table? No problem. Just undrop it with Flashback Drop.</p>
<p>Flashback Query</p>
<p>Introduced with Oracle9<em>i</em>, Flashback Query provides the ability to view the data as it existed in the past. By default, operations on the database use the most recent committed data available. If you want to query the database as it was at some time in the past, you can do so with the Flashback Query feature. It lets you specify either a time or a system change number (SCN) and query using the committed data from the corresponding time. The Flashback Query mechanism is most effective when you use Automatic Undo Management.</p>
<p>The Oracle database treats undo as a first class database object. Undo is persistent and can survive database system crash or, shutdown. It also shares the database buffer cache with other database objects for better performance. The Oracle database uses undo beyond transaction commit to provide read consistency for long running queries and also, to recover from logical corruptions.</p>
<p>The Oracle database provides a means of explicitly specifying the amount of undo to retain. The system automatically recycles expired undo to make space for new transactions to generate undo. The choice of undo retention value depends upon the length of the long running queries and the logical corruption recovery requirements. Users can, however, choose not to specify the undo retention and allow the system to provide the best retention for the given undo space. This best retention allows for best possible coverage for the long running queries and also, to recover from logical corruptions. The default undo retention is not guaranteed. The system can use oldest un-expired undo if it runs out of expired undo to use for an ongoing transaction.</p>
<p>New in Oracle Database 10<em>g</em> Release 1 is the ability to query data in the past for more than 5 days if the UNDO_RETENTION is set for greater then 5 days. Oracle will maintain the undo for that period of time as long as the Undo Tablespace datafiles are allocated enough disk space The following describes the steps required to ensure a database is enabled to use the Flashback Query and other flashback features that are dependent upon undo information:</p>
<ol>
<li>Ensure that the database is using an undo tablespace. Setting the UNDO_MANAGEMENT initialization parameter to AUTO specifies this.</li>
<li>Set the UNDO_RETENTION initialization parameter to a value that causes undo to be kept for a length of time that allows success of your longest query back in time or to recover from human errors.</li>
<li>To guarantee that unexpired undo will not be overwritten, set the RETENTION GUARANTEE clause for the undo tablespace.</li>
</ol>
<p>The unique feature of Flashback Query allows you to see the data as it was in the past, then choose exactly how to process the information. You might perform an analysis and then undo the changes, or capture changed data for further processing. The Flashback Query mechanism is flexible enough to be used in many situations. You can:</p>
<ul>
<li>query data as it existed in the past.</li>
<li>compare current data with past data. You can compare individual rows or do more complex comparisons such as finding the intersection or union.</li>
<li>recover deleted or changed data.</li>
</ul>
<p>Flashback Versions Query</p>
<p>Flashback Versions Query provides a way to audit the rows of a table and retrieve information about the transactions that changed the rows. It retrieves all committed versions of the rows that exist or ever existed between the time the query was issued and a point in time in the past. It accomplishes this by utilizing Automatic Undo Management.</p>
<p>The Flashback Versions Query is an extension to SQL that allows you to retrieve the different versions of rows in a given table that existed in a specific time interval. For any given table, a new row version is created every time the COMMIT statement is executed. The Flashback Versions Query returns a row for each version of the row that existed in the time interval you specify. You invoke the Flashback Versions Query functionality by using the VERSIONS BETWEEN clause of the SELECT statement.</p>
<p>Flashback Versions Query offers new additional columns that provide transaction details on the row data that allows a DBA to pinpoint when and how data is changed in the Oracle database.</p>
<ul>
<li>VERSIONS_XID &#8211; The transaction id that created this version of the row</li>
<li>VERSIONS_OPERATION &#8211; The action that created this version of the row (such as delete, insert, and update)</li>
<li>VERSIONS_STARTSCN &#8211; The SCN in which this row version first occurred</li>
<li>VERSIONS_ENDSCN &#8212; The SCN in which this row version was changed.</li>
</ul>
<p>The Flashback Versions Query is a powerful tool for the DBA to run analysis and answer the question, &#8216;How did this happen?&#8217; Not only can the DBA run manual analysis, but this is a powerful tool for the application&#8217;s developer as well. You can build customized applications for auditing purposes. Now everyone really is accountable for his or her actions.</p>
<p>Flashback Transaction Query</p>
<p>You may discover that somehow data in a table has been inappropriately changed. To research this change, you can use multiple flashback queries to view row data at specific points in time. More efficiently, you can use Flashback Versions Query feature to view all changes to a row over a period of time and the associated transaction id&#8217;s. This feature allows you to append VERSIONS BETWEEN clause to a SELECT statement that specifies an SCN or timestamp range between which you want to view changes to row values.</p>
<p>Once you identify an erroneous transaction, you can then use the Flashback Transaction Query feature to identify other changes that were done by the transaction, and to request the undo SQL to reverse those changes. The FLASHBACK_TRANSACTION_QUERY view is the means by which you obtain transaction history and undo SQL.</p>
<p>If you need to reverse the effects of the erroneous transaction, the undo SQL statements can be manually executed, allowing easy recovery from user or application errors. Flashback Transaction Query can increase online diagnosability of problems in your database and facilitate analysis and audits of transactions.</p>
<p>Summary</p>
<p>Human errors are one of the predominant causes of system failure. These errors are extremely difficult to avoid and can be particularly difficult to recover without advance planning and the right technology. The &#8216;right&#8217; technology is here: Oracle Database 11<em>g</em>. Why should an error that takes seconds to execute take hours or days to recovery from? It shouldn&#8217;t and now it doesn&#8217;t. Flashback revolutionizes recovery by operating on just the changed data. A single command surgically repairs corruptions from human errors. Flashback technology removes the complexity of recovery while decreasing the time it takes to recover from unpredictable human errors.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=75&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/10/tech-time-06102010/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>

		<media:content url="http://www.oracle.com/technology/deploy/availability/images/fb_nav.gif" medium="image" />

		<media:content url="http://www.oracle.com/technology/deploy/availability/images/fb_db.gif" medium="image" />

		<media:content url="http://www.oracle.com/technology/deploy/availability/images/fb_dg.gif" medium="image" />

		<media:content url="http://www.oracle.com/technology/deploy/availability/images/fb_drop.gif" medium="image" />
	</item>
		<item>
		<title>Database Desk 06/09/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/09/database-desk-06092010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/09/database-desk-06092010/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 12:49:19 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=70</guid>
		<description><![CDATA[Hello, You&#8217;re happiest while you&#8217;re making the greatest contribution. Robert F. Kennedy ____________________________________________________________________________________________ Making Incremental Backups with RMAN You can make consistent or inconsistent incremental backups of the database or individual tablespaces or datafiles. If the database is in NOARCHIVELOG mode, then you can only make consistent incremental backups, so the database must be closed cleanly. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=70&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p style="text-align:center;">You&#8217;re happiest while you&#8217;re making the greatest contribution.<br />
<strong>Robert F. Kennedy</strong></p>
<p style="text-align:center;"><strong>____________________________________________________________________________________________</strong></p>
<p style="text-align:center;"><strong></strong><strong>Making Incremental Backups with RMAN</strong></p>
<p><a name="437344"></a></p>
<p>You can make consistent or inconsistent incremental backups of the database or individual tablespaces or datafiles. If the database is in <code>NOARCHIVELOG</code> mode, then you can only make consistent incremental backups, so the database must be closed cleanly. In <code>ARCHIVELOG</code> mode the database can be open or closed.</p>
<p><a name="437346"></a></p>
<p><strong>To make an incremental backup:</strong></p>
<ol type="1">
<li><a name="448098"></a>After starting RMAN, run the <code>BACKUP</code> <code>INCREMENTAL</code> command at the RMAN prompt. This example makes a level 0 backup:
<pre><a name="437360"></a>BACKUP INCREMENTAL LEVEL = 0 DATABASE;
<a name="437364"></a></pre>
<p><a name="437365"></a>This example makes a differential level 1 backup of the <code>SYSTEM</code> tablespace and datafile <code>sales.f</code>; it will only back up those data blocks changed since the most recent level 1 or level 0 backup:</p>
<pre><a name="437368"></a>BACKUP INCREMENTAL LEVEL = 1
<a name="437370"></a>  TABLESPACE SYSTEM
<a name="437371"></a>  DATAFILE '?/oradata/trgt/tools01.dbf';
<a name="439761"></a></pre>
<p><a name="439290"></a>This example makes a cumulative level 2 backup of the tablespace <code>users</code>; it will only back up those data blocks changed since the most recent level 1 or level 0 backup:</p>
<pre><a name="439293"></a>BACKUP INCREMENTAL LEVEL = 2 CUMULATIVE TABLESPACE users;
<a name="437373"></a></pre>
</li>
<li><a name="437374"></a>Optionally, issue a <code>LIST</code> <code>BACKUP</code> command to see a listing of backup sets and pieces. For example:
<pre><a name="452521"></a>LIST BACKUP OF DATABASE;</pre>
</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=70&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/09/database-desk-06092010/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Desk &#8211; 06/08/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/08/oracle-desk-06082010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/08/oracle-desk-06082010/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 15:15:52 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=67</guid>
		<description><![CDATA[Hello, Inspiration and genius&#8211;one and the same. Victor Hugo ________________________________________________________________________________________________ Configuring and Allocating Channels for Use in Backup and Copy Jobs You have the following mutually exclusive options for executing backup and copy jobs: Configure automatic channels with the CONFIGURE command, and then issue BACKUP and COPY commands at the RMAN prompt or within a RUN block Allocate channels [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=67&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;color:#000099;">Inspiration and genius&#8211;one and the same.</span><strong><span style="font-family:Verdana, Arial, Helvetica, sans-serif;color:#000099;"><br />
Victor Hugo</span></strong></p>
<p style="text-align:center;"><span style="font-family:Verdana, Arial, Helvetica, sans-serif;color:#000099;"><strong>________________________________________________________________________________________________</strong></span></p>
<h2><span style="font-family:Arial, Helvetica, sans-serif;color:#330099;">Configuring and Allocating Channels for Use in Backup and Copy Jobs</span></h2>
<p><a name="443335"></a></p>
<p>You have the following mutually exclusive options for executing backup and copy jobs:</p>
<ul>
<li><a name="443338"></a>Configure automatic channels with the <code>CONFIGURE</code> command, and then issue <code>BACKUP</code> and <code>COPY</code> commands at the RMAN prompt or within a <code>RUN</code> block</li>
<li><a name="443339"></a>Allocate channels manually and issue <code>BACKUP</code> and <code>COPY</code> commands within a <code>RUN</code> block</li>
</ul>
<p><a name="443341"></a></p>
<p>The easiest way to make backups is to configure automatic channels. For example, so long as you have already configured an <code>sbt</code> device type, you can configure a default<code>sbt</code> channel as follows (note that the <code>PARMS</code> value is vendor-specific):</p>
<pre><a name="443346"></a>CONFIGURE DEVICE TYPE sbt PARALLELISM 1;
<a name="449152"></a>CONFIGURE DEFAULT DEVICE TYPE TO sbt;
<a name="448298"></a>CONFIGURE CHANNEL DEVICE TYPE sbt PARMS 'ENV=(NSR_SERVER=bksvr1)';
<a name="448299"></a></pre>
<p><a name="443351"></a></p>
<p>Then, you can back up the database to tape at the RMAN prompt as follows:</p>
<pre><a name="443352"></a>BACKUP DATABASE;
<a name="443374"></a></pre>
<p><a name="443353"></a></p>
<p>RMAN preconfigures a <code>DISK</code> channel for you, so you can make disk backups using automatic channels without performing any configuration whatsoever.</p>
<p><a name="448302"></a></p>
<p>The other method is to allocate channels manually within a run job. For example, this command allocates multiple disk channels and then backs up the database and archived redo logs:</p>
<pre><a name="443358"></a>RUN
<a name="450833"></a>{
<a name="443359"></a>  ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
<a name="443797"></a>  ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
<a name="443802"></a>  ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
<a name="443360"></a>  BACKUP DATABASE PLUS ARCHIVELOG;
<a name="443363"></a>}
<a name="450174"></a></pre>
<p><a name="443356"></a></p>
<p>This example manually allocates an <code>sbt</code> channel (with a vendor-specific <code>PARMS</code> value) and backs up a datafile copy:</p>
<pre><a name="443367"></a>RUN
<a name="450854"></a>{
<a name="443368"></a>  ALLOCATE CHANNEL ch1 DEVICE TYPE sbt PARMS 'ENV=(NSR_SERVER=bksvr1)';
<a name="443369"></a>  BACKUP DATAFILECOPY '/tmp/system01.dbf';
<a name="443370"></a>}
<a name="443378"></a></pre>
<p><a name="443375"></a></p>
<p>For the most part, the procedures in this chapter assume that you have configured automatic channels.</p>
<p>================================================================================================</p>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="center"><strong>$150 Off 300 a Netbook at Lenovo</strong></td>
</tr>
<tr>
<td align="center">Today at 12:00PM ET</td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=67&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/08/oracle-desk-06082010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
		<item>
		<title>Tech Town 06/01/2010</title>
		<link>http://newdelhitime.wordpress.com/2010/06/01/tech-town-06012010/</link>
		<comments>http://newdelhitime.wordpress.com/2010/06/01/tech-town-06012010/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 14:07:53 +0000</pubDate>
		<dc:creator>Oracle World News</dc:creator>
		
		<guid isPermaLink="false">http://newdelhitime.wordpress.com/?p=64</guid>
		<description><![CDATA[Good Morning&#8230;. Wel-Come back to work day after memorial day weekend.. Try not to become a man of success but a man of value. Albert Einstein __________________________________________________________________________________________________ Each week I check statistics for our web site, just to see if anyone is stopping by and what they might be interested in. One of the questions [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=64&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Good Morning&#8230;.</p>
<p>Wel-Come back to work day after memorial day weekend..</p>
<p style="text-align:center;">Try not to become a man of success but a man of value.<br />
<strong>Albert Einstein</strong></p>
<p style="text-align:center;"><strong>__________________________________________________________________________________________________</strong></p>
<p style="text-align:center;">
<table id="table2" style="height:492px;" border="0" width="850" bgcolor="#ffffff">
<tbody>
<tr>
<td valign="top">Each week I check statistics for our web site, just to see if anyone is stopping by and what they might be interested in. One of the questions that has popped up more than once is &#8220;how do I know if my database (instance) was started with a pfile or an spfile?&#8221;Probably the best way to determine if an spfile was used to start the instance is to query the data dictionary view v$spparameter. According to the Oracle documentation (<strong>bolded</strong> is my note)</p>
<div>
<blockquote><p><code>"V$SPPARAMETER</code> displays information about the contents of the server parameter file. If a server parameter file <strong>(spfile)</strong> was not used to start the instance, then each row of the view will contain <code>FALSE</code> in the<code>ISSPECIFIED</code> column.&#8221;</p></blockquote>
<p>The documentation further states that if an spfile was not used to start the instance, then</p>
<ul>
<li>The <strong>value</strong> column will be <strong>null</strong> for all rows.</li>
<li>The <strong>ordinal</strong> column will be <strong>0</strong> for all rows.</li>
</ul>
</div>
<p>It is possible to use both a pfile and an spfile at instance startup. In this situation, when starting the database, you would use a pfile, and then specify an spfile using the startup parameter <strong>spfile</strong>. If the instance is not using an spfile at startup, then spfile parameter value will be null.</p>
<p>SELECT name, value<br />
FROM   v$parameter<br />
WHERE  name = &#8216;spfile&#8217;;</p>
<p>NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
VALUE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
spfile<br />
<strong>&lt;null&gt;</strong></p>
<p>If the instance is using an spfile, then the query will return the location of the spfile. If the instance is started using an spfile in the default location, Oracle will default the value, as in the query below.</p>
<p>SELECT name, value<br />
FROM   v$parameter<br />
WHERE  name = &#8216;spfile&#8217;;</p>
<p>NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
VALUE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
spfile<br />
%ORACLE_HOME%\DATABASE\SPFILE%ORACLE_SID%.ORA</p>
<p><strong>N</strong><span style="font-family:'Times New Roman';"><strong>ote</strong>: This tip was tested using Oracle9i.</span></td>
</tr>
</tbody>
</table>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/newdelhitime.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/newdelhitime.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/newdelhitime.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/newdelhitime.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/newdelhitime.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/newdelhitime.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/newdelhitime.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/newdelhitime.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=newdelhitime.wordpress.com&amp;blog=13599399&amp;post=64&amp;subd=newdelhitime&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://newdelhitime.wordpress.com/2010/06/01/tech-town-06012010/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a96a2a336d358d47b62ed35d6f06f8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">newdelhitime</media:title>
		</media:content>
	</item>
	</channel>
</rss>
