<?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 Topics</title>
<link>http://www.forum.askdba.org/</link>
<description>AskDBA.org Forum &#187; Recent Topics</description>
<language>en</language>
<pubDate>Fri, 30 Jul 2010 08:53:44 +0000</pubDate>

<item>
<title>Amit Bansal on "NO SPAM Entertained on this forum"</title>
<link>http://www.forum.askdba.org/topic/no-spam-entertained-on-this-forum#post-167</link>
<pubDate>Tue, 29 Jun 2010 12:58:47 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">167@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi All,&#60;/p&#62;
&#60;p&#62;For past few days, I am observing spam ( some exams site) posting content on the forum. Tried deleting the content for 2-3 times so that concerned person desist from doing again but I have today finally deleted the user. &#60;/p&#62;
&#60;p&#62;Any kind of spam will not be entertained on this forum. &#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Amit
&#60;/p&#62;</description>
</item>
<item>
<title>bhatia.ish@gmail.com on "What are the pre-requisites of ASM on AIX 6.1?"</title>
<link>http://www.forum.askdba.org/topic/what-are-the-pre-requisites-of-asm-on-aix-61#post-164</link>
<pubDate>Tue, 22 Jun 2010 11:29:28 +0000</pubDate>
<dc:creator>bhatia.ish@gmail.com</dc:creator>
<guid isPermaLink="false">164@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;What are the pre-requisites of ASM on AIX 6.1?&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Bhatia
&#60;/p&#62;</description>
</item>
<item>
<title>daniesh on "PKRS-1009 failed to start ASM instance"</title>
<link>http://www.forum.askdba.org/topic/pkrs-1009-failed-to-start-asm-instance#post-97</link>
<pubDate>Mon, 12 Oct 2009 06:01:09 +0000</pubDate>
<dc:creator>daniesh</dc:creator>
<guid isPermaLink="false">97@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi ,&#60;br /&#62;
I have installed RAC on AS-4 platform. cluster and database s/w is installed successfully however when i try to install ASM i am getting an following error.&#60;br /&#62;
PKRS-1009 : failed to start ASM instance.&#60;br /&#62;
CRS-1005: failed to get required resources.&#60;br /&#62;
CRS:0223: node 1 has placement erro.&#60;/p&#62;
&#60;p&#62;could you please help me on this?&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
</item>
<item>
<title>dinilocp on "ORA-16055"</title>
<link>http://www.forum.askdba.org/topic/ora-16055#post-86</link>
<pubDate>Fri, 11 Sep 2009 07:18:15 +0000</pubDate>
<dc:creator>dinilocp</dc:creator>
<guid isPermaLink="false">86@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;how can we solve this error:&#60;/p&#62;
&#60;p&#62;regularly comes in alertlog file of primary database:&#60;br /&#62;
ora-19502 write error on file&#34;&#34;,blockno(blocksize=)&#60;br /&#62;
ora-16055: FAL REQUEST REJECT&#60;br /&#62;
Arch: FAL Archive Failed,Archiver continuing.&#60;/p&#62;
&#60;p&#62;Database : 10g RAC with two nodes.
&#60;/p&#62;</description>
</item>
<item>
<title>egotah on "Datapump dumpfile with dates"</title>
<link>http://www.forum.askdba.org/topic/datapump-dumpfile-with-dates#post-148</link>
<pubDate>Thu, 13 May 2010 20:05:34 +0000</pubDate>
<dc:creator>egotah</dc:creator>
<guid isPermaLink="false">148@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Can some one direct me how to generate Datapump Export Dump with Dumpfile name Containing Current Date and Time.&#60;/p&#62;
&#60;p&#62;I tried this format with error..&#60;br /&#62;
dumpfile=myexport-&#60;code&#62;date &#38;#39;+%d%m%Y_%H%M%S&#38;#39;&#60;/code&#62;.dmp&#60;br /&#62;
logfile=myexport-&#60;code&#62;date &#38;#39;+%d%m%Y_%H%M%S&#38;#39;&#60;/code&#62;.log
&#60;/p&#62;</description>
</item>
<item>
<title>rbaclagan on "Oracle RAC OVM image"</title>
<link>http://www.forum.askdba.org/topic/oracle-rac-ovm-image#post-146</link>
<pubDate>Mon, 29 Mar 2010 21:47:41 +0000</pubDate>
<dc:creator>rbaclagan</dc:creator>
<guid isPermaLink="false">146@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Does anyone know if it is possible to take a snapshot of an existing RAC environment running on OVM and redeploy this as a new RAC cluster with minor tweaks such as ip addresses, OCR, Vote disks, etc?
&#60;/p&#62;</description>
</item>
<item>
<title>bhagirathipatra 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-141</link>
<pubDate>Sat, 20 Mar 2010 03:17:15 +0000</pubDate>
<dc:creator>bhagirathipatra</dc:creator>
<guid isPermaLink="false">141@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Our product support 11gR2 DB or higher.in my installation of the product my product installer need DB configuration parameter. i have a 11gR2 RAC setup. when my prod ask for db, i choose the RAC config and next screen it ask “provide RAC db in host1:port1:sid1,host2:port2:sid2″.&#60;/p&#62;
&#60;p&#62;Is it the right behavior of the installer or it should ask the SCAN parameter ?&#60;/p&#62;
&#60;p&#62;plz suggest
&#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 "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>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>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>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>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>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>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>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-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-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-103</link>
<pubDate>Tue, 08 Dec 2009 09:37:34 +0000</pubDate>
<dc:creator>deepika.dhamija@gmail.com</dc:creator>
<guid isPermaLink="false">103@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I have a 2node RAC Setup 10gR2.&#60;/p&#62;
&#60;p&#62;I have three ASM Volumes configured, out of devices sdb2, sdb3, sdb4&#60;br /&#62;
/etc/init.d/oracleasm createdisk VOL1 /dev/sdb2&#60;br /&#62;
/etc/init.d/oracleasm createdisk VOL2 /dev/sdb3&#60;br /&#62;
/etc/init.d/oracleasm createdisk VOL3 /dev/sdb4.&#60;br /&#62;
where VOL1 &#38;amp; VOL2 belong to the Disk Group ORCL_DATA1 and Vol3 to the group FLASH_RECOVERY_AREA.&#60;/p&#62;
&#60;p&#62;I want to use the multipath disks namely /dev/multipath/sdb2, /dev/multipath/sdb3 and /dev/multipath/sdb4 for asm volumes.&#60;br /&#62;
I created the multipath disks on node1 and edited the file /etc/sysconfig/oracleasm and set ORACLEASM_SCANORDER=&#34;multipath&#34; and&#60;br /&#62;
ORACLEASM_SCANEXCLUDE=&#34;sdb2 sdb3 sdb4&#34;.&#60;/p&#62;
&#60;p&#62;After a Reboot, the crs_stat shows&#60;br /&#62;
On Node1&#60;/p&#62;
&#60;p&#62;--------------------------------------------------------------------------------&#60;br /&#62;
Name Type Target State Host&#60;/p&#62;
&#60;p&#62;--------------------------------------------------------------------------------&#60;br /&#62;
ora....SM1.asm application ONLINE ONLINE linux1&#60;br /&#62;
ora....X1.lsnr application ONLINE ONLINE linux1&#60;br /&#62;
ora.linux1.gsd application ONLINE ONLINE linux1&#60;br /&#62;
ora.linux1.ons application ONLINE ONLINE linux1&#60;br /&#62;
ora.linux1.vip application ONLINE ONLINE linux1&#60;br /&#62;
ora....SM2.asm application ONLINE ONLINE linux2&#60;br /&#62;
ora....X2.lsnr application ONLINE ONLINE linux2&#60;br /&#62;
ora.linux2.gsd application ONLINE ONLINE linux2&#60;br /&#62;
ora.linux2.ons application ONLINE ONLINE linux2&#60;br /&#62;
ora.linux2.vip application ONLINE ONLINE linux2&#60;br /&#62;
ora.orcl.db application ONLINE ONLINE linux1&#60;br /&#62;
ora....l1.inst application ONLINE OFFLINE&#60;br /&#62;
ora....l2.inst application ONLINE ONLINE linux2&#60;br /&#62;
ora....test.cs application ONLINE ONLINE linux2&#60;br /&#62;
ora....cl1.srv application ONLINE OFFLINE&#60;br /&#62;
ora....cl2.srv application ONLINE ONLINE linux2&#60;/p&#62;
&#60;p&#62;oracle@linux1 ~$ sqlplus &#34;/ as sysdba&#34;&#60;/p&#62;
&#60;p&#62;SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 8 12:04:53 2009&#60;/p&#62;
&#60;p&#62;Copyright (c) 1982, 2005, Oracle. All rights reserved.&#60;/p&#62;
&#60;p&#62;Connected to an idle instance.&#60;/p&#62;
&#60;p&#62;SQL&#38;gt; select name, path from v$asm_disk;&#60;br /&#62;
select name, path from v$asm_disk&#60;br /&#62;
*&#60;br /&#62;
ERROR at line 1:&#60;br /&#62;
ORA-01034: ORACLE not available&#60;/p&#62;
&#60;p&#62;I try to start the instance manually,&#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;/p&#62;
&#60;p&#62;Also from sql&#60;br /&#62;
SQL&#38;gt; startup&#60;br /&#62;
ORA-01078: failure in processing system parameters&#60;br /&#62;
ORA-01565: error in identifying file '+ORCL_DATA1/orcl/spfileorcl.ora'&#60;br /&#62;
ORA-17503: ksfdopn:2 Failed to open file +ORCL_DATA1/orcl/spfileorcl.ora&#60;br /&#62;
ORA-15077: could not locate ASM instance serving a required diskgroup&#60;/p&#62;
&#60;p&#62;On Node2&#60;/p&#62;
&#60;p&#62;--------------------------------------------------------------------------------&#60;br /&#62;
oracle@linux2 ~$ sqlplus &#34;/ as sysdba&#34;&#60;/p&#62;
&#60;p&#62;SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 8 11:56:13 2009&#60;/p&#62;
&#60;p&#62;Copyright (c) 1982, 2005, Oracle. All rights reserved.&#60;/p&#62;
&#60;p&#62;Connected to:&#60;br /&#62;
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&#60;br /&#62;
With the Partitioning, Real Application Clusters, OLAP and Data Mining options&#60;/p&#62;
&#60;p&#62;SQL&#38;gt; select name, path from v$asm_disk;&#60;/p&#62;
&#60;p&#62;NAME&#60;/p&#62;
&#60;p&#62;--------------------------------------------------------------------------------&#60;br /&#62;
PATH&#60;/p&#62;
&#60;p&#62;--------------------------------------------------------------------------------&#60;br /&#62;
VOL1&#60;br /&#62;
ORCL:VOL1&#60;/p&#62;
&#60;p&#62;VOL2&#60;br /&#62;
ORCL:VOL2&#60;/p&#62;
&#60;p&#62;VOL3&#60;br /&#62;
ORCL:VOL3&#60;/p&#62;
&#60;p&#62;Plz note, that I have the multipath devices only on one node currently.&#60;/p&#62;
&#60;p&#62;I am new to the multipathing concept. Plz advise, on what (above) steps are wrong and what additional things are to be taken care of.&#60;br /&#62;
And the causes/solutions to the errors.
&#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>daniesh on "asmcmd register"</title>
<link>http://www.forum.askdba.org/topic/asmcmd-register#post-90</link>
<pubDate>Mon, 21 Sep 2009 13:56:02 +0000</pubDate>
<dc:creator>daniesh</dc:creator>
<guid isPermaLink="false">90@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;Is there anyway to register a database using asmcmd command?
&#60;/p&#62;</description>
</item>
<item>
<title>daniesh on "load balance"</title>
<link>http://www.forum.askdba.org/topic/load-balance#post-93</link>
<pubDate>Fri, 25 Sep 2009 16:21:16 +0000</pubDate>
<dc:creator>daniesh</dc:creator>
<guid isPermaLink="false">93@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;How do we find the load balancing in RAC.&#60;/p&#62;
&#60;p&#62;Thanks and Regards,
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "SQL to find objects on which Full table scan is being performed"</title>
<link>http://www.forum.askdba.org/topic/sql-to-find-objects-on-which-full-table-scan-is-being-performed#post-92</link>
<pubDate>Thu, 24 Sep 2009 10:09:10 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">92@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;This is very straight forward SQL which can be used to identify objects on which Full Table Scan (FTS) is being performed. &#60;/p&#62;
&#60;p&#62;select object_owner,object_name from V$SQL_PLAN where&#60;br /&#62;
operation='TABLE ACCESS' and&#60;br /&#62;
options='FULL' and&#60;br /&#62;
object_owner&#38;lt;&#38;gt;'SYS';&#60;/p&#62;
&#60;p&#62;Please note that this will work with queries cached in shared pool. In 10g and above, you can also query DBA_HIST_SQL_PLAN to get historical information.
&#60;/p&#62;</description>
</item>
<item>
<title>alok on "Exclude parameter in Import Script??"</title>
<link>http://www.forum.askdba.org/topic/exclude-parameter-in-import-script#post-88</link>
<pubDate>Wed, 16 Sep 2009 07:23:52 +0000</pubDate>
<dc:creator>alok</dc:creator>
<guid isPermaLink="false">88@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Hi All,&#60;/p&#62;
&#60;p&#62;I am a junior oracle dba. I know this is one is easy for you all.&#60;br /&#62;
Just wanted to know whether we can exclude the tables, which we dont want to have the import of?&#60;/p&#62;
&#60;p&#62;I mean, i have a dump file *.dmp by export script on production db. I have copied the dump file to our development db. There are almost 300 tables in the *.dmp file and i want to exclude some 20 to 25 tables from the dump file. Is it possible to using any EXCLUDE parameter in the import scrip that would exclude the tables. Our db is oracle 9i.&#60;/p&#62;
&#60;p&#62;Hope i wud get a quick reponse from you guys :)
&#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>Amit Bansal 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-83</link>
<pubDate>Sat, 29 Aug 2009 07:28:16 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">83@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;I was getting following errors while using Dbverify on a file&#60;/p&#62;
&#60;pre&#62;
&#38;gt;dbv file=dc_users_01.dbf blocksize=8192

DBVERIFY: Release 10.2.0.2.0 - Production on Thu Aug 27 11:09:04 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

DBVERIFY - Verification starting : FILE = dc_users_01.dbf
&#60;strong&#62;Block Checking: DBA = 96495368, Block Type = KTB-managed data block
data header at 0x10020aa7c&#60;/strong&#62;
&#60;strong&#62;kdbchk: bad row offset slot 16 offs 58 fseo 1683 dtl 8168 bhs 104
Page 26376 failed with check code 6135&#60;/strong&#62;

DBVERIFY - Verification complete

Total Pages Examined         : 256000
Total Pages Processed (Data) : 25740
Total Pages Failing   (Data) : 1
Total Pages Processed (Index): 1
Total Pages Failing   (Index): 0
Total Pages Processed (Other): 664
Total Pages Processed (Seg)  : 0
Total Pages Failing   (Seg)  : 0
Total Pages Empty            : 229595
Total Pages Marked Corrupt   : 0
Total Pages Influx           : 0
Highest block SCN            : 3211169690 (1408.3211169690)
&#60;/pre&#62;
&#60;p&#62;To find file# and block# I used dbms_utility package&#60;/p&#62;
&#60;pre&#62;
select dbms_utility.data_block_address_file(&#38;amp;&#38;amp;rdba) RFN,
       dbms_utility.data_block_address_block(&#38;amp;&#38;amp;rdba) BL
from dual;  2    3
Enter value for rdba: 96495368
old   1: select dbms_utility.data_block_address_file(&#38;amp;&#38;amp;rdba) RFN,
new   1: select dbms_utility.data_block_address_file(96495368) RFN,
old   2:        dbms_utility.data_block_address_block(&#38;amp;&#38;amp;rdba) BL
new   2:        dbms_utility.data_block_address_block(96495368) BL

       RFN         BL
---------- ----------
        23      26376
&#60;/pre&#62;
&#60;p&#62;On further analysis , found that the block number 26376 did not contain any object and maximum block used was 25225&#60;/p&#62;
&#60;pre&#62;
SQL&#38;gt; select max(block_id) from dba_extents where file_id=23;

MAX(BLOCK_ID)
-------------
        25225

 select (25225*8192)/1024/1024 from dual;

(25225*8192)/1024/1024
----------------------
            197.070313

SQL&#38;gt; alter database datafile '/lmsdb/lms01/dc_users_axlmsdb_tblspc_01.dbf' resize 200m;

Database altered.
&#60;/pre&#62;
&#60;p&#62;Running dbv again, gave a clean output.
&#60;/p&#62;</description>
</item>
<item>
<title>Saurabh Sood on "Unix Tip: How To Remove Log Files Older Than 10 Days"</title>
<link>http://www.forum.askdba.org/topic/unix-tip-how-to-remove-log-files-older-than-10-days#post-82</link>
<pubDate>Fri, 28 Aug 2009 12:04:24 +0000</pubDate>
<dc:creator>Saurabh Sood</dc:creator>
<guid isPermaLink="false">82@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Use the below given command to remove logfiles older than 10 days:&#60;/p&#62;
&#60;p&#62;cd to the directory where the files are located:&#60;br /&#62;
$ cd /u01/app/oracle/admin/orcl/bdump&#60;br /&#62;
$ find . -name &#34;*.log&#34;  -mtime +10 -exec rm -f {} \;&#60;br /&#62;
OR&#60;br /&#62;
$ find /u01/app/oracle/admin/orcl/bdump/ -name &#34;*.log&#34; -mtime +10 -exec rm -f {} \;
&#60;/p&#62;</description>
</item>
<item>
<title>Amit Bansal on "Unix tip: Finding files not containing a pattern"</title>
<link>http://www.forum.askdba.org/topic/unix-tip-finding-files-not-containing-a-pattern#post-81</link>
<pubDate>Wed, 26 Aug 2009 17:27:41 +0000</pubDate>
<dc:creator>Amit Bansal</dc:creator>
<guid isPermaLink="false">81@http://www.forum.askdba.org/</guid>
<description>&#60;p&#62;Q. How do you find files which do not contain a specific pattern say 'ORA-'&#60;br /&#62;
A. You can use below command&#60;/p&#62;
&#60;p&#62;find . -name &#34;*log&#34; \! -exec grep -q &#34;ORA-&#34; {} \; -print
&#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 "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>

</channel>
</rss>
