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

<channel>
	<title>Sys-Admin Information&#039;s &#187; Oracle</title>
	<atom:link href="http://sysinfo.bascomp.org/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysinfo.bascomp.org</link>
	<description></description>
	<lastBuildDate>Fri, 23 Apr 2010 09:43:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Troubleshooting for startup inconsistent DB</title>
		<link>http://sysinfo.bascomp.org/2008/05/troubleshooting-for-startup-inconsistent-db/</link>
		<comments>http://sysinfo.bascomp.org/2008/05/troubleshooting-for-startup-inconsistent-db/#comments</comments>
		<pubDate>Tue, 27 May 2008 03:14:36 +0000</pubDate>
		<dc:creator>Hilman-Lupus</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[startup inconsistent DataBase]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/?p=53</guid>
		<description><![CDATA[for e.g. database unable up cause of datafile corruption

SQL&#38;gt; startup
ORACLE instance started.
&#160;
Total System Global Area 1610612736 bytes
Fixed Size                  2177912 bytes
Variable Size             396149896 bytes
DATABASE Buffers   [...]]]></description>
			<content:encoded><![CDATA[<p>for e.g. database unable up cause of datafile corruption</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; startup
ORACLE instance started<span style="color: #66cc66;">.</span>
&nbsp;
Total System Global Area <span style="color: #cc66cc;">1610612736</span> bytes
Fixed Size                  <span style="color: #cc66cc;">2177912</span> bytes
Variable Size             <span style="color: #cc66cc;">396149896</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> Buffers         <span style="color: #cc66cc;">1207959552</span> bytes
Redo Buffers                <span style="color: #cc66cc;">4325376</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> mounted<span style="color: #66cc66;">.</span>
ORA<span style="color: #66cc66;">-</span>01113: file <span style="color: #cc66cc;">2</span> needs media recovery
ORA<span style="color: #66cc66;">-</span>01110: <span style="color: #993333; font-weight: bold;">DATA</span> file <span style="color: #cc66cc;">2</span>: <span style="color: #ff0000;">'/oradata/oracle/ts/undotbs01.</span></pre></div></div>

<p>commonly  the database unable be startup if UNDO or SYSTEM table space need recovery, if these happen we need correct temporary workaround to handle this, all workaround for each tablespace datafile is similar</p>
<p>do the recovery</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; recover <span style="color: #993333; font-weight: bold;">DATABASE</span>;
ORA<span style="color: #66cc66;">-</span>00279: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> generated at 05<span style="color: #66cc66;">/</span>05<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2008</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">32</span>:<span style="color: #cc66cc;">11</span>
needed <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span>
ORA<span style="color: #66cc66;">-</span>00289: suggestion : <span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>arc<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1</span>_42_653916655<span style="color: #66cc66;">.</span>dbf
ORA<span style="color: #66cc66;">-</span>00280: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">IN</span> sequence <span style="color: #808080; font-style: italic;">#42</span>
&nbsp;
Specify log: <span style="color: #66cc66;">&#123;</span>ret<span style="color: #66cc66;">=</span>suggested <span style="color: #66cc66;">|</span> filename <span style="color: #66cc66;">|</span> AUTO <span style="color: #66cc66;">|</span> CANCEL<span style="color: #66cc66;">&#125;</span>
AUTO
ORA<span style="color: #66cc66;">-</span>00308: cannot open archived log
‘<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>arc<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1</span>_42_653916655<span style="color: #66cc66;">.</span>dbf’
ORA<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">27037</span>: unable <span style="color: #993333; font-weight: bold;">TO</span> obtain file <span style="color: #993333; font-weight: bold;">STATUS</span>
SVR4 Error: <span style="color: #cc66cc;">2</span>: No such file <span style="color: #993333; font-weight: bold;">OR</span> directory
Additional information: <span style="color: #cc66cc;">3</span></pre></div></div>

<p><span id="more-53"></span></p>
<p>Open database</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; <span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> open;
<span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> open
<span style="color: #66cc66;">*</span>
ERROR at line <span style="color: #cc66cc;">1</span>:
ORA<span style="color: #66cc66;">-</span>01113: file <span style="color: #cc66cc;">2</span> needs media recovery
ORA<span style="color: #66cc66;">-</span>01110: <span style="color: #993333; font-weight: bold;">DATA</span> file <span style="color: #cc66cc;">2</span>: <span style="color: #ff0000;">'/oradata/oracle/ts/undotbs01.dbf'</span></pre></div></div>

<p>this condition force us to append archivelog or logfile consist appropriate  sequence, if there not available... database unable up till to ever</p>
<p>but we have a temporary solution, below :</p>
<ul>
<li> Edit Init file<br />
Remark parameter <code>undo_management</code> dan <code>undo_tablespace</code><br />
add this parameter :<br />
<code>UNDO_MANAGEMENT=MANUAL<br />
_ALLOW_RESETLOGS_CORRUPTION = TRUE<br />
_ALLOW_ERROR_SIMULATION = TRUE<br />
_CORRUPTED_ROLLBACK_SEGMENTS =(_SYSSMU1,_SYSSMU2,_SYSSMU3, ...)</code></li>
<li> get value _CORRUPTED_ROLLBACK_SEGMENTS from [OS] the command <code>cd system_datafile_directory<br />
strings system01.dbf | grep _SYSSMU | cut -d $ -f 1 | sort -u</code></li>
<li> shutdown database , and turn on with that initfile already edited. Pfile must be wrote in startup command .

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; startup mount
pfile<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'/data1/oracle/product/10.2.0/dbs/initts.ora'</span>;
ORACLE instance started<span style="color: #66cc66;">.</span>
Total System Global Area <span style="color: #cc66cc;">1610612736</span> bytes
Fixed Size                  <span style="color: #cc66cc;">2177912</span> bytes
Variable Size             <span style="color: #cc66cc;">396149896</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> Buffers         <span style="color: #cc66cc;">1207959552</span> bytes
Redo Buffers                <span style="color: #cc66cc;">4325376</span> bytes
<span style="color: #993333; font-weight: bold;">DATABASE</span> mounted<span style="color: #66cc66;">.</span></pre></div></div>

</li>
<li> Recover database until cancel

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; recover <span style="color: #993333; font-weight: bold;">DATABASE</span> until cancel;
ORA<span style="color: #66cc66;">-</span>00279: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> generated at 05<span style="color: #66cc66;">/</span>05<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">2008</span> <span style="color: #cc66cc;">12</span>:<span style="color: #cc66cc;">32</span>:<span style="color: #cc66cc;">11</span>
needed <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span>
ORA<span style="color: #66cc66;">-</span>00289: suggestion :
<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>arc<span style="color: #66cc66;">/</span><span style="color: #cc66cc;">1</span>_42_653916655<span style="color: #66cc66;">.</span>dbf
ORA<span style="color: #66cc66;">-</span>00280: <span style="color: #993333; font-weight: bold;">CHANGE</span> <span style="color: #cc66cc;">7516226638</span> <span style="color: #993333; font-weight: bold;">FOR</span> thread <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">IN</span> sequence <span style="color: #808080; font-style: italic;">#42</span>
Specify log: <span style="color: #66cc66;">&#123;</span>ret<span style="color: #66cc66;">=</span>suggested <span style="color: #66cc66;">|</span> filename <span style="color: #66cc66;">|</span> AUTO <span style="color: #66cc66;">|</span> CANCEL<span style="color: #66cc66;">&#125;</span>
CANCEL
ORA<span style="color: #66cc66;">-</span>01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA<span style="color: #66cc66;">-</span>01194: file <span style="color: #cc66cc;">1</span> needs more recovery <span style="color: #993333; font-weight: bold;">TO</span> be consistent
ORA<span style="color: #66cc66;">-</span>01110: <span style="color: #993333; font-weight: bold;">DATA</span> file <span style="color: #cc66cc;">1</span>: ‘<span style="color: #66cc66;">/</span>oradata<span style="color: #66cc66;">/</span>oracle<span style="color: #66cc66;">/</span>ts<span style="color: #66cc66;">/</span>system01<span style="color: #66cc66;">.</span>dbf’
ORA<span style="color: #66cc66;">-</span>01112: media recovery <span style="color: #993333; font-weight: bold;">NOT</span> started</pre></div></div>

</li>
<li>Open database

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL&amp;gt; <span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">DATABASE</span> OPEN RESETLOGS;
<span style="color: #993333; font-weight: bold;">DATABASE</span> altered<span style="color: #66cc66;">.</span></pre></div></div>

</li>
</ul>
<p>after the database up, backup important data  using exp/imp</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/05/troubleshooting-for-startup-inconsistent-db/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Backup Listener log</title>
		<link>http://sysinfo.bascomp.org/2008/03/backup-listener-log/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/backup-listener-log/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 05:40:48 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Listener]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/09/backup-listener-log/</guid>
		<description><![CDATA[In database production, the log of listener was grow rapidly, some times if you move the "listener.log" while the listener is up and running, listener will stop writing to log file after you move/delete the "listener.log", it won't create new log file.
The listener log status will be 'off', You need to start the "listener log" [...]]]></description>
			<content:encoded><![CDATA[<p>In database production, the log of listener was grow rapidly, some times if you move the "listener.log" while the listener is up and running, listener will stop writing to log file after you move/delete the "listener.log", it won't create new log file.<br />
The listener log status will be 'off', You need to start the "listener log" again manually. For this reason you must do this procedure.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lsnrctl <span style="color: #c20cb9; font-weight: bold;">stat</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">LSNRCTL for Solaris: Version 9.2.0.6.0 - Production on 09-MAR-2008 12:43:22
&nbsp;
Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
&nbsp;
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Solaris: Version 9.2.0.6.0 - Production
Start Date                11-SEP-2007 03:34:17
Uptime                    180 days 9 hr. 9 min. 4 sec
Trace Level               off
Security                  OFF
SNMP                      OFF
Listener Parameter File   /oracle/app/product/9.2.0/network/admin/listener.ora
Listener Log File         /oracle/app/product/9.2.0/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HOSTNAME)(PORT=1521)))
Services Summary...
Service &quot;PLSExtProc&quot; has 1 instance(s).
Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...
Service &quot;DB_SID.domain.com&quot; has 2 instance(s).
Instance &quot;DB_SID&quot;, status UNKNOWN, has 1 handler(s) for this service...
Instance &quot;DB_SID&quot;, status READY, has 1 handler(s) for this service...
The command completed successfully</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> lsnrctl</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">LSNRCTL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SET</span> log_status off
Connecting <span style="color: #993333; font-weight: bold;">TO</span> <span style="color: #66cc66;">&#40;</span>DESCRIPTION<span style="color: #66cc66;">=</span><span style="color: #66cc66;">&#40;</span>ADDRESS<span style="color: #66cc66;">=</span><span style="color: #66cc66;">&#40;</span>PROTOCOL<span style="color: #66cc66;">=</span>IPC<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">KEY</span><span style="color: #66cc66;">=</span>EXTPROC<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
LISTENER parameter <span style="color: #ff0000;">&quot;log_status&quot;</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #993333; font-weight: bold;">TO</span> OFF
The command completed successfully</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>9.2.0<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>listener.log <span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>listener.log_9-March-<span style="color: #000000;">2008</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">LSNRCTL<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">set</span> log_status on
Connecting to <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">DESCRIPTION</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">ADDRESS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">PROTOCOL</span>=IPC<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">KEY</span>=EXTPROC<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
LISTENER parameter <span style="color: #ff0000;">&quot;log_status&quot;</span> <span style="color: #000000; font-weight: bold;">set</span> to ON
The <span style="color: #7a0874; font-weight: bold;">command</span> completed successfully</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/backup-listener-log/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oracle Heterogeneous Configuration Service (ORACLE to MySQL)</title>
		<link>http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/</link>
		<comments>http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 06:55:36 +0000</pubDate>
		<dc:creator>Henri Simatupang</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[ODBC]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Oracle to Mysql]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/03/05/setting-oracle-heterogenous-service-mysql-to-oracle/</guid>
		<description><![CDATA[PART I : Setting up ODBC driver
1. Install mysql-connector-odbc-3.51.12-linux-i686.rpm

bash&#62; rpm –ivh mysql-connector-odbc-3.51.12-linux-i686.rpm

2. Start Mysql Daemon

bash&#62; /etc/init.d/mysqld start
Initializing MySQL database:                               &#91;  OK  &#93;

3. Configure [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PART I : Setting up ODBC driver</strong></p>
<p>1. Install mysql-connector-odbc-3.51.12-linux-i686.rpm</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> rpm –ivh mysql-connector-odbc-3.51.12-linux-i686.rpm</pre></div></div>

<p>2. Start Mysql Daemon</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld start
Initializing MySQL database:                               <span style="color: #7a0874; font-weight: bold;">&#91;</span>  OK  <span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>3. Configure ODBC</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> ODBCConfig</pre></div></div>

<p>4. Modify : /etc/odbc.ini</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>odbc.ini</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[trans]
Driver = MySQL ODBC 3.51 Driver
DATABASE = kampus
DESCRIPTION = punya_kampus
PWD = password
PORT = 3306
SERVER = localhost
UID = root</pre></div></div>

<p><span id="more-46"></span></p>
<p>5. Test Connection</p>
<p><code>isql DSN [UID [PWD]] [options]</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> isql <span style="color: #660033;">-v</span> trans root password</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">+---------------------------------------+
| Connected!
|
| sql-statement
| help [tablename]
| quit
|
+---------------------------------------+</pre></div></div>

<p><strong>PART II :  How 2 Configure HSODBC</strong></p>
<p>1. Listener</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
&nbsp;
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = trans)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0)
(PROGRAM = hsodbc)
)
)
&nbsp;
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = OraHost)(PORT = 1521))
)
)</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt; lsnrctl reload</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt; lsnrctl status
LSNRCTL <span style="color: #000000; font-weight: bold;">for</span> Linux: Version 10.2.0.1.0 - Production on <span style="color: #000000;">12</span>-NOV-<span style="color: #000000;">2006</span> <span style="color: #000000;">22</span>:<span style="color: #000000;">50</span>:<span style="color: #000000;">28</span>
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1991</span>, <span style="color: #000000;">2005</span>, Oracle.  All rights reserved.
Connecting to <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">DESCRIPTION</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">ADDRESS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">PROTOCOL</span>=IPC<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">KEY</span>=EXTPROC1<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
STATUS of the LISTENER
<span style="color: #660033;">------------------------</span>
Alias                     LISTENER
Version                   TNSLSNR <span style="color: #000000; font-weight: bold;">for</span> Linux: Version 10.2.0.1.0 - Production
Start Date                <span style="color: #000000;">12</span>-NOV-<span style="color: #000000;">2006</span> <span style="color: #000000;">22</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">34</span>
Uptime                    <span style="color: #000000;">0</span> days <span style="color: #000000;">0</span> hr. <span style="color: #000000;">7</span> min. <span style="color: #000000;">54</span> sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.2.0<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>admin<span style="color: #000000; font-weight: bold;">/</span>listener.ora
Listener Log File         <span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.2.0<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>listener.log
Listening Endpoints Summary...
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">DESCRIPTION</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">ADDRESS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">PROTOCOL</span>=ipc<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">KEY</span>=EXTPROC1<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">DESCRIPTION</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">ADDRESS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">PROTOCOL</span>=tcp<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">HOST</span>=OraHost<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">PORT</span>=<span style="color: #000000;">1521</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Services Summary...
Service <span style="color: #ff0000;">&quot;PLSExtProc&quot;</span> has <span style="color: #000000;">1</span> instance<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Instance <span style="color: #ff0000;">&quot;PLSExtProc&quot;</span>, status UNKNOWN, has <span style="color: #000000;">1</span> handler<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> this service...
Service <span style="color: #ff0000;">&quot;prod&quot;</span> has <span style="color: #000000;">1</span> instance<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Instance <span style="color: #ff0000;">&quot;prod&quot;</span>, status READY, has <span style="color: #000000;">1</span> handler<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> this service...
Service <span style="color: #ff0000;">&quot;prodXDB&quot;</span> has <span style="color: #000000;">1</span> instance<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Instance <span style="color: #ff0000;">&quot;prod&quot;</span>, status READY, has <span style="color: #000000;">1</span> handler<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> this service...
Service <span style="color: #ff0000;">&quot;prod_XPT&quot;</span> has <span style="color: #000000;">1</span> instance<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Instance <span style="color: #ff0000;">&quot;prod&quot;</span>, status READY, has <span style="color: #000000;">1</span> handler<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> this service...
Service <span style="color: #ff0000;">&quot;trans&quot;</span> has <span style="color: #000000;">1</span> instance<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
Instance <span style="color: #ff0000;">&quot;trans&quot;</span>, status UNKNOWN, has <span style="color: #000000;">1</span> handler<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> this service...
The <span style="color: #7a0874; font-weight: bold;">command</span> completed successfully</pre></div></div>

<p>2. Edit tnsnames.ora</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
&nbsp;
PROD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = OraHost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prod)
)
)
&nbsp;
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
&nbsp;
trans =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = OraHost)(PORT = 1521))
)
(CONNECT_DATA =
(SID = trans))
(HS = OK)
)</pre></div></div>

<p>3. Configure $ORACLE_HOME/hs/admin/inithsodbc.ora<br />
# This is a sample agent init file that contains the HS parameters that are<br />
# needed for an ODBC Agent.<br />
# HS init parameters<br />
#<br />
HS_FDS_CONNECT_INFO = trans<br />
HS_FDS_TRACE_LEVEL = off<br />
HS_FDS_SHAREABLE_NAME = /usr/lib/libmyodbc3.so<br />
#<br />
# ODBC specific environment variables<br />
#set ODBCINI=/etc/odbc.ini<br />
#<br />
# Environment variables required for the non-Oracle system<br />
#<br />
# set &lt;envvar&gt;=&lt;value&gt;<br />
#</p>
<p>4. Configure Environment &amp; Test tnsping</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> .bash_profile</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># User specific environment and startup programs
PATH=$PATH:$HOME/bin
# Henri Configure
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_SID=prod
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export PATH=$PATH:$ORACLE_HOME/bin:/sbin:.
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ODBCINI=/etc/odbc.ini</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> tnsping trans
TNS Ping Utility <span style="color: #000000; font-weight: bold;">for</span> Linux: Version 10.2.0.1.0 - Production on <span style="color: #000000;">12</span>-NOV-<span style="color: #000000;">2006</span> <span style="color: #000000;">23</span>:<span style="color: #000000;">21</span>:<span style="color: #000000;">43</span>
Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1997</span>, <span style="color: #000000;">2005</span>, Oracle.  All rights reserved.
Used parameter files:
<span style="color: #000000; font-weight: bold;">/</span>u01<span style="color: #000000; font-weight: bold;">/</span>app<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>product<span style="color: #000000; font-weight: bold;">/</span>10.2.0<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>admin<span style="color: #000000; font-weight: bold;">/</span>sqlnet.ora
Used TNSNAMES adapter to resolve the <span style="color: #7a0874; font-weight: bold;">alias</span>
Attempting to contact <span style="color: #7a0874; font-weight: bold;">&#40;</span>DESCRIPTION = <span style="color: #7a0874; font-weight: bold;">&#40;</span>ADDRESS_LIST = <span style="color: #7a0874; font-weight: bold;">&#40;</span>ADDRESS = <span style="color: #7a0874; font-weight: bold;">&#40;</span>PROTOCOL = TCP<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>HOST = OraHost<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>PORT = <span style="color: #000000;">1521</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>CONNECT_DATA = <span style="color: #7a0874; font-weight: bold;">&#40;</span>SID = trans<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>HS = OK<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
OK <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">10</span> msec<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>5. Creating Database Link</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> conn kadal<span style="color: #66cc66;">/</span>kadal
Connected<span style="color: #66cc66;">.</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SQL<span style="color: #000000; font-weight: bold;">&gt;</span> CREATE DATABASE LINK trans CONNECT TO <span style="color: #ff0000;">&quot;root&quot;</span> IDENTIFIED BY <span style="color: #ff0000;">&quot;password&quot;</span> USING <span style="color: #ff0000;">'trans'</span>;
Database <span style="color: #c20cb9; font-weight: bold;">link</span> created.</pre></div></div>

<p>6. Test Koneksi</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SQL<span style="color: #000000; font-weight: bold;">&gt;</span> SELECT <span style="color: #000000; font-weight: bold;">*</span> FROM MHS<span style="color: #000000; font-weight: bold;">@</span>TRANS;</pre></div></div>

<p><em>Note : Case Sensitive</em></p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Show Locking Proccess</title>
		<link>http://sysinfo.bascomp.org/2008/01/show-locking-proccess/</link>
		<comments>http://sysinfo.bascomp.org/2008/01/show-locking-proccess/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 06:36:06 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2008/01/21/show-locking-proccess/</guid>
		<description><![CDATA[
SQL&#62; SELECT s1.username &#124;&#124; '@' &#124;&#124; s1.machine&#124;&#124; ' ( SID=' &#124;&#124; s1.sid &#124;&#124; ' )  is blocking '&#124;&#124; s2.username &#124;&#124; '@' &#124;&#124; s2.machine &#124;&#124; ' ( SID=' &#124;&#124; s2.sid &#124;&#124; ' ) ' AS blocking_status, s1.SQL_ID
FROM v$lock l1, v$session s1, v$lock l2, v$session s2
WHERE s1.sid=l1.sid AND s2.sid=l2.sid
AND l1.BLOCK=1 AND l2.request &#62; 0
AND l1.id1 = [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">SQL<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> s1<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'@'</span> <span style="color: #66cc66;">||</span> s1<span style="color: #66cc66;">.</span>machine<span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' ( SID='</span> <span style="color: #66cc66;">||</span> s1<span style="color: #66cc66;">.</span>sid <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' )  is blocking '</span><span style="color: #66cc66;">||</span> s2<span style="color: #66cc66;">.</span>username <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">'@'</span> <span style="color: #66cc66;">||</span> s2<span style="color: #66cc66;">.</span>machine <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' ( SID='</span> <span style="color: #66cc66;">||</span> s2<span style="color: #66cc66;">.</span>sid <span style="color: #66cc66;">||</span> <span style="color: #ff0000;">' ) '</span> <span style="color: #993333; font-weight: bold;">AS</span> blocking_status<span style="color: #66cc66;">,</span> s1<span style="color: #66cc66;">.</span>SQL_ID
<span style="color: #993333; font-weight: bold;">FROM</span> v$lock l1<span style="color: #66cc66;">,</span> v$session s1<span style="color: #66cc66;">,</span> v$lock l2<span style="color: #66cc66;">,</span> v$session s2
<span style="color: #993333; font-weight: bold;">WHERE</span> s1<span style="color: #66cc66;">.</span>sid<span style="color: #66cc66;">=</span>l1<span style="color: #66cc66;">.</span>sid <span style="color: #993333; font-weight: bold;">AND</span> s2<span style="color: #66cc66;">.</span>sid<span style="color: #66cc66;">=</span>l2<span style="color: #66cc66;">.</span>sid
<span style="color: #993333; font-weight: bold;">AND</span> l1<span style="color: #66cc66;">.</span>BLOCK<span style="color: #66cc66;">=</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">AND</span> l2<span style="color: #66cc66;">.</span>request <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span>
<span style="color: #993333; font-weight: bold;">AND</span> l1<span style="color: #66cc66;">.</span>id1 <span style="color: #66cc66;">=</span> l2<span style="color: #66cc66;">.</span>id1
<span style="color: #993333; font-weight: bold;">AND</span> l2<span style="color: #66cc66;">.</span>id2 <span style="color: #66cc66;">=</span> l2<span style="color: #66cc66;">.</span>id2;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2008/01/show-locking-proccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving &amp; Recreate Temp Tablespace</title>
		<link>http://sysinfo.bascomp.org/2007/12/moving-recreate-temp-tablespace/</link>
		<comments>http://sysinfo.bascomp.org/2007/12/moving-recreate-temp-tablespace/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 17:05:18 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Backup & Recovery]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/12/13/moving-recreate-temp-tablespace/</guid>
		<description><![CDATA[I Recreate the temp tablespace coz my temp tablespace was corrupt,
you can do to the following bellow

create temporary tablespace temp2 tempfile '/rdbms/temp01/temp2.dbf' size 10M extent management local uniform size 1M;
 alter database default temporary tablespace temp2;
 drop tablespace temp including contents and datafiles;

now change back to temp again with following step bellow:

create temporary tablespace temp [...]]]></description>
			<content:encoded><![CDATA[<p>I Recreate the temp tablespace coz my temp tablespace was corrupt,<br />
you can do to the following bellow</p>
<ol>
<li>create temporary tablespace temp2 tempfile '/rdbms/temp01/temp2.dbf' size 10M extent management local uniform size 1M;</li>
<li> alter database default temporary tablespace temp2;</li>
<li> drop tablespace temp including contents and datafiles;</li>
</ol>
<p>now change back to temp again with following step bellow:</p>
<ol>
<li>create temporary tablespace temp tempfile '/rdbms/temp01/temp2_01.dbf' size 1024M extent management local uniform size 1M;</li>
<li>alter database default temporary tablespace temp;</li>
<li> drop tablespace temp2 including contents and datafiles;</li>
<li>alter tablespace temp add tempfile '/rdbms/temp01/temp2_02.dbf' size 1024M;</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/12/moving-recreate-temp-tablespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA 29807 - specified operator does not exist</title>
		<link>http://sysinfo.bascomp.org/2007/12/ora-29807-specified-operator-does-not-exist/</link>
		<comments>http://sysinfo.bascomp.org/2007/12/ora-29807-specified-operator-does-not-exist/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 07:27:48 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Bug]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/12/08/ora-29807-specified-operator-does-not-exist/</guid>
		<description><![CDATA[Yesterday,
During Installation of Oracle database 9i base on RHEL 4 ES,
I got Found error occurred when create the database using dbca,
and it keeps failing at the same point (Creating data dictionary Views)
This the error number Detail "ORA 29807 - specified operator does not exist"
Workaround;
just ignore the error and DBCA proceeds normally. Once the database is [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday,<br />
During Installation of Oracle database 9i base on RHEL 4 ES,<br />
I got Found error occurred when create the database using dbca,<br />
and it keeps failing at the same point (Creating data dictionary Views)<br />
This the error number Detail "ORA 29807 - specified operator does not exist"</p>
<p>Workaround;<br />
just ignore the error and DBCA proceeds normally. Once the database is ready,<br />
login as SYS and run this script manually:</p>
<p>$ORACLE_HOME/rdbms/admin/prvtxml.plb<br />
<code>SQL&gt; @?/rdbms/admin/prvtxml.plb</code></p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/12/ora-29807-specified-operator-does-not-exist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kill sesion oracle in windows</title>
		<link>http://sysinfo.bascomp.org/2007/11/kill-sesion-oracle-in-windows/</link>
		<comments>http://sysinfo.bascomp.org/2007/11/kill-sesion-oracle-in-windows/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 11:39:46 +0000</pubDate>
		<dc:creator>Eriek Regandono</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/11/15/kill-sesion-oracle-in-windows/</guid>
		<description><![CDATA[path:     .../Oracle Home/bin/orakill.exe    or   find manually
command: orakill &#60;sid&#62; &#60;spid&#62;
example:  C:\Oracle9\bin\orakill ORCL 2760
]]></description>
			<content:encoded><![CDATA[<p>path:     .../Oracle Home/bin/orakill.exe    or   find manually<br />
command: <code><strong>orakill &lt;sid&gt; &lt;spid&gt;</strong></code><br />
example:  C:\Oracle9\bin\orakill ORCL 2760</p>
]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/11/kill-sesion-oracle-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql*Loader</title>
		<link>http://sysinfo.bascomp.org/2007/10/sqlloader/</link>
		<comments>http://sysinfo.bascomp.org/2007/10/sqlloader/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 13:08:47 +0000</pubDate>
		<dc:creator>Hendrawan</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Sql Loader]]></category>

		<guid isPermaLink="false">http://sysinfo.bascomp.org/2007/10/17/sqlloader/</guid>
		<description><![CDATA[Preview a little 'bout sql*loader
SQL*Loader loads data from external files into tables of an Oracle database,
SQL*Loader Can manipulate the data before loading it, using SQL functions,
SQL*Loader Can load data into multiple tables during the same load session, and many more..
SQL*Loader takes as input a control file (*.ctl), which controls the behavior of SQL*Loader, and one [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Preview a little 'bout sql*loader</strong><br />
SQL*Loader loads data from external files into tables of an Oracle database,<br />
SQL*Loader Can manipulate the data before loading it, using SQL functions,<br />
SQL*Loader Can load data into multiple tables during the same load session, and many more..</p>
<p>SQL*Loader takes as input a control file (*.ctl), which controls the behavior of SQL*Loader, and one or more datafiles. Output of the SQL*Loader is an Oracle database (where the data is loaded), a log file, a bad file, and potentially a discard file.</p>
<p><strong>Requirement..</strong><br />
1. Table<br />
2. Control File<br />
3. Flat File / Data File (optional)</p>
<p><span id="more-29"></span><br />
<strong>Example</strong></p>
<p>1. ---Create User</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> user loader
<span style="color: #993333; font-weight: bold;">IDENTIFIED</span> <span style="color: #993333; font-weight: bold;">BY</span> loader
<span style="color: #993333; font-weight: bold;">DEFAULT</span> tablespace loaders
<span style="color: #993333; font-weight: bold;">TEMPORARY</span> tablespace temp</pre></div></div>

<p>---Grant To Tablespace</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">GRANT</span> UNLIMITED TABLESPACE <span style="color: #993333; font-weight: bold;">TO</span> loader</pre></div></div>

<p>---Making A Table</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> loader<span style="color: #66cc66;">.</span>load_here
<span style="color: #66cc66;">&#40;</span>
col1 VARCH4R2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
col2 VARCH4R2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span>
col3 VARCH4R2<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>2. Add "ctl" file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">vi</span> loader.ctl
LOAD DATA
INFILE <span style="color: #ff0000;">'/tmp/flat_file.csv'</span>
REPLACE
INTO TABLE loader.load_here
FIELDS TERMINATED BY <span style="color: #ff0000;">','</span>
TRAILING NULLCOLS
<span style="color: #7a0874; font-weight: bold;">&#40;</span>col1,col2,col3<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>The <strong>INFILE</strong> says, "where file was load"<br />
The <strong>REPLACE</strong> keyword says, "remove any existing rows before starting the load."<br />
<strong> INTO TABLE</strong>, "yes, the table where data was insert"<br />
The <strong>TRAILING NULLCOLS</strong> statement handles the missing data; it tells SQL*Loader to load any missing data as NULL values<br />
<strong> FIELDS TERMINATED BY ','  </strong>says the delimiter from csv file, default is " , "</p>
<p>3. Insert the table with csv file</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">a,nama1,staff
b,nama2,manager
c,nama3,direktur</pre></div></div>

<p><strong>Run SQL*Loader</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">ls</span>
loader.ctl
flat_file.csv</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">bash</span><span style="color: #000000; font-weight: bold;">&gt;</span> sqlldr <span style="color: #007800;">userid</span>=loader<span style="color: #000000; font-weight: bold;">/</span>loader <span style="color: #007800;">control</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>loader.ctl <span style="color: #007800;">log</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>loader.log</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sysinfo.bascomp.org/2007/10/sqlloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
