This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

Step by Step procedure to Configure Xampp & Oracle 9i

VN:F [1.8.3_1051]
Rating: 3.0/10 (2 votes cast)

Install Oracle9i on a Remote Server (Installation of oracle 9i)
Install XAMPP for windows version 1.6.8 (Installation of Xampp for windows is discussed here)
Install Oracle Client 10g

Using oci module for connecting PHP & Oracle
Edit php.ini file, the path to this file is shown in phpinfo page under Loaded Configuration File
Uncomment the line shown below..

;extension=php_oci8.dll
(just remove the semicolon to uncomment the line)
Save the file
Restart Apache Tomcat
Check the phpinfo page, If all goes good u should be able to see the oci details under OCI8

Connect to your database using the php code as shown below

// try connecting to the database
$conn = oci_connect(’scott’,

‘tiger’,’(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.136.7.8)(PORT=1521))

(CONNECT_DATA=(SERVER=DEDICATED) (SERVICE_NAME = oracle9.itiltd.com)))’);
// check for any errors
if (!$conn)
{
$e = oci_error();
print htmlentities($e['message']);
exit;
}

// else there weren’t any errors
else
{
echo ‘Connection To Oracle DB Success.’;
}

?>

REMARKS: I’ve tried erlier with Oracle Client 9i. It didn’t workout & was showing error as unable to find php_oci.dll in apache error logs, so i switched to Oracle Client 10g & its working fine.

VN:F [1.8.3_1051]
Rating: 0 (from 0 votes)
Step by Step procedure to Configure Xampp & Oracle 9i3.0102
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Add to favorites
  • BarraPunto
  • Bitacoras.com
  • BlinkList
  • blogmarks
  • blogtercimlap
  • connotea
  • Current
  • Design Float
  • Diggita
  • Diigo
  • DotNetKicks
  • DZone
  • eKudos
  • Fark
  • Blogosphere News
  • email
  • Faves
  • Fleck
  • FriendFeed
  • FSDaily
  • Global Grind

Leave a Reply

You must be logged in to post a comment.