<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Topics with the most views</title>
<link>http://www.forum.askdba.org/</link>
<description>Forum for Oracle DBA&#039;s</description>
<language>en</language>
<pubDate>Sat, 11 Feb 2012 11:44:12 +0000</pubDate>

<item>
<title>Saurabh Sood on "ORA-29760: instance_number parameter not specified"</title>
<link>http://www.forum.askdba.org/topic/ora-29760-instance_number-parameter-not-specified#post-75</link>
<pubDate>Fri, 31 Jul 2009 10:26:39 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">75@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Try to put the following parameters in this pfile:&#60;br /&#62;
*.cluster_database=true&#60;br /&#62;
*.cluster_database_instances=2&#60;br /&#62;
*.instance_type=asm&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Saurabh Sood
&#60;/p&#62;</description>
</item>
<item>
<title>daniesh on "clone database using Hot backup"</title>
<link>http://www.forum.askdba.org/topic/clone-database-using-hot-backup#post-46</link>
<pubDate>Wed, 26 Nov 2008 07:15:52 +0000</pubDate>
<dc:creator>daniesh</dc:creator>
<guid isPermaLink="false">46@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Amit,&#60;br /&#62;
Thanks for your time and input.
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Multiple Oracle home RAC"</title>
<link>http://www.forum.askdba.org/topic/multiple-oracle-home-rac#post-26</link>
<pubDate>Tue, 30 Sep 2008 11:28:21 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">26@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;1) Yes, you need to use only one ASM and CRS version.&#60;/p&#62;
&#60;p&#62;2) Yes, in this case it will support 10.2 and 10.1 databases&#60;/p&#62;
&#60;p&#62;3) Yes it can support. But again if there is any feature which is available in newer release , you will not be able to use it with lower release database. Starting from 11g, you have COMPATIBLE.ASM and COMPATIBLE.RDBMS disk group attributes which specify the compatibility settings for Oracle ASM and database instances. Check following for more detail&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmdiskgrps.htm#CHDDIGBJ&#34; rel=&#34;nofollow&#34;&#62;http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmdiskgrps.htm#CHDDIGBJ&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "ORA-01013: user requested cancel of current operation"</title>
<link>http://www.forum.askdba.org/topic/ora-01013-user-requested-cancel-of-current-operation#post-34</link>
<pubDate>Fri, 14 Nov 2008 04:22:01 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">34@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Could you actually let us know what exact command you used to shutdown the database. Also give us the full alert log content after you issued shutdown.&#60;/p&#62;
&#60;p&#62;ORA-1013 would normally arise when you press Ctrl + C after issuing a command at sqlplus prompt..&#60;/p&#62;
&#60;p&#62;-Amit
&#60;/p&#62;</description>
</item>
<item>
<title>Sasi on "Error while creating of Snapshot"</title>
<link>http://www.forum.askdba.org/topic/error-while-creating-of-snapshot#post-16</link>
<pubDate>Fri, 29 Aug 2008 17:13:39 +0000</pubDate>
<dc:creator>Sasi</dc:creator>
<guid isPermaLink="false">16@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Monash_aus,&#60;/p&#62;
&#60;p&#62;&#38;lt;&#38;lt; trying to create a snapshot in a different schema to that of base &#38;gt;&#38;gt; &#60;/p&#62;
&#60;p&#62;thats an interesting one.. creating a  MV/snapshot in a different schema to that of base schema.&#60;/p&#62;
&#60;p&#62;Snapshots were used in 8i. From 9i we should use materialized views (MV) . To create a fast refresh MV we need to create a MV log first  in the source schema and give access to this MV log to the target schema.&#60;/p&#62;
&#60;p&#62;In case if you are not familiar with Materialized View (MV) , refer the below steps to create a MV that will get refreshed once an hour.&#60;/p&#62;
&#60;p&#62;-----------------------------------  Start -------------------------------------------------------------------&#60;br /&#62;
Lets say you have two schemas , SAM and  JOHN .&#60;/p&#62;
&#60;p&#62;Now ,SAM wants to create a materialized view (TAB1_MV) on JOHN.TAB1 table,&#60;/p&#62;
&#60;p&#62;1st SAM should have the following privileges granted to him&#60;/p&#62;
&#60;p&#62;1.As sysdba grant the following privileges to SAM.&#60;/p&#62;
&#60;p&#62;grant create materialized view to SAM;&#60;br /&#62;
grant global query rewrite to SAM;&#60;br /&#62;
grant on commit refresh to SAM;&#60;/p&#62;
&#60;p&#62;2.Login as user JOHN and grant the required table access to SAM,&#60;/p&#62;
&#60;p&#62;grant select on JOHN.TAB1 to SAM;&#60;/p&#62;
&#60;p&#62;create materialized view log on JOHN.TAB1 with primary key;&#60;/p&#62;
&#60;p&#62;The above sql will create a  MV log named MLOG$_TAB1 in JOHN schema.&#60;/p&#62;
&#60;p&#62;grant select on JOHN.MLOG$_TAB1 to SAM;&#60;/p&#62;
&#60;p&#62;3.Now connect to SAM schema and run the follwoing SQLs,&#60;/p&#62;
&#60;p&#62;create materialized view TAB1_MV&#60;br /&#62;
    build immediate&#60;br /&#62;
    refresh fast&#60;br /&#62;
    start with sysdate&#60;br /&#62;
    next sysdate+1/24&#60;br /&#62;
    with primary key&#60;br /&#62;
    enable query rewrite&#60;br /&#62;
    as&#60;br /&#62;
    SELECT * from TAB1;&#60;/p&#62;
&#60;p&#62;This creates the required MV and populates the data and refresh takes ple every hour.&#60;/p&#62;
&#60;p&#62;Hope this helps.&#60;/p&#62;
&#60;p&#62;-----------------------------------------------------------------------&#60;br /&#62;
Note 1:&#60;/p&#62;
&#60;p&#62;To check if SAM has appropriate privileges to create a materialized view run the following,&#60;/p&#62;
&#60;p&#62;select grantee,privilege from user_sys_privs ; &#60;/p&#62;
&#60;p&#62;create materialized&#60;br /&#62;
global query rewrite&#60;br /&#62;
on commit refresh&#60;/p&#62;
&#60;p&#62;should see an output something like above&#60;/p&#62;
&#60;p&#62;Note 2:&#60;/p&#62;
&#60;p&#62;If the materialized view log name is more than 30 characters then the name would be trunacted automatically while creating MV log. This will give an error as table not found while creating MV.&#60;br /&#62;
----------------------------------------------------- End ----------------------------------------------&#60;/p&#62;
&#60;p&#62;For more info on MV refer, (9i)&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm&#34; rel=&#34;nofollow&#34;&#62;http://download.oracle.com/docs/cd/B10501_01/server.920/a96567/repmview.htm&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "CPU patch and catcpu.sql"</title>
<link>http://www.forum.askdba.org/topic/cpu-patch-and-catcpusql#post-62</link>
<pubDate>Tue, 24 Mar 2009 13:48:08 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">62@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Daniesh,&#60;/p&#62;
&#60;p&#62;I would say it's a question which never came to my mind. This is my understanding from the captcpu.sql notes. &#60;/p&#62;
&#60;p&#62;Catcpu.sql inturn calls a script called catbundle.sql which is located under $ORACLE_HOME/rdbms/admin&#60;/p&#62;
&#60;p&#62;This script will load sql files in database by looking in bundledata_CPU.xml for file information for particular patch. It will be creating a dynamic apply sql file and run it.&#60;/p&#62;
&#60;p&#62;Hope this helps.&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Amit
&#60;/p&#62;</description>
</item>
<item>
<title>Anonymous on "PKRS-1009 failed to start ASM instance"</title>
<link>http://www.forum.askdba.org/topic/pkrs-1009-failed-to-start-asm-instance#post-156</link>
<pubDate>Wed, 02 Jun 2010 08:12:10 +0000</pubDate>
<dc:creator>Anonymous</dc:creator>
<guid isPermaLink="false">156@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Permissions on init+ASM2.ora is right.I am only facing this problem when i was starting ASM through srvctl command otherwise it's working fine.&#60;/p&#62;
&#60;p&#62;Please note this point.
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "asm tool"</title>
<link>http://www.forum.askdba.org/topic/asm-tool#post-36</link>
<pubDate>Thu, 20 Nov 2008 08:21:01 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">36@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;asmtool or asmtoolg(Gui version) helps to stamp the new disks on windows for using as ASM Disks. You can use asmtoolg utility present in %ORACLE_HOME%\bin directory which will provide GUI for stamping the disks.&#60;/p&#62;
&#60;p&#62;As per Oracle docs &#60;/p&#62;
&#60;pre&#62;asmtoolg shows the devices available on the system. Unrecognized disks are labeled as a &#34;Candidate device.&#34; Unformatted partitions are labeled as &#34;Oracle raw device file.&#34; Stamped ASM disks are labeled as &#34;Stamped ASM disk,&#34; and unstamped ASM disks are labeled as &#34;Unstamped ASM disks.&#34; The tool also shows disks that are recognized by Windows as a file system (such as NTFS). These disks are not available for use as ASM disks, and cannot be selected. &#60;/pre&#62;
&#60;p&#62;You can find the above information and also steps to use asmtoolg at below link&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://download.oracle.com/docs/cd/B28359_01/install.111/b28250/racstorage.htm#BABCAFIB&#34; rel=&#34;nofollow&#34;&#62;http://download.oracle.com/docs/cd/B28359_01/install.111/b28250/racstorage.htm#BABCAFIB&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "11g Useful Sql"</title>
<link>http://www.forum.askdba.org/topic/11g-useful-sql#post-246</link>
<pubDate>Fri, 22 Jul 2011 13:12:27 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">246@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Amit,&#60;/p&#62;
&#60;p&#62;In 10.2.0.4, if we do not want to apply patch, we can do this by setting event 5614566 at session level and then using dbms_shared_pool.purge (may have to run dbmspool.sql if purge is not present)&#60;/p&#62;
&#60;p&#62;Cheers!!
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "DR rebuild- Data restore issue"</title>
<link>http://www.forum.askdba.org/topic/dr-rebuild-data-restore-issue#post-140</link>
<pubDate>Sun, 14 Mar 2010 06:15:39 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">140@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Please update the complete backup script that you are using to take backup
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "error while addign a disk to asm diskgroup"</title>
<link>http://www.forum.askdba.org/topic/error-while-addign-a-disk-to-asm-diskgroup#post-19</link>
<pubDate>Fri, 12 Sep 2008 16:18:31 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">19@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Anu,&#60;/p&#62;
&#60;p&#62;1. Does the disk appear under v$asm_disk?&#60;br /&#62;
You can check it as:&#60;/p&#62;
&#60;p&#62;select group_number, name, path from v$asm_disk;&#60;/p&#62;
&#60;p&#62;2. Is this a new LUN created?&#60;/p&#62;
&#60;p&#62;3. Have you used  asmtoolg to delete any existing lun ?&#60;br /&#62;
If asmtoolg was used to delete any existing lun then it is mandatory to bounce the ASM instance and then try to add a lun from scratch.&#60;/p&#62;
&#60;p&#62;-Saurabh Sood
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Checking Listener log in 11g"</title>
<link>http://www.forum.askdba.org/topic/checking-listener-log-in-11g#post-173</link>
<pubDate>Thu, 12 Aug 2010 12:51:29 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">173@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Starting Oracle 11g, architecture for trace file and log files have changed. Alert.log and listener.log files are now XML based. &#60;/p&#62;
&#60;p&#62;To check listener log in 11g, following steps need to be done&#60;/p&#62;
&#60;p&#62;$adrci&#60;br /&#62;
adrci&#38;gt; show homes&#60;br /&#62;
ADR Homes:&#60;br /&#62;
diag/tnslsnr/orcl11/listener&#60;br /&#62;
adrci&#38;gt; set home diag/tnslsnr/orcl11/listener&#60;br /&#62;
adrci&#38;gt; show tracefile&#60;br /&#62;
     diag/tnslsnr/orcl11/listener/trace/listener.log&#60;br /&#62;
adrci&#38;gt; show trace listener.log
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "error in invoking target &#039;client_sharedlib&#039;"</title>
<link>http://www.forum.askdba.org/topic/error-in-invoking-target-client_sharedlib#post-69</link>
<pubDate>Wed, 08 Jul 2009 04:51:41 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">69@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Daniesh,&#60;/p&#62;
&#60;p&#62;paste the content of installation log file, it will help me to know what exactly is happening at your end.&#60;/p&#62;
&#60;p&#62;-- Saurabh Sood
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Monitoring top 10 memory consuming process on AIX"</title>
<link>http://www.forum.askdba.org/topic/monitoring-top-10-memory-consuming-process-on-aix#post-79</link>
<pubDate>Tue, 25 Aug 2009 16:30:35 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">79@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;At times, you wish to find the processes with maximum memory consumption. This can be easily done using following command. Copy contents in file and run it like as vmstat command&#60;/p&#62;
&#60;pre&#62;
### Usage mem_mon.sh (interval) (occurences) e.g sh mem_mon.sh 2 10 ###
### This will give top 10 memory consuming processes #####
wt_time=$1
lmt=$2
 let a=0
while [[ $a -lt $lmt ]] ; do
ps axwv &#124;sort -nrk 7,7&#124;grep -v &#34;COMMAND&#34; \
&#124;awk 'BEGIN {printf (&#34;MemoryinKb \t ProcessId \t PerCPU \t PerMem \t Command \n&#34;)}{t=t+$7 - $10 ;printf(&#34;%13d \t %10d \t %6.2f \t %6.2f \t %s \n&#34;,$7 - $10,$1,$11,$12,$13)}END{print t}'&#124;head -10
 let      a+=1
sleep $wt_time
done
&#60;/pre&#62;</description>
</item>
<item>
<title>Saurabh Sood on "Rman duplicate with cold backup"</title>
<link>http://www.forum.askdba.org/topic/rman-duplicate-with-cold-backup#post-27</link>
<pubDate>Thu, 02 Oct 2008 07:20:10 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">27@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Ani,&#60;/p&#62;
&#60;p&#62;It requires target database in either MOUNT or OPEN stage to duplicate database using RMAN. Could you give the complete RMAN command that you are using to duplicate the database?
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "register standby database in recovery catalog."</title>
<link>http://www.forum.askdba.org/topic/register-standby-database-in-recovery-catalog#post-188</link>
<pubDate>Sun, 17 Oct 2010 04:15:52 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">188@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Daniesh,&#60;/p&#62;
&#60;p&#62;Apologies, didnt read the question properly. I have not seen any configuration using different catalog for primary and standby (there could be but I havent seen it). Moreover purpose of using rman at standby site is to reduce workload on primary so that in case of failure you can restore the backup. In case of failure, you would need to connect to this very catalog. Anyways I think you can register first primary database at catalog and then take standy backups.&#60;br /&#62;
Checked docs (&#60;a href=&#34;http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcatdb.htm#CIHECCEF&#34; rel=&#34;nofollow&#34;&#62;http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcatdb.htm#CIHECCEF&#60;/a&#62;) and they mention that registration can only be done at primary database.&#60;/p&#62;
&#60;p&#62;-Amit
&#60;/p&#62;</description>
</item>
<item>
<title>Anonymous on "ORA-16055"</title>
<link>http://www.forum.askdba.org/topic/ora-16055#post-154</link>
<pubDate>Wed, 02 Jun 2010 08:08:05 +0000</pubDate>
<dc:creator>Anonymous</dc:creator>
<guid isPermaLink="false">154@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;you have a standby database and the standby needs a log that likely you already removed where it thinks it should be /u05/arch/
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "Datapump dumpfile with dates"</title>
<link>http://www.forum.askdba.org/topic/datapump-dumpfile-with-dates#post-152</link>
<pubDate>Thu, 20 May 2010 09:34:05 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">152@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;As you mentioned earlier, and that i missed..... You are using this on windows ..&#60;/p&#62;
&#60;p&#62;The syntax which I have mentioned is not for windows but will work only for unix platforms only..
&#60;/p&#62;</description>
</item>
<item>
<title>deepika.dhamija@gmail.com on "ASM and Multipathing"</title>
<link>http://www.forum.askdba.org/topic/asm-and-multipathing#post-111</link>
<pubDate>Wed, 09 Dec 2009 12:29:40 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">111@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Amit,&#60;/p&#62;
&#60;p&#62;I am finally able to achieve what I intended to do.&#60;/p&#62;
&#60;p&#62;Many Thanks to you for your valuable suggestions.
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "RMAN-05001 While Using RMAN Duplicate"</title>
<link>http://www.forum.askdba.org/topic/rman-05001-while-using-rman-duplicate#post-102</link>
<pubDate>Thu, 22 Oct 2009 10:40:58 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">102@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;RMAN-05001 can occur while cloning if:&#60;/p&#62;
&#60;p&#62;1. The target server have same directory structure as of the source i.e you have to use something like:&#60;/p&#62;
&#60;p&#62;db_file_name_convert=(&#34;/u01/app/oracle/1020/&#34;,&#34;/u01/app/oracle/1020/&#34;)&#60;/p&#62;
&#60;p&#62;and while issuing:&#60;/p&#62;
&#60;p&#62;RMAN &#38;gt; duplicate target database to aux;&#60;/p&#62;
&#60;p&#62;RMAN-05001: auxiliary filename /u01/app/1020/fact01.dbf conflicts with a file used by the target database&#60;/p&#62;
&#60;p&#62;SOLUTION:&#60;br /&#62;
=========&#60;br /&#62;
Use &#34;NOFILENAMECHECK&#34; clause as:&#60;/p&#62;
&#60;p&#62;RMAN &#38;gt; duplicate target database to aux NOFILENAMECHECK;&#60;/p&#62;
&#60;p&#62;Cheers!!!&#60;br /&#62;
Saurabh Sood
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Oracle 11g install performance on Sun T5220"</title>
<link>http://www.forum.askdba.org/topic/oracle-11g-install-performance-on-sun-t5220#post-32</link>
<pubDate>Thu, 13 Nov 2008 06:44:16 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">32@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;I have seen dbca taking time when all options like JVM,XML , OLAP are chosen. By default all these are checked in and you have to uncheck them if you do not want it. Did you see the place where DBCA was taking more time? was it during data dictionary creation phase?&#60;/p&#62;
&#60;p&#62;-Amit
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "ASM not starting up after system reboot"</title>
<link>http://www.forum.askdba.org/topic/asm-not-starting-up-after-system-reboot#post-15</link>
<pubDate>Fri, 29 Aug 2008 07:21:04 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">15@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Cool!! Do update ASM alert log entry also in case issue does not resolve..
&#60;/p&#62;</description>
</item>
<item>
<title>deepika.dhamija@gmail.com on "ASM Volumes and DiskGroups"</title>
<link>http://www.forum.askdba.org/topic/asm-volumes-and-diskgroups#post-117</link>
<pubDate>Wed, 30 Dec 2009 04:19:40 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">117@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Thanks Amit for your reply.&#60;/p&#62;
&#60;p&#62;I am working for a company that makes protection software and we are planning to extend it to support RAC.&#60;br /&#62;
Yes, we do realize that RAC Databases are complex and we therefore are also getting in touch with a DBA. These were some of the preliminary doubts that I had.&#60;/p&#62;
&#60;p&#62;Thanks anyways for your response.
&#60;/p&#62;</description>
</item>
<item>
<title>amansharma on "Easy conversion of Datablock address(DBA) to file# and block#"</title>
<link>http://www.forum.askdba.org/topic/easy-conversion-of-datablock-addressdba-to-file-and-block#post-84</link>
<pubDate>Sat, 29 Aug 2009 13:39:17 +0000</pubDate>
<dc:creator>amansharma</dc:creator>
<guid isPermaLink="false">84@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Good one! DBMs-Util is a good package.I was going to add this as well in the blog post but than just felt lazy and left it :-). &#60;/p&#62;
&#60;p&#62;Are the comments working on my blog now?&#60;/p&#62;
&#60;p&#62;Aman....
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Disabling Tablespace threshold alert for particular tablespace"</title>
<link>http://www.forum.askdba.org/topic/disabling-tablespace-threshold-alert-for-particular-tablespace#post-85</link>
<pubDate>Thu, 10 Sep 2009 10:51:59 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">85@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;To disable Threshold for tablespace (Percent type), use following statement&#60;/p&#62;
&#60;pre&#62;
exec  DBMS_SERVER_ALERT.SET_THRESHOLD( -
 metrics_id =&#38;gt; DBMS_SERVER_ALERT.TABLESPACE_PCT_FULL, -
warning_operator =&#38;gt; DBMS_SERVER_ALERT.OPERATOR_DO_NOT_CHECK,-
  warning_value =&#38;gt; '0',  critical_operator =&#38;gt; DBMS_SERVER_ALERT.OPERATOR_DO_NOT_CHECK,-
 critical_value =&#38;gt; '0',  observation_period =&#38;gt; 1,-
  consecutive_occurrences =&#38;gt; 1,  instance_name =&#38;gt; NULL, -
object_type =&#38;gt; DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,-
  object_name =&#38;gt; 'USERS');
&#60;/pre&#62;
&#60;p&#62;Replace tablespace USER with the tablespace you want to exclude from monitoring&#60;/p&#62;
&#60;p&#62;If you have also enabled tablespace alerts based on Bytes left, then use following&#60;/p&#62;
&#60;pre&#62;
exec  DBMS_SERVER_ALERT.SET_THRESHOLD(  -
metrics_id =&#38;gt; DBMS_SERVER_ALERT.TABLESPACE_BYT_FREE,  -
warning_operator =&#38;gt; DBMS_SERVER_ALERT.OPERATOR_DO_NOT_CHECK,  -
warning_value =&#38;gt; '0', -
 critical_operator =&#38;gt; DBMS_SERVER_ALERT.OPERATOR_DO_NOT_CHECK, -
critical_value =&#38;gt; '0',  observation_period =&#38;gt; 1, -
 consecutive_occurrences =&#38;gt; 1,  -
instance_name =&#38;gt; NULL, -
object_type =&#38;gt; DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE, -
 object_name =&#38;gt; 'USERS');
&#60;/pre&#62;</description>
</item>
<item>
<title>Anonymous on "how to connect 11gR2 RAC db using sql"</title>
<link>http://www.forum.askdba.org/topic/how-to-connect-11gr2-rac-db-using-sql#post-159</link>
<pubDate>Sat, 12 Jun 2010 11:06:24 +0000</pubDate>
<dc:creator>Anonymous</dc:creator>
<guid isPermaLink="false">159@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;HI, Looking like a interesting thread going on. Its good that people are actually willing to share their views on this topic.
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "SYSASM not granted to sys."</title>
<link>http://www.forum.askdba.org/topic/sysasm-not-granted-to-sys#post-119</link>
<pubDate>Tue, 12 Jan 2010 06:25:34 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">119@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;As per upgrade guide, you had to add a user to password file before upgrading ASM instance.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/upgrade.htm#BABEJBFD&#34; rel=&#34;nofollow&#34;&#62;http://download.oracle.com/docs/cd/B28359_01/server.111/b28300/upgrade.htm#BABEJBFD&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Did you try recreating password file for ASM?Use orapwd to do same.&#60;br /&#62;
 If it still doesn't work, then would recommend you to raise SR.
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "Exclude parameter in Import Script??"</title>
<link>http://www.forum.askdba.org/topic/exclude-parameter-in-import-script#post-89</link>
<pubDate>Wed, 16 Sep 2009 16:04:25 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">89@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Alok,&#60;/p&#62;
&#60;p&#62;Here is a very quick reply (The first very basic thing):&#60;/p&#62;
&#60;p&#62;In 9i there is no EXCLUDE clause. To use EXCLUDE you have to use DATAPUMP.&#60;/p&#62;
&#60;p&#62;In 9i :&#60;br /&#62;
1. Get the list of all tables by using :&#60;br /&#62;
select table_name from dba_tables where table_name not in (those 20 tables) ......and some more clauses here....&#60;/p&#62;
&#60;p&#62;2. Now you have a list of all the tables that you want to import. Use TABLES= clause with imp : use $ imp help=y also&#60;/p&#62;
&#60;p&#62;3. prepare a par file and do the import.&#60;/p&#62;
&#60;p&#62;Cheers!!!&#60;br /&#62;
Saurabh Sood
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "Database shutdown hangs."</title>
<link>http://www.forum.askdba.org/topic/database-shutdown-hangs#post-123</link>
<pubDate>Wed, 20 Jan 2010 14:42:21 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">123@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Pratheep,&#60;/p&#62;
&#60;p&#62;Processes with status &#34;D&#34; cannot be killed at all. They are in &#34;D&#34; status because they are sleeping and waiting for a resource like &#34;Kernel lock&#34; etc. which they will never get.&#60;/p&#62;
&#60;p&#62;If you are seeing these ospid in v$process they will not allow &#34;shutdown immediate&#34; or &#34;shutdown abort&#34;.&#60;/p&#62;
&#60;p&#62;The only way to remove such processes is to &#34;reboot&#34; server.&#60;/p&#62;
&#60;p&#62;These processes cannot be traced down.&#60;/p&#62;
&#60;p&#62;Check If you can apply Dead Connection detection (DCD) to avoid such situations in future.&#60;/p&#62;
&#60;p&#62;Cheers!!!
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "Oracle 10g installation with 4GB RAM"</title>
<link>http://www.forum.askdba.org/topic/oracle-10g-installation-with-4gb-ram#post-38</link>
<pubDate>Mon, 24 Nov 2008 05:08:09 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">38@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi DK,&#60;/p&#62;
&#60;p&#62;/3GB  /PAE support is only available if you are using server with more than 4GB RAM.&#60;/p&#62;
&#60;p&#62;If you have more than 4GB of RAM then you can change your server's boot.ini file and put a /3GB /PAE in it and can utilize memory upto 16GB.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Saurabh Sood
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Monitoring archive gap in standby"</title>
<link>http://www.forum.askdba.org/topic/monitoring-archive-gap-in-standby#post-80</link>
<pubDate>Tue, 25 Aug 2009 16:35:50 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">80@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;You can use following sql to monitor the gap in standby using following sql&#60;/p&#62;
&#60;pre&#62;
sqlplus -s &#34;/ as sysdba&#34; &#38;lt;&#38;lt;EOF
set head off
set feedb off
select (select name from V\$DATABASE),(select max(sequence#) from v\$archived_log
where dest_id=1) Current_primary_seq,( select max(sequence#) from v$\archived_log
where to_date(next_time,'dd-mm-yyyy') &#38;gt; sysdate-1
and dest_id=2 ) max_stby,(select nvl((select max(sequence#) - min(sequence#) from v\$archived_log
where to_date(next_time,'dd-mm-yyyy') &#38;gt; sysdate-1 and dest_id=2 and applied='NO'),0)  from
dual) &#34;To be applied&#34;,((select max(sequence#) from v\$archived_log
where dest_id=1) - (select max(sequence#) from v\$archived_log
where dest_id=2)) &#34;To be Shipped&#34;
from dual
/
&#60;/pre&#62;
&#60;p&#62;Assumptions -&#60;br /&#62;
Dest_id=1 --&#38;gt; Primary DB&#60;br /&#62;
Dest_id=2 --&#38;gt;Standby site&#60;/p&#62;
&#60;p&#62;This query reports the number of archives which need's to be shipped along with number of archive log's which need to be applied. If you are looking for script, you can get the logic from following thread&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.oracle.com/forums/thread.jspa?messageID=3708034&#34; rel=&#34;nofollow&#34;&#62;http://forums.oracle.com/forums/thread.jspa?messageID=3708034&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "DB and Listener availability monitoring script"</title>
<link>http://www.forum.askdba.org/topic/db-and-listener-availability-script#post-134</link>
<pubDate>Thu, 11 Mar 2010 06:13:39 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">134@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Find below a simple script to monitor db and listener. It uses utl_mail procedure to connect to a mailserver db and send a mail in case of failure.&#60;br /&#62;
You can also use mailx function to send mail.&#60;br /&#62;
I have hard-coded password , but you can also use Oracle wallet to store password. Refer to my blog post &#60;a href=&#34;http://askdba.org/weblog/2009/09/using-oracle-wallet-to-execute-shell-scriptcron-without-hard-coded-oracle-database-password/&#34;&#62; here &#60;/a&#62; for details&#60;/p&#62;
&#60;p&#62;You need to pass ORACLE_SID as parameter. So to schedule a cron to check every 10 mins, you need to specify like below&#60;/p&#62;
&#60;pre&#62;
00,10,20,30,40,50 * * * * sh /home/oracle/monitor/db_check.sh orcl
&#60;/pre&#62;
&#60;p&#62;Find below the script. Any suggestions/improvements are welcome&#60;/p&#62;
&#60;pre&#62;

###################################################################
## Check Database Availability
###################################################################
##########Env Variables #############
export DBA_MAIL1='amit.bansal@askdba.org'
export DBA_MAIL2='saurabh.sood@askdba.org'
export ORACLE_HOME=/oracle/ora_db
export TNS_ADMIN=$ORACLE_HOME/network/admin
export BASE_DIR=/home/oracle/monitor
export ORACLE_SID=$1
export LOG_FILE=$BASE_DIR/$ORACLE_SID.log
export PATH=$ORACLE_HOME/bin:$PATH
export machinename=&#60;code&#62;hostname&#60;/code&#62;
###################################
cd $BASE_DIR
echo &#34;&#60;code&#62;date&#60;/code&#62;   &#34; &#38;gt; $LOG_FILE
echo  &#34;Oracle Database(s) Status &#60;code&#62;hostname&#60;/code&#62; :\n&#34; &#38;gt;&#38;gt;  $LOG_FILE
db_cnt=&#60;code&#62;ps -ef&#124;grep pmon&#124;grep $ORACLE_SID&#124;wc -l&#60;/code&#62;
if [ $db_cnt -gt 0 ]; then
        echo &#34;$ORACLE_SID is Up&#34; &#38;gt;&#38;gt; $LOG_FILE
else
        echo &#34;$ORACLE_SID is Down&#34; &#38;gt;&#38;gt; $LOG_FILE
$ORACLE_HOME/bin/sqlplus -s &#34;system@maildb/oracle123&#34; &#38;lt;&#38;lt;EOF  &#38;gt;&#38;gt; $LOG_FILE
        alter session SET smtp_out_server = 'mailserv:100';
        BEGIN
        UTL_MAIL.send(
 sender =&#38;gt; 'webmaster@askdba.org'
 ,recipients =&#38;gt; '${DBA_MAIL1}'
,cc =&#38;gt; '${DBA_MAIL2}'
 ,subject =&#38;gt; '${ORACLE_SID} is down on ${machinename}'
 ,message =&#38;gt; '${ORACLE_SID} is Down on ${machinename}'
 ,mime_type =&#38;gt; 'text/plain; charset=us-ascii'
 ,priority =&#38;gt; 3);
 END;
/
exit
EOF
fi

lsn_cnt=&#60;code&#62;ps -ef&#124;grep tnslsnr&#124;grep oracle&#124;grep -v grep&#124;wc -l&#60;/code&#62;
if [ $lsn_cnt -gt 0 ]; then
        echo &#34;Listener is up&#34; &#38;gt;&#38;gt;$LOG_FILE
else
echo &#34;Listener is down&#34; &#38;gt;&#38;gt;$LOG_FILE
$ORACLE_HOME/bin/sqlplus -s &#34;system@maildb/oracle123&#34; &#38;lt;&#38;lt;EOF  &#38;gt;&#38;gt; $LOG_FILE
        alter session SET smtp_out_server = 'mailserv:100';
        BEGIN
         UTL_MAIL.send(
 sender =&#38;gt; 'webmaster@askdba.org'
,recipients =&#38;gt; '${DBA_MAIL1}'
,cc =&#38;gt; '${DBA_MAIL2}'
 ,subject =&#38;gt; 'Listener is down on ${machinename}'
 ,message =&#38;gt; 'Listener is Down on ${machinename}'
 ,mime_type =&#38;gt; 'text; charset=us-ascii'
 ,priority =&#38;gt; 3);
 END;
/
exit
EOF
fi
&#60;/pre&#62;</description>
</item>
<item>
<title>Amit Bansal on "Convert from 2 node RAC to single instance database"</title>
<link>http://www.forum.askdba.org/topic/convert-from-2-node-rac-to-single-instance-database#post-130</link>
<pubDate>Thu, 25 Feb 2010 05:35:13 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">130@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Tsswamy,&#60;/p&#62;
&#60;p&#62;I have not done this kind of migration. I believe that starting a database with non-rac binary and removing the cluster* parameters should allow you to do same. I would recommend you to contact My Oracle Support for exact steps to do same.
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "What is the process/steps to start up a database in a RAC"</title>
<link>http://www.forum.askdba.org/topic/what-is-the-processsteps-to-start-up-a-database-in-a-rac#post-121</link>
<pubDate>Thu, 14 Jan 2010 01:50:00 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">121@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Sorry for late reply. Didn't get time to reply earlier.&#60;/p&#62;
&#60;p&#62;In case of RAC database (10.2) you  need to perform following steps&#60;/p&#62;
&#60;p&#62;1)Start CRS (as root)&#60;br /&#62;
#crsctl start crs&#60;/p&#62;
&#60;p&#62;Actually if you have enabled automatic startup of resources and configured asm-instance dependency correctly, then it will start all resources automatically. Otherwise go to below steps&#60;br /&#62;
2)Start Nodeapps&#60;/p&#62;
&#60;p&#62; $srvctl start nodeapps -n &#38;lt;noden&#38;gt;&#60;br /&#62;
3)Start ASM instance&#60;/p&#62;
&#60;p&#62;srvctl start asm -n &#38;lt;noden&#38;gt;&#60;/p&#62;
&#60;p&#62;Repeat steps on other node. You can use srvctl command from any node&#60;/p&#62;
&#60;p&#62;4) Now start cluster database&#60;br /&#62;
$srvctl start database -d &#38;lt;dbname&#38;gt;&#60;/p&#62;
&#60;p&#62;You can also start a single instance using following command&#60;/p&#62;
&#60;p&#62;srvctl start instance -d &#38;lt;db_name&#38;gt; -i &#38;lt;inst_name&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Script to generate oracle add service commands"</title>
<link>http://www.forum.askdba.org/topic/script-to-generate-oracle-add-service-commands#post-243</link>
<pubDate>Thu, 14 Jul 2011 07:51:16 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">243@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Suppose you have 10g database which you are trying to migrate to 11g. You wish to create a file to generate command for adding services. You can use below script to do same   &#60;br /&#62;
 &#60;br /&#62;
&#60;pre&#62;&#60;br /&#62;
srvctl config service -d db_name &#38;gt;services.lst&#60;br /&#62;
cat services.lst&#124;while read ln&#60;br /&#62;
do&#60;br /&#62;
echo $ln&#124;sed 's/PREF//'&#124;sed 's/AVAIL//'&#124;awk -F : '{print &#34;-s &#34; $1  &#34;-r&#34; $2 &#34;-a&#34; $3}'&#124;sed 's/ /,/g'&#124;sed 's/-r,/-r/'&#124;sed 's/,-a/ -a/'&#124;sed 's/-a,/ -a / '&#124;sed 's/-s,/ -s / '&#124;sed 's/,-r/ -r / '&#124;sed 's/-a$/  /'&#124;sed 's/^/srvctl add service -d db_name/'&#60;br /&#62;
done&#60;br /&#62;
&#60;/pre&#62;&#60;/p&#62;
&#60;p&#62;Thanks to Alok Kumar
&#60;/p&#62;</description>
</item>

</channel>
</rss>

