<?xml version="1.0"?><!-- 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>AskDBA.org Forum &#187; Recent Posts</title>
<link>http://www.forum.askdba.org/</link>
<description>AskDBA.org Forum &#187; Recent Posts</description>
<language>en</language>
<pubDate>Sat, 13 Mar 2010 16:59:09 +0000</pubDate>

<item>
<title>Mahesh.G on "DR rebuild- Data restore issue"</title>
<link>http://www.forum.askdba.org/topic/dr-rebuild-data-restore-issue#post-138</link>
<pubDate>Fri, 12 Mar 2010 12:24:10 +0000</pubDate>
<dc:creator>Mahesh.G</dc:creator>
<guid isPermaLink="false">138@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I still see the same errors even after taking control file and datafiles backup at a time. In alert log i found below error which is causing this issue.&#60;br /&#62;
Please help me in understanding the issue and best solution for the problem. alert log shows the below errors..&#60;/p&#62;
&#60;p&#62;Fri Mar 12 06:25:56 2010&#60;br /&#62;
The input backup piece /backup/ora_backup/gll88kta_9_1 is in compressed format.&#60;br /&#62;
Error validating file dummy (5) in piece /backup/ora_backup/gll88kta_9_1: missing header&#60;br /&#62;
Error validating file dummy (15) in piece /backup/ora_backup/gll88kta_9_1: missing header&#60;br /&#62;
Error validating file dummy (14) in piece /backup/ora_backup/gll88kta_9_1: missing header&#60;br /&#62;
Error validating file dummy (27) in piece /backup/ora_backup/gll88kta_9_1: missing header&#60;br /&#62;
Error validating file dummy (10) in piece /backup/ora_backup/gll88kta_9_1: missing header&#60;br /&#62;
Error validating file dummy (12) in piece /backup/ora_backup/gll88kta_9_1: missing header&#60;/p&#62;
&#60;p&#62;Mahesh.G
&#60;/p&#62;</description>
</item>
<item>
<title>Mahesh.G on "DR rebuild- Data restore issue"</title>
<link>http://www.forum.askdba.org/topic/dr-rebuild-data-restore-issue#post-137</link>
<pubDate>Thu, 11 Mar 2010 12:44:40 +0000</pubDate>
<dc:creator>Mahesh.G</dc:creator>
<guid isPermaLink="false">137@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Sorry for the delay in replying..&#60;/p&#62;
&#60;p&#62;Yes. Yesterday we identified by using list backup command that backuppieces are expiered status. Then i realized that control file (standby) has been backed after backup is taken.&#60;br /&#62;
So i believe there is mismatch there. I already taken standby control file backup and database backup at once and copying in DR location. I will keep you posted once i am done.&#60;/p&#62;
&#60;p&#62;Thanks,
&#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-136</link>
<pubDate>Thu, 11 Mar 2010 06:47:31 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">136@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Have you taken the backup of archivelogs when you issued the rman backup?&#60;/p&#62;
&#60;p&#62;If not, then switch the logfile and make backup of archivelogs with your datafile backups, and try the restore again.&#60;/p&#62;
&#60;p&#62;The backup script should look like:&#60;/p&#62;
&#60;p&#62;backup format '/u01/PROD/df_t%t_s%s_p%p' database;&#60;br /&#62;
sql 'alter system archive log current';&#60;br /&#62;
backup format '/u01/PROD/al_t%t_s%s_p%p' archivelog all;
&#60;/p&#62;</description>
</item>
<item>
<title>sunkkuma on "DR rebuild- Data restore issue"</title>
<link>http://www.forum.askdba.org/topic/dr-rebuild-data-restore-issue#post-135</link>
<pubDate>Thu, 11 Mar 2010 06:44:53 +0000</pubDate>
<dc:creator>sunkkuma</dc:creator>
<guid isPermaLink="false">135@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;you can also use &#34; list backup by datafile &#38;lt;datafile_no&#38;gt; &#34; to check if there are any backups available for a datafile
&#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>animesh on "DR rebuild- Data restore issue"</title>
<link>http://www.forum.askdba.org/topic/dr-rebuild-data-restore-issue#post-133</link>
<pubDate>Thu, 11 Mar 2010 06:02:52 +0000</pubDate>
<dc:creator>animesh</dc:creator>
<guid isPermaLink="false">133@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Can you please provide step by step process you have followed.&#60;br /&#62;
The error suggest that the datafile 27 and 28 is not there in the backup piece.&#60;/p&#62;
&#60;p&#62;++ crosscheck backup&#60;/p&#62;
&#60;p&#62;Check the below link for complete steps for standby setup.&#60;br /&#62;
&#60;a href=&#34;http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i67520&#34; rel=&#34;nofollow&#34;&#62;http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i67520&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Animesh
&#60;/p&#62;</description>
</item>
<item>
<title>upratap on "OS Memory  issue"</title>
<link>http://www.forum.askdba.org/topic/os-memory-issue#post-132</link>
<pubDate>Thu, 11 Mar 2010 05:36:22 +0000</pubDate>
<dc:creator>upratap</dc:creator>
<guid isPermaLink="false">132@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Check the memory usage, as seen from oracle. Check if any process is consuming high memory. then we can check what that session is doing.&#60;/p&#62;
&#60;p&#62;col name format a30&#60;br /&#62;
select sid,name,value from v$statname n,v$sesstat s&#60;br /&#62;
where n.STATISTIC# = s.STATISTIC# and name like 'session%memory%' order by 3 asc;&#60;/p&#62;
&#60;p&#62;One thing regarding the inactive sessions is, it is better to set IDLE_TIME in PROFILE or set up DCD(Dead Connection Detection) if it is the problem of client being disconnected and sessions still there.. This helps in cleanup of such sessions.. &#60;/p&#62;
&#60;p&#62;-Pratap
&#60;/p&#62;</description>
</item>
<item>
<title>Mahesh.G on "DR rebuild- Data restore issue"</title>
<link>http://www.forum.askdba.org/topic/dr-rebuild-data-restore-issue#post-131</link>
<pubDate>Wed, 10 Mar 2010 11:27:43 +0000</pubDate>
<dc:creator>Mahesh.G</dc:creator>
<guid isPermaLink="false">131@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Experts,&#60;/p&#62;
&#60;p&#62;While doing DR rebuild ( physical standby ), after restoring standby controlfile in DR location, i am getting below error while restoring&#60;br /&#62;
database. I took backup through RMAN ( hotbackup ) from primary database.&#60;/p&#62;
&#60;p&#62;RMAN-00571: ===========================================================&#60;br /&#62;
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============&#60;br /&#62;
RMAN-00571: ===========================================================&#60;br /&#62;
RMAN-03002: failure of restore command at 03/10/2010 11:58:32&#60;br /&#62;
RMAN-06026: some targets not found - aborting restore&#60;br /&#62;
RMAN-06023: no backup or copy of datafile 28 found to restore&#60;br /&#62;
RMAN-06023: no backup or copy of datafile 27 found to restore&#60;/p&#62;
&#60;p&#62;I tried the below options :-&#60;/p&#62;
&#60;p&#62;1. Duplicate command :- while using duplicate command also i got the same error&#60;br /&#62;
2. &#34; catalog backuppiece &#34; of all backup pieces copied from primary database.&#60;br /&#62;
3. I used restore with set until time option also but no luck.&#60;/p&#62;
&#60;p&#62;In all cases i got same error. How can i restore primary database backup in DR ? Pls help. &#60;/p&#62;
&#60;p&#62;Mahesh
&#60;/p&#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 "OS Memory  issue"</title>
<link>http://www.forum.askdba.org/topic/os-memory-issue#post-129</link>
<pubDate>Thu, 25 Feb 2010 05:27:18 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">129@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;As per your statement, you are observing memory statistics from TOP command. Please note that TOP output contains component of shared+private memory, so you cannot rely on that figure ( to confirm if you add memory for all processes it will exceed the total memory on system). There are some Metalink/MOS docs regarding same. You can use pmap (solaris and linux) or svmon to know the exact memory usage of process.&#60;/p&#62;
&#60;p&#62;I would suggest digging into Statspack/AWR report to find the bottleneck.&#60;/p&#62;
&#60;p&#62;w.r.t to a process consuming high CPU, check if it is a Background process. You can look at program column in V$process&#60;/p&#62;
&#60;p&#62;select s.sid,p.spid,s.username &#34;SUSER&#34;,p.username &#34;PUSER&#34;,s.osuser,p.program,s.status from v$session s ,v$process p where s.paddr=p.addr
&#60;/p&#62;</description>
</item>
<item>
<title>tsswamy 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-128</link>
<pubDate>Wed, 24 Feb 2010 20:09:17 +0000</pubDate>
<dc:creator>tsswamy</dc:creator>
<guid isPermaLink="false">128@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;We have several databases that were set up in RAC on 2 nodes with ASM and now we want to remove SOME of those databases from RAC and have them set up as single instance databases.&#60;br /&#62;
Can you please provide step by step procedure to convert from a 2 node RAC environment in windows to a single instance database. I am looking for the steps involved to remove the entries from clusterware as well. &#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>wesguez on "OS Memory  issue"</title>
<link>http://www.forum.askdba.org/topic/os-memory-issue#post-127</link>
<pubDate>Mon, 22 Feb 2010 19:44:02 +0000</pubDate>
<dc:creator>wesguez</dc:creator>
<guid isPermaLink="false">127@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;I am having a issue of OS memory crunch.The sever has 16Gb RAM, and hosts 2 db.The total sga+pga combined is ~10.5GB.For one of the database, i see in TOP command, RES column values like 1100M,1245M , though these sessions are inactive and the logon_time is of 9th Feb.The sessions are also having open_cursor.Can this is a bottleneck?Can snipping these sessions be useful?&#60;/p&#62;
&#60;p&#62;How to find why the cursor is still open for a session.I have a session with a logon date on 29-JAN-2010, which is INACTIVE and has 1 open_cursor.This session is having the maximum cpu usage,though inactive.How do i go ahead for analyzing it.&#60;/p&#62;
&#60;p&#62;waiting for your response.
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Linux:Capturing Top Output in text file"</title>
<link>http://www.forum.askdba.org/topic/linuxcapturing-top-output-in-text-file#post-126</link>
<pubDate>Mon, 15 Feb 2010 11:51:49 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">126@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Came across this link for capturing Top output in text file&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://magazine.redhat.com/2008/04/16/tips-and-tricks-how-do-i-capture-the-output-of-top-to-a-file/&#34; rel=&#34;nofollow&#34;&#62;http://magazine.redhat.com/2008/04/16/tips-and-tricks-how-do-i-capture-the-output-of-top-to-a-file/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I found following command to be very useful.&#60;br /&#62;
top -b -n5 -d5&#60;/p&#62;
&#60;p&#62;It captures top output 5 times and wait 5 seconds between each output.
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Database Hang"</title>
<link>http://www.forum.askdba.org/topic/database-hang#post-125</link>
<pubDate>Wed, 27 Jan 2010 11:39:12 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">125@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;I assume you are using windows server. But don't have sufficient information to help. Are you facing database hang or slow database? If it is hang then there could be some blocking session. If it's a slow database, it could be query issue or sth else.&#60;/p&#62;
&#60;p&#62;-Amit
&#60;/p&#62;</description>
</item>
<item>
<title>rtskrajan on "Database Hang"</title>
<link>http://www.forum.askdba.org/topic/database-hang#post-124</link>
<pubDate>Tue, 26 Jan 2010 11:14:23 +0000</pubDate>
<dc:creator>rtskrajan</dc:creator>
<guid isPermaLink="false">124@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi  experts,&#60;br /&#62;
            My server ram is 12GB. i installed 10r2 and implemented /3GB also. Eventhough my database is giving problem. Could you please give some valuable advice.&#60;/p&#62;
&#60;p&#62;Thanks.
&#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>pratheep on "Database shutdown hangs."</title>
<link>http://www.forum.askdba.org/topic/database-shutdown-hangs#post-122</link>
<pubDate>Wed, 20 Jan 2010 04:25:12 +0000</pubDate>
<dc:creator>pratheep</dc:creator>
<guid isPermaLink="false">122@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;One of my production database shutdown process hangs every planned shutdown. (Both shutdown immediate and abort options). &#60;/p&#62;
&#60;p&#62;Database version &#38;amp; OS : 10.2.0.4 on SuSe Linux 10 SP2, All the latest patches, cpus installed.&#60;/p&#62;
&#60;p&#62;Some of the active database server process are preventing the database from shutdown. I tried to kill the process from OS root user also. But the process are not closing. When I check ps command the process are in 'D' state (uninterruptable sleep). For the particular pid, strace command also stuck. As I verified in v$session before shutdown immediate there is no active sessions or jobs in database. But above mentioned &#34;D&#34; state pid's are exist in v$process.&#60;br /&#62;
Please suggest me, how to find the history of the process.? like when it is hanged/which session id/which sql statement caused that..?&#60;/p&#62;
&#60;p&#62;Thank you all,&#60;br /&#62;
Pratheep
&#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>jammoral 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-120</link>
<pubDate>Tue, 12 Jan 2010 14:51:42 +0000</pubDate>
<dc:creator>jammoral</dc:creator>
<guid isPermaLink="false">120@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;what steps are followed to startup an Oracle instance setup as part cluster. I understand powerpath 1st to allow access to the san, then CRSD ... not sure what is next!!
&#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>nhameed on "SYSASM not granted to sys."</title>
<link>http://www.forum.askdba.org/topic/sysasm-not-granted-to-sys#post-118</link>
<pubDate>Sat, 09 Jan 2010 10:22:15 +0000</pubDate>
<dc:creator>nhameed</dc:creator>
<guid isPermaLink="false">118@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;I have upgraded 10 RAC database to 11g rac, now I cannot connect to ASM instance, in v$pwfile_users, sys dont have SYSASM privilege. How can I manually grant this privilege to SYS user.
&#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>Amit Bansal on "ASM Volumes and DiskGroups"</title>
<link>http://www.forum.askdba.org/topic/asm-volumes-and-diskgroups#post-116</link>
<pubDate>Wed, 30 Dec 2009 01:59:45 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">116@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;1. There is no asm command to find the devices part of particular diskgroup. You can use the query to find the diskgroup devices.&#60;/p&#62;
&#60;p&#62;2. Yes, you can have multiple diskgroups&#60;br /&#62;
3. No, you can allocate only one diskgroup to FRA.&#60;br /&#62;
4. Yes, you can have multiple databases using same diskgroup&#60;br /&#62;
5. I cant answer this. You need to read Database Concepts and Admin guide.&#60;br /&#62;
6. No. Can't be done.&#60;/p&#62;
&#60;p&#62;Deepika , I think it would be better to get a DBA for managing your site as RAC DB's are much complex then single instance databases on filesystem.
&#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-115</link>
<pubDate>Mon, 28 Dec 2009 08:57:41 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">115@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a 2Node Oracle RAC Setup(10gR2). ASM Volumes were configured for 2 disk groups as follows, during the installation:&#60;br /&#62;
/dev/sdb2 : VOL1&#60;br /&#62;
/dev/sdb3 : VOL2&#60;br /&#62;
/dev/sdb4 : VOL3&#60;/p&#62;
&#60;p&#62;ORCL_DATA1 : VOL1 &#38;amp; VOL2&#60;br /&#62;
FLASH_RECOVERY_AREA : VOL3&#60;/p&#62;
&#60;p&#62;I have some basic doubts about ASM and Database Groups.&#60;/p&#62;
&#60;p&#62;1) I run the foll commands to know/query the ASM Volumes and devices&#60;br /&#62;
# /etc/init.d/oracleasm querydisk /dev/sdb2&#60;br /&#62;
# /etc/init.d/oracleasm listdisks&#60;br /&#62;
# ls -al /dev/oracleasm/disks/&#60;/p&#62;
&#60;p&#62;Can I also get the 'Disk Group' information in a similar manner from ASM? eg: What are the disk group names and what vol's/devices form the diskgroup.&#60;br /&#62;
Currently I am run the below query to get this information&#60;br /&#62;
select d.name, e.name from v$asm_diskgroup d, v$asm_disk e where d.group_number=e.group_number; &#60;/p&#62;
&#60;p&#62;2) Can my database have multiple data groups?&#60;br /&#62;
eg: ORCL_DATA1 (VOL1 &#38;amp; VOL2) and ORCL_DATA2 (VOL3 &#38;amp; VOL4)&#60;/p&#62;
&#60;p&#62;3) Can multiple datagroups share the same Flash Recovery Area?&#60;br /&#62;
eg: ORCL_DATA1 &#38;amp; ORCL_DATA2 have the same Flash Recovery Area (FLASH_RECOVERY_AREA (VOL5 &#38;amp; VOL6)  &#60;/p&#62;
&#60;p&#62;4) Can disk groups span across databases? &#60;/p&#62;
&#60;p&#62;5) When I create/alter tables, and if I have two data groups (ORCL_DATA1 &#38;amp; ORCL_DATA2) in the database, do I know where the information is being written or can I provide this information somewhere?&#60;/p&#62;
&#60;p&#62;6) If my database contains multiple disk groups, and incase I wish to rollback the database to a previous good instant of time, can I just rollback some disk groups in the database or 'ALL' the diskgroups will have to be rolledback to maintain consistency.&#60;/p&#62;
&#60;p&#62;I am working on RAC as a user and not very clear on the underlying aspects of databases etc. Some of the questions above may sound flimsy.&#60;br /&#62;
Any advise/suggestion is appreciated.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>deepika.dhamija@gmail.com on "Executing SQL from Shell Script"</title>
<link>http://www.forum.askdba.org/topic/executing-sql-from-shell-script#post-114</link>
<pubDate>Thu, 24 Dec 2009 10:50:40 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">114@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Thanks Amit.&#60;/p&#62;
&#60;p&#62;I was able to execute the SQL using the command&#60;br /&#62;
sqlplus &#38;lt;username&#38;gt;/&#38;lt;password&#38;gt;@&#38;lt;orcl_sid&#38;gt;
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Executing SQL from Shell Script"</title>
<link>http://www.forum.askdba.org/topic/executing-sql-from-shell-script#post-113</link>
<pubDate>Thu, 24 Dec 2009 06:59:48 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">113@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Deepika,&#60;/p&#62;
&#60;p&#62;Please find response below&#60;/p&#62;
&#60;p&#62;1) Your first script has mistake. Should be like&#60;/p&#62;
&#60;p&#62;export ORACLE_SID=+ASM1&#60;br /&#62;
sqlplus / as sysdba &#38;lt;&#38;lt;EOF&#60;br /&#62;
select name, path from v$asm_disk;&#60;br /&#62;
exit&#60;br /&#62;
EOF&#60;/p&#62;
&#60;p&#62;2)&#60;/p&#62;
&#60;p&#62;node_list=&#60;code&#62;olsnodes&#60;/code&#62;&#60;br /&#62;
node1=&#60;code&#62;echo $node_list&#124;awk &#38;#39;{print $1}&#38;#39;&#60;/code&#62;&#60;br /&#62;
node2=&#60;code&#62;echo $node_list&#124;awk &#38;#39;{print $2}&#38;#39;&#60;/code&#62;&#60;br /&#62;
echo &#34;Node 1 is &#34; $node1&#60;br /&#62;
echo &#34;Node 2 is &#34; $node2&#60;/p&#62;
&#60;p&#62;Hope this helps
&#60;/p&#62;</description>
</item>
<item>
<title>deepika.dhamija@gmail.com on "Executing SQL from Shell Script"</title>
<link>http://www.forum.askdba.org/topic/executing-sql-from-shell-script#post-112</link>
<pubDate>Wed, 23 Dec 2009 07:25:14 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">112@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have a two node RAC Cluster Setup (10R2) and I want to execute sql queries from a shell script, to be run as root.&#60;br /&#62;
I have the foll test.sh script&#60;/p&#62;
&#60;p&#62;#! /bin/bash&#60;br /&#62;
echo &#34;In BASH&#34;&#60;br /&#62;
sqlplus / &#38;lt;&#38;lt;+ENDOFSQL+&#60;br /&#62;
select name, path from v$asm_disk;&#60;br /&#62;
exit&#60;br /&#62;
+ENDOFSQL+&#60;br /&#62;
echo &#34;Back to Bash&#34;&#60;br /&#62;
exit&#60;/p&#62;
&#60;p&#62;and I get the foll O/P&#60;br /&#62;
In BASH&#60;/p&#62;
&#60;p&#62;SQL*Plus: Release 10.2.0.1.0 - Production on Wed Dec 23 07:25:32 2009&#60;/p&#62;
&#60;p&#62;Copyright (c) 1982, 2005, Oracle.  All rights reserved.&#60;/p&#62;
&#60;p&#62;ERROR:&#60;br /&#62;
ORA-12546: TNS:permission denied&#60;/p&#62;
&#60;p&#62;Enter user-name: SP2-0306: Invalid option.&#60;br /&#62;
Usage: CONN[ECT] [logon] [AS {SYSDBA&#124;SYSOPER}]&#60;br /&#62;
where &#38;lt;logon&#38;gt;  ::= &#38;lt;username&#38;gt;[/&#38;lt;password&#38;gt;][@&#38;lt;connect_identifier&#38;gt;] &#124; /&#60;br /&#62;
Enter user-name: Enter password:&#60;br /&#62;
ERROR:&#60;br /&#62;
ORA-12546: TNS:permission denied&#60;/p&#62;
&#60;p&#62;SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus&#60;br /&#62;
Back to Bash&#60;/p&#62;
&#60;p&#62;What permissions should for this?&#60;/p&#62;
&#60;p&#62;2) Also I need to know the node names of the nodes that form the clustre. I add the foll lines to my script&#60;br /&#62;
NODE_NAMES=&#60;code&#62;olsnodes&#60;/code&#62;&#60;br /&#62;
echo $NODE_NAMES&#60;/p&#62;
&#60;p&#62;ad I get O/P&#60;br /&#62;
linux-1 linux-2&#60;br /&#62;
Is it possible to store these space separated node names in diff variables that can then be used. (the number of nodes are variable)&#60;/p&#62;
&#60;p&#62;Any suggestion/advise is appreciated. Thanks
&#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>Amit Bansal on "ASM and Multipathing"</title>
<link>http://www.forum.askdba.org/topic/asm-and-multipathing#post-110</link>
<pubDate>Wed, 09 Dec 2009 09:30:43 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">110@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;&#38;gt;&#38;gt;Actually I have an application that runs on every node on the cluster and creates the devices /dev/multipath/sd*&#60;/p&#62;
&#60;p&#62;Can't understand this statement.&#60;br /&#62;
Anyways if you use udev, you can set permissions in rules file&#60;/p&#62;
&#60;p&#62;/etc/udev/rules.d/50-udev.rules&#60;/p&#62;
&#60;p&#62;I think your sysadmin can help you with that.&#60;/p&#62;
&#60;p&#62;-Amit
&#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-109</link>
<pubDate>Wed, 09 Dec 2009 09:03:19 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">109@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Amit,&#60;/p&#62;
&#60;p&#62;Actually I have an application that runs on every node on the cluster and creates the devices /dev/multipath/sd*. I am new to this entire setup, but I can tell you that it uses udev.&#60;br /&#62;
On Node 1&#60;br /&#62;
[oracle@linux1 ~]$ uname -a&#60;br /&#62;
Linux linux1 2.6.9-78.0.13.ELsmp #1 SMP Wed Jan 7 17:52:47 EST 2009 i686 i686 i386 GNU/Linux&#60;/p&#62;
&#60;p&#62;Does this much information answer your questions?
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "ASM and Multipathing"</title>
<link>http://www.forum.askdba.org/topic/asm-and-multipathing#post-108</link>
<pubDate>Wed, 09 Dec 2009 07:58:21 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">108@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Deepika,&#60;/p&#62;
&#60;p&#62;How have you configured multipathing? Are you using udev and device mapper?&#60;br /&#62;
Also let me know your linux release details.&#60;/p&#62;
&#60;p&#62;-Amit
&#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-107</link>
<pubDate>Wed, 09 Dec 2009 07:10:39 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">107@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Thanks Amit for the prompt reply.&#60;/p&#62;
&#60;p&#62;I had ORACLE_SID SET to orcl1 and orcl2 on both the nodes respectively.&#60;/p&#62;
&#60;p&#62;On node1, I did the above steps, and I luckily was able to connect to Oracle. It did not say 'connected to idle instance'.&#60;/p&#62;
&#60;p&#62;The O/P of the query on Node1 (ORACLE_SID=+ASM1) is&#60;br /&#62;
NAME	PATH		MOUNT_S		HEADER_STATUS&#60;br /&#62;
	ORCL:VOL1	CLOSED		UNKNOWN&#60;br /&#62;
	ORCL:VOL1	CLOSED		UNKNOWN&#60;br /&#62;
	ORCL:VOL1	CLOSED		UNKNOWN&#60;/p&#62;
&#60;p&#62;The O/P of the query on Node2 (ORACLE_SID=orcl2) is&#60;br /&#62;
NAME	PATH		MOUNT_S		HEADER_STATUS&#60;br /&#62;
VOL1	ORCL:VOL1	OPENED		UNKNOWN&#60;br /&#62;
VOL2	ORCL:VOL2	OPENED		UNKNOWN&#60;br /&#62;
VOL3	ORCL:VOL3	OPENED		UNKNOWN&#60;/p&#62;
&#60;p&#62;Does that mean that the multipath disks have not been picked up by asm at all.&#60;br /&#62;
What about the permissions. I ran the foll commands (for sdb2, sdb3, sdb4) on Node1&#60;br /&#62;
# chown -R oracle:dba /dev/multipath/sdb2&#60;br /&#62;
# chmod -R 775 /dev/multipath/sdb2&#60;/p&#62;
&#60;p&#62;# /etc/init.d/oracleasm scandisks&#60;br /&#62;
# /etc/init.d/oracleasm listdisks&#60;br /&#62;
VOL1&#60;br /&#62;
VOL2&#60;br /&#62;
VOL3&#60;/p&#62;
&#60;p&#62;How do these permissions remain intact after a reboot to the node?
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "ASM and Multipathing"</title>
<link>http://www.forum.askdba.org/topic/asm-and-multipathing#post-106</link>
<pubDate>Wed, 09 Dec 2009 06:54:50 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">106@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Try logging into ASM instance and query V$ASM_DISK i.e&#60;/p&#62;
&#60;p&#62;export ORACLE_SID=+ASM1&#60;br /&#62;
sqlplus &#34;/ as sysdba&#34;&#60;br /&#62;
select name,path,mount_status,header_status from V$ASM_DISK;&#60;/p&#62;
&#60;p&#62;with regards to naming convention, I think naming convention should follow /dev/[a-z]* naming convention instead of /dev/multipath/[a-z]*&#60;br /&#62;
It could be this or it could be that as the name of multipath device is also ending with sdb2,sdb3 and we are also excluding the disk ending with sdb2,sdb3. I am not too sure on this.&#60;/p&#62;
&#60;p&#62;I think best way would be to actually first query V$ASM_DISK output.
&#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-105</link>
<pubDate>Wed, 09 Dec 2009 06:33:44 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">105@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Amit,&#60;/p&#62;
&#60;p&#62;Yes, I am following the above URL.&#60;/p&#62;
&#60;p&#62;On Node1:&#60;br /&#62;
[root@linux1 ~]# /etc/init.d/oracleasm listdisks&#60;br /&#62;
VOL1&#60;br /&#62;
VOL2&#60;br /&#62;
VOL3&#60;br /&#62;
[root@linux1 ~]# /etc/init.d/oracleasm querydisk /dev/multipath/sdb2&#60;br /&#62;
Device &#34;/dev/multipath/sdb2&#34; is marked an ASM disk with the label &#34;VOL1&#34;&#60;br /&#62;
[root@linux1 ~]# /etc/init.d/oracleasm querydisk /dev/sdb2&#60;br /&#62;
Device &#34;/dev/sdb2&#34; is marked an ASM disk with the label &#34;VOL1&#34;&#60;/p&#62;
&#60;p&#62;The O/P is same for sdb3 and sdb4 (both multipath &#38;amp; single path devices)&#60;br /&#62;
Is this what you mean when you say if disks are visible on node1?&#60;/p&#62;
&#60;p&#62;[oracle@linux1 ~]$ srvctl status asm -n linux1&#60;br /&#62;
ASM instance +ASM1 is running on node linux1.&#60;br /&#62;
[oracle@linux1 ~]$ srvctl status instance -d orcl -i orcl1&#60;br /&#62;
Instance orcl1 is not running on node linux1&#60;br /&#62;
[oracle@linux1 ~]$ srvctl start instance -d orcl -i orcl1&#60;br /&#62;
PRKP-1001 : Error starting instance orcl1 on node linux1&#60;br /&#62;
CRS-0215: Could not start resource 'ora.orcl.orcl1.inst'.&#60;br /&#62;
[oracle@linux1 ~]$&#60;/p&#62;
&#60;p&#62;I am unable to start the instance orcl1 on node1.&#60;/p&#62;
&#60;p&#62;Also what is the significance of naming multipath devices in a particular way?
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "ASM and Multipathing"</title>
<link>http://www.forum.askdba.org/topic/asm-and-multipathing#post-104</link>
<pubDate>Tue, 08 Dec 2009 13:32:15 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">104@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi Deepika,&#60;/p&#62;
&#60;p&#62;I believe you are following below article available on Oracle website&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.oracle.com/technology/tech/linux/asmlib/multipath.html&#34; rel=&#34;nofollow&#34;&#62;http://www.oracle.com/technology/tech/linux/asmlib/multipath.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;First I believe that you should check ASM instance and see if you are able to see the disks on Node 1. From above output it looks that you connected to node 1 DB instance and not asm instance. This can also be seen from crs_stat output which shows that asm instance is up on node 1.&#60;br /&#62;
Secondly name multipath device as multipatha,multibathc instead of /multipath/sdb1 etc
&#60;/p&#62;</description>
</item>

</channel>
</rss>
