<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Beyond Oracle</title>
	
	<link>http://beyondoracle.wordpress.com</link>
	<description>Thinking &amp; Doing all about Oracle, APEX, Linux... and Business!</description>
	<lastBuildDate>Fri, 09 Oct 2009 13:00:04 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="beyondoracle.wordpress.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/def75d911f08aadf9b1c062605365c41?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Beyond Oracle</title>
		<link>http://beyondoracle.wordpress.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/BeyondOracle" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>RMAN 06193: connected to target database (not started). WRONG!</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/HUB7yK1U5FQ/</link>
		<comments>http://beyondoracle.wordpress.com/2009/10/08/rman-06193-connected-to-target-database-not-started-wrong/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 14:23:04 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=243</guid>
		<description><![CDATA[As you probably know, database must be started before any other RMAN commands are issued. So&#8230; how to solve this issue if you have 100% that your database is open and working? Take a look at my case and my environment variables:
ORACLE_SID=dw
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1/
ORACLE_BASE=/u01/app/oracle/
[oracle@db env]$ rman target /
Recovery Manager: Release 10.2.0.4.0 &#8211; Production on Thu Oct 8 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=243&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As you probably know, database must be started before any other RMAN commands are issued. So&#8230; how to solve this issue if you have 100% that your database is open and working? Take a look at my case and my environment variables:</p>
<p>ORACLE_SID=dw<br />
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1/<br />
ORACLE_BASE=/u01/app/oracle/<br />
<span style="color:#c0c0c0;">[oracle@db env]$</span> rman target /<br />
<span style="color:#c0c0c0;">Recovery Manager: Release 10.2.0.4.0 &#8211; Production on Thu Oct 8 15:08:53 2009<br />
Copyright (c) 1982, 2005, Oracle.  All rights reserved.</span><br />
<span style="color:#ff0000;">connected to target database (not started)</span><br />
<span style="color:#c0c0c0;">RMAN&gt;</span></p>
<p>But I am 100% sure that my database is online <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So what&#8217;s happening here? Take a look at my ORACLE_HOME&#8230; Do you find anything strange on it&#8217;s path?</p>
<p>export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1<span style="color:#ff0000;">/</span></p>
<p>You&#8217;re right&#8230; I have an extra slash &#8220;/&#8221; at the end of the path&#8230; RMAN strangely thinks my database is not online if the ORACLE_HOME ends with &#8220;/&#8221; &#8230; It works with lsnrctl, emctl and other oracle utils but with RMAN and SQLPLUS won&#8217;t work. So the error was a typo&#8230; In the bash a command like &#8220;cd /u01//app&#8221; works, but in this case RMAN and SQLPLUS got confused.</p>
<p><span style="color:#c0c0c0;">[oracle@db env]$</span> export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1/<br />
<span style="color:#c0c0c0;">[oracle@db env]$</span> rman target /<br />
<span style="color:#c0c0c0;">Recovery Manager: Release 10.2.0.4.0 &#8211; Production on Thu Oct 8 15:19:10 2009<br />
Copyright (c) 1982, 2007, Oracle.  All rights reserved.</span><br />
<span style="color:#ff0000;">connected to target database (not started)</span><br />
<span style="color:#c0c0c0;">RMAN&gt;</span> exit<br />
<span style="color:#c0c0c0;">Recovery Manager complete.</span></p>
<p><span style="color:#c0c0c0;">[oracle@db env]$</span> export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1<br />
<span style="color:#c0c0c0;">[oracle@db env]$</span> rman target /<br />
<span style="color:#c0c0c0;">Recovery Manager: Release 10.2.0.4.0 &#8211; Production on Thu Oct 8 15:19:15 2009<br />
Copyright (c) 1982, 2007, Oracle.  All rights reserved.<br />
</span><span style="color:#008000;">connected to target database: DW (DBID=3334851943)</span><span style="color:#c0c0c0;"><br />
RMAN&gt;</span></p>
Posted in dba, linux, security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/243/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=243&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/10/08/rman-06193-connected-to-target-database-not-started-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/10/08/rman-06193-connected-to-target-database-not-started-wrong/</feedburner:origLink></item>
		<item>
		<title>Oracle Patchset Silent Install without response file</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/FHTv_aUldIk/</link>
		<comments>http://beyondoracle.wordpress.com/2009/10/01/oracle-patchset-silent-install-without-response-file/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 22:18:31 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=238</guid>
		<description><![CDATA[Sometimes, Oracle patchset silent installation is done with a &#8220;Response File&#8221; (patchset.rsp) supplied with the patchset software. The process is documented in the README for each patchset.
What is sometimes unknown is that the same silent patchset installation can be done directly from the command prompt without response file, by using a minimum set of variables [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=238&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Sometimes, Oracle patchset silent installation is done with a &#8220;Response File&#8221; (patchset.rsp) supplied with the patchset software. The process is documented in the README for each patchset.</p>
<p>What is sometimes unknown is that the same silent patchset installation can be done directly from the command prompt without response file, by using a minimum set of variables (from response file) as arguments to the OUI (i.e &#8220;runInstaller&#8221; or &#8220;setup.exe&#8221;).</p>
<p>For example on Linux and on patchet 10.2.0.4, following command can be used to install Oracle Database Patchset software in silent mode:</p>
<p><span style="color:#c0c0c0;">[root@app ~]#</span> <span style="color:#800000;">su &#8211; oracle</span><br />
<span style="color:#c0c0c0;">[oracle@app ~]$</span> <span style="color:#800000;">cd /soft/db10g/patch10204/Disk1</span><br />
<span style="color:#c0c0c0;">[oracle@app Disk1]$</span><br />
<span style="color:#c0c0c0;">[oracle@app Disk1]$</span> <span style="color:#800000;">./runInstaller -silent -force -debug \</span><br />
<span style="color:#800000;">FROM_LOCATION=&#8221;/soft/db10g/patch10204/Disk1/stage/products.xml&#8221; \<br />
ORACLE_HOME=&#8221;/opt/oracle/product/10.2.0/db_1&#8243; \<br />
ORACLE_HOME_NAME=&#8221;OraDb10g_home1&#8243; \<br />
TOPLEVEL_COMPONENT=&#8217;{&#8220;oracle.patchset.db&#8221;,&#8221;10.2.0.4.0&#8243;}&#8217;</span></p>
<p>We just need to specify the products.xml location from the patchset directory, the ORACLE_HOME path and the ORACLE_HOME name.</p>
<p>We can also do it on windows like this:</p>
<p><span style="color:#c0c0c0;">C:&gt; </span><span style="color:#800000;">cd c:\soft\db10g\patch10204\Disk1</span><br />
<span style="color:#c0c0c0;">C:&gt;</span> <span style="color:#800000;">setup.exe -silent -force -debug FROM_LOCATION=&#8221;c:\soft\db10g\patch10204\Disk1\stage\products.xml&#8221; ORACLE_HOME=&#8221;C:\app\oracle\product\10.2.0\db_1&#8243; ORACLE_HOME_NAME=&#8221;OraDb10g_home1&#8243; TOPLEVEL_COMPONENT={&#8220;oracle.patchset.db&#8221;,&#8221;10.2.0.4.0&#8243;}</span></p>
<p>Hope it helps someone with problems running the patchset GUI installer&#8230;</p>
Posted in dba, linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=238&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/10/01/oracle-patchset-silent-install-without-response-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/10/01/oracle-patchset-silent-install-without-response-file/</feedburner:origLink></item>
		<item>
		<title>Oracle Amazon EC2 AMI for Europe Region</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/ItEXAEj01zk/</link>
		<comments>http://beyondoracle.wordpress.com/2009/09/16/oracle-amazon-ec2-ami-for-europe-datacenters/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 13:57:58 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[cloud]]></category>
		<category><![CDATA[dba]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=228</guid>
		<description><![CDATA[As most of you probably know,  an AMI (Amazon Machine Image) is a pre-built package of software which can be used to create or instantiate a virtual machine within the Amazon Elastic Compute Cloud (EC2).
Amazon EC2 allows anyone with few bucks on the credit card to rent computers on which to run their own applications. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=228&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As most of you probably know,  an AMI (Amazon Machine Image) is a pre-built package of software which can be used to create or instantiate a virtual machine within the Amazon Elastic Compute Cloud (EC2).</p>
<p>Amazon EC2 allows anyone with few bucks on the credit card to rent computers on which to run their own applications. EC2 provides scalable deployment of applications by using a web services interface through which we can create virtual machines on which we can load any software of our choice.</p>
<p>Oracle released, about 7 months ago, AMI&#8217;s in the US Amazon regions (US based data centers), that come with pre-installed Oracle Linux and Oracle Database 11g. Unfortunately in Europe we didn&#8217;t have those images available and most of us had to rely on Centos or Redhat AMI&#8217;s and then download and install Oracle software and create the database.</p>
<p>So, it seems these last days, quietly, Oracle released Oracle AMI&#8217;s for Europe region (London based data center) . Now it&#8217;s much faster to create Oracle Instances with 11g up and running&#8230;</p>
<p>The AMI&#8217;s ID&#8217;s are:</p>
<p><span style="color:#800000;"><strong>32 bit:</strong></span></p>
<p><strong>ami-087a517c</strong><br />
<span style="color:#800000;">Oracle 11.1.0.7 Enterprise Edition</span><br />
oracle-corporation-eu/database-ami/32-bit/oracle_11107_EE_32Bit-image.manifest.xml</p>
<p><strong>ami-0a7a517e</strong><br />
<span style="color:#800000;">Oracle 11.1.0.7 Standard Edition / SE One</span><br />
oracle-corporation-eu/database-ami/32-bit/oracle_11107_SE_SE1_32Bit-image.manifest.xml<br />
<strong><span style="color:#800000;">64 bit:</span></strong></p>
<p><strong>ami-587b502c</strong><br />
<span style="color:#800000;">Oracle 11.1.0.7 Standard Edition / SE One</span><br />
oracle-corporation-eu/database-ami/64-bit/oracle_11107_SE_SE1_64Bit-image.manifest.xml</p>
<p><strong>ami-5e7b502a</strong><br />
<span style="color:#800000;">Oracle 11.1.0.7 Enterprise Edition</span><br />
oracle-corporation-eu/database-ami/64-bit/oracle_11107_EE_64Bit-image.manifest.xml</p>
<p>We can create the type of instance that we want, depending on our processing power needs we can choose different types of instances&#8230; The most common are:</p>
<p>Small Instance &#8211; The small instance (default) equates to a system with 1.7 GB of memory, 1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit), 160 GB of instance storage, 32-bit platform</p>
<p>Large Instance &#8211; The large instance represents a system with 7.5 GB of memory, 4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each), 850 GB of instance storage, 64-bit platform</p>
<p>Extra Large Instance &#8211; The extra large instance offers the equivalent of a system with 15 GB of memory, 8 EC2 Compute Units (4 virtual cores with 2 EC2 Compute Units each), 1690 GB of instance storage, 64-bit platform.</p>
<p>You have also High CPU instances that have proportionally more CPU resources than memory (RAM) and address compute-intensive applications.</p>
<p>Happy instantiation <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:0;width:1px;height:1px;">
<p>An <strong>Amazon Machine Image (AMI)</strong> is a pre-built package of software which can be used to create or instantiate a <a title="Virtual machine" href="http://en.wikipedia.org/wiki/Virtual_machine">virtual machine</a> within the <a class="mw-redirect" title="Amazon EC2" href="http://en.wikipedia.org/wiki/Amazon_EC2">Amazon Elastic Compute Cloud</a>.</p>
<p>An AMI forms the basic unit of deployment for services delivered using EC2 and typically includes the operating system (for example Linux, UNIX, or Windows) and additional software necessary to deliver a service.</p></div>
Posted in cloud, dba, linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=228&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/09/16/oracle-amazon-ec2-ami-for-europe-datacenters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/09/16/oracle-amazon-ec2-ami-for-europe-datacenters/</feedburner:origLink></item>
		<item>
		<title>RHEL5 or OEL5: Oracle 10g/11g “error while loading shared libraries” or stalled OUI</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/47qTrMbjNZE/</link>
		<comments>http://beyondoracle.wordpress.com/2009/03/05/rhel5-or-oel5-oracle-10g11g-error-while-loading-shared-libraries-or-stalled-oui/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 16:55:54 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=216</guid>
		<description><![CDATA[A Quick intro&#8230; Take a look at the following issues:
Symptom : Oracle Database Configuration Assistant (DBCA) stalled while creating the database
Symptom : Oracle IAS 10G  stalled during software installation with message &#8220;Please wait, this will take a moment&#8221;
Symptom : error while loading shared libraries: $ORACLE_HOME/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied
If you ever [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=216&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A Quick intro&#8230; Take a look at the following issues:</p>
<p><strong><span style="color:#800000;">Symptom :</span></strong> Oracle Database Configuration Assistant (DBCA) stalled while creating the database<br />
<strong><span style="color:#800000;">Symptom :</span></strong> Oracle IAS 10G  stalled during software installation with message &#8220;Please wait, this will take a moment&#8221;<br />
<strong><span style="color:#800000;">Symptom :</span></strong> error while loading shared libraries: $ORACLE_HOME/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied</p>
<p>If you ever had any of the previous symptons while trying to install Oracle Software,  create a instance / database with DBCA, create a listener or even run sqlplus&#8230; then you probably have SELinux mode set to &#8220;Enforcing&#8221;.</p>
<p><a title="SE Linux wikipedia definition" href="http://en.wikipedia.org/wiki/Selinux" target="_blank">Security-Enhanced Linux (SELinux)</a> is a Linux feature that provides a variety of security policies, including U.S. Department of Defense style mandatory access controls, through the use of Linux Security Modules (LSM) in the Linux kernel. It is not a Linux distribution, but rather a set of modifications that can be applied to Unix-like operating systems, such as Linux and BSD.</p>
<p>Under Oracle Enterprise Linux or Redhat Enterprise Linux, if needed we can switch  SELinux from the default &#8220;Enforcing&#8221; mode that it is running in, to the &#8220;Permissive&#8221; mode by running following commands as root user:</p>
<p><span style="color:#808080;">[root@server~]#</span> <span style="color:#800000;">getenforce</span><br />
Enforcing<br />
<span style="color:#808080;">[root@server~]#</span> <span style="color:#800000;">setenforce 0</span><br />
<span style="color:#808080;">[root@server~]#</span> <span style="color:#800000;">getenforce</span><br />
Permissive</p>
<p>The previous commandes changed the default mode to &#8220;permissive&#8221; and allows SELinux to continue running, and logging denial messages, but will not deny any operations. If you would like to return to Enforcing mode just run as root:</p>
<p><span style="color:#808080;">[root@server~]#</span> <span style="color:#800000;">setenforce 1</span><br />
<span style="color:#808080;">[root@server~]#</span> <span style="color:#800000;">getenforce</span><br />
Enforcing</p>
<p>Another way to temporarily disable (0) or enable (1) SELinux is to run one of the following commands:</p>
<p><span style="color:#808080;">[root@server~]# </span><span style="color:#800000;">echo 0 &gt; /selinux/enforce</span><br />
<span style="color:#808080;">[root@server~]# </span><span style="color:#800000;">echo 1 &gt; /selinux/enforce</span><br />
The previous commands are immediate, and will remain in effect until the next reboot. If you want to make &#8220;Permissive&#8221; mode permanent you must add &#8220;enforcing=0&#8243; to the kernel boot line that usually is at /etc/grub.conf file. For instance:</p>
<pre># grub.conf generated by anaconda
#
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Enterprise Linux (2.6.18-92.el5PAE)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.18-92.el5PAE ro root=LABEL=/ <span style="color:#800000;">enforcing=0
</span>        initrd /boot/initrd-2.6.18-92.el5PAE.img
.
.</pre>
<p>Instead of editing grub we can configure SELinux by editing the file /etc/selinux/config and choose any of the following modes:</p>
<p>SELINUX=enforcing<br />
or<br />
SELINUX=permissive<br />
or<br />
SELINUX=disabled<br />
After the next reboot the SELinux will comply to the permanent settings that we have choosen above.</p>
Posted in dba, linux, security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=216&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/03/05/rhel5-or-oel5-oracle-10g11g-error-while-loading-shared-libraries-or-stalled-oui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/03/05/rhel5-or-oel5-oracle-10g11g-error-while-loading-shared-libraries-or-stalled-oui/</feedburner:origLink></item>
		<item>
		<title>Resize Undo Tablespace after ORA-03297 file contains used data beyond…</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/ThqnRB7xQYw/</link>
		<comments>http://beyondoracle.wordpress.com/2009/02/12/resize-undo-tablespace-after-ora-03297-file-contains-used-data-beyond/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 08:10:59 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[rollback]]></category>
		<category><![CDATA[tablespace]]></category>
		<category><![CDATA[undo]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=188</guid>
		<description><![CDATA[Every Oracle Database must have a way of maintaining information that is used to rollback changes to the database. This information consists of records of the actions of transactions, primarily before they are committed. All these records are called undo.
When an user or application issue a rollback statement, undo records are used to undo changes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=188&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Every Oracle Database must have a way of maintaining information that is used to rollback changes to the database. This information consists of records of the actions of transactions, primarily before they are committed. All these records are called <strong>undo</strong>.</p>
<p>When an user or application issue a <strong>rollback</strong> statement, undo records are used to undo changes that were made to the database by the  transaction that were not commited.</p>
<p>When we have a large database, most of the long batch transactions that demand lot of undo work or purge operations will increase a lot the <strong>undo</strong> tablespace size. Depending on the size of these operations your database can have an <strong>undo</strong> tablespace from few MB to dozens GB.</p>
<p>To save space from an once required large <strong>undo</strong> tablespace, we may resize it to make it smaller. In my databases sometimes the size of my <strong>undo</strong> tablespace achieves 20GB.</p>
<p>We can resize the database datafiles with:</p>
<p><span style="color:#888888;">SQL&gt;</span> <span style="color:#800000;">ALTER DATABASE DATAFILE &#8216;/u01/app/oracle/oradata/mydb/undotbs01.dbf&#8217; RESIZE 500M;</span></p>
<p>Most of the times when I try to resize the <strong>undo</strong> tablespace I encounter ORA-3297 error: file contains used data beyond the requested RESIZE value. This means that some <strong>undo</strong> information stills stored above the datafile size we want to set. We can check the most high used block to check the minimum size that we can resize a particular datafile. For that we can query the dba_free_space dictionary view.</p>
<p>Another way to set our undo tablespace to the size that we want is to create another undo tablespace, set it the default one, take offline the old and then just drop the big old tablespace.</p>
<p>To check your undo tablespace info issue the following statement:</p>
<p><span style="color:#808080;">SQL&gt;</span> <span style="color:#800000;">SELECT name,value FROM v$parameter WHERE name IN (&#8216;undo_management&#8217;,'undo_tablespace&#8217;);</span></p>
<pre>NAME VALUE
------------------------
undo_management AUTO
undo_tablespace UNDOTBS01</pre>
<p><span style="color:#808080;">SQL&gt;</span><span style="color:#808080;"><br />
SQL&gt;</span> <span style="color:#800000;">CREATE UNDO TABLESPACE undotbs02<br />
DATAFILE &#8216;/u01/app/oracle/oradata/mydb/undotbs02.dbf&#8217; SIZE 1024M<br />
REUSE AUTOEXTEND ON NEXT 4096K MAXSIZE 10240M;</span></p>
<p><span style="color:#808080;"><br />
SQL&gt;</span> <span style="color:#800000;">ALTER SYSTEM SET undo_tablespace = &#8216;UNDOTBS02&#8242;;</span><br />
<span style="color:#808080;">SQL&gt;</span> <span style="color:#800000;">ALTER TABLESPACE undotbs01 OFFLINE;</span><br />
<span style="color:#808080;">SQL&gt;</span> <span style="color:#800000;">DROP TABLESPACE undotbs01 INCLUDING CONTENTS AND DATAFILES;</span><br />
<span style="color:#808080;">SQL&gt;</span></p>
<p>With these steps we created a new undo tablespace, set it as the system default <strong>undo</strong> tablespace and drop the old tablespace including the datafiles.</p>
Posted in dba Tagged: rollback, tablespace, undo <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=188&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/02/12/resize-undo-tablespace-after-ora-03297-file-contains-used-data-beyond/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/02/12/resize-undo-tablespace-after-ora-03297-file-contains-used-data-beyond/</feedburner:origLink></item>
		<item>
		<title>Oracle Enterprise Manager fails to start! OC4J Configuration issue</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/SVzztZ681u4/</link>
		<comments>http://beyondoracle.wordpress.com/2009/02/08/oracle-enterprise-manager-fails-to-start-oc4j-configuration-issue/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 17:59:00 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[dbconsole]]></category>
		<category><![CDATA[dbcontrol]]></category>
		<category><![CDATA[em]]></category>
		<category><![CDATA[emca]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=186</guid>
		<description><![CDATA[If you ever tried to start the Enterprise Manager with the command &#8216;emctl start dbconsole&#8217; and you got stuck with the error:
OC4J Configuration issue. &#60;ORACLE_HOME&#62;/oc4j/j2ee/OC4J_DBConsole_&#60;YOURHOST&#62;_&#60;YOURDB&#62; not found.
.
for instance:
OC4J Configuration issue. /opt/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_db.neoface.pt_ORCL not found.
.
Then the cause may be that Database Control is not configured or misconfigured&#8230; This can be verified by checking if the following directories [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=186&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you ever tried to start the Enterprise Manager with the command &#8216;emctl start dbconsole&#8217; and you got stuck with the error:</p>
<pre>OC4J Configuration issue. &lt;ORACLE_HOME&gt;/oc4j/j2ee/OC4J_DBConsole_&lt;YOURHOST&gt;_&lt;YOURDB&gt; not found.</pre>
<pre><span style="color:#888888;">.</span></pre>
<p>for instance:</p>
<pre>OC4J Configuration issue. /opt/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_db.neoface.pt_ORCL not found.
<span style="color:#888888;">.</span></pre>
<p>Then the cause may be that Database Control is not configured or misconfigured&#8230; This can be verified by checking if the following directories exist in your ORACLE_HOME:</p>
<pre>&lt;ORACLE_HOME&gt;/oc4j/j2ee/OC4J_DBConsole_&lt;HOSTNAME&gt;_&lt;DBNAME&gt;
&lt;ORACLE_HOME&gt;/&lt;HOSTNAME&gt;_&lt;DBNAME&gt;
<span style="color:#888888;">.</span></pre>
<p>If those directories do not exist, Database Control has not been configured for the database.</p>
<p><strong><span style="color:#ff0000;">SOLUTION</span></strong></p>
<p>To configure the enterprise manager database control for your database, issue the following commands as oracle user:</p>
<p><span style="color:#808080;">[oracle@neoface oracle]$</span> <span style="color:#800000;">export ORACLE_HOME=&lt;ORACLE_HOME&gt;</span><br />
<span style="color:#808080;">[oracle@neoface oracle]$</span> <span style="color:#800000;">export ORACLE_SID=&lt;ORACLE_SID&gt;</span><br />
<span style="color:#808080;">[oracle@neoface bin]$</span> <span style="color:#800000;">cd $ORACLE_HOME/bin</span><br />
<span style="color:#808080;">[oracle@neoface bin]$</span> <span style="color:#800000;">./emca -config dbcontrol db -repos create</span></p>
<p>Now just follow the instructions on the screen&#8230; you&#8217;ll need the SYS, DBSNMP and SYSAUX passwords.</p>
<p>Sometimes you already have the SYSMAN, DBSNMP and SYSAUX accounts, and the previous EMCA command can fail to create the DBConsole repository the error ORA-20001 occurs.</p>
<pre>ORA-20001 Sysman Already Exists While Running EMCA
.</pre>
<p>The Solution is simple&#8230; Drop the existing repository <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:#808080;">[oracle@neoface oracle]$</span> <span style="color:#800000;">cd $ORACLE_HOME/bin</span><br />
<span style="color:#808080;">[oracle@neoface bin]$</span> <span style="color:#800000;">./emca -deconfig dbcontrol db -repos drop</span></p>
<p>After removing the repository try to created it with the commands I explained previously. After you install the EM repositiry, the DBConsole should be started and you should be able to access the DBConsole using the URL provided at the installation screen.</p>
<p>(UPDATE)</p>
<p>If the previous drop procedure fails and by checking the logs we see an ORA-01031 insufficient privileges, this may be because we don&#8217;t have a password file created. Just go to $ORACLE_HOME/dbs and check if we have a file called pwd&lt;sid&gt;.ora. If not, create it&#8230;</p>
<p><span style="color:#808080;">[oracle@neoface oracle]$</span> <span style="color:#800000;">cd $ORACLE_HOME/bin</span><br />
<span style="color:#808080;">[oracle@neoface bin]$</span><span style="color:#800000;"> ./orapwd file=$ORACLE_HOME/dbs/pwd&lt;sid&gt;.ora password=oracle entries=5</span></p>
<p>Hope it helps!</p>
Posted in dba, linux Tagged: dbconsole, dbcontrol, em, emca <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=186&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/02/08/oracle-enterprise-manager-fails-to-start-oc4j-configuration-issue/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/02/08/oracle-enterprise-manager-fails-to-start-oc4j-configuration-issue/</feedburner:origLink></item>
		<item>
		<title>Move, Clone or Copy an Oracle Database with RMAN</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/XRgX0kvlHyQ/</link>
		<comments>http://beyondoracle.wordpress.com/2009/01/07/move-clone-copy-database-with-rman/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 00:22:50 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=161</guid>
		<description><![CDATA[Moving, copying or cloning a database from one server to another with different directory structures can be easily accomplished with RMAN. Imagine that you have a database on one node and you want to copy it to another node without shuting down your database and move your datafiles to a different directory structure&#8230; This will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=161&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Moving, copying or cloning a database from one server to another with different directory structures can be easily accomplished with RMAN. Imagine that you have a database on one node and you want to copy it to another node without shuting down your database and move your datafiles to a different directory structure&#8230; This will be demonstrated here by using RMAN.</p>
<p><span style="color:#ff0000;"><strong>ASSUMPTIONS</strong></span></p>
<p>Source Database</p>
<ul>
<li>10.2.0.4 database online (sid neo) at server1 (app)</li>
<li>archivelog mode is enabled</li>
<li>db datafiles are in the directory /opt/oracle/oradata/neo2</li>
<li>database will be backed up online with RMAN to /u01/backup</li>
</ul>
<p style="text-align:center;"><img class="aligncenter size-medium wp-image-165" style="border:1px solid black;" title="database status" src="http://beyondoracle.files.wordpress.com/2009/01/dbstatus.png?w=300&#038;h=166" alt="database status" width="300" height="166" /></p>
<p>Destiny Database</p>
<ul>
<li>10.2.0.4 Oracle Home installed without any database running at server2 (mynode2.com)</li>
<li>db datafiles must be created / moved to different directory: /opt/oracle/oradata/neo</li>
<li>only the manual backup created at server1 will be moved to server2</li>
</ul>
<p><span style="color:#ff0000;"><strong>AT SERVER1</strong></span></p>
<p>Logon as oracle user software owner at server1 and set your environment variables. Then open RMAN and backup the source database we want to copy /move / clone.</p>
<p><span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1</span><br />
<span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">export ORACLE_SID=neo</span><br />
<span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">export PATH=$ORACLE_HOME/bin:$PATH</span><br />
<span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">rman target /</span><br />
RMAN&gt; <span style="color:#800000;">backup database plus archivelog;</span></p>
<p style="text-align:center;"><img class="aligncenter size-medium wp-image-166" style="border:1px solid black;" title="rman backup" src="http://beyondoracle.files.wordpress.com/2009/01/rmanbackup.png?w=300&#038;h=220" alt="rman backup" width="300" height="220" /></p>
<p>The RMAN backup created the following files at /u01/backup:</p>
<pre>cf_NEO_c-1689570411-20090106-00 (control file backup)
back_NEO_675389594_736_1
back_NEO_675389780_737_1
back_NEO_675390018_738_1
back_NEO_675390293_739_1</pre>
<p style="text-align:center;"><img class="aligncenter size-medium wp-image-168" style="border:1px solid black;" title="copybackups1" src="http://beyondoracle.files.wordpress.com/2009/01/copybackups1.png?w=300&#038;h=206" alt="copybackups1" width="300" height="206" /></p>
<p>Copy those 5 backup files to server2</p>
<p><span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">scp </span><span style="color:#800000;">/u01/backup/</span><span style="color:#800000;">back_NEO* root@mynode2.com:/u01/backup/</span></p>
<p>Create an initialization file (pfile) from the current spfile. Then copy it to the server2.</p>
<p><span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">sqlplus &#8220;/ as sysdba&#8221;</span><br />
SQL&gt; <span style="color:#800000;">create pfile from spfile;</span><br />
SQL&gt; <span style="color:#800000;">exit;</span><br />
<span style="color:#999999;">[oracle@neoface oracle]$ </span><span style="color:#800000;">scp /opt/oracle/product/10.2.0/db_1/dbs/i</span><span style="color:#800000;">nitneo.ora oracle@mynode2.com:/opt/oracle/product/10.2.0/db_1/dbs/initneo.ora</span><span style="color:#800000;">/</span></p>
<p><span style="font-size:x-small;"><br />
</span></p>
<p><span style="color:#ff0000;"><strong>AT SERVER2</strong></span></p>
<p>Logon at server2 to do the following steps:</p>
<ul>
<li>create the OS directories to hold the datafiles and the admin log files and pfile:</li>
<li>edit the pfile to modify the instance name in parameters like bdump, udump, etc</li>
<li>change the onwership of pfile to belong to oracle user</li>
<li>connect to RMAN and startup the database  in nomount mode</li>
<li>restore the control file from the backup</li>
<li>mount the database</li>
<li>validate catalog by crosschecking and cataloging the 4 backups pieces we copied</li>
<li>rename the datafiles and redolog files and restoring the database</li>
</ul>
<p>Switch to oracle user and create datafiles directories :</p>
<p><span style="color:#999999;">[root@mynode2 root] </span><span style="color:#800000;">su &#8211; oracle</span><br />
<span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">mkdir /opt/oracle/admin/neo -p</span><br />
<span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">cd /opt/oracle/admin/neo</span><br />
<span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">mkdir cdump </span><span style="color:#800000;">udump bdump pfile</span></p>
<p><span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">mkdir /opt/oracle/oradata/neo -p</span></p>
<p>Edit your pfile accordingly your new directory structure:</p>
<p><span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">vi </span><span style="color:#800000;">/opt/oracle/product/10.2.0/db_1/dbs/</span><span style="color:#800000;">initneo.ora</span></p>
<p>Set environment variables and start working on RMAN:<span style="color:#800000;"><br />
</span></p>
<p><span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1</span><br />
<span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">export ORACLE_SID=neo</span><br />
<span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">export PATH=$ORACLE_HOME/bin:$PATH</span><br />
<span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">rman target /</span><br />
RMAN&gt; <span style="color:#800000;">startup nomount</span><br />
RMAN&gt; <span style="color:#800000;">restore controlfile from &#8216;/u01/backup/cf_NEO_c-1689570411-20090106-00&#8242;;</span><br />
RMAN&gt; <span style="color:#800000;">alter database mount ;</span><br />
RMAN&gt; <span style="color:#800000;">exit</span></p>
<p>Now that the database is mounted, we&#8217;ll check the correct database SCN from the current log that we&#8217;ll use later to recover the database. Take note of your current SCN.</p>
<p><span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">sqlplus &#8220;/ as sysdba&#8221;</span><br />
SQL&gt; <span style="color:#800000;">select group#, first_change#, status, archived from v$log;</span></p>
<pre>    GROUP# FIRST_CHANGE# STATUS           ARC
---------- ------------- ---------------- ---
     1     336565140     ACTIVE           YES
     2     <span style="color:#ff0000;">336415067</span>     CURRENT          NO
     3     336523814     INACTIVE         YES</pre>
<p>SQL&gt; <span style="color:#800000;">exit;</span></p>
<p><span style="color:#999999;">[oracle@mynode2 oracle]$ </span><span style="color:#800000;">rman target /</span></p>
<p>As we only copied to this server the backup we created at the beggining and we did not copy all the backups we had on server1 we must crosscheck the catalog against the OS files. Run the following commands at RMAN prompt :</p>
<p>RMAN&gt; <span style="color:#800000;">CROSSCHECK backup;</span><br />
RMAN&gt; <span style="color:#800000;">CROSSCHECK copy;</span><br />
RMAN&gt; <span style="color:#800000;">CROSSCHECK backup of database;</span><br />
RMAN&gt; <span style="color:#800000;">CROSSCHECK backup of controlfile;</span><br />
RMAN&gt; <span style="color:#800000;">CROSSCHECK archivelog all;</span></p>
<p>Now let&#8217;s catalog the 4 backup pieces that we copy to this server2:</p>
<p>RMAN&gt; <span style="color:#800000;">CATALOG backuppiece &#8216;/u01/backup/back_NEO_675389594_736_1&#8242;;</span><br />
RMAN&gt; <span style="color:#800000;">CATALOG backuppiece &#8216;/u01/backup/back_NEO_675389780_737_1&#8242;;</span><br />
RMAN&gt; <span style="color:#800000;">CATALOG backuppiece &#8216;/u01/backup/back_NEO_675390018_738_1&#8242;;</span><br />
RMAN&gt; <span style="color:#800000;">CATALOG backuppiece &#8216;/u01/backup/back_NEO_675390293_739_1&#8242;;</span></p>
<p>Next, as we changed the directory of our datafiles we must rename the redologs:<br />
RMAN&gt; <span style="color:#800000;">ALTER DATABASE  rename file &#8216;/opt/oracle/oradata/neo2/redo01.log&#8217; to &#8216;/opt/oracle/oradata/neo/redo01.log&#8217;;</span><br />
RMAN&gt; <span style="color:#800000;">ALTER DATABASE rename file &#8216;/opt/oracle/oradata/neo2/redo02.log&#8217; to &#8216;/opt/oracle/oradata/neo/redo02.log&#8217;;</span><br />
RMAN&gt; <span style="color:#800000;">ALTER DATABASE rename file &#8216;/opt/oracle/oradata/neo2/redo03.log&#8217; to &#8216;/opt/oracle/oradata/neo/redo03.log&#8217;;</span></p>
<p>If you use BLOCK CHANGE TRACKING to allow fast incremental backups,  and if you want to move the datafiles to different directory you must disable this feature and enabling it by specifying the new dir:</p>
<p>RMAN&gt; <span style="color:#800000;">ALTER DATABASE disable block change tracking;</span><br />
RMAN&gt; <span style="color:#800000;">ALTER DATABASE enable block change tracking using file &#8216;/opt/oracle/oradata/neo/block_change_tracking.f&#8217;;</span></p>
<p>This will avoid errors like ORA-19751 and ORA-19750</p>
<p>Now let&#8217;s run the script that will restore our database, renaming the datafiles and recovering until the archivelog with SCN 336415067, the current one.</p>
<p>RMAN&gt; <span style="color:#800000;">run {<br />
set newname for datafile 1 to &#8220;/opt/oracle/oradata/neo/system01.dbf&#8221;;<br />
set newname for datafile 2 to &#8220;/opt/oracle/oradata/neo/undotbs01.dbf&#8221;;<br />
set newname for datafile 3 to &#8220;/opt/oracle/oradata/neo/sysaux01.dbf&#8221;;<br />
set newname for datafile 4 to &#8220;/opt/oracle/oradata/neo/data01.dbf&#8221;;<br />
set newname for datafile 5 to &#8220;/opt/oracle/oradata/neo/index01.dbf&#8221;;<br />
set newname for datafile 6 to &#8220;/opt/oracle/oradata/neo/users01.dbf&#8221;;<br />
set newname for datafile 7 to &#8220;/opt/oracle/oradata/neo/streams.dbf&#8221;;<br />
set newname for datafile 8 to &#8220;/opt/oracle/oradata/neo/data01brig.dbf&#8221;;<br />
set newname for datafile 9 to &#8220;/opt/oracle/oradata/neo/index02.dbf&#8221;;<br />
restore database;<br />
switch datafile all;<br />
recover database until scn <span style="color:#ff0000;">336415067</span>;<br />
}</span></p>
<p>RMAN&gt; <span style="color:#800000;">ALTER DATABASE open resetlogs;</span></p>
<p>I didn&#8217;t manage to avoid errors like ORA-01110 and  ORA-01180 at RMAN without using the  &#8220;until&#8221; clause in the &#8220;recover database&#8221; sentence instead, like most people use it, as the first instruction after the run command.</p>
<p>Later I&#8217;ll upload a video for you easily see it running flawlessly <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="color:#ff0000;">Btw, HAPPY NEW YEAR!!!!</span></p>
Posted in dba, security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=161&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2009/01/07/move-clone-copy-database-with-rman/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>

		<media:content url="http://beyondoracle.files.wordpress.com/2009/01/dbstatus.png?w=300" medium="image">
			<media:title type="html">database status</media:title>
		</media:content>

		<media:content url="http://beyondoracle.files.wordpress.com/2009/01/rmanbackup.png?w=300" medium="image">
			<media:title type="html">rman backup</media:title>
		</media:content>

		<media:content url="http://beyondoracle.files.wordpress.com/2009/01/copybackups1.png?w=300" medium="image">
			<media:title type="html">copybackups1</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2009/01/07/move-clone-copy-database-with-rman/</feedburner:origLink></item>
		<item>
		<title>I’ll attend UKOUG 2008…</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/Tmu7ek9XXoc/</link>
		<comments>http://beyondoracle.wordpress.com/2008/11/25/ill-attend-ukoug-2008/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 12:02:55 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[off-Topic]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[UKOUG]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=155</guid>
		<description><![CDATA[Less than 1 week to go until UKOUG 2008 in Birmingham ICC&#8230; My scheduled sessions are:
Monday
Advanced SQL for PL/SQL Programmers
Oracle Application Express Now and in the Future
Oracle Forms: Features and Future
Oracle 11g/10g Developers: What You Need to Know
Tuesday
Web 2.0 in Buisness or Education . Which is the better marriage?
Application Express Best Practices
Change Change Change
Oracle Forms [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=155&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Less than 1 week to go until UKOUG 2008 in Birmingham ICC&#8230; My scheduled sessions are:</p>
<p><strong>Monday</strong><br />
Advanced SQL for PL/SQL Programmers<br />
Oracle Application Express Now and in the Future<br />
Oracle Forms: Features and Future<br />
Oracle 11g/10g Developers: What You Need to Know</p>
<p><strong>Tuesday</strong><br />
Web 2.0 in Buisness or Education . Which is the better marriage?<br />
Application Express Best Practices<br />
Change Change Change<br />
Oracle Forms – The New World<br />
Weird PL/SQL<br />
Database Development with Oracle SQL Developer: An Overview</p>
<p><strong>Wednesday</strong><br />
Oracle SQL Developer: Focusing on a Few Advanced Features<br />
Obtaining and Interpretting Execution Plans using DBMS_XPLAN<br />
Migrating Oracle Forms to SOA and J2EE (Oracle ADF)<br />
Advanced Oracle Application Express Tips and Techniques<br />
Bringing Oracle Designer and CASE repositories back to life – a return on your investment<br />
Visual Data Modeling with Oracle SQL Developer</p>
<p><strong>Thursday</strong><br />
Mastering charts in Oracle Application Express (APEX)<br />
Being Steven Feuerstein<br />
Designing PL/SQL applications<br />
Consolidate your Desktop Databases to Oracle 11g<br />
(Re)Developing a logistic application in APEX in the real world<br />
Securing APEX an application on a Microsoft platform<br />
Performance Tuning ApEx Applications</p>
<p><strong>Friday</strong><br />
Become a Fusion Developer with no Java: A JDeveloper 11g Masterclass (FTMS)<br />
Advanced SQL Features</p>
<p>Hope to see any of you guys there&#8230;</p>
Posted in off-Topic Tagged: conference, UKOUG <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/155/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/155/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/155/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=155&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2008/11/25/ill-attend-ukoug-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2008/11/25/ill-attend-ukoug-2008/</feedburner:origLink></item>
		<item>
		<title>Fast Incremental Backups with Block Change Tracking</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/JzeGtTZiyv8/</link>
		<comments>http://beyondoracle.wordpress.com/2008/11/24/fast_incremental_backups/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 10:03:31 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rman]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=136</guid>
		<description><![CDATA[Backing up terabyte size databases can be time consuming. When RMAN performs an incremental backup, Oracle must scan all database / tablespace to identify which blocks have been updated since last backup. This, of course, is very time and resource consuming. Fortunatly Oracle 10g brings the possibility to track changed blocks using a change tracking [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=136&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Backing up terabyte size databases can be time consuming. When RMAN performs an incremental backup, Oracle must scan all database / tablespace to identify which blocks have been updated since last backup. This, of course, is very time and resource consuming. Fortunatly Oracle 10g brings the possibility to track changed blocks using a change tracking file. Enabling database change tracking adds a small overhead, but it largely improves the performance of incremental backups.</p>
<p>In the next sample code I&#8217;ll check the current change tracking status, alter database do enable this feature and add a file to record the changed database blocks</p>
<pre class="brush: sql;">
SELECT status FROM v$block_change_tracking;

ALTER DATABASE ENABLE BLOCK CHANGE TRACKING;

ALTER DATABASE ENABLE BLOCK CHANGE TRACKING
USING FILE '/u01/oradata/mydb/rman_change_tracking.ora' REUSE;
</pre>
<p><span class="bodycopy">After this, when block is changed in the database, Oracle will record the fact in the </span>rman_change_tracking.ora file<span class="bodycopy">. During incremental backup, RMAN checks this file to see which blocks need the backup instead of checking all the blocks of a tablespace / database. This dramatically reduces CPU cycles and speeds up incremental backup in the process. </span></p>
<p>Our tracking file will start with 10MB and grows in 10MB increments.</p>
<p>Block Change tracking can be disabled at any time with:</p>
<pre class="brush: sql;">
ALTER DATABASE DISABLE BLOCK CHANGE TRACKING;
</pre>
<p>We can also rename or move the tracking file at any time issuing the command <code>ALTER DATABASE RENAME FILE</code>.</p>
<p>By reducing the backup time we can achieve the following objectives too:</p>
<ul>
<li><span class="bodycopy">Increase the frequency of incremental backups </span></li>
<li><span class="bodycopy">Reduce recovery time and </span>mean time to recover</li>
</ul>
Posted in dba, security Tagged: backup, rman <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/136/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/136/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/136/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=136&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2008/11/24/fast_incremental_backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2008/11/24/fast_incremental_backups/</feedburner:origLink></item>
		<item>
		<title>Database Links with Global Names common errors</title>
		<link>http://feedproxy.google.com/~r/BeyondOracle/~3/mhe9qOuz7T8/</link>
		<comments>http://beyondoracle.wordpress.com/2008/10/30/database-links-global-names-errors/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 17:31:21 +0000</pubDate>
		<dc:creator>joao</dc:creator>
				<category><![CDATA[dba]]></category>
		<category><![CDATA[database links]]></category>
		<category><![CDATA[db_link]]></category>
		<category><![CDATA[global_names]]></category>
		<category><![CDATA[ORA-02019]]></category>
		<category><![CDATA[ora-02085]]></category>
		<category><![CDATA[ORA-12514]]></category>

		<guid isPermaLink="false">http://beyondoracle.wordpress.com/?p=145</guid>
		<description><![CDATA[In a distributed database system, each database must have a unique name&#8230; a global database name. Global database names uniquely identify a database in the system.
To query a database&#8217;s global name issue this instruction:
SQL&#62; SELECT * FROM global_name;
GLOBAL_NAME
-----------
db1.world
.
A global database name is formed by two components: a database name and a domain, as I said [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=145&subd=beyondoracle&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In a distributed database system, each database must have a unique <span class="bold">name&#8230; a global database name</span>. Global database names uniquely identify a database in the system.</p>
<p>To query a database&#8217;s global name issue this instruction:</p>
<p><span style="color:#800000;">SQL&gt; SELECT * FROM global_name;</span></p>
<pre>GLOBAL_NAME
-----------
db1.world
<span style="color:#999999;">.</span></pre>
<p>A global database name is formed by two components: a database name and a domain, as I said before, uniquely identifies it from any other database. An example global name might be mydb.beyondoracle.com. There are 2 parameters that define the global database name. The DB_NAME (no more than 8 chars) and the DB_DOMAIN (Must follow Internet conventions).</p>
<p>To change our database global name, do this:</p>
<p><span style="color:#800000;">SQL&gt; ALTER DATABASE RENAME GLOBAL_NAME TO db1.beyondoracle.com</span></p>
<p>When we change / set the database to use global names (GLOBAL_NAMES parameter set to TRUE), all database links must be valid global names. When you create a database link with global names set to true, the database link will be formed by the database name plus the domain. In this environment Oracle enforces the requirement that the database.domain  portion of the database link name must match the complete global name of the remote database. For instance, if your remote database is called db1.beyondoracle.com then the database link you create to access this remote database, must have the same name&#8230; db1.beyondoracle.com!</p>
<p>When using or enabling global names, when we didn&#8217;t create the database link with the previous rules I talked about (db_name.db_domain), it&#8217;s common getting this error: <span style="color:#800000;"><strong>ORA-02085: database link string connects to string</strong></span>.</p>
<p>When you create a database link we must mention the connect_string that you want to connect to. This connect_string is the tnsnames entry that you have on your database server tnsnames.ora file. For instance when you create this db link:</p>
<p><span style="color:#800000;">SQL&gt; <strong><span style="color:#800000;">CREATE DATABASE LINK</span></strong> db1.beyondoracle.com<br />
<strong>CONNECT TO</strong> myuser <strong>IDENTIFIED BY</strong> mypass <strong>USING </strong>&#8216;remotedb&#8217;;</span></p>
<p>Database Link Created</p>
<p>Then you must ensure that your database tnsnames.ora has the entry <strong>remotedb </strong>such as:</p>
<pre><span style="color:#999999;"># connect string for database</span>
remotedb =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.beyondoracle.com)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = db1.beyondoracle.com)
   )
  )
<span style="color:#999999;"># end of connect string</span></pre>
<p>This tnsnames.ora            connect string (remotedb) has nothing common with the database link name, but very often the same name is used. You can call your connect string anything you want!</p>
<p>Anytime you can check your database links by querying user_db_links or all_db_links.</p>
<p><span style="color:#800000;">SQL&gt; <strong><span style="color:#800000;">SELECT * FROM user_db_links;</span></strong></span></p>
<pre>DB_LINK              USERNAME  PASSWORD  HOST                 CREATED
-----------          --------  --------  -------              -------------
db1.beyondoracle.com myuser              db1.beyondoracle.com 15-09-2008 15:22:56
<span style="color:#999999;">.</span></pre>
<p>To finish, remember that almost every oracle distributed environment using replication uses global names. There&#8217;s only some custom replication processes that don&#8217;t need it, but Oracle Replication technology, like Streams for instance, needs global names database compliance.</p>
<p>My prayers and thoughts go to Carl Backstrom and his family. Wherever you are, rest in peace!</p>
Posted in dba Tagged: database links, db_link, global_names, ORA-02019, ora-02085, ORA-12514 <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/beyondoracle.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/beyondoracle.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/beyondoracle.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/beyondoracle.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/beyondoracle.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/beyondoracle.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/beyondoracle.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/beyondoracle.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/beyondoracle.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/beyondoracle.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=beyondoracle.wordpress.com&blog=3199783&post=145&subd=beyondoracle&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://beyondoracle.wordpress.com/2008/10/30/database-links-global-names-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2d780f86dc314646f9f87458ae16415?s=96&amp;d=identicon&amp;r=G" medium="image">
			<media:title type="html">joao</media:title>
		</media:content>
	<feedburner:origLink>http://beyondoracle.wordpress.com/2008/10/30/database-links-global-names-errors/</feedburner:origLink></item>
	</channel>
</rss>
