473,728 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connect php to oracle

52 New Member
Hi,
How do we connect a Oracle Remote server using php. Can we pass hostname,port,d b,username,pass word into the oci_connect() function?
As per oci_connect() syntax is seems to be not possible , is there any way to connect remote oracle server?
Thanks
Nov 20 '08 #1
15 10107
r035198x
13,262 MVP
Have a look at the oracle instant client.
Nov 20 '08 #2
naveenkongati
52 New Member
Have a look at the oracle instant client.
Yes I am trying through it but not yet become success. If you have any stuff to work with instant client please refer the url.

Thanks
Nov 21 '08 #3
r035198x
13,262 MVP
Did you try
http://www.oracle.com/technology/pub/notes/technote_php_in stant.html
Nov 21 '08 #4
naveenkongati
52 New Member
Did you try
http://www.oracle.com/technology/pub/notes/technote_php_in stant.html
No i have not come across this , i will workout on this and get back to you .
Thank You
Nov 21 '08 #5
naveenkongati
52 New Member
Did you try
http://www.oracle.com/technology/pub/notes/technote_php_in stant.html
Thank You Very much Now i am able to connect Remote Oracle Server and able to handle data.
Nov 21 '08 #6
r035198x
13,262 MVP
That's good news. Good luck with the rest of it.
Nov 21 '08 #7
naveenkongati
52 New Member
Hi,
I have connected my Remote Oracle Server through Oracle Instance Client, every thing was going fine. But now i am facing a serious problem like " I am getting same output in three different queries". Each query is fetching data from different oracle views. I am using three different php files for each query.

Even i have used oci_new_connect () in each php file for establishing a new connection but no use.
I am also using oci_parse(),oci _execute() to create a statement and execute statements.
At the end i am also using oci_free_statem ent(),oci_close () functions to free the result set as well as close the connection.
Finally i am trying to include three php files in a single php file to display the output and find "same output from three different files is being displayed".

I have tried by best and unable to find where the things are going wrong.
Please have a look at this and suggest me to resolve this problem.
Thank You
Nov 25 '08 #8
naveenkongati
52 New Member
Hi,
This is in addition to my previous reply i have noticed one thing while investigating the case again "First Statement's result is being appended to the next statement and First and Second Statement's result being appended to the third statement. So any is there any solution to flush memory to avoid this while executing multiple statement's in php.
Thanks
Nov 25 '08 #9
r035198x
13,262 MVP
Would be very useful if you post the code you are using.
Nov 25 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2771
by: Yanick Quirion | last post by:
Hi all, I'm trying to find a simple code to connect to an Oracle Database (9i) with C under linux. I have a script that read a form from the web and I want to access my Oracle database with this form. I'm looking for something easier to compile. I already found something to connect to an Oracle Database, but it use g++ and not cpp, and the second
2
2115
by: baumann.Pan | last post by:
Dear all , how can I connect to oracle database in C language under linux? thanks in advance
3
4836
by: youbay2001 | last post by:
plz can any body tell me how to make the connect between oracle developer forms 6i with mysql thank for you ,
1
4435
by: minhnguyen19 | last post by:
I use Oracle 9i release 9.0.1.1 I want to connect Oracle with C# by OCI, but I can't add reference to using OCI.dll? What should I do???
1
2682
by: gobirahul | last post by:
Hi Freinds, please, let me know if u have any idea How Can connect Oracle DB to Microsoft Access???? i have the oracle DB but want get this tables in Microsoft Access. Its urgent....
4
1348
karan8985
by: karan8985 | last post by:
i can not connect the windows services with oracle. i did check all the privilages of oracle and NTFS permissions also ..but still i cant connect please give me solution, thanks in advance. from :- karan.ahuja
2
1869
by: dounax | last post by:
Hello, I want to connect to an Oracle 9.2 database from a web site. - I have created a DSN file, I access the database from Excel - I have written the following vbScript, that works: dim rs Dim connString Dim conn
1
1431
by: sindhujanan | last post by:
hai, anyone plz tell the code to connect oracle using database
3
6444
by: techquest | last post by:
Hi, I want to connect into oracle database and export the table data into a flat file using UNIX shell scripts. I cant use other GUI tools to do this, as the dataload will be in millions. hence if i try to export from toad/sqlplus its hanging. And also i need to some validation using UNIX. So please give me some tip to write a script which does this operation. Req: 1) Connect oracle 2) Select * from employee 3) Write into some flat...
1
6676
by: kprawin | last post by:
I've developed web applications using php and MySQL. Currently I wish to migrate towards oracle. And I need the steps to connect Oracle10g with PHP. Since Im new to oracle please provide sample code too (if possible ).. Thank u...
0
8897
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8756
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9416
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9270
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9194
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8123
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6012
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2159
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.