<?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>Mas Rony's Notes &#187; Oracle</title>
	<atom:link href="http://www.masrony.com/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masrony.com</link>
	<description>Restore your brain... !!</description>
	<lastBuildDate>Wed, 10 Mar 2010 14:45:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Upgrade Oracle 10.2.0.1 ke 10.2.0.4 di Windows</title>
		<link>http://www.masrony.com/2009/04/upgrade-oracle-10201-ke-10204-di-windows/</link>
		<comments>http://www.masrony.com/2009/04/upgrade-oracle-10201-ke-10204-di-windows/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 10:09:27 +0000</pubDate>
		<dc:creator>Mas Rony</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle 10g]]></category>
		<category><![CDATA[oracle patch]]></category>
		<category><![CDATA[oracle update]]></category>
		<category><![CDATA[oracle upgrade]]></category>

		<guid isPermaLink="false">http://www.masrony.com/?p=213</guid>
		<description><![CDATA[Upgrade database oracle sebaiknya dilakukan di mesin testing terlebih dahulu sebelum dilakukan upgrade yang sesungguhnya di mesin production, untuk meminimalisir kesalahan atau error di database production. Untuk list patch set terbaru oracle silahkan anda berkunjung ke website resmi oracle disini. Testing disini menggunakan OS Windows 2003 SP2 dengan oracle versi 10.2.0.1 dalam kondisi fresh install.
Persiapan [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Upgrade database oracle sebaiknya dilakukan di mesin testing terlebih dahulu sebelum dilakukan upgrade yang sesungguhnya di mesin production, untuk meminimalisir kesalahan atau error di database production. Untuk list patch set terbaru oracle silahkan anda berkunjung ke website resmi oracle <a href="http://www.oracle.com/technology/support/patches.htm">disini</a>. Testing disini menggunakan OS Windows 2003 SP2 dengan oracle versi 10.2.0.1 dalam kondisi fresh install.</p>
<p style="text-align: justify;"><strong>Persiapan Sebelum Upgrade</strong></p>
<ul style="text-align: justify;">
<li>Download patch set number 6810189 dari metalink oracle.<br />
tentunya anda juga harus mempunyai account suppot identifier oracle (CSI) yang valid.</li>
<li>Buat instan database<br />
Buat instan database dengan spesifikasi yang sama dengan database production. Dalam contoh ini saya menggunakan SID : ORCL</li>
<li>Import database<br />
Import database dari backup server production, dengan cara yang biasa anda lakukan di environment anda, dan pastikan telah bekerja dengan baik.</li>
<li>Matikan semua service oracle<br />
<span id="more-213"></span>
<ul>C:\&gt; set oracle_sid=ORCL<br />
C:\&gt; isqlplusctl stop</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>iSQL*Plus 10.2.0.1.0
Copyright (c) 2003, 2005, Oracle.  All rights reserved.
Stopping iSQL*Plus ...
iSQL*Plus stopped.</pre>
</div>
<p>C:\&gt; emctl stop dbconsole</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.

https://jtim:1158/em/console/aboutApplication

The OracleDBConsoleORCL service is stopping.............
The OracleDBConsoleORCL service was stopped successfully.</pre>
</div>
<p>C:\&gt; lsnrctl stop</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 05-APR-2009 21:26:17
Copyright (c) 1991, 2005, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=jtim)(PORT=1521))
)
The command completed successfully</pre>
</div>
<p>C:\&gt; sqlplus /nolog</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 5 21:27:38 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL&gt;</pre>
</div>
<p>SQL&gt; conn / as sysdba<br />
Connected.<br />
SQL&gt; shutdown abort</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>Database closed.
Database dismounted.
ORACLE instance shut down.
SQL&gt;</pre>
</div>
</ul>
<p>apabila ingin shutdown semua service menggunakan windows service :</p>
<ul> C:\&gt; net stop OracleOraDB10g_Home1iSQL*Plus<br />
C:\&gt; net stop OracleDBConsoleORCL<br />
C:\&gt; net stop OracleOraDB10g_Home1TNSListener<br />
C:\&gt; net stop OracleServiceORCL</ul>
</li>
<li>Matikan juga service Mirosoft Distributed Transaction Coordinator apabila ada atau berjalan
<ul>C:\&gt; net stop msdtc</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>The Distributed Transaction Coordinator service is stopping.
The Distributed Transaction Coordinator service was stopped successfully.</pre>
</div>
</ul>
</li>
</ul>
<p style="text-align: justify;"><strong>Upgrade database Oracle 10.2.0.4</strong><br />
Sebelum melakukan upgrade, silahkan baca terlebih dahulu dokumentasi yang telah disertakan di patch upgrade tersebut.</p>
<ul style="text-align: justify;">
<li>Jalankan Oracle Universal Installer (oui.exe) dari instalasi oracle 10.2.0.4 di folder install, dan setelah welcome screen muncul, tekan Next :</li>
<p style="text-align: center;"><img class="aligncenter" src="http://i184.photobucket.com/albums/x99/ronevic/Oracle/opatch1.jpg" alt="" width="320" height="250" /></p>
<li>Pilih home Oracle oracle yang akan diupgrade (jangan membuat home directory baru lagi) kemudian tekan Next :</li>
<p style="text-align: center;"><img class="aligncenter" src="http://i184.photobucket.com/albums/x99/ronevic/Oracle/opatch2.jpg" alt="" width="320" height="250" /></p>
<li>Oracle Installer akan melakukan pengecekan system requirement, tekan Next untuk melanjutkan ke screen berikutnya :</li>
<p style="text-align: center;"><img class="aligncenter" src="http://i184.photobucket.com/albums/x99/ronevic/Oracle/opatch3.jpg" alt="" width="320" height="250" /></p>
<li>Masukkan data customer identification number (CSI) anda, kemudian tekan Next :</li>
<p style="text-align: center;"><img class="aligncenter" src="http://i184.photobucket.com/albums/x99/ronevic/Oracle/opatch4.jpg" alt="" width="320" height="250" /></p>
<li>Summary installation, tekan Install untuk melakukan instalasi :</li>
<p style="text-align: center;"><img class="aligncenter" src="http://i184.photobucket.com/albums/x99/ronevic/Oracle/opatch5.jpg" alt="" width="320" height="250" /></p>
<li>Installasi upgrade patch Oracle telah selesai. Tekan Exit :</li>
<p style="text-align: center;"><img class="aligncenter" src="http://i184.photobucket.com/albums/x99/ronevic/Oracle/opatch6.jpg" alt="" width="320" height="250" /></p>
</ul>
<p style="text-align: justify;"><strong>Testing Instalasi Upgrade Oracle</strong></p>
<ul style="text-align: justify;">
<li>Start database dalam mode upgrade (testing upgrade) :
<ul>C:\&gt;sqlplus /nolog</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>SQL*Plus: Release 10.2.0.4.0 - Production on Mon Apr 6 15:39:00 2009
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
SQL&gt; </pre>
</div>
<p>SQL&gt; conn / as sysdba</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>Connected to an idle instance.
SQL&gt;</pre>
</div>
<p>SQL&gt; startup upgrade</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>ORACLE instance started.
Total System Global Area  289406976 bytes
Fixed Size                  1296308 bytes
Variable Size             142608460 bytes
Database Buffers          138412032 bytes
Redo Buffers                7090176 bytes
Database mounted.
Database opened.
SQL&gt;</pre>
</div>
</ul>
</li>
<li>Jalankan script test patch di  $ORACLE_HOME\RDBMS\ADMIN\catupgrd.sql dengan spool diaktifkan terlebih dahulu.
<ul>SQL&gt; spool patch.log<br />
SQL&gt; @D:\oracle\product\10.2.0\RDBMS\ADMIN\catupgrd.sql</p>
<div style="background: #cccccc none repeat scroll 0% 0%; overflow: auto; height: 250px; width: 455px;">
<pre>SQL&gt; @D:\oracle\product\10.2.0\RDBMS\ADMIN\catupgrd.sql
DOC&gt;######################################################################
DOC&gt;######################################################################
DOC&gt;	The following statement will cause an "ORA-01722: invalid number"
DOC&gt;	error if the user running this script is not SYS.  Disconnect
DOC&gt;	and reconnect with AS SYSDBA.
DOC&gt;######################################################################
DOC&gt;######################################################################
DOC&gt;#
no rows selected
DOC&gt;######################################################################
DOC&gt;######################################################################
DOC&gt;	The following statement will cause an "ORA-01722: invalid number"
DOC&gt;	error if the database server version is not correct for this script.
DOC&gt;	Shutdown ABORT and use a different script or a different server.
DOC&gt;######################################################################
DOC&gt;######################################################################
DOC&gt;#
no rows selected
DOC&gt;#######################################################################
DOC&gt;#######################################################################
DOC&gt;   The following statement will cause an "ORA-01722: invalid number"
DOC&gt;   error if the database has not been opened for UPGRADE.
DOC&gt;
DOC&gt;   Perform a "SHUTDOWN ABORT"  and
DOC&gt;   restart using UPGRADE.
DOC&gt;#######################################################################
DOC&gt;#######################################################################
DOC&gt;#
no rows selected
DOC&gt;#######################################################################
DOC&gt;#######################################################################
DOC&gt;	The following statements will cause an "ORA-01722: invalid number"
DOC&gt;	error if the SYSAUX tablespace does not exist or is not
DOC&gt;	ONLINE for READ WRITE, PERMANENT, EXTENT MANAGEMENT LOCAL, and
DOC&gt;	SEGMENT SPACE MANAGEMENT AUTO.
DOC&gt;
DOC&gt;	The SYSAUX tablespace is used in 10.1 to consolidate data from
DOC&gt;	a number of tablespaces that were separate in prior releases.
DOC&gt;	Consult the Oracle Database Upgrade Guide for sizing estimates.
DOC&gt;
DOC&gt;	Create the SYSAUX tablespace, for example,
DOC&gt;
DOC&gt;	 create tablespace SYSAUX datafile 'sysaux01.dbf'
DOC&gt;	     size 70M reuse
DOC&gt;	     extent management local
DOC&gt;	     segment space management auto
DOC&gt;	     online;
DOC&gt;
DOC&gt;	Then rerun the catupgrd.sql script.
DOC&gt;#######################################################################
DOC&gt;#######################################################################
DOC&gt;#
no rows selected
no rows selected
no rows selected
no rows selected
no rows selected
Session altered.
Session altered.
Table created.
2 rows deleted.
1 row created.
Commit complete.
TIMESTAMP
------------------------------------------------------------
COMP_TIMESTAMP UPGRD__BGN 2009-04-06 16:43:38 2454928 60218
- - - - - dipotong sampe disini coz panjang bgt - - - -</pre>
</div>
</ul>
<p>Proses ini akan memakan waktu yang lumayan lama bergantung besar database dan resource hardware anda. Apabila proses test sudah selesai periksa terlebih dahulu hasil test tersebut (patch.log) baik berupa error ataupun komponen yang gagal terupdate. Apabila sudah dilakukan perbaikan silahkan dites ulang menggunakan script diatas.</li>
<li>Restart database ke mode seperti biasa (normal) dan jalankan script $ORACLE_HOME\RDBMS\ADMIN\utlrp.sql untuk mengkompile ulang semua packages yang invalid (optional) :
<ul>SQL&gt; shutdown immediate</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>Database closed.
Database dismounted.
ORACLE instance shut down.</pre>
</div>
<p>SQL&gt; startup</p>
<div style="margin: 10px auto; background: #cccccc none repeat scroll 0% 0%;">
<pre>ORACLE instance started.
Total System Global Area  289406976 bytes
Fixed Size                  1296308 bytes
Variable Size             192940108 bytes
Database Buffers           88080384 bytes
Redo Buffers                7090176 bytes
Database mounted.
Database opened.</pre>
</div>
<p>SQL&gt; @D:\oracle\product\10.2.0\RDBMS\ADMIN\utlrp.sql</p>
<div style="background: #cccccc none repeat scroll 0% 0%; overflow: auto; height: 250px; width: 455px;">
<pre>TIMESTAMP
-------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_BGN  2009-04-06 17:21:12
DOC&gt;   The following PL/SQL block invokes UTL_RECOMP to recompile invalid
DOC&gt;   objects in the database. Recompilation time is proportional to the
DOC&gt;   number of invalid objects in the database, so this command may take
DOC&gt;   a long time to execute on a database with a large number of invalid
DOC&gt;   objects.
DOC&gt;
DOC&gt;   Use the following queries to track recompilation progress:
DOC&gt;
DOC&gt;   1. Query returning the number of invalid objects remaining. This
DOC&gt;      number should decrease with time.
DOC&gt;         SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
DOC&gt;
DOC&gt;   2. Query returning the number of objects compiled so far. This number
DOC&gt;      should increase with time.
DOC&gt;         SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;
DOC&gt;
DOC&gt;   This script automatically chooses serial or parallel recompilation
DOC&gt;   based on the number of CPUs available (parameter cpu_count) multiplied
DOC&gt;   by the number of threads per CPU (parameter parallel_threads_per_cpu).
DOC&gt;   On RAC, this number is added across all RAC nodes.
DOC&gt;
DOC&gt;   UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel
DOC&gt;   recompilation. Jobs are created without instance affinity so that they
DOC&gt;   can migrate across RAC nodes. Use the following queries to verify
DOC&gt;   whether UTL_RECOMP jobs are being created and run correctly:
DOC&gt;
DOC&gt;   1. Query showing jobs created by UTL_RECOMP
DOC&gt;         SELECT job_name FROM dba_scheduler_jobs
DOC&gt;            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC&gt;
DOC&gt;   2. Query showing UTL_RECOMP jobs that are running
DOC&gt;         SELECT job_name FROM dba_scheduler_running_jobs
DOC&gt;            WHERE job_name like 'UTL_RECOMP_SLAVE_%';
DOC&gt;#
TIMESTAMP
-------------------------------------------------------------------------------
COMP_TIMESTAMP UTLRP_END  2009-04-06 17:22:10
DOC&gt; The following query reports the number of objects that have compiled
DOC&gt; with errors (objects that compile with errors have status set to 3 in
DOC&gt; obj$). If the number is higher than expected, please examine the error
DOC&gt; messages reported with each object (using SHOW ERRORS) to see if they
DOC&gt; point to system misconfiguration or resource constraints that must be
DOC&gt; fixed before attempting to recompile these objects.
DOC&gt;#
OBJECTS WITH ERRORS
-------------------
                  0
DOC&gt; The following query reports the number of errors caught during
DOC&gt; recompilation. If this number is non-zero, please query the error
DOC&gt; messages in the table UTL_RECOMP_ERRORS to see if any of these errors
DOC&gt; are due to misconfiguration or resource constraints that must be
DOC&gt; fixed before objects can compile successfully.
DOC&gt;#
ERRORS DURING RECOMPILATION
---------------------------
                          0
SQL&gt;</pre>
</div>
</ul>
</li>
</ul>
<p style="text-align: justify;">Proses patch upgrade telah selesai dilakukan silahkan restart seluruh service atau reboot komputer anda.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masrony.com/2009/04/upgrade-oracle-10201-ke-10204-di-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Koneksi Oracle Transparent Gateway dengan MS SQL Server</title>
		<link>http://www.masrony.com/2009/03/koneksi-oracle-transparent-gateway-dengan-ms-sql-server/</link>
		<comments>http://www.masrony.com/2009/03/koneksi-oracle-transparent-gateway-dengan-ms-sql-server/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 09:20:26 +0000</pubDate>
		<dc:creator>Mas Rony</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[oracle transparant gateway]]></category>
		<category><![CDATA[sql server]]></category>

		<guid isPermaLink="false">http://www.masrony.com/?p=57</guid>
		<description><![CDATA[Oracle Transparent Gateway
Oracle transparent gateway adalah salah satu produk oracle yang berguna untuk menghubungkan database oracle dengan database non oracle. Kompatibilitas gateway ini sangat luas dan multiple platform, diantaranya mencakup standard protokol APPC (Advanced Program-to-Program Communication), standard protokol DRDA (Distributed Relational Database Architecture) dari Open Group, IBM WebSphere MQ, Teradata, Sybase, SQL Server, dan database [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><strong>Oracle Transparent Gateway</strong><br />
Oracle transparent gateway adalah salah satu produk oracle yang berguna untuk menghubungkan database oracle dengan database non oracle. Kompatibilitas gateway ini sangat luas dan multiple platform, diantaranya mencakup standard protokol APPC (Advanced Program-to-Program Communication), standard protokol DRDA (Distributed Relational Database Architecture) dari Open Group, IBM WebSphere MQ, Teradata, Sybase, SQL Server, dan database lain-lain yang support dengan standard prokokol yang ada. Untuk daftar database yang bisa disupport oleh oracle transparent gateway dapat dilihat di situs resmi oracle.</p>
<p style="text-align: justify;"><strong>Implementasi koneksi Oracle Transparent Gateway dengan SQL Server</strong><br />
Dalam percobaan kali ini, implementasi koneksi oracle transparent gateway (selanjutnya disingkat OTG, biar ga capek nulisnya) dibatasi hanya dengan SQL Server saja. Mesin yang digunakan ada 3 yaitu :</p>
<p style="text-align: justify;"><span id="more-57"></span><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:35.4pt; 	mso-footer-margin:35.4pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;}  /* List Definitions */  @list l0 	{mso-list-id:1627926601; 	mso-list-type:hybrid; 	mso-list-template-ids:669538200 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 	{mso-level-tab-stop:36.0pt; 	mso-level-number-position:left; 	text-indent:-18.0pt;} ol 	{margin-bottom:0cm;} ul 	{margin-bottom:0cm;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<ol style="margin-top: 0cm; text-align: justify;" type="1">
<li class="MsoNormal">Sebagai      database server dengan spesifikasi :<br />
OS : Windows 2003 SP2<br />
Computer name : JTIM-ORADB<br />
IP : 192.168.1.1<br />
DB : Oracle Database versi 10.2.0.1<br />
Instance : orcl<br />
Schmema user/password : scott/tiger</li>
<li class="MsoNormal">Sebagai      oracle transparent gateway dengan spesifikasi :<br />
OS : Win XP SP 3<br />
Computer name : JTIM-OTG<br />
IP : 192.168.1.2<br />
OTG : Oracle Transparent Gateway versi 10.2.0.1<br />
Gateway SID : tg4msql</li>
<li class="MsoNormal">Sebagai      database SQL Server dengan spesifikasi :<br />
OS : Windows 2003 SP2<br />
Computer name : JTIM-SQL<br />
IP : 192.168.1.3<br />
DB : MS SQL Server 2000 SP4<br />
DB Yang akan dikoneksikan : Northwind<br />
DB user/password : sa/sa</li>
</ol>
<p style="text-align: justify;">Sebenarnya Oracle database dan OTG bisa diinstal dalam satu mesin asal oracle home-nya ditempatkan di folder yangberbeda. Dalam percobaan kali ini sengaja dibuat menggunakan 3 mesin supaya lebih mudah untuk menganalisa masalah apabila koneksi tidak berhasil dilakukan.<br />
Environment ketiga mesin ini dianggap sudah siap digunakan (kecuali oracle transparent gateway). Di tulisan ini tidak membahas instalasi windows maupun instalasi database baik itu oracle maupun sql server.</p>
<p style="text-align: justify;"><strong>Instalasi Oracle Transparent Gateway</strong><br />
Konfigurasi di Win XP : pertama-tama, yang harus dilakukan adalah menginstall OTG terlebih dahulu. Lakukan instalasi seperti menginstall oracle database, dan pada saat tampil menu list OTG pilih <em>Oracle Transparent Gateway for Microsoft SQL Server</em>. Kemudian di menu selanjutnya masukkan nama server sql : <strong>JTIM-SQL</strong> di isian <em>Microsoft SQL Server</em>, dan nama database sql : <strong>Northwind</strong> di isian <em>Microsoft SQL Database</em>, dan lanjutkan proses instalasi sampai dengan selesai. Setelah instalasi selesai, cek hasil instalasi di $oracle_home/tg4msql. Pada percobaan ini $oracle_home ditempatkan di drive D di folder D:\oracle\product\10.2.0\tg_1.</p>
<p style="text-align: justify;"><em>- File inittg4msql.ora</em><br />
Buka file inittg4msql.ora dengan editor yang anda sukai yang berada di folder $oracle_home/tg4msql/admin. Isi file tersebut kurang lebih seperti ini :<br />
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0cm; 	mso-margin-bottom-alt:auto; 	margin-left:0cm; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--></p>
<p style="text-align: justify;"><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0cm; 	mso-margin-bottom-alt:auto; 	margin-left:0cm; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --></p>
<p><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --></p>
<p><!--[endif]--></p>
<p style="margin-left: 18pt; text-align: justify;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# This is a sample agent init file that contains the HS parameters that are<br />
# needed for the Transparent Gateway for SQL Server</span></p>
<p style="margin-left: 18pt; text-align: justify;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">#<br />
# HS init parameters<br />
#<br />
HS_FDS_CONNECT_INFO=JTIM-SQL.Northwind<br />
HS_FDS_TRACE_LEVEL=OFF<br />
HS_FDS_RECOVERY_ACCOUNT=RECOVER<br />
HS_FDS_RECOVERY_PWD=RECOVER<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p style="text-align: justify;">Kemudian tambahkan dengan satu entry seperti dibawah ini :<br />
HS_FDS_FEFAULT_OWNER=sa<br />
dan ubah beberapa parameter sehingga menjadi seperti ini :<br />
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0cm; 	mso-margin-bottom-alt:auto; 	margin-left:0cm; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# This is a sample agent init file that contains the HS parameters that are<br />
# needed for the Transparent Gateway for SQL Server</span></p>
<p style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">#<br />
# HS init parameters<br />
#<br />
HS_FDS_CONNECT_INFO=JTIM-SQL.Northwind<br />
HS_FDS_FEFAULT_OWNER=sa<br />
HS_FDS_TRACE_LEVEL=DEBUG<br />
# HS_FDS_RECOVERY_ACCOUNT=RECOVER<br />
# HS_FDS_RECOVERY_PWD=RECOVER<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p style="text-align: justify;">Parameter ini dibuat untuk memudahkan pengetesan koneksi yang sedang kita buat. Penulisan untuk HS_FDS_CONNECT_INFO sebenarnya bisa juga dibuat seperti ini :<br />
HS_FDS_CONNECT_INFO=&#8221;SERVER=192.168.1.3;DATABASE=Northwind&#8221;</p>
<p style="text-align: justify;"><em>- File hosts</em><br />
Kemudian edit file hosts di C:\Windows\system32\drivers\etc dan tambahkan dengan baris ip dan komputer name sql server seperti ini :<br />
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">127.0.0.1<span> </span><span> </span>localhost<br />
<strong>192.168.1.3<span> </span>JTIM-SQL</strong></span></p>
<p><strong></strong></p>
<p style="text-align: justify;"><em>- File listener.ora</em><br />
Matikan listener terlebih dahulu, caranya dari command prompt ketikkan :<br />
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">C:\&gt; <strong>lsnrctl stop</strong></span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 &#8211; Production on 03-MAR-2009 14:46:53<br />
Copyright (c) 1991, 2005, Oracle. All rights reserved.</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))<br />
The command completed successfully</span></p>
<p style="text-align: justify;">Buka file listener.ora di folder $oracle_home/NETWORK/admin, dan edit file tersebut sehingga menjadi seperti ini :</p>
<p style="text-align: justify;"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># listener.ora Network Configuration File: </span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">D:\oracle\product\10.2.0\tg_1\network\admin\listener.ora</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># Generated by Oracle configuration tools.</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"> </span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">SID_LIST_LISTENER =</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">(SID_LIST =</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">(SID_DESC =<br />
(SID_NAME = PLSExtProc)<br />
(ORACLE_HOME = D:\oracle\product\10.2.0\tg_1)<br />
(PROGRAM = extproc)</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">)</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"><span> </span><span> </span>(SID_DESC =<br />
(SID_NAME = tg4msql)<br />
(ORACLE_HOME = D:\oracle\product\10.2.0\tg_1)<br />
(PROGRAM = tg4msql)<br />
)<br />
)</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"> </span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">LISTENER =</span></p>
<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">(DESCRIPTION_LIST =<br />
(DESCRIPTION =<br />
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))<br />
(ADDRESS = (PROTOCOL = TCP)(HOST = JTIM-OTG)(PORT = 1234))<br />
)</span></p>
<p class="MsoNormal" style="text-indent: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">)</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</span></p>
<p>Notes : Port standard oracle adalah 1521, dalam artikel ini sengaja dibuat menjadi port 1234.<br />
Kemudian simpan konfigurasi file tersebut, dan jalankan listener dari command prompt :</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">C:\&gt; <strong>lsnrctl start</strong></span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 &#8211; Production on 03-MAR-2009 14:54:42<br />
Copyright (c) 1991, 2005, Oracle. All rights reserved.<br />
Starting tnslsnr: please wait&#8230;<br />
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 &#8211; Production<br />
System parameter file is D:\oracle\product\10.2.0\tg_1\network\admin\listener.ora<br />
Log messages written to D:\oracle\product\10.2.0\tg_1\network\log\listener.log<br />
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))<br />
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=JTIM-OTG)(PORT=1234)))</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))<br />
STATUS of the LISTENER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Alias LISTENER<br />
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 &#8211; Production<br />
Start Date 03-MAR-2009 14:54:45<br />
Uptime 0 days 0 hr. 0 min. 3 sec<br />
Trace Level off<br />
Security ON: Local OS Authentication<br />
SNMP OFF<br />
Listener Parameter File D:\oracle\product\10.2.0\tg_1\network\admin\listener.ora<br />
Listener Log File D:\oracle\product\10.2.0\tg_1\network\log\listener.log</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">Listening Endpoints Summary&#8230;<br />
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))<br />
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=JTIM-OTG)(PORT=1234)))<br />
Services Summary&#8230;<br />
Service &#8220;PLSExtProc&#8221; has 1 instance(s).<br />
Instance &#8220;PLSExtProc&#8221;, status UNKNOWN, has 1 handler(s) for this service&#8230;<br />
Service &#8220;tg4msql&#8221; has 1 instance(s).<br />
Instance &#8220;tg4msql&#8221;, status UNKNOWN, has 1 handler(s) for this service&#8230;<br />
The command completed successfully<br />
C:\&gt;</span></p>
<p style="text-align: justify;">Konfigurasi listener sudah selesai dilakukan, dan OTG telah siap dipergunakan.</p>
<p style="text-align: justify;"><em>- File tnsnames.ora</em><br />
Untuk melakukan pengetesan konfigurasi, edit file tnsnames.ora di folder $oracle_home/NETWORK/admin, dan tambahkan parameter yang ada sehingga menjadi seperti ini :</p>
<p style="text-align: justify;"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0cm; 	mso-margin-bottom-alt:auto; 	margin-left:0cm; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;"># &#8212;&#8212;&#8212;&#8212;&#8211;<br />
# tnsnames.ora Network Configuration File: D:\oracle\product\10.2.0\tg_1\network\admin\tnsnames.ora<br />
# Generated by Oracle configuration tools.</span></p>
<p style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">EXTPROC_CONNECTION_DATA =<br />
(DESCRIPTION =<br />
(ADDRESS_LIST =<br />
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))<br />
)<br />
(CONNECT_DATA =<br />
(SID = PLSExtProc)<br />
(PRESENTATION = RO))<br />
)</span></p>
<p style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">tg4msql =<br />
(DESCRIPTION =<br />
(ADDRESS =<br />
(PROTOCOL = TCP) (HOST = JTIM-OTG) (PORT = 1234))<br />
(CONNECT_DATA =<br />
(SID = tg4msql))<br />
(HS=OK))<br />
# &#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p style="text-align: justify;">Simpan file tersebut, dan lakukan pengetesan koneksi OTG ini dari command prompt :</p>
<p style="text-align: justify;"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} p 	{mso-margin-top-alt:auto; 	margin-right:0cm; 	mso-margin-bottom-alt:auto; 	margin-left:0cm; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --></p>
<p><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --></p>
<p><!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">C:\&gt; <strong>tnsping tg4msql</strong></span></p>
<p style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 &#8211; Production on 03-MAR-2009 15:04:34<br />
Copyright (c) 1997, 2005, Oracle. All rights reserved.<br />
Used parameter files:<br />
D:\oracle\product\10.2.0\tg_1\network\admin\sqlnet.ora</span></p>
<p style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">Used TNSNAMES adapter to resolve the alias<br />
Attempting to contact (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=JTIM-OTG) (PORT=1234)) (CONNECT_DATA= (SID=tg4msql)) (HS=OK))<br />
OK (30 msec)</span></p>
<p style="text-align: justify;">Instalasi dan konfigurasi Oracle Transparent Gateway telah selesai dilakukan.</p>
<p style="text-align: justify;"><strong>Konfigurasi di Server Database</strong><br />
Di server oracle database, edit file tnsnames ora di folder $oracle_home/NETWORK/admin, dan <strong><span style="text-decoration: underline;">tambahkan</span></strong> parameter seperti di bawah ini :<br />
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">tg4msql =<br />
(DESCRIPTION =<br />
(ADDRESS =<br />
(PROTOCOL = TCP)<br />
(HOST = 192.168.1.2)<br />
(PORT = 1234))<br />
(CONNECT_DATA =<br />
(SID = tg4msql))<br />
(HS = OK))</span></p>
<p>Dan lakukan pengetesan koneksi server oracle database dengan komputer OTG dari command prompt, seperti contoh diatas seperti ini :</p>
<p style="text-align: justify;"><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">C:\&gt; <strong>tnsping tg4msql</strong></span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 &#8211; Production on 03-MAR-2009 15:29:25<br />
Copyright (c) 1997, 2005, Oracle.  All rights reserved.<br />
Used parameter files:<br />
C:\oracle\product\10.2.0\tg_1\network\admin\sqlnet.ora<br />
Used TNSNAMES adapter to resolve the alias<br />
Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.2)<br />
(PORT=1234)) (CONNECT_DATA=(SID=tg4msql)) (HS=OK))<br />
OK (30 msec)</span></p>
<p>Kemudian buat database link dari user schema yang ingin terkoneksi ke database sql server yaitu user scott dengan menggunakan nama dblink TESLINK :</p>
<p><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning /> <w:ValidateAgainstSchemas /> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables /> <w:SnapToGridInCell /> <w:WrapTextWithPunct /> <w:UseAsianBreakRules /> <w:DontGrowAutofit /> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--  /* Font Definitions */  @font-face 	{font-family:Tahoma; 	panose-1:2 11 6 4 3 5 4 4 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:1627421319 -2147483648 8 0 66047 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-parent:""; 	margin:0cm; 	margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:12.0pt; 	font-family:"Times New Roman"; 	mso-fareast-font-family:"Times New Roman";} @page Section1 	{size:612.0pt 792.0pt; 	margin:72.0pt 90.0pt 72.0pt 90.0pt; 	mso-header-margin:36.0pt; 	mso-footer-margin:36.0pt; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --><!--[if gte mso 10]> <mce:style><!   /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-parent:""; 	mso-padding-alt:0cm 5.4pt 0cm 5.4pt; 	mso-para-margin:0cm; 	mso-para-margin-bottom:.0001pt; 	mso-pagination:widow-orphan; 	font-size:10.0pt; 	font-family:"Times New Roman"; 	mso-ansi-language:#0400; 	mso-fareast-language:#0400; 	mso-bidi-language:#0400;} --> <!--[endif]--></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">C:\&gt; <strong>sqlplus scott/tiger@ORCL</strong></span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">SQL*Plus: Release 10.2.0.1.0 &#8211; Production on Tue Mar 3 16:29:00 2009<br />
Copyright (c) 1982, 2005, Oracle. All rights reserved.<br />
Connected to:<br />
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 &#8211; Production<br />
With the Partitioning, OLAP and Data Mining options</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">SQL&gt;<strong> create database link TESLINK connect to sa identified by sa using &#8216;TG4MSQL&#8217;;</strong></span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">Database link created.</span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">SQL&gt; <strong>select count(*) from orders@TESLINK;</strong></span></p>
<p class="MsoNormal" style="margin-left: 18pt;"><span style="font-size: 10pt; font-family: Tahoma; color: blue;">COUNT(*)<br />
&#8212;&#8212;&#8212;-<br />
830</span></p>
<p style="text-align: justify;">Implementasi koneksi Oracle Transparent Gateway dengan MS SQL Server telah berhasil.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masrony.com/2009/03/koneksi-oracle-transparent-gateway-dengan-ms-sql-server/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Oracle HSODBC dengan Database FoxPro</title>
		<link>http://www.masrony.com/2009/02/oracle-hsodbc-dengan-database-foxpro/</link>
		<comments>http://www.masrony.com/2009/02/oracle-hsodbc-dengan-database-foxpro/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:35:06 +0000</pubDate>
		<dc:creator>Mas Rony</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[hsodbc]]></category>

		<guid isPermaLink="false">http://www.masrony.com/?p=36</guid>
		<description><![CDATA[Artikel ini juga copas dari blog lama . Kalo nanya kenapanya baca disini
Koneksi database foxpro (DBF) dengan database oracle dengan menggunakan hsodbc..

Tentukan driver, path file, dan beri nama data sources database yang akan dibuat. Dalam case ini, kebetulan saya menggunakan database Foxpro DBF dan saya beri nama data sourcenya : FOX
Edit file inithsodbc.ora (case disini [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Artikel ini juga copas dari blog <a title="My old blog" href="http://masrony.wordpress.com/2008/08/22/connecting-external-database-oracle-using-hsobc/" target="_blank">lama</a> . Kalo nanya kenapanya baca <a title="Ngirit Bandwidth mode oN" href="http://www.masrony.com/2009/02/27/instal-oracle11g-di-centos-5/" target="_blank">disini</a></p>
<p style="text-align:justify;">Koneksi database foxpro (DBF) dengan database oracle dengan menggunakan hsodbc..</p>
<ul>
<li>Tentukan driver, path file, dan beri nama data sources database yang akan dibuat. Dalam case ini, kebetulan saya menggunakan database Foxpro DBF dan saya beri nama data sourcenya : FOX</li>
<li>Edit file inithsodbc.ora (case disini menggunakan odbc driver, apabila make oledb ya disesuaikan sendiri) di folder $ORACLE_HOME\hs\admin, dan sesuaikan isinya seperti dibawah ini :</li>
</ul>
<pre style="padding-left:60px;"># This is a sample agent init file that contains the HS parameters that are
# needed for an ODBC Agent.
#
# HS init parameters
#
<span style="color:#008000;"><strong>HS_FDS_CONNECT_INFO = FOX
HS_FDS_TRACE_LEVEL = OFF</strong></span>
#
# Environment variables required for the non-Oracle system
#
#set &lt;envvar&gt;=&lt;value&gt;</pre>
<ul>
<li>Edit file listener.ora di folder $ORACLE_HOME\NETWORK\ADMIN, dan tambahkan hsodbc parameter seperti dibawah ini :</li>
<p><span id="more-36"></span></ul>
<pre style="padding-left:60px;">LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = SYSADMIN )(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.2.0)
      (PROGRAM = extproc)
    )
<span style="color:#008000;"><strong>    (SID_DESC =
      (SID_NAME = HSODBC)
      (ORACLE_HOME = D:\oracle\product\10.2.0)
      (PROGRAM = HSODBC)</strong></span>
    )
 )</pre>
<ul>
<li>Restart listener oracle terlebih dahulu, dan pastikan tidak ada masalah dengan listener yang baru saja dimodifikasi</li>
<li>Edit file tnsnames.ora di folder $ORACLE_HOME\NETWORK\ADMIN, dan tambahkan hsodbc parameter seperti dibawah ini :</li>
</ul>
<pre style="padding-left:90px;"><span style="color:#008000;"><strong>HSODBC =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SID = HSODBC)
    )
    (HS = OK)
  )
</strong></span>
RONY =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sysadmin)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = RONY)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )</pre>
<ul>
<li>Login ke oracle dan disesuaikan dengan schema user oracle yang ingin dikoneksikan ke foxpro, dan buat database link ke external database tersebut :</li>
</ul>
<pre style="padding-left:60px;">create database link "COBA" using 'HSODBC';</pre>
<ul>
<li>Setelah database link selesai dibuat, tes koneksi database link tersebut :</li>
</ul>
<pre style="padding-left:60px;">Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options</pre>
<pre style="padding-left:60px;">SQL&gt; select count(*) from data@COBA;</pre>
<pre style="padding-left:60px;">  COUNT(*)</pre>
<pre style="padding-left:60px;">----------</pre>
<pre style="padding-left:60px;">     46604</pre>
<pre style="padding-left:60px;">SQL&gt;</pre>
<p>Suksesssss&#8230;&#8230;&#8230;. silahkan dicoba menggunakan eksternal data yang lain seperti excel, access, maupun SQL. Selamat mencoba&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masrony.com/2009/02/oracle-hsodbc-dengan-database-foxpro/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Instal Oracle11g di Centos 5</title>
		<link>http://www.masrony.com/2009/02/instal-oracle11g-di-centos-5/</link>
		<comments>http://www.masrony.com/2009/02/instal-oracle11g-di-centos-5/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 08:22:37 +0000</pubDate>
		<dc:creator>Mas Rony</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://www.masrony.com/?p=33</guid>
		<description><![CDATA[Copas dari blog lama daripada kalo pas butuh loadingnya lama, maklum speedy. Saya pindah kesini karena saya tidak ingin import seluruhnya tapi hanya sebagian saja. DAN alasan satu lagi : saya tidak tahu caranya gimana kalo cuma sebagian ajah hehe..
 1. Package yang dibutuhkan :
Setelah trial mengenai paket-paket software yang dibutuhkan, akhirnya bisa ditarik kesimpulan [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Copas dari blog <a title="My old blog" href="http://masrony.wordpress.com/2007/09/27/installing-oracle11g-on-centos-5-server/" target="_blank">lama</a> daripada kalo pas butuh loadingnya lama, maklum speedy. Saya pindah kesini karena saya tidak ingin import seluruhnya tapi hanya sebagian saja. DAN alasan satu lagi : saya tidak tahu caranya gimana kalo cuma sebagian ajah hehe..</p>
<p align="justify"><span style="text-decoration: underline;"><strong> 1. Package yang dibutuhkan :</strong></span></p>
<p>Setelah trial mengenai paket-paket software yang dibutuhkan, akhirnya bisa ditarik kesimpulan mengenai paket apa saja yang diperlukan untuk instalasi Oracle 11g di Centos 5, yaitu :<br />
binutils-2.17.50.0.6<br />
elfutils-libelf-devel-0.125<br />
package glibc-2<br />
glibc-common-2.5-12<br />
libaio-0.3.106-3.2<br />
libgcc-4.1.1-52.el5<br />
libstdc++-devel-4.1.1<br />
make-3.81-1.1<br />
compat-libstdcc++<br />
elfutils-libelf-devel-0.125-3.el5<br />
glibc-devel-2.5-12<br />
gcc-4.1.1-52.el5<br />
gcc-c++-4.1.1-52.el5<br />
libaio-devel-0.3.106<br />
unixODBC-2.2.11-7.1<br />
unixODBC-devel<br />
sysstat-7.0.0-3.el5</p>
<p>Untuk mengetahui paket tersebut sudah diinstall apa belum silahkan diperiksa seperti contoh  dibawah ini :<br />
<span id="more-33"></span></p>
<blockquote><p><span style="color:#333399;">[root@rac1 ~]# rpm -q binutils-2 elfutils-libelf glibc-2 glibc-common \<br />
libaio libgcc libstdc make compat-libstdcc++ elfutils-libelf-devel \<br />
glibc-devel gcc gcc-c++ libaio-devel libstdc++-devel unixODBC \<br />
unixODBC-devel sysstat</span></p></blockquote>
<p>Kurang lebihnya kalo mau melengkapi paket yang ada bisa dicek di CD instalasi CentOS Enterprise Linux 5 :</p>
<p># Dari CD CentOS Enterprise Linux 5 Disk 1</p>
<blockquote><p><span style="color:#333399;"> mount -t iso9660 /dev/cdrom /media<br />
rpm -Uvh binutils-2.*<br />
rpm -Uvh elfutils-libelf-0.*<br />
rpm -Uvh glibc-2.*<br />
rpm -Uvh glibc-common-2.*<br />
rpm -Uvh libaio-0.*<br />
rpm -Uvh libgcc-4.*<br />
rpm -Uvh libstdc++-4.*<br />
rpm -Uvh make-3.*<br />
cd /<br />
eject</span></p></blockquote>
<p># Dari CD CentOS Enterprise Linux 5 Disk 2</p>
<blockquote><p><span style="color:#333399;"> mount -t iso9660 /dev/cdrom /media<br />
rpm -Uvh elfutils-libelf-devel-0.*<br />
rpm -Uvh glibc-devel-2.*<br />
rpm -Uvh gcc-4.*<br />
rpm -Uvh gcc-c++-4.*<br />
rpm -Uvh libaio-devel-0.*<br />
rpm -Uvh libstdc++-devel-4.*<br />
rpm -Uvh unixODBC-2.*<br />
rpm -Uvh unixODBC-devel-2.*<br />
cd /<br />
eject</span></p></blockquote>
<p># Dari CD CentOS Enterprise Linux 5 Disk 3</p>
<blockquote><p><span style="color:#333399;"> mount -t iso9660 /dev/cdrom /media<br />
rpm -Uvh compat-libstdc++-33*<br />
rpm -Uvh sysstat-7.*<br />
cd /<br />
eject</span></p></blockquote>
<p align="justify"><span style="text-decoration: underline;"><strong>2. Checking Temporary Space</strong></span></p>
<p>Instalasi Oracle 11g ini membutuhkan hampir 400 MB space temporary (klaim dari <a class="border" title="Oracle Website" href="http://wwww.oracle.com">oracle</a> hanya membutuhkan 80 MB), sehingga akan lebih baik kalau kita melakukan pengecekan terlebih dahulu.</p>
<blockquote><p><span style="color:#333399;">[root@rac1 mess]# df /tmp<br />
Filesystem           1K-blocks      Used Available Use% Mounted on<br />
/dev/sda2             12176796   5041252   6507004  44% /<br />
[root@rac1 mess]#</span></p></blockquote>
<p>Dari contoh diatas bisa dilihat free spacenya masih mencukupi. Tapi apabila space /tmp di system anda kurang dari 400 MB, untuk sementara bisa dialihkan ke file system yang lain. Caranya :</p>
<blockquote><p><span style="color:#333399;">su &#8211; root</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">mkdir /[filesystemlain]/tmp</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">chown root.root /[filesystemlain]/tmp</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">chmod 1777 /[[filesystemlain]/tmp</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">export TEMP=/[filesystemlain] </span><span style="color:#333399;"><br />
</span><span style="color:#333399;">export TMPDIR=/[filesystemlain]</span></p></blockquote>
<p>Tanda [] tidak ditulis, dan apabila instalasi oracle11g sudah selesai, shutdown instance oracle database, dan hapus tmp tersebut.</p>
<blockquote><p><span style="color:#333399;">su &#8211; root<br />
rmdir /[filesystemlain]/tmp<br />
unset TEMP<br />
unset TMPDIR</span><span style="color:#333399;"><br />
</span></p></blockquote>
<p align="justify"><span style="text-decoration: underline;"><strong>3. User Group Oracle</strong></span></p>
<p>Untuk instalasi oracle ini perlu kiranya kita buatkan satu group dan user tersendiri. Buat group user dengan namanya oinstall, dba, oper, asmadmin. Group asmadmin tidak diperlukan apabila tidak menggunakan asm sbg system filenya.</p>
<blockquote><p><span style="color:#333399;">[mess@rac1 ~]$ su root<br />
Password:<br />
[root@rac1 mess]# groupadd oinstall<br />
[root@rac1 mess]# groupadd dba<br />
[root@rac1 mess]# groupadd oper<br />
[root@rac1 mess]# groupadd asmadmin</span></p></blockquote>
<p>Kemudian buat user oracle :</p>
<blockquote><p><span style="color:#333399;">[root@rac1 mess]# useradd -g oinstall -G dba,oper,asmadmin oracle<br />
[root@rac1 mess]# passwd oracle<br />
Changing password for user oracle.<br />
New UNIX password:<br />
Retype new UNIX password:<br />
passwd: all authentication tokens updated successfully.</span></p></blockquote>
<p>Tentukan folder instalasi oracle dan kepemilikannya, disini penulis terbiasa utk intalasi software tambahan ditempatkan di folder /opt</p>
<blockquote><p><span style="color:#333399;">[root@rac1 mess]# mkdir -p /opt/app/oracle/product/11.1.0/db_1</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">[root@rac1 mess]# chown -R oracle:oinstall /opt</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">[root@rac1 mess]# chmod -R 775 /opt</span></p></blockquote>
<p>Kemudian login sebagai user oracle, dan ubah profile user untuk instalasi oracle di /home/oracle/.bash_profile :</p>
<blockquote><p><span style="color:#333399;"># Oracle Settings<br />
TMP=/tmp; export TMP<br />
TMPDIR=$TMP; export TMPDIRORACLE_HOSTNAME=oel45.localdomain<br />
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE<br />
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME<br />
ORACLE_SID=billap; export ORACLE_SID<br />
ORACLE_TERM=xterm; export ORACLE_TERM<br />
PATH=/usr/sbin:$PATH; export PATH<br />
PATH=$ORACLE_HOME/bin:$PATH; export PATH<br />
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH<br />
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH</span></p>
<p>if [ $USER = "oracle" ]; then<br />
if [ $SHELL = "/bin/ksh" ]; then<br />
ulimit -p 16384<br />
ulimit -n 65536<br />
else<br />
ulimit -u 16384 -n 65536<br />
fi<br />
fi</p></blockquote>
<p align="justify"><span style="text-decoration: underline;"><strong>4. Setting Kernel dan Profile Parameter</strong></span></p>
<p>- Host File<br />
Host file harus mempunyai FQDN atau Fully Qualified Domain Name (maaf sebelumnya kalo singkatannya salah, soalnya nggak hapal) yang lengkap. Seperti contoh dibawah ini :</p>
<blockquote><p><span style="color:#333399;">[root@rac1 mess]# cat /etc/hosts</span><span style="color:#333399;"><br />
</span><span style="color:#333399;"># Do not remove the following line, or various programs</span><span style="color:#333399;"><br />
</span><span style="color:#333399;"># that require network functionality will fail.</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">127.0.0.1       localhost.localdomain   localhost</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">192.168.1.11  rac1.cmsmalang.org      rac1</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">[root@rac1 mess]#</span></p></blockquote>
<p>- Kernel Parameter<br />
Tambahkan parameter di file /etc/sysctl.conf :</p>
<blockquote><p><span style="color:#333399;">[root@rac1 mess]# vi /etc/sysctl.conf</span></p></blockquote>
<p>seperti gambar di bawah ini :</p>
<p style="text-align:center;"><img style="border: 0pt solid black; height: 250px;" src="http://altelindo-jatim.org/e107_images/upload/oracle11g/0.profile.jpg" alt="" /></p>
<p>Parameter ini merupakan parameter kernel yang direkomendasikan oleh Oracle. Apabila anda menggunakan server dengan hardware yang baik, usahakan tidak merubah konfigurasi yang sudah ada. Tambahkan parameter yang belum ada, dg parameter :</p>
<blockquote><p><span style="color:#800000;"><span style="color:#333399;">kernel.shmall = 2097152<br />
kernel.shmmax = 2147483648 # Setengah dari jumlah memory<br />
kernel.shmmni = 4096<br />
kernel.sem = 250 32000 100 128<br />
fs.file-max = 65536 # 512 * PROCESSES<br />
net.ipv4.ip_local_port_range = 1024 65000<br />
net.core.rmem_default=4194304<br />
net.core.rmem_max=4194304<br />
net.core.wmem_default=262144<br />
net.core.wmem_max=262144</span><br />
</span></p></blockquote>
<p>Kemudian tambahkan parameter di file /etc/security/limits.conf dengan data :</p>
<blockquote><p><span style="color:#333399;">oracle       soft    nproc  2047</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">oracle       hard   nproc  16384</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">oracle       soft    nofile  1024</span><span style="color:#333399;"><br />
</span><span style="color:#333399;">oracle       hard   nofile  65536</span></p></blockquote>
<p>Cek juga pada file /etc/pam.d/login, tambahkan parameter :</p>
<blockquote><p><span style="color:#333399;">session    required     /lib/security/pam_limits.so<br />
session    required     pam_limits.so</span></p></blockquote>
<p>Untuk memastikan SELINUX sudah dinon-aktifkan silahkan lihat file /etc/selinux/config dan pastikan entry-nya disable :</p>
<blockquote><p><span style="color:#333399;">SELINUX=disabled</span></p></blockquote>
<p align="justify"><span style="text-decoration: underline;"><strong>5. Install Oracle</strong></span></p>
<p>Dalam langkah instalasi ke-5 ini, akan dibuatkan link ke gambar instalasi. Hal ini dimaksudkan untuk memperkecil bandwidth yang diperlukan. Jadi apabila anda ingin melihat gambar instalasi silahkan klik link masing-masing langkah instalasi dibawah ini.<br />
Setelah dowload oracle11g selesai silahkan extract file instalasinya, penulis sarankan dicopy ke folder /opt/source/database, karena folder tersebut kepemilikannya dibawah user oracle.</p>
<p><span class="border">- Welcome Screen :</span><br />
Jalankan runInstaller seperti contoh di bawah :<span style="color:#333399;"><br />
</span></p>
<blockquote><p><span style="color:#333399;">[root@rac1 mess]# /opt/source/database/./runInstaller</span></p></blockquote>
<p>maka akan tampak welcome screen, dan pilihlah mode Advanced Instalation</p>
<p>- Specify Inventory Directory and Credential<br />
Pada bagian dibiarkan saja dan klik Next</p>
<p>- Installaton Type :<br />
Enterprise, Standart, Custom. Silahkan pilih Enterprise dan kemudian klik Next</p>
<p>- Install Location<br />
Pada menu ini sudah diset berdasar ORACLE_HOME pada profile user, tekan Next</p>
<p>- Product Specific Prerequisite Check<br />
Menu ini melakukan pengecekan dependency dan hardware. Pastikan setiap bagiannya passed, dan kemudian tekan Next</p>
<p>- Select Configuration Option<br />
Pilih opsi yang ingin anda gunakan kemudian tekan Next</p>
<p>- Select Database Configuration<br />
Ada 3 pilihan, General Purpose, Data Warehouse, Advanced. Kemudian tekan Next</p>
<p>- Select Database Configuration Option<br />
Bagian ini menentukan nama instance database dan system identifier oracle (SID). Jangan merubah konfigurasi ini karena nama database dan SID sudah ditentukan dari profile user oracle. Tekan Next apabila sudah selesai</p>
<p>- Specify Database Config Detail<br />
Anda bisa merubah setting memory, character sets, security, dan sample database (HR Schema) pada bagian ini. Kemudian tekan Next</p>
<p>- Select Database Management option<br />
Bagian ini digunakan untuk menentukan grid control database management apabila anda menggunakan system RAC, dan email notification. Karena tutor ini menggunakan storage file system, maka biarkan saja seperti pada gambar dan kemudian tekan Next</p>
<p>- Specify Database Storage Option<br />
Pilih file system dan kemudian tekan Next</p>
<p>- Specify Backup and Recovery Option<br />
Apabila anda ingin menggunakan flash recovery area jangan lupa untuk mengisi user/pass yang mempunyai priviledge jobs credential yaitu oracle, kemudian tekan Next</p>
<p>- Specify Database Schema Password<br />
Ada dua pilihan, password per schema maupun single password, isikan password dan kemudian tekan Next</p>
<p>- Oracle Configuration Manager Registration<br />
Apabila anda tidak mempunyai user metalink Oracle, silahkan langsung tekan Next</p>
<p>- Summary Installation<br />
Hasil konfigurasi yang anda pilih , ready to install, silahkan tekan Install</p>
<p>- Installation In Progress<br />
Pada bagian ini yang anda perlukan adalah sebungkus rokok dan segelas kopi <img src='http://www.masrony.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Apabila anda tidak merokok, belajarlah mulai merokok, karena rokok dapat menyebabkan devisa negara bertambah</p>
<p>- Configuration Assistants<br />
Pada bagian ini harap diperhatikan tempat log-log instalasi maupun setting database anda.</p>
<p>- Database Configuration Assistant<br />
Kopi dan paste semua bagian pada bagian ini. Catat juga nama hostname maupun port untuk mengakses EM (Enterprise Manager)</p>
<p>- Execute Configuration Script<br />
Masuk ke terminal dan eksekusi kedua script tersebut dengan user root</p>
<blockquote><p><span style="color:#333399;">[oracle@rac1 ~]$ su root<br />
Password:<br />
[root@rac1 oracle]# /opt/app/oraInventory/./oraInstRoot.sh<br />
[root@rac1 oracle]# /opt/app/oracle/product/11.1.0/db_1/./root.sh</span></p></blockquote>
<p>Kemudian kembali oracle installation menu dan tekan OK</p>
<p>- End of Installation<br />
Sampai disini instalasi yang anda lakukan sudah selesai, silahkan tekan exit</p>
<p><span style="text-decoration: underline;"><strong>6. Post Installation</strong></span><br />
Login sebagai root dan edit file /etc/oratab. Anda akan menemukan entri seperti dibawah ini :<br />
<em> billap:/opt/app/oracle/product/11.1.0/db_1:<strong>Y</strong></em><br />
pada bagian akhir ubah nilai N menjadi Y, dan simpan perubahan tersebut. Sampai disini instalasi yang anda lakukan sudah selesai. Silahkan anda cek listener, database maupun enterprise manager-nya.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masrony.com/2009/02/instal-oracle11g-di-centos-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
