<?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>Oracle Technologies</title>
	<atom:link href="http://oracleinsider.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracleinsider.wordpress.com</link>
	<description>Blog created for Oracle DBAs, Developers, Management professionals to share knowledge and learning experiences about oracle technologies including but not limited to Oracle 8i, 9i, 10g, oracle developer suite, oracle db security and availability, dataguard tools etc.</description>
	<lastBuildDate>Wed, 01 Jul 2009 18:07:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='oracleinsider.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Oracle Technologies</title>
		<link>http://oracleinsider.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://oracleinsider.wordpress.com/osd.xml" title="Oracle Technologies" />
	<atom:link rel='hub' href='http://oracleinsider.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Performance Tuning : How to configure Statspack Performance Diagnostic Tool</title>
		<link>http://oracleinsider.wordpress.com/2009/07/01/performance-tuning-how-to-configure-statspack-performance-diagnostic-tool/</link>
		<comments>http://oracleinsider.wordpress.com/2009/07/01/performance-tuning-how-to-configure-statspack-performance-diagnostic-tool/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 18:07:14 +0000</pubDate>
		<dc:creator>oracle9idb</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 10g]]></category>
		<category><![CDATA[oracle 9i]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[installing statspack]]></category>
		<category><![CDATA[oracle statspack]]></category>
		<category><![CDATA[PT]]></category>
		<category><![CDATA[PT diagnostic tool]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[statspack report]]></category>

		<guid isPermaLink="false">http://oracleinsider.wordpress.com/?p=144</guid>
		<description><![CDATA[Performance Tuning : How to configure Statspack Performance Diagnostic Tool<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=144&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to tune the database, oracle provides a diagnostic tool by which you can find out the health of your database. This guide provides beginners and novices how to install configure and use statspack tool and its reports.</p>
<p><strong>1. Installation</strong></p>
<p> Installing the statspack is an easy step. The only two things that need to be done is to execute the statspack creation script that is located in %OracleHome%\rdbms\admin folder. The script is named as &#8220;spcreate.sql&#8221; for creating the statspack objects and &#8220;spdrop.sql&#8221; to drop the statspack user and its associated objects. The second thing though not necessary that you can do is to dedicate a seperate tablespace for statspack, i&#8217;ve created a seperate tablespace named STATSPACKTBS for it.</p>
<p>In oder to install the statspack, use the following comand replacing the location where the script is located:</p>
<p>SQL&gt; @c:\oracle\rdbms\admin\spcreate.sql;</p>
<p>During the execution of the script, it will ask three things from the user (1) the password for the username of statspack which is &#8220;perfstat&#8221;.  (2) Default tablespace for statspack (mine is dedicated STATSPACKTBS), and (3) Temporary tablespace for use.</p>
<p><strong>2.  Generating Snapshots</strong></p>
<p>In order to generate statspack report, first a snapshot of the database needs to be taken so that the analysis can be done. The report is always generated between any two snapshots. To generate a snapshot use the following command:</p>
<p>SQL&gt; execute statspack.snap;</p>
<p><strong>3.  Generating Statspack Report</strong></p>
<p>In order to generate statspack report, we only have to execute another script supplied by oracle located in rdbms\admin folder named as &#8220;spreport.sql&#8221;. To generate a report, it is necessary that you must have atleast two snapshots of the database otherwise lots of portions of the report would not be analysed or calculated by the statspack tool. To generate a report, use the following command :</p>
<p>SQL&gt; @C:\oracle\rdbms\admin\spreport.sql;</p>
<p>At the start of the report, it will show the list of snapshots currently present and would onwards ask for the beginning and ending snapshot ID to compare and analyse.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleinsider.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleinsider.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleinsider.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleinsider.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleinsider.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleinsider.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleinsider.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleinsider.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=144&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleinsider.wordpress.com/2009/07/01/performance-tuning-how-to-configure-statspack-performance-diagnostic-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e54f9dcc40ee01d59905bd9fee4e43?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Humayun</media:title>
		</media:content>
	</item>
		<item>
		<title>Calling a Non-Oracle DB Remote Procedure through Oracle Heterogenous Services</title>
		<link>http://oracleinsider.wordpress.com/2009/06/24/calling-a-non-oracle-db-remote-procedure-through-oracle-heterogenous-services/</link>
		<comments>http://oracleinsider.wordpress.com/2009/06/24/calling-a-non-oracle-db-remote-procedure-through-oracle-heterogenous-services/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 05:55:29 +0000</pubDate>
		<dc:creator>oracle9idb</dc:creator>
				<category><![CDATA[Heterogeneous Services]]></category>
		<category><![CDATA[oracle 10g]]></category>
		<category><![CDATA[oracle 9i]]></category>
		<category><![CDATA[calling a remote procedure from oracle]]></category>
		<category><![CDATA[DBMS_HS]]></category>
		<category><![CDATA[DBMS_HS_Passthrough]]></category>
		<category><![CDATA[dbms_hs_passthrough.execute_immediate]]></category>
		<category><![CDATA[execute_immediate]]></category>
		<category><![CDATA[oracle RPC]]></category>
		<category><![CDATA[remote procedure calls]]></category>

		<guid isPermaLink="false">http://oracleinsider.wordpress.com/?p=131</guid>
		<description><![CDATA[Calling a Non-Oracle DB Remote Procedure through Oracle Heterogenous Services<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=131&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi All &#8230; sorry for the late posting, have been bz in some of my work and OCP studies. Here is a short post for calling a non-oracle db remote procedure from oracle db environment. This post is also in continuation with my pervious post of <a href="http://oracleinsider.wordpress.com/2009/06/08/using-oracle-heterogeneous-services-for-connecting-to-non-oracle-databases/">Heterogeneous Services connectivity </a></p>
<p>Although executing sql statements such as select statement and performing DML statements are easy using oracle HS database link. This is not the same case with executing functions and procedures of the remote DB from oracle environment. For executing a procedure, Oracle has provided a DBMS package known as DBMS_HS_Passthrough which actually sends the request to the remote db for execution.<br />
<span id="more-131"></span><br />
             In order to execute the procedure at the remote end, we need to utilize the EXECUTE_IMMEDIATE procedure to send the remote db a request to execute the command included as a parameter. For example, i want to execute a remote db procedure &#8216;receivedoc&#8217;. The remote procedure &#8216;receivedoc&#8217; takes a single input value param1 as varchar and has no return value. So to execute this from oracle env. i will have to execute the following command</p>
<p>               DBMS_HS_Passthrough.Execute_Immediate(&#8216;execute receivedoc &#8221;value1&#8221;;&#8217;);</p>
<p>            One thing to keep in mind is that the DBMS_HS_PASSTHROUGH package returns a value for success/failure. Therefore executing the above statement at the sql prompt will give error. Therefore, we need to wrap it around a pl/sql block to capture the return value as below:</p>
<p>declare<br />
        ret number;<br />
begin<br />
        ret := DBMS_HS_Passthrough.Execute_Immediate(&#8216;execute receivedoc &#8221;value1&#8221;;&#8217;);<br />
end;</p>
<p>           Second thing to keep in mind is that oracle requires a commit after a DML operation completes at either end. Therefore, if a remote procedure has performed DML statements, commit is required to be issued after it to release any locks applied by either side. One problem that i encountered with this practice was the table locks after the procedure completes. This was because the procedure issued DML statements over it and didn&#8217;t perform commit to release the locks (a simple thing <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) &#8230; Issuing a commit on either side releases the locks, however, it is recommended that the commit be issued within the remote db procedure rather than than oracle pl/sql block. This is simply to avoid intruption due to any connection breakage e.g network, and ultimately leaving the table in locks permanently.</p>
<p>Hope this post may serve you ppl with some knowledge&#8230;</p>
<p>Cheers !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleinsider.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleinsider.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleinsider.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleinsider.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleinsider.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleinsider.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleinsider.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleinsider.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=131&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleinsider.wordpress.com/2009/06/24/calling-a-non-oracle-db-remote-procedure-through-oracle-heterogenous-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e54f9dcc40ee01d59905bd9fee4e43?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Humayun</media:title>
		</media:content>
	</item>
		<item>
		<title>Starting Oracle 9i Instance using SPFile at a Non-Default Location</title>
		<link>http://oracleinsider.wordpress.com/2009/06/13/starting-oracle-9i-instance-using-spfile-at-a-non-default-location/</link>
		<comments>http://oracleinsider.wordpress.com/2009/06/13/starting-oracle-9i-instance-using-spfile-at-a-non-default-location/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 12:37:33 +0000</pubDate>
		<dc:creator>oracle9idb</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 9i]]></category>
		<category><![CDATA[initorcl.ora]]></category>
		<category><![CDATA[parameter file]]></category>
		<category><![CDATA[pfile]]></category>
		<category><![CDATA[server parameter file]]></category>
		<category><![CDATA[spfile]]></category>
		<category><![CDATA[spfile at non default location]]></category>
		<category><![CDATA[starting oracle instance]]></category>

		<guid isPermaLink="false">http://oracleinsider.wordpress.com/?p=127</guid>
		<description><![CDATA[Starting Oracle 9i Instance using SPFile at a Non-Default Location<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=127&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In oracle 9i database, the only location that the oracle server checks for the server parameter file (spfile) is its Oracle Home\Database (in windows) or Oracle Home\dbs (in unix) folder. Sometimes it becomes necessary to start the instance using spfile from a non-default location. The only way to perform this is through the use of pfile and linking the pfile to point to the non-default location of spfile. Below are the steps of how to perform this task :- </p>
<p>1. Shutdown the database using<br />
   sql&gt; shutdown normal</p>
<p>2. Add only one entry parameter namely &#8216;IFILE&#8217; in a newly created pfile as below</p>
<p>        IFILE = &#8216;F:\BACKUP LOCATION\spfileORCL.ORA&#8217;</p>
<p>3. Save the file at the default or any desired location e.g. C:\pfileORCL.ora</p>
<p>4. Start the database using the following command while specifying the pfile location&#8230;. </p>
<p>   sql&gt; startup pfile=&#8217;C:\pfileORCL.ora&#8217;</p>
<p>5. After database startup, verify whether the instance has been started up with spfile using the below command:<br />
   sql&gt; sho parameter spfile</p>
<p>    If the value column contains a non null value for the spfile parameter, it would indicate that the instance has used spfile for startup, which in our case is at the non-default location. That is the only option available in oracle 9i to startup the oracle instance from a non-default location, no other option exists. </p>
<p>Thanks&#8230; </p>
<p>Happy learning &#8230; </p>
<p>Cheers !&#8230;. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleinsider.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleinsider.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleinsider.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleinsider.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleinsider.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleinsider.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleinsider.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleinsider.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=127&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleinsider.wordpress.com/2009/06/13/starting-oracle-9i-instance-using-spfile-at-a-non-default-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e54f9dcc40ee01d59905bd9fee4e43?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Humayun</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Oracle Heterogeneous Services for Connecting to Non-Oracle Databases</title>
		<link>http://oracleinsider.wordpress.com/2009/06/08/using-oracle-heterogeneous-services-for-connecting-to-non-oracle-databases/</link>
		<comments>http://oracleinsider.wordpress.com/2009/06/08/using-oracle-heterogeneous-services-for-connecting-to-non-oracle-databases/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 11:25:09 +0000</pubDate>
		<dc:creator>oracle9idb</dc:creator>
				<category><![CDATA[Heterogeneous Services]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 10g]]></category>
		<category><![CDATA[oracle 9i]]></category>
		<category><![CDATA[connecting non-oracle databases]]></category>
		<category><![CDATA[connecting odbc compliant database]]></category>
		<category><![CDATA[connecting sql server]]></category>
		<category><![CDATA[data source name]]></category>
		<category><![CDATA[database link]]></category>
		<category><![CDATA[DSN]]></category>
		<category><![CDATA[odbc compliant database]]></category>
		<category><![CDATA[odbc connection]]></category>
		<category><![CDATA[oracle database link]]></category>
		<category><![CDATA[oracle heterogeneous services]]></category>
		<category><![CDATA[oracle hs]]></category>
		<category><![CDATA[system dsn]]></category>
		<category><![CDATA[transparent gateways]]></category>

		<guid isPermaLink="false">http://oracleinsider.wordpress.com/?p=121</guid>
		<description><![CDATA[Using Oracle Heterogeneous Services for Connecting to Non-Oracle Databases<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=121&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I came across an integration requirement of an application using oracle database with another application having a sql server at the back. This short guide provides step by step procedure for connecting a non-oracle database (sql server in my case) using oracle heterogeneous services and database links.</p>
<p>Oracle Heterogeneous services provide a generic method for connecting to any non-oracle ODBC or OLEDB compliant database such as MS Acess, SQL Server etc. One of the other services by oracle is known as Oracle Transparent Gateways which in contrast to Oracle Heterogeneous services provide a more optimized and better functionality for connecting to non-oracle systems. For simple connectivity, I utilized the heterogeneous service that is also simple and easy to configure.</p>
<p><strong>Creating a System DSN</strong><br />
<span id="more-121"></span><br />
In order to connect to sql server database, we need a system dsn which is used by the oracle services for connecting to the remote sql server. A brief guide on how to create a system dsn for sql server is available at http://www.truthsolutions.com/sql/odbc/creating_a_new_odbc_dsn.htm</p>
<p><strong>Setting up heterogeneous services configuration file</strong></p>
<p>For telling the oracle about the DSN, create an HS agent file named as init.ora in your HS\Admin subdirectory. That is, if you configured your DSN name as sqldb, you would need to create file as initSQLDB.ora in your hs\admin sub directory under your oracle home. Open the file and enter two parameters in the agent file as below:</p>
<ul>
<li>HS_FDS_CONNECT_INFO = SQLDB</li>
<li>HS_FDS_TRACE_LEVEL = OFF</li>
</ul>
<p><strong>Configuring tnsnames.ora</strong></p>
<p>After the HS agent file has been setup, configure the oracle TNS listener for an entry of the odbc dsn so that it can utilize the dsn. Enter the parameter lines as below:</p>
<ul>(CONNECT_DATA = (SID = SQLDB))<br />
(HS=OK)</ul>
<p>where, HS=OK indicates the oracle server to utilize heterogeneous service named (SID = SQLDB) which is eventually the initSQLDB.ora file previously created and configured. A configured sample file is as below:-</p>
<ul>sqldb.world =<br />
(DESCRIPTION =<br />
(ADDRESS_LIST =<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))<br />
)<br />
(CONNECT_DATA =(SID = sqldb))<br />
(HS = OK)<br />
)</ul>
<p><strong>Configuring listener.ora</strong></p>
<p>After configuring tnsnames.ora file, we need to add the sqldb dsn program type in the listener.ora file as below:-</p>
<ul>(SID_DESC =<br />
(SID_NAME = sqldb)<br />
(ORACLE_HOME = d:\oracle\ora92)<br />
(PROGRAM = hsodbc)</ul>
<p>This would provide the listener information about the type of connection to use i.e. hsodbc or heterogeneous service in this case. After the listener.ora and tnsnames.ora files have been configured, we need to reload the new setting in to the listener to take effect. For this, reload or restart the tns listener by issuing below mentioned commands:</p>
<ul>C:\&gt; lsnrctl reload</ul>
<p>OR</p>
<ul>C:\&gt; lsnrctl<br />
lsnrctl&gt; stop<br />
lsnrctl&gt; start</ul>
<p><strong>Creating a Database link</strong></p>
<p>Now that we have setup the configuration, final thing to do is to create a database link to connect to sql server database. For this, we must have a valid sql server username and password setup with all the required roles and privileges for accessing the sql server database. Use the following command to create a database link:</p>
<p>SQL&gt; create public database link MySQLConn connect to “MyUser” identified by “MyPass” using ‘SQLDB.WORLD’;</p>
<p>Where,<br />
MyUser / MyPass indicate a valid username and password of SQL Server database.</p>
<p><strong>Querying sql server database </strong></p>
<p>By utilizing the above database link, we can access the sql server database tables. e.g. below sql statement:</p>
<li>select * from sysobjects@mysqlconn;</li>
<li>select * from employee@mysqlconn;</li>
<li>Use double quotes “” when accessing objects that start with underscore(_) sign e.g. select * from “_xyz@mysqlconn;</li>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleinsider.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleinsider.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleinsider.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleinsider.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleinsider.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleinsider.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleinsider.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleinsider.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=121&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleinsider.wordpress.com/2009/06/08/using-oracle-heterogeneous-services-for-connecting-to-non-oracle-databases/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e54f9dcc40ee01d59905bd9fee4e43?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Humayun</media:title>
		</media:content>
	</item>
		<item>
		<title>Oracle Export and Import Utilities</title>
		<link>http://oracleinsider.wordpress.com/2009/05/30/oracle-export-import-utilities/</link>
		<comments>http://oracleinsider.wordpress.com/2009/05/30/oracle-export-import-utilities/#comments</comments>
		<pubDate>Sat, 30 May 2009 06:22:41 +0000</pubDate>
		<dc:creator>oracle9idb</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 10g]]></category>
		<category><![CDATA[oracle 9i]]></category>
		<category><![CDATA[backup data]]></category>
		<category><![CDATA[data export]]></category>
		<category><![CDATA[data import]]></category>
		<category><![CDATA[export import utilities]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[oracle 9i export]]></category>
		<category><![CDATA[recover data]]></category>
		<category><![CDATA[transportable tablespaces]]></category>
		<category><![CDATA[transporting data]]></category>

		<guid isPermaLink="false">http://oracleinsider.wordpress.com/?p=118</guid>
		<description><![CDATA[Oracle Export and Import Utilities<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=118&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This guide provides a basic overview and example of oracle database export and import features. Oracle export / import utility provides a simple way for transfering data between databases even if the databases are on different platforms.  The export / import utility also provides a support towards having backup and recovery of the databases even recovering at the table level. The Oracle export utility generates a binary format dump file that is typically located on a disk or a tape. Some of the uses of export and import utility is as follows:</p>
<p>1. Provides a method of backing and archiving historical data.<br />
2. Provides a way for saving a baseline structure of table definitions that can be used in case of user errors<br />
3. Provides export and import between different versions of Oracle server.<br />
4. Provides method of transporting tablespaces between different databases.</p>
<p><strong>Methods of Utility Invocation<span id="more-118"></span></strong></p>
<p>Both the export and import utilities can be invoked through two different interfaces namely (1) command line (2) using Enterprise Manager (OEM). The command line interface however provides more flexibility in terms of parameters than OEM. The command line interface can be used with direct command line parameters or by providing a parameter file to export/import utility. The command line interface also provides an interactive dialog for completing the tasks. In order to use the export / import utility, the user must have &#8216;CREATE SESSION&#8217; and &#8216;EXP_FULL_DATABASE&#8217; system privileges.</p>
<p><strong>Export / Import Modes</strong></p>
<p>There are four modes of exporting or importing data. Each mode provides a seperate level of degree for exporting and importing data from the database. There four modes are :</p>
<p>1. <span style="text-decoration:underline;">Table Mode</span> provides facility to the user in exporting or importing a specific table rather than exporting / importing all tables.</p>
<p>2. <span style="text-decoration:underline;">User Mode</span> provide facility in exporting / importing all objects of a specified user. This includes all table definitions, table data, indexes, owner grants and related constraints.</p>
<p>3. <span style="text-decoration:underline;">Tablespace Mode</span> provides facility in exporting / importing all objects of a given tablespace. The transportable tablespace feature enables to move a set of tablespaces from one oracle database to another even if the block sizes are different. Transportable tablespace feature can be much faster than a normal export / import as it only integrates tablespace structural information with the datafile copies.</p>
<p>4. <span style="text-decoration:underline;">Full Database Mode</span> provides facility in exporting all database objects except the objects of SYS schema.</p>
<p><strong>Executing Export / Import Utility using Command line Interface</strong></p>
<p>Below is a simple example of export and import command to export/import a user HR.</p>
<p>C:\&gt; exp system/manager OWNER=HR direct=Y file=c:\dumps\export-HR.dmp</p>
<p>where,<br />
               &#8216;OWNER&#8217; indicates a user-mode export and lists the users whose objects are required to be exported.<br />
               &#8216;DIRECT&#8217; indicates the use of direct path method that provides much faster export bypassing the sql command processing layer and reading directly from the data layer.<br />
              &#8216;FILE&#8217; indicates the location and name of the binary export file.</p>
<p>C:\&gt; imp system/manager FROMUSER=HR   TOUSER=DB2HR   file=c:\export-HR.dmp</p>
<p>where,<br />
               &#8216;FROMUSER&#8217; indicates the user from which the data is extracted by import utility from the export file<br />
               &#8216;TOUSER&#8217; indicates the user to which the data is to be imported.<br />
               &#8216;FILE&#8217; indicates the location and name of the binary export file.</p>
<p> </p>
<p>Any Suggessions and comments are welcome &#8230; !!!!!</p>
<p>Thanks&#8230;!!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/oracleinsider.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/oracleinsider.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/oracleinsider.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/oracleinsider.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/oracleinsider.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/oracleinsider.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/oracleinsider.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/oracleinsider.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=oracleinsider.wordpress.com&amp;blog=7367059&amp;post=118&amp;subd=oracleinsider&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://oracleinsider.wordpress.com/2009/05/30/oracle-export-import-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/77e54f9dcc40ee01d59905bd9fee4e43?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">Humayun</media:title>
		</media:content>
	</item>
	</channel>
</rss>
