<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Derya Oktay's Oracle Weblog</title>
	<atom:link href="http://deryaoktay.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://deryaoktay.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 27 Dec 2011 08:39:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='deryaoktay.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Derya Oktay's Oracle Weblog</title>
		<link>http://deryaoktay.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://deryaoktay.wordpress.com/osd.xml" title="Derya Oktay&#039;s Oracle Weblog" />
	<atom:link rel='hub' href='http://deryaoktay.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Ora-01115, Ora-01110, Ora-15081 ORA-15186(alert.log) Error After Connecting To Database with non-oracle Unix User</title>
		<link>http://deryaoktay.wordpress.com/2011/11/21/ora-01115-ora-01110-ora-15081-ora-15186alert-log-error-after-connecting-to-database-with-non-oracle-unix-user/</link>
		<comments>http://deryaoktay.wordpress.com/2011/11/21/ora-01115-ora-01110-ora-15081-ora-15186alert-log-error-after-connecting-to-database-with-non-oracle-unix-user/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 15:32:11 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[problem-cause-solution]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[connecting]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[non-dba]]></category>
		<category><![CDATA[non-oracle]]></category>
		<category><![CDATA[Ora-01110]]></category>
		<category><![CDATA[Ora-01115]]></category>
		<category><![CDATA[Ora-15081]]></category>
		<category><![CDATA[ORA-15186]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=279</guid>
		<description><![CDATA[If you are getting error Ora-01115, Ora-01110, Ora-15081 after you connected to a database with non-oracle user as below. rep@mydb2:/home/rep/&#62;sqlplus rep_odi/*** SQL*Plus: Release 11.2.0.2.0 Production on Mon Nov 21 17:01:10 2011 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Real [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=279&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are getting error Ora-01115, Ora-01110, Ora-15081 after you connected to a database with non-oracle user as below.</p>
<pre style="padding-left:30px;">rep@mydb2:/home/rep/&gt;sqlplus rep_odi/***</pre>
<pre style="padding-left:30px;">SQL*Plus: Release 11.2.0.2.0 Production on Mon Nov 21 17:01:10 2011</pre>
<pre style="padding-left:30px;">Copyright (c) 1982, 2010, Oracle. All rights reserved.</pre>
<pre style="padding-left:30px;">Connected to:
 Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
 With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
 Data Mining and Real Application Testing options</pre>
<pre style="padding-left:30px;">SQL&gt; select * from dba_indexes;
 select * from dba_indexes
 *
 ERROR at line 1:
 ORA-01115: IO error reading block from file (block # )
 ORA-01110: data file 1: '+DATA/mydb/datafile/system.272.743775337'
 ORA-15081: failed to submit an I/O operation to a disk</pre>
<p>Further if you are seeing below lines in alert.log of database:</p>
<pre style="padding-left:30px;">Mon Nov 21 17:23:23 2011
 Errors in file /u01/app/oracle/diag/rdbms/mydb/MYDB2/trace/MYDB2_ora_13518.trc:
 ORA-15186: ASMLIB error function = [asm_init], error = [18446744073709551611], mesg = [Driver not installed]
 ERROR: error ORA-15186 caught in ASM I/O path</pre>
<pre style="padding-left:30px;"></pre>
<p>The real cause is you are connecting with OS user which does not belong to OS dba, oper, asmadmin &#8230; etc group.</p>
<p>In order to succesfully do the operation, you must change the ownership of the OS user you are using or conenct to database over tns name, like below:</p>
<pre style="padding-left:30px;">rep@mydb2:/home/rep/&gt;sqlplus rep_odi/***@REP</pre>
<pre style="padding-left:30px;">SQL*Plus: Release 11.2.0.2.0 Production on Mon Nov 21 17:01:10 2011</pre>
<pre style="padding-left:30px;">Copyright (c) 1982, 2010, Oracle. All rights reserved.</pre>
<pre style="padding-left:30px;">Connected to:
 Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
 With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
 Data Mining and Real Application Testing options</pre>
<p>SQL&gt; select * from dba_indexes;</p>
<p>SQL&gt;&#8230;</p>
<p>Thanks to brilliant guy Hakan Dömbekçi for routing me to MOS Note.</p>
<p>Ora-01115, Ora-01110, Ora-15081 When Connecting DB with non-dba Group Users [ID 1372571.1]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=279&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/11/21/ora-01115-ora-01110-ora-15081-ora-15186alert-log-error-after-connecting-to-database-with-non-oracle-unix-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
		<item>
		<title>How to recover from, 64 bit 32 bit ODBC driver could not be loaded due to system error code 998</title>
		<link>http://deryaoktay.wordpress.com/2011/11/09/how-to-recover-from-64-bit-32-bit-odbc-driver-could-not-be-loaded-due-to-system-error-code-998/</link>
		<comments>http://deryaoktay.wordpress.com/2011/11/09/how-to-recover-from-64-bit-32-bit-odbc-driver-could-not-be-loaded-due-to-system-error-code-998/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 23:48:48 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[problem-cause-solution]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[32 bit]]></category>
		<category><![CDATA[64 bit]]></category>
		<category><![CDATA[error code 998]]></category>
		<category><![CDATA[ODBC error]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=289</guid>
		<description><![CDATA[Problem ODBC driver could not be loaded due to system error code 998 Cause The problem arose because application, Oracle client and Windows does not match properly as 32bit or 64 bit. I have Windows 2003 64 bit, Oracle 10.2 32 bit Client and 64 bit application. After googleing around, I found that there is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=289&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong></p>
<p>ODBC driver could not be loaded due to system error code 998</p>
<p><strong>Cause</strong></p>
<p>The problem arose because application, Oracle client and Windows does not match properly as 32bit or 64 bit.</p>
<p>I have Windows 2003 64 bit, Oracle 10.2 32 bit Client and 64 bit application.</p>
<p>After googleing around,</p>
<p>I found that there is two versions of odbc datasource administrator:</p>
<p>The default one, is 64 bit which we use Start menu for opening it.</p>
<p>In order to open the 32 bit version I used: %windir%\SysWOW64\odbcad32.exe.</p>
<p>With the help of 32 bit version datasource administrator, I could see my 32 bit odbc driver listed.</p>
<p>I extracted this rule of thumb: If your application is 32 bit, then your data source must use Oracle 32 bit client as well.</p>
<p>Last words, beware of 3 pieces:<br />
1- your application (which uses DSN definition),<br />
2- Oracle client<br />
3-data source administrator</p>
<p>All pieces must have same version, in my case it is 64 bit and therefore I installed 64 bit client.</p>
<p>Further reading:<br />
<a href="http://support.microsoft.com/kb/942976">http://support.microsoft.com/kb/942976</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/289/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/289/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/289/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=289&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/11/09/how-to-recover-from-64-bit-32-bit-odbc-driver-could-not-be-loaded-due-to-system-error-code-998/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
		<item>
		<title>Moving Data and Creating Local Index In Huge, Partitioned Tables</title>
		<link>http://deryaoktay.wordpress.com/2011/11/09/moving-data-and-creating-local-index-in-huge-partitioned-tables/</link>
		<comments>http://deryaoktay.wordpress.com/2011/11/09/moving-data-and-creating-local-index-in-huge-partitioned-tables/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 23:30:43 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[Creating Local Index]]></category>
		<category><![CDATA[In Huge]]></category>
		<category><![CDATA[Moving Data]]></category>
		<category><![CDATA[Partitioned Tables]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[rebuild index]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=285</guid>
		<description><![CDATA[In order to get performance while creating a table and moving data with bulk inserts, it is a common way, first creating the table without index. Performance is gained with the help of not dealing with index manipulation for each row inserted, which means “single insert” operation. Creating the index after moving the data with insert [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=285&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to get performance while creating a table and moving data with bulk inserts, it is a common way, first creating the table without index. Performance is gained with the help of not dealing with index manipulation for each row inserted, which means “single insert” operation.</p>
<p>Creating the index after moving the data with insert /*+APPEND*/clause is key for the operation, but it is not finish yet, even the case is beginning now. Your above plan will not work because of the reasons below:</p>
<p>-          new DML operations must wait for the index creation, which could cause space problems, application problems</p>
<p>-          getting ORA-01555 snaphot too old messages while creating the index</p>
<p>So what will I do in order not to bump into above conditions?</p>
<p>Answer: Apply divide and conquer approach, partitions is for this purpose&#8230; First create the index as unusable, and then issue rebuild clause to each partition. This could be done as following:</p>
<p>- Make the index unusable:</p>
<pre style="padding-left:30px;">ALTER INDEX myindex UNUSABLE;</pre>
<p>- Rebuild the index in each partition:</p>
<pre style="padding-left:30px;">ALTER INDEX myindex REBUILD PARTITION mypartition;</pre>
<p>- Check the status of index for each partition from:</p>
<pre style="padding-left:30px;">SELECT PARTITION_NAME, STATUS FROM USER_IND_PARTITIONS
WHERE INDEX_NAME = 'MYINDEX';</pre>
<p>Also note that if the index is associated with a constraint such as; primary/unique key constraint, you should better disable or drop the constraint, as for not getting error for DML operations take place after index is unusable.</p>
<p>You could get detailed information with regard to unusable state of indexes and index altering operations in the below links respectively:</p>
<p><a href="http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/indexes002.htm#CIHJIDJG">http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/indexes002.htm#CIHJIDJG</a></p>
<p><a href="http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/indexes004.htm#CIHJCEAJ">http://download.oracle.com/docs/cd/E14072_01/server.112/e10595/indexes004.htm#CIHJCEAJ</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=285&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/11/09/moving-data-and-creating-local-index-in-huge-partitioned-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
		<item>
		<title>A photo from Garipce, Istanbul</title>
		<link>http://deryaoktay.wordpress.com/2011/11/05/282/</link>
		<comments>http://deryaoktay.wordpress.com/2011/11/05/282/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 20:18:21 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://deryaoktay.wordpress.com/2011/11/05/282/</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=282&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://deryaoktay.files.wordpress.com/2011/11/20111105-221800.jpg"><img src="http://deryaoktay.files.wordpress.com/2011/11/20111105-221800.jpg?w=600" alt="20111105-221800.jpg" class="alignnone size-full" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=282&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/11/05/282/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>

		<media:content url="http://deryaoktay.files.wordpress.com/2011/11/20111105-221800.jpg" medium="image">
			<media:title type="html">20111105-221800.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>How to cancel alter database datafile resize command</title>
		<link>http://deryaoktay.wordpress.com/2011/11/03/how-to-cancel-alter-database-datafile-resize-command/</link>
		<comments>http://deryaoktay.wordpress.com/2011/11/03/how-to-cancel-alter-database-datafile-resize-command/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 03:59:52 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[alter database]]></category>
		<category><![CDATA[cancel]]></category>
		<category><![CDATA[datafile]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=275</guid>
		<description><![CDATA[If you erroneously give alter database resize command, such as giving 33,884,000M  instead of 3,388,400MMB. Which may cause you to end up with disk space. You can kill the sql from another session, but also you could give true resize value as well. Here what happens, in alert log file, from real world scenario: Thu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=275&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you erroneously give alter database resize command, such as giving 33,884,000M  instead of 3,388,400MMB. Which may cause you to end up with disk space.</p>
<p>You can kill the sql from another session, but also you could give true resize value as well.</p>
<p>Here what happens, in alert log file, from real world scenario:</p>
<pre>Thu Mar 03 04:28:12 2011
ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 33884000M
Thu Mar 03 04:31:59 2011
Immediate Kill Session#: 600, Serial#: 53111
Immediate Kill Session: sess: 7000007726370c8  OS pid: 52691066
Thu Mar 03 04:32:15 2011
Immediate Kill Session#: 866, Serial#: 41187
Immediate Kill Session: sess: 7000007726ae1c8  OS pid: 34406652
Thu Mar 03 04:34:31 2011
NOTE: deferred map free for map id 116809
Error occured while spawning process O004; error = 601
Thu Mar 03 04:36:27 2011
Immediate Kill Session#: 1133, Serial#: 30931
Immediate Kill Session: sess: 7000007687084b0  OS pid: 63242370
Thu Mar 03 04:39:57 2011
ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 3388400M
ORA-3297 signalled during: ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 3388400M
...
Thu Mar 03 04:40:14 2011
ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 3388500M
ORA-3297 signalled during: ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 3388500M
...
Thu Mar 03 04:40:31 2011
ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 3389500M
Thu Mar 03 04:42:35 2011
Errors in file /u01/app/oracle/diag/rdbms/mydb/mydb1/trace/mydb1_ora_65994754.trc  (incident=225358):
ORA-00240: control file enqueue held for more than 120 seconds
Incident details in: /u01/app/oracle/diag/rdbms/mydb/mydb1/incident/incdir_225358/mydb1_ora_65994754_i225358.trc
Thu Mar 03 04:42:40 2011
Dumping diagnostic data in directory=[cdmp_20111103044240], requested by (instance=1, osid=65994754), summary=[incident=225358].
Thu Mar 03 04:47:25 2011
minact-scn: useg scan erroring out with error e:12751
Thu Mar 03 04:47:25 2011
Sweep [inc][225358]: completed
Sweep [inc2][225358]: completed
Thu Mar 03 04:49:36 2011
Error occured while spawning process O007; error = 601
Thu Mar 03 04:52:01 2011
Completed: ALTER DATABASE DATAFILE '+MYDG/mydb/datafile/myfile_d_01.dbf'
RESIZE 3389500M</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/275/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/275/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/275/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=275&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/11/03/how-to-cancel-alter-database-datafile-resize-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
		<item>
		<title>How to increase the speed of RMAN backups</title>
		<link>http://deryaoktay.wordpress.com/2011/10/26/how-to-increase-the-speed-of-rman-backups/</link>
		<comments>http://deryaoktay.wordpress.com/2011/10/26/how-to-increase-the-speed-of-rman-backups/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 18:31:22 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[rman backup legato tape optimization]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=228</guid>
		<description><![CDATA[There could be several bottlenecks which makes our backups slower. Last month we had similar situation and after investigating the issue in the legato side, the number of allocated tape drives seemed us small. Because of that we had increased the number of tape drives devoted for the backup job from 2 to 4. Interestingly, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=228&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There could be several bottlenecks which makes our backups slower.</p>
<p>Last month we had similar situation and after investigating the issue in the legato side, the number of allocated tape drives seemed us small. Because of that we had increased the number of tape drives devoted for the backup job from 2 to 4.</p>
<p>Interestingly, it does not make any sense.</p>
<p>After than, we increased the number of channels in RMAN script from 8 to 12 and in this way we managed to increase the utilization of tape drives. The real reason behind was the utilization of tape drives are dependent on utilization of disks for reading.</p>
<p>Further, in legato side, while monitoring the backup job, only 2 of allocated 4 tape drives are used. The minimum session limit for each tape drive was 8. That means 12 channels opened only utilizes 2 tape drives. After setting minimum session value per tape drive in legato side to 3, we are happy with the picture we got. 12 channels of backup work is evenly distibuted across the 4 tape drives.</p>
<p>As a result, our full backup job now lasts for 20 hours, which was 50 hours before the optimization.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/228/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=228&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/10/26/how-to-increase-the-speed-of-rman-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
		<item>
		<title>Find Minimum size of datafiles for resize operations in TOAD</title>
		<link>http://deryaoktay.wordpress.com/2011/10/26/find-minimum-size-of-datafiles-for-resize-operations-in-toad/</link>
		<comments>http://deryaoktay.wordpress.com/2011/10/26/find-minimum-size-of-datafiles-for-resize-operations-in-toad/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 18:17:05 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[datafile]]></category>
		<category><![CDATA[minimum size]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[tablespace]]></category>
		<category><![CDATA[TOAD]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=226</guid>
		<description><![CDATA[If you had exhausted of space, and tried to find a quick way of resizing the tablespaces. You may want to use TOAD feature: From Administer -&#62;Tablespaces-&#62; Select one tablespace and press F4. In the opened window click datafiles tab and double click the datafile which you want to resize. In this window there is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=226&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you had exhausted of space, and tried to find a quick way of resizing the tablespaces. You may want to use TOAD feature:</p>
<p>From Administer -&gt;Tablespaces-&gt; Select one tablespace and press F4. In the opened window click datafiles tab and double click the datafile which you want to resize. In this window there is a button &#8220;Minimum Size?&#8221;, click it.</p>
<p>After some time of processing, it will find the minimum size of datafile it could be, it could be better than trial-error method for exact sizes.</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 310px"><a href="http://deryaoktay.files.wordpress.com/2011/10/1.jpg"><img class="size-medium wp-image-299  " title="Tablespace Menu Selection" src="http://deryaoktay.files.wordpress.com/2011/10/1.jpg?w=300&#038;h=269" alt="" width="300" height="269" /></a><p class="wp-caption-text">Tablespace Menu Selection</p></div>
<div class="wp-caption aligncenter" style="width: 310px"><a href="http://deryaoktay.files.wordpress.com/2011/10/21.jpg"><img class="size-medium wp-image-300 " title="Datafile Definition Window" src="http://deryaoktay.files.wordpress.com/2011/10/21.jpg?w=300&#038;h=208" alt="" width="300" height="208" /></a><p class="wp-caption-text">Datafile Definition Window</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=226&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/10/26/find-minimum-size-of-datafiles-for-resize-operations-in-toad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>

		<media:content url="http://deryaoktay.files.wordpress.com/2011/10/1.jpg?w=300" medium="image">
			<media:title type="html">Tablespace Menu Selection</media:title>
		</media:content>

		<media:content url="http://deryaoktay.files.wordpress.com/2011/10/21.jpg?w=300" medium="image">
			<media:title type="html">Datafile Definition Window</media:title>
		</media:content>
	</item>
		<item>
		<title>Spool SQL in TOAD</title>
		<link>http://deryaoktay.wordpress.com/2011/10/26/spool-sql-in-toad/</link>
		<comments>http://deryaoktay.wordpress.com/2011/10/26/spool-sql-in-toad/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 18:10:38 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[spool SQL]]></category>
		<category><![CDATA[TOAD]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=224</guid>
		<description><![CDATA[If you are using TOAD, and want to get the SQL in order automate tasks or simply wonder what happens behind. You may like to check this below: In TOAD, from main menu select: Database -&#62; Spool SQL -&#62; Spool SQL to Screen And you will see every action is spooled in the below window. Hope [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=224&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align:left;">If you are using TOAD, and want to get the SQL in order automate tasks or simply wonder what happens behind. You may like to check this below:</div>
<p>In TOAD, from main menu select:</p>
<p>Database -&gt; Spool SQL -&gt; Spool SQL to Screen</p>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 296px"><a href="http://deryaoktay.files.wordpress.com/2011/10/41.jpg"><img class="size-medium wp-image-312" title="Spool SQL Menu Selection" src="http://deryaoktay.files.wordpress.com/2011/10/41.jpg?w=286&#038;h=300" alt="" width="286" height="300" /></a><p class="wp-caption-text">Spool SQL Menu Selection</p></div>
<p>And you will see every action is spooled in the below window.</p>
<div id="attachment_313" class="wp-caption aligncenter" style="width: 310px"><a href="http://deryaoktay.files.wordpress.com/2011/10/5.jpg"><img class="size-medium wp-image-313" title="Spool Output Window" src="http://deryaoktay.files.wordpress.com/2011/10/5.jpg?w=300&#038;h=116" alt="" width="300" height="116" /></a><p class="wp-caption-text">Spool Output Window</p></div>
<p>Hope this helps!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=224&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/10/26/spool-sql-in-toad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>

		<media:content url="http://deryaoktay.files.wordpress.com/2011/10/41.jpg?w=286" medium="image">
			<media:title type="html">Spool SQL Menu Selection</media:title>
		</media:content>

		<media:content url="http://deryaoktay.files.wordpress.com/2011/10/5.jpg?w=300" medium="image">
			<media:title type="html">Spool Output Window</media:title>
		</media:content>
	</item>
		<item>
		<title>TNS Connection Failure Resolution</title>
		<link>http://deryaoktay.wordpress.com/2011/10/26/tns-connection-failure-resolution/</link>
		<comments>http://deryaoktay.wordpress.com/2011/10/26/tns-connection-failure-resolution/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 13:59:58 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[client side TNS connection failure decision tree]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=215</guid>
		<description><![CDATA[Many dbas has no single day in a week that not telling  their database  users about how to make TNS connection with the newly created accounts in their hands. I am providing below decision tree, to our users in our company for resolution of their TNS connection failures on their own. Follow below decision tree [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=215&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Many dbas has no single day in a week that not telling  their database  users about how to make TNS connection with the newly created accounts in their hands. I am providing below decision tree, to our users in our company for resolution of their TNS connection failures on their own.</p>
<p>Follow below decision tree for a sample TNS entry in$ORACLE_HOME/network/admin/tnsnames.ora file like below:</p>
<p>MYRAC=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= mydb.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=MYSERVICE)))</p>
<ol>
<li>From cammand line issue: <strong><em>ping mydb.com</em></strong>
<ol>
<li>If not work, WINS server client configuration problem !</li>
<li>If works: tnsping MYRAC<strong><em> </em></strong></li>
</ol>
</li>
</ol>
<p style="padding-left:90px;">i.      If works, there must not be any problemJ</p>
<p style="padding-left:90px;">ii.      If not work, from command line issue below command:</p>
<p style="padding-left:120px;">tnsping  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=MYSERVICE)))</p>
<ol>
<ol>
<ol>
<ol>
<li>If not work:  Oracle client configuration/installation problem !</li>
<li>If works: Check $ORACLE_HOME/network/admin/sqlnet.ora  file. Note the <code>NAMES.DEFAULT_DOMAIN</code> parameter value if other than null and place it to your $ORACLE_HOME/network/admin/tnsnames.ora:</li>
</ol>
</ol>
</ol>
</ol>
<p style="padding-left:150px;">MYRAC.&lt;names default domain&gt;=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME= MYSERVICE)))</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/215/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/215/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=215&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/10/26/tns-connection-failure-resolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
		<item>
		<title>JDBC connect string</title>
		<link>http://deryaoktay.wordpress.com/2011/10/26/jdbc-connect-string/</link>
		<comments>http://deryaoktay.wordpress.com/2011/10/26/jdbc-connect-string/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 13:34:59 +0000</pubDate>
		<dc:creator>deryaoktay</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[connect string]]></category>
		<category><![CDATA[JDBC]]></category>
		<category><![CDATA[Oracle service]]></category>

		<guid isPermaLink="false">http://deryaoktay.wordpress.com/?p=212</guid>
		<description><![CDATA[While trying to connect to Oracle via Oracle service name provided to you. Then you could test the connection by: tnsping (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MYSERVICE))) And then used this information int the conenct string as below: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MYSERVICE))) &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=212&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While trying to connect to Oracle via Oracle service name provided to you.</p>
<p>Then you could test the connection by:</p>
<p>tnsping (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MYSERVICE)))</p>
<p>And then used this information int the conenct string as below:</p>
<p>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mydb.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MYSERVICE)))</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/deryaoktay.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/deryaoktay.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/deryaoktay.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/deryaoktay.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/deryaoktay.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/deryaoktay.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/deryaoktay.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/deryaoktay.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=deryaoktay.wordpress.com&amp;blog=1643734&amp;post=212&amp;subd=deryaoktay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://deryaoktay.wordpress.com/2011/10/26/jdbc-connect-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ee2ada2f77c9efb13d73c0d0b2cc881?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">deryaoktay</media:title>
		</media:content>
	</item>
	</channel>
</rss>
