<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oracle DBA Help</title>
	<atom:link href="http://oracledbahelp.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://oracledbahelp.com</link>
	<description>Few Thoughts of an Oracle and Unix Enthusiast</description>
	<lastBuildDate>Wed, 12 Aug 2009 20:28:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Handling Oracle and Unix Passwords Containing Special Characters</title>
		<link>http://oracledbahelp.com/?p=48</link>
		<comments>http://oracledbahelp.com/?p=48#comments</comments>
		<pubDate>Wed, 08 Jul 2009 08:39:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Special Characters Password]]></category>
		<category><![CDATA[Sqlplus]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://oracledbahelp.com/?p=48</guid>
		<description><![CDATA[Over the weekend, I spent four long hours resolving an issue with a particular Oracle schema. It turned out to be an issue with the special characters in the password, or you can say: I did not treat special characters specially.
I was playing with an old Perl script on my Oracle 10g enterprise edition database [...]]]></description>
			<content:encoded><![CDATA[<p>Over the weekend, I spent four long hours resolving an issue with a particular Oracle schema. It turned out to be an issue with the special characters in the password, or you can say: I did not treat special characters specially.</p>
<p>I was playing with an old Perl script on my Oracle 10g enterprise edition database server,  running on Redhat Enterprise Linux Advanced Server 4 (RHEL AS4)<span id="more-48"></span>. As the script was originally written for a different database, I had to modify the <em>DBI-&gt;connect </em>portion of the script. The script was written to produce a custom report on a schema, therefore, I needed a schema to play with. HR schema was available on my lab server, but with a password that I no longer know. I did the password reset as below</p>
<blockquote><p>[oracle@racnode1 ~]$sqlplus /nolog<br />
SQL*Plus: Release 10.2.0.1.0 &#8211; Production on Tue Jul 7 01:47:07 2009<br />
Copyright (c) 1982, 2005, Oracle.  All rights reserved.<br />
SQL&gt; connect / as sysdba<br />
Connected.<br />
SQL&gt; alter user hr identified by pa$$wd;<br />
User altered.<br />
SQL&gt;</p></blockquote>
<p>So far so good! I decided to test the HR account before I updated the DBI Connect handle</p>
<blockquote><p>[oracle@'racnode1'~]$sqlplus hr/pa$$wd<br />
SQL*Plus: Release 10.2.0.1.0 &#8211; Production on Tue Jul 7 20:44:23 2009<br />
Copyright (c) 1982, 2005, Oracle.  All rights reserved.<br />
ERROR: ORA-01017: invalid username/password; logon denied<br />
Enter user-name:</p></blockquote>
<p>I was surprised that the HR user is not able to connect with the right password. I immediately connected as sysdba and started looking at the HR user privileges:</p>
<blockquote><p>&#8211;Find roles granted to an Oracle database user<br />
select * from dba_role_privs where grantee = &#8216;HR&#8217;;<br />
&#8211;Find privileges granted to an Oracle database user<br />
select * from dba_sys_privs where grantee = &#8216;HR&#8217;;<br />
&#8211;HR user role in my database RESOURCE<br />
select * from dba_sys_privs where grantee = &#8216;RESOURCE&#8217;;<br />
&#8211;Query to check Oracle database user account status<br />
select username, account_status, expiry_date from dba_users where username = &#8216;HR&#8217;;</p></blockquote>
<p>HR user had the create session privilege and the account is not locked. I just couldn&#8217;t fathom, why I am not able to connect? After tapping my fingers on the table, sembling a nervous tick, I tried to connect as HR user from my sysdba session:</p>
<blockquote><p>SQL&gt; show user<br />
USER is &#8220;SYS&#8221;<br />
SQL&gt; connect hr/pa$$wd<br />
Connected.<br />
SQL&gt; show user<br />
USER is &#8220;HR&#8221;<br />
SQL&gt;</p></blockquote>
<p>And that works! But it does not explain why it wouldn&#8217;t work from the command prompt. This time I tried some thing different:</p>
<blockquote><p>[oracle@'racnode1'~]$sqlplus hr/pa$$wd as sysoper<br />
SQL*Plus: Release 10.2.0.1.0 &#8211; Production on Wed Jul 8 03:02:09 2009<br />
Copyright (c) 1982, 2005, Oracle.  All rights reserved.<br />
Connected to:<br />
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 &#8211; Production<br />
With the Partitioning, OLAP and Data Mining options<br />
SQL&gt;</p></blockquote>
<p>Even that seems to work. Upon a closer look, I realized the Sql*plus just authenticated the OS user as SYSOPER:</p>
<blockquote><p>SQL&gt; show user<br />
USER is &#8220;PUBLIC&#8221; &lt;&#8212;&#8212;<em>shows that the connected user is not HR</em><br />
SQL&gt; exit</p></blockquote>
<p>Same logic applies to SYSDBA authentication:</p>
<blockquote><p>[oracle@'racnode1'~]$sqlplus hr/pa$$wd as sysdba<br />
SQL*Plus: Release 10.2.0.1.0 &#8211; Production on Wed Jul 8 03:07:04 2009<br />
Copyright (c) 1982, 2005, Oracle.  All rights reserved.<br />
Connected to:<br />
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 &#8211; Production<br />
With the Partitioning, OLAP and Data Mining options<br />
SQL&gt; show user<br />
USER is &#8220;SYS&#8221;<br />
SQL&gt;</p></blockquote>
<p>Then it all occurred to me, the culprit is $$ part of my password&#8230;&#8230;.I take it back, the culprit is me, I did not treat the special characters specially. In Unix $$ is a shell perameter, $$ give the process id of my shell. This time I showed some &#8217;special treatment&#8217; to the specail characters:</p>
<p>[oracle@'racnode1'~]$sqlplus hr/&#8217;pa$$wd&#8217;<br />
SQL*Plus: Release 10.2.0.1.0 &#8211; Production on Wed Jul 8 03:32:13 2009<br />
Copyright (c) 1982, 2005, Oracle.  All rights reserved.<br />
Connected to:<br />
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 &#8211; Production<br />
With the Partitioning, OLAP and Data Mining options<br />
SQL&gt; show user<br />
USER is &#8220;HR&#8221;<br />
SQL&gt;</p>
<p>Voila&#8230;..I finally figured it out! I was happy to have resolved it, but kinda felt stupid that I spent four hours!</p>
]]></content:encoded>
			<wfw:commentRss>http://oracledbahelp.com/?feed=rss2&amp;p=48</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Your Perl Install Ready for Oracle Database</title>
		<link>http://oracledbahelp.com/?p=38</link>
		<comments>http://oracledbahelp.com/?p=38#comments</comments>
		<pubDate>Mon, 06 Jul 2009 06:10:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[DBD]]></category>
		<category><![CDATA[DBD::Oracle Version 1.23]]></category>
		<category><![CDATA[DBI]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Oracle and Perl]]></category>
		<category><![CDATA[Oracle DBD Perl Module]]></category>
		<category><![CDATA[Perl for Oracle]]></category>

		<guid isPermaLink="false">http://oracledbahelp.com/?p=38</guid>
		<description><![CDATA[On one of my old CD-ROM drives, I found a old piece of Perl code that I wrote for Oracle 8i. Thought I could enhance that to work with Oracle 10g and perhaps enhance it. My test server is an RHEL AS4 box and I did install Perl when I installed the OS. My script [...]]]></description>
			<content:encoded><![CDATA[<p>On one of my old CD-ROM drives, I found a old piece of Perl code that I wrote for Oracle 8i. Thought I could enhance that to work with Oracle 10g and perhaps enhance it. My test server is an RHEL AS4 box and I did install Perl when I installed the OS. My script failed due to missing <em>DBI </em>and <em>Oracle DBD</em> modules<span id="more-38"></span>. I checked for their existence to confirm the same. It took little a googling before I got it working, therefore, I decided to write a little notes here.</p>
<p>Here is a simple way to check if the <em>DBI</em> and <em>Oracle DBD</em> Perl modules are installed:</p>
<blockquote><p>If you know the module name, at the command prompt:</p>
<p><em>&gt; perl -e &#8216;use DBI&#8217;<br />
&gt; perl -e &#8216;use DBD::Oracle&#8217;</em></p></blockquote>
<p>If the above return no error messages and return the command prompt you, the modules exist. If you see a message,  some thing like: <em>“Can&#8217;t locate DBD/Oraccle.pm in @INC (@INC contains:……..lot of paths here……) at -e line 1. BEGIN failed&#8211;compilation aborted at -e line 1.</em>” Then you missing those modules and you need to install them.</p>
<blockquote><p>If you do not know the module name, copy paste the below at command prompt:</p>
<p><em>&gt; perl -MFile::Find=find -MFile::Spec::Functions -Tlwe &#8216;find { wanted =&gt; sub { print canonpath $_ if /\.pm\z/ }, no_chdir =&gt; 1 }, @INC&#8217; | <span style="color: #0000ff;"><strong>grep DBI</strong></span></em> | more</p></blockquote>
<p>Note: Manipulate the blue highlighted portion above to find other modules</p>
<p><strong>Install The <em>DBI</em> Module</strong></p>
<p>To install missing Perl modules (<em>DBI</em> first and then <em>DBD::Oracle</em>), you would need the root access. You can download the modules directly from CPAN, unzip, untar, read the README file in the module directory very carefully and then do the below (The below example shows how to install <em>DBI </em>module, you can extend that to install <em>DBD::Oracle</em> module):</p>
<blockquote><p><em>&gt;perl Makefile.PL</em></p>
<p><em>&gt;make</em></p>
<p><em>&gt;make test</em></p>
<p><em>&gt;make install</em></p></blockquote>
<p>(I am not posting the output of any of the above commands, if you read the output, you will know what it means and what you need to do)</p>
<p>Another way to install is, using the CAPN shell. At the command prompt, type the below:</p>
<blockquote><p><em>&gt; cpan</em></p>
<p><em>cpan&gt; install DBI</em></p></blockquote>
<p>The above command will install the latest version of <em>DBI</em>, sit back and watch the magic!</p>
<p>(Note: If you are using the <em>cpan</em> for the first time, it will prompt you to setup the CPAN environment. On most installations your can get away by hitting return key for all options/questions, it will assume defaults. Make sure to select proper continent, country and list of sites to download the Perl modules from. Now you will see the cpan prompt like below)</p>
<p><strong>Before You Install <em>DBD::Oracle</em> Module<br />
</strong></p>
<p>Apart from installing the <em>DBI</em> module before you install the <em>DBD::Oracle,</em> you <strong>must</strong> make sure that you are able to connect to the database. I would certainly test the connectivity with Sql*Plus, with a working schema/password from the OS user (root in my case). My root user does not have the Oracle specific environment variables set, so I had to set the following appropriately:</p>
<p><em>ORACLE_HOME, ORACLE_SID, TWO_TASK, PATH, LD_LIBRARY_PATH</em> and <strong>most importantly</strong> <em>ORACLE_USERID. ORACLE_USERID </em>should be set to a correct username and password pair, that is active and unlocked in the database.</p>
<blockquote><p>Example:</p>
<p><em>&gt; export ORACLE_USERID=scott/tiger</em></p></blockquote>
<p>Do make sure you have the latest version of <em>Test::Builder</em> module. While installing the <em>DBD::Oracle</em> module, if you see a bunch of error messages with “<strong><em>Test returned status 9 (wstat 2304, 0&#215;900)</em></strong>” in them; it means your Perl install is missing the latest version of <em>Test::Builder</em> module. This is some thing I witnessed while installing the latest (<em>version 1.23</em>) DBD::Oracle module. My existing <em>Test::Builder</em> module was the culprit and the error messages vanished after I upgraded it.</p>
<p><strong>Install the <em>DBD::Oracle</em> Module</strong></p>
<p>The below will install the <em>Oracle DBD</em> module.</p>
<blockquote><p><em>cpan&gt; install DBD::Oracle</em></p></blockquote>
<p>You can always download the module from CPAN and manually install as described in the Install the <em>DBI </em>Module section</p>
<p><strong>Sample Script To Test Your Installation</strong></p>
<blockquote><p>
<em>#!/usr/bin/perl<br />
#Sample script to test Perl connectivity to Oracle Database<br />
#http://www.Oracledbahelp.com<br />
use strict;<br />
use DBI;<br />
my $dbh = DBI-&gt;connect( &#8216;dbi:Oracle:orcl&#8217;, &#8216;hr&#8217;, &#8216;tiger&#8217;, { RaiseError =&gt; 1, AutoCommit =&gt; 0 } );<br />
my $query = qq{ SELECT sysdate FROM DUAL };<br />
my $outpt = $dbh-&gt;prepare( $query );<br />
$outpt-&gt;execute();<br />
while ( my($systemdate) = $outpt-&gt;fetchrow_array) {<br />
print $systemdate, &#8220;\n&#8221;;<br />
}<br />
$dbh-&gt;disconnect();</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://oracledbahelp.com/?feed=rss2&amp;p=38</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Truth about drop_cache &amp; sync and dealing with OOM Killer</title>
		<link>http://oracledbahelp.com/?p=29</link>
		<comments>http://oracledbahelp.com/?p=29#comments</comments>
		<pubDate>Tue, 30 Jun 2009 01:55:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Stuff]]></category>
		<category><![CDATA[/proc filesystem]]></category>
		<category><![CDATA[drop_cache]]></category>
		<category><![CDATA[Linux Memory Exhaustion]]></category>
		<category><![CDATA[Linux memory exhustion]]></category>
		<category><![CDATA[OOM killer]]></category>
		<category><![CDATA[Out of Memory Killer]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://oracledbahelp.com/?p=29</guid>
		<description><![CDATA[I use the drop_cache file of the /proc pseudo file system to force the OS to relinquish the memory taken away by the clean caches, inodes and dentries. I used it few times without even paying attention to: why there is a memory shortage to begin with? After realizing that the dropping caches is not [...]]]></description>
			<content:encoded><![CDATA[<p>I use the drop_cache file of the /proc pseudo file system to force the OS to relinquish the memory taken away by the clean caches, inodes and dentries. I used it few times without even paying attention to: why there is a memory shortage to begin with? After realizing that the dropping caches is not the real solution, I learned to investigate the actual reason for memory shortage (i.e, who ate my memory?<span id="more-29"></span>)</p>
<p>Other day, while googling about a memory issue, I ended up on <a href="http://rackerhacker.com/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/" target="_blank"><strong>this</strong> </a>page. It describes how to force discard some memory resident objects by writing 1, 2 or 3 into drop_cache file in the /proc pseudo filesystem. Then I read the part where the author described forcing dentry, inode and pagecache drop could lead to some serious consequences. Here is an excerpt:</p>
<blockquote><p><em><strong><span style="text-decoration: underline;">There are huge consequences to dumping these caches and running <code>sync</code>.</span></strong> If you are writing data at the time you run these commands, you’ll actually be dumping the data out of the filesystem cache before it reaches the disk, which could lead to very bad things.</em></p></blockquote>
<p>I wonder what consequences the author is talking about? The notion that the data being written at the time of running the command will be dropped is <strong>not correct</strong>. Dirty objects can not be dropped by directing the kernel with drop_cache (as in writing 1/2/3 into that file ). The only way to force them out of memory is with the <em>sync</em> command, which may have consequences, but not the one described above. It may lead to more I/O by the processes that were using the dropped objects and more CPU cycles to build those objects, but <em>&#8217;sync&#8217;</em> will not drop data. Here is an excerpt from the sync command documentation:</p>
<blockquote><p><em>sync writes any data buffered in memory out to disk.  This can include (but is not limited to) modified superblocks, modified inodes, and delayed reads and writes.  This must be implemented by the kernel; The `sync&#8217; program does nothing but exercise the `sync&#8217; system </em></p></blockquote>
<p>It is important to use drop_cache tweak/hack only in a proper context. Just using it to relinquish some memory does not make sense, it might mask the actual reason for the OOM kill or what ever memory issue you are dealing with. Best way to zero in on the root cause is by gathering the process list, slabinfo, meminfo and buddyinfo (memory fragmentation) snapshot before, during and after the issue. If you are dealing with an after the fact situation like an OOM kill, try to reproduce it, and use a background process to capture afore mentioned stats every 5 or 10 seconds.</p>
<p>It is very important to know what hardware architecture you are dealing with, for instance x86 32bit vs 64bit. The way Linux manages memory zones in 32bit architectures is very different from 64bit architectures.  Knowing the Linux version is also extremely important, you have better controls in 2.6.x vs 2.4.x or previous versions. Here is another excerpt from the article that prompted me to write this:</p>
<blockquote><p><em>When I checked the sysstat data with sar, I found that the server was only using about 2-3GB out of 4GB of physical memory at the time when OOM killer was started. <em>At this point, I was utterly perplexed.</em></em></p></blockquote>
<p>It almost seems like this guy was dealing with a 32bit machine and the OS killed his processes due to low memory exhaustion; explains why there is free memory around oom kill. It may be the case where his processes are seeking a set of physically contiguos memory pages. How he came to the conclusion that the OS was caching too much, just puzzles me!</p>
]]></content:encoded>
			<wfw:commentRss>http://oracledbahelp.com/?feed=rss2&amp;p=29</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Oracle OFA:Optimal Flexible Architecture Simplified</title>
		<link>http://oracledbahelp.com/?p=20</link>
		<comments>http://oracledbahelp.com/?p=20#comments</comments>
		<pubDate>Fri, 26 Jun 2009 23:26:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Best Practice]]></category>
		<category><![CDATA[OFA in 10 minutes]]></category>
		<category><![CDATA[OFA simplified]]></category>
		<category><![CDATA[optimal flexible architecture]]></category>

		<guid isPermaLink="false">http://oracledbahelp.com/?p=20</guid>
		<description><![CDATA[A good friend of mine once approached me asking if I could summarize Oracle OFA (Optimal Flexible Architecture). He said there is a ton of documentation on-line but nothing that he could read in few minutes. Later that night I wrote him an email and now I modified that email to publish here. What you [...]]]></description>
			<content:encoded><![CDATA[<p>A good friend of mine once approached me asking if I could summarize Oracle OFA (Optimal Flexible Architecture). He said there is a ton of documentation on-line but nothing that he could read in few minutes. Later that night I wrote him an email and now I modified that email to publish here. What you find below is <span id="more-20"></span>not a complete OFA, it&#8217;s just a summary of OFA tidbits in my head. The flow and convention are heavily influenced by a 2 great DBA companion books <a href="http://www.amazon.com/gp/product/1590594517?ie=UTF8&amp;tag=wwworacledbah-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1590594517">Expert Oracle Database 10<em>g</em> Administration (Expert&#8217;s Voice)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=wwworacledbah-20&amp;l=as2&amp;o=1&amp;a=1590594517" border="0" alt="" width="1" height="1" /> and <a href="http://www.amazon.com/gp/product/143021015X?ie=UTF8&amp;tag=wwworacledbah-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=143021015X">Expert Oracle Database 11g Administration (Expert&#8217;s Voice in Oracle)</a><img style="border:none !important; margin:0px !important;" src="http://www.assoc-amazon.com/e/ir?t=wwworacledbah-20&amp;l=as2&amp;o=1&amp;a=143021015X" border="0" alt="" width="1" height="1" /></p>
<p><strong><span style="text-decoration: underline;">Mount Points:</span></strong></p>
<p>Naming Convention                  <strong><em>/pm</em></strong></p>
<p><em> Where:  p= string constant</em></p>
<p><em> m=two digit number</em></p>
<p>Examples: /u01, /u02, /u03 etc</p>
<p>Mount point names must be simple and should not include and hardware specific information. This helps with changing disk system when needed.</p>
<p><strong><em>At least 4 mount points</em></strong> to fully comply with OFA. 1 for oracle binaries and the remaining 3 are for oracle database files.</p>
<p><strong><span style="text-decoration: underline;">Directory and File Naming Conventions:</span></strong></p>
<p><strong><span style="text-decoration: underline;"> </span></strong></p>
<p><strong><span style="text-decoration: underline;">OS User Home</span></strong> directory should be:    <strong><em>/pm/h/u</em></strong></p>
<p><strong><em> </em></strong><em>Where: h=Standard directory name (generally <strong>app</strong>)</em></p>
<p><em> u=directory owner</em></p>
<p>Example: <strong><em>/u01/app/oracle</em></strong> is the <strong><em>home directory</em></strong> of the <strong><em>oracle</em></strong> user</p>
<p><strong><span style="text-decoration: underline;">ORACLE_BASE</span>:</strong> Root of the Oracle directory structure, Home of the Oracle installation owner. Generally <strong><em>/u01/app/oracle</em></strong></p>
<p><strong> </strong></p>
<p>Set this as an environment variable for clarity</p>
<p><strong><span style="text-decoration: underline;">ORACLE_HOME</span>: </strong>All oracle binaries and library files are to be located under this directory.</p>
<p>Examples: <strong><em>$ORACLE_HOME/bin</em></strong> Container for Oracle binaries</p>
<p><strong><em>$ORACLE_HOME/network</em></strong> Container for Oracle network services files</p>
<p>$ORACE_HOME       =          <strong><em>$ORACLE_BASE/product/v/type_[n]</em></strong></p>
<p><em>Where: v= version of the software</em></p>
<p><em> type= type of installation db|client|companion</em></p>
<p><em> n=counter for multiple installation of  the same product </em></p>
<p><strong><span style="text-decoration: underline;">Oracle Inventory Directory (OraInventory)</span></strong></p>
<p><strong><span style="text-decoration: underline;"> </span></strong></p>
<p>Conventional location is <strong><em>$ORACLE_BASE/oraInventory</em></strong></p>
<p>Stores the inventory list of all oracle products installed on the box. This path is specified only during the installation of the first oracle product. Future installs will/can use this inventory directory.</p>
<p><strong><span style="text-decoration: underline;"> </span></strong></p>
<p><strong><span style="text-decoration: underline;">Administrative Files</span></strong></p>
<p>Configurations files, core dump files, trace files, export files and other related log files are the administrative files of an Oracle database. Each of the former mentioned group of files need to be stored in a different folder.</p>
<p>OFA recommended location:<strong><em> $ORACLE_BASE/admin/d/a</em></strong></p>
<p><em> Where: <strong>d</strong>=refers to a specific database</em></p>
<p><em> <strong>a</strong>=subdirectory for each specific type of administrative files</em></p>
<p>Example: For a database orcl</p>
<table style="height: 243px;" border="1" cellspacing="0" cellpadding="0" width="517">
<tbody>
<tr>
<td width="295">
<p align="center"><strong>Directory</strong></p>
</td>
<td width="295">
<p align="center"><strong>Contents</strong></p>
</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/adhoc</td>
<td width="295" valign="top">Contains ad hoc   sqlfiles</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/arch</td>
<td width="295" valign="top">Contains archived redo logs</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/adump</td>
<td width="295" valign="top">Contains any   audit files</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/bdump</td>
<td width="295" valign="top">Contains background process trace files</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/cdump</td>
<td width="295" valign="top">Contains core   dump files</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/udump</td>
<td width="295" valign="top">Contains SQL trace files for the user processes</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/dpdump</td>
<td width="295" valign="top">Cotains Data Pump export files</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/create</td>
<td width="295" valign="top">Contains SQL scripts that you can use for creating your   databases</td>
</tr>
<tr>
<td width="295" valign="top">$ORACLE_BASE/admin/orcl/pfile</td>
<td width="295" valign="top">Contains instance   parameter files (ex: init.ora)</td>
</tr>
</tbody>
</table>
<p><strong><span style="text-decoration: underline;">Database Files:</span></strong></p>
<p><strong><span style="text-decoration: underline;"> </span></strong></p>
<p>OFA Recommendation for Control Files :         <strong><em>/pm/q/d/control[n].ctl</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em> </em></strong><em>Where: <strong>q</strong>=indicator such as “oradata”, to indicate that the contents are Oracle related data</em></p>
<p><em> <strong>d</strong>=Database=DB_NAME (initialization parameter)</em></p>
<p><em> <strong>n</strong>=two digit number</em></p>
<p><em> </em></p>
<p>OFA Recommendation for Redolog Files:         <strong><em>/pm/q/d/redo[n].log</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em> </em></strong><em>Where: <strong>q</strong>=indicator such as “oradata”, to indicate that the contents are Oracle related data</em></p>
<p><em> <strong>d</strong>=Database=DB_NAME (initialization parameter)</em></p>
<p><em> <strong>n</strong>=two digit number</em></p>
<p><em> </em></p>
<p>OFA Recommendation for Data Files:   <strong><em>/pm/q/d/t[n].dbf</em></strong></p>
<p><em>Where: <strong>q</strong>= indicator such as “oradata”, to indicate that the contents are Oracle related data</em></p>
<p><em> <strong>d</strong>=Database=DB_NAME (initialization parameter)</em></p>
<p><em> <strong>Tablespace</strong> name should be of format <strong>t[n] </strong>and not more than eight character in length</em></p>
<p><em> <strong>t</strong>=</em> <em>Descriptive name of the tablespace</em></p>
<p><em> <strong>n</strong>=two digit number</em></p>
<p><strong> </strong></p>
<p><strong>Few things to bear in mind</strong></p>
<p><strong> </strong></p>
<p>Always place your database files over a logical volume that spreads over several disks or use RAID.</p>
<p>SAME:  <strong>S</strong>tripe <strong>a</strong>nd <strong>m</strong>irror <strong>e</strong>very thing</p>
<p>For all oracle mount points that you use to store data files, make sure to run:</p>
<p><strong><em>Chown oracle:oinstall &lt;mount point&gt;</em></strong></p>
<p><strong><em> </em></strong></p>
<p><strong><em>Chmod 755  &lt;mount point&gt;</em> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://oracledbahelp.com/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A simple hack to get around a wireless connection that drops every few minutes</title>
		<link>http://oracledbahelp.com/?p=4</link>
		<comments>http://oracledbahelp.com/?p=4#comments</comments>
		<pubDate>Fri, 26 Jun 2009 07:52:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PC Stuff]]></category>
		<category><![CDATA[connection drops often]]></category>
		<category><![CDATA[Intel(R) Pro/wireless]]></category>
		<category><![CDATA[network adapter]]></category>
		<category><![CDATA[one click solution]]></category>
		<category><![CDATA[PC Hack Fix]]></category>
		<category><![CDATA[Windows PC Hack]]></category>

		<guid isPermaLink="false">http://oracledbahelp.com/?p=4</guid>
		<description><![CDATA[If you ever searched for any of the below
My Dell inspiron keeps dropping wireless connection
Intel(R) Pro/wireless 2200BG network adapter drops wireless connection  my wireless connection drops often
read on&#8230;..
One of laptops and 4 year old Dell Inspiron 600 has a problem, the wireless connection drops every 30 to 40 minutes. Only way to get the connection [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever searched for any of the below</p>
<p>My Dell inspiron keeps dropping wireless connection<br />
Intel(R) Pro/wireless 2200BG network adapter drops wireless connection  my wireless connection drops often</p>
<p>read on&#8230;..<span id="more-4"></span></p>
<p>One of laptops and 4 year old Dell Inspiron 600 has a problem, the wireless connection drops every 30 to 40 minutes. Only way to get the connection back is to disable-and-enable the network connection. Soon this became quite a nuisance having to do all that navigation to network connections, select the connection, disable and then wait for it be disabled …..then enable! It felt like it took for ever to do this. Tried to install latest and greatest drivers, no luck! Tried reinstalling Windows XP and still no luck! I realized that I hate the disable-enable thing not the computer so wanted to find a way to bounce the network connection with very little effort, like a single click!</p>
<p>Hmm…single click doesn’t sound that bad right? I am convinced but there is one problem, I am no windows genius, actually I am windows dummy. Found the windows equivalent of ifconfig, the ipconfig. Wrote a batch script to do ipconifg/release and then ipconfig/renew. It did not work, the ipconfig/release goes fine but the ipconfig/renew fails consistently. Further googling revealed a fancy little Microsoft tool, <a href="http://support.microsoft.com/kb/311272" target="_blank">DevCon</a>, a command-line utility that acts as an alternative to Device Manager. Downloaded it from <a href="http://support.microsoft.com/kb/311272" target="_blank">http://support.microsoft.com/kb/311272</a> and here is what I did:</p>
<ol>
<li>Copy      the devcon.exe file to my c:\windows\system32 folder</li>
<li>Open      control panel -&gt; Network Connections -&gt; Right Click on the wireless      network connection -&gt; Properties -&gt; Click on the “Configure” under      the General tab -&gt; Select the “General tab” on the top. Here you can      see Device type, Manufacturer and location. Location is really what tells      us what bus the device is connected to.<br />
Mine shows: PCI bus 2,      device 3, function 0<br />
That tells me the device is attached to PCI Bus 2</p>
<div id="attachment_5" class="wp-caption aligncenter" style="width: 413px"><img class="size-full wp-image-5" title="Wireless Adapter Configuration Info" src="http://oracledbahelp.com/wp-content/uploads/2009/06/wladapter-pci.JPG" alt="Wireless Adapter Configuration Info" width="403" height="453" /><p class="wp-caption-text">Wireless Adapter Configuration Info</p></div></li>
<li>Now      lets find the device_id of our device (my wireless adapter in this case). Open      the command prompt (Start -&gt; run -&gt; open: cmd). At the command      prompt, type the following command:&gt;devcon find pci\*The output looks like the below
<p><div id="attachment_6" class="wp-caption aligncenter" style="width: 610px"><img class="size-full wp-image-6" title="Devices on my PCI Bus" src="http://oracledbahelp.com/wp-content/uploads/2009/06/pci-list.JPG" alt="Devices on my PCI Bus" width="600" height="464" /><p class="wp-caption-text">Devices on my PCI Bus</p></div>
<p>A quick look into the output shows      me the instance ID of my wireless adapter</p>
<p>PCI\VEN_8086&amp;<strong>DEV_4220</strong>&amp;SUBSYS_27218086&amp;REV_05\4&amp;39A852   02&amp;0&amp;18F0: Intel(R) PRO/Wireless      2200BG Network Connection</p>
<p>That long string is the instance ID, the device ID part is highlighted      part only. Similarly on your machine look for the value that reads some      thing like “DEV_XXX” or some thing similar embedded between the “PCI\VEN_XXXX”      and “&amp;SUBSYS.” Adapt this logic when dealing with non PCI devices.      Step 2 shows what kind of bus you are dealing with.</li>
<li>To try      the restart, type the following command at your command prompt:&gt; devcon restart      *DEV_4220*The output should look like something below. If not, you haven’t done one      of the above steps right.
<p><div id="attachment_7" class="wp-caption aligncenter" style="width: 676px"><img class="size-full wp-image-7" title="PCI Device Restart With Devcon" src="http://oracledbahelp.com/wp-content/uploads/2009/06/restart-cmd.JPG" alt="PCI Device Restart With Devcon" width="666" height="275" /><p class="wp-caption-text">PCI Device Restart With Devcon</p></div></li>
<li>Now that      our restart is gone fine, here is a little batch script:<br />
@echo off<br />
echo Restarting your      Wireless adapter<br />
devcon restart *DEV_4220*<br />
echo Done restarting your      wireless adapter<br />
echo it should be back      with an ip in few secs<br />
I used a notepad to write the above lines and saved it as “wb.bat” (short      form of wirelessbounce.bat)</li>
<li>You      can save that file on your desktop to double-click every time you need to      bounce your wireless adapter or make a shortcut and put it in your quick      launch area (area right next to your start menu). In my case, I badly      needed the single click restart/bounce. So I prefer the quick launch (the      black arrow point to the shortcut on my cmputer)
<p><div id="attachment_8" class="wp-caption aligncenter" style="width: 209px"><img class="size-full wp-image-8" title="Quick Launch Shortcut" src="http://oracledbahelp.com/wp-content/uploads/2009/06/qck-lnch.JPG" alt="Quick Launch Shortcut" width="199" height="64" /><p class="wp-caption-text">Quick Launch Shortcut</p></div></li>
</ol>
<p>The whole idea of this article is to use this cool little hack to get around the malfunctioning hardware (or Windows or the drivers or what ever), you can get creative and use it in many more occasions. Just be careful, it is powerful tool!</p>
]]></content:encoded>
			<wfw:commentRss>http://oracledbahelp.com/?feed=rss2&amp;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
