Oracle module for PHP in Linux - php

Is there any method for direct access to remotely hosted Oracle Database without installing oracle in my computer.
I already had the host name, database name, username and password of the remotely hosted Oracle database. I am using Red Hat Enterprise Linux Server release 5 (Tikanga) and no Oracle yet install.
Your help would be precious.
Thank you in advance

You just need to install the oci8 PHP extension, see here for a tutorial.

Related

As I connect APP OpenShift php with MSSQL remote?

I would like to know how to compile mssql in php5.4 of Openshift? I've heard of freetds, but really I'm a bit of a novice with this and have not managed to make it work.
I want to connect to a remote server from my application MSSQL OpenShift php.
you can with a rhc code or install a DIY cartridge?
please help
OpenShift Online does not currently have any of the modules that you would need to connect to MSSQL installed. You have a couple of options:
Visit https://openshift.uservoice.com and add a suggestion for installing modules that would enable you to connect to a remote MSSQL server from the PHP cartridges.
Write an API in front of the MSSQL database that enables you to interact with it in the way that you need to. Maybe using another hosting provider that has the MSSQL extensions installed or a windows hosting provider,etc

How can I use PHP to connect to ODBC to DB2 on Windows 2003?

My old server:
- Windows 2003 Server
- IBM DB2 UDB Version 8.1
- ODBC: User DSN:
There is a .NET webapps connect to MYDB using ODBC, it is good now.
But Windows 2003 is end of support from Microsoft on this month. So, I want to move from it.
The problem: I don't know .NET at all. The current .NET webapps was closed source and I cannot contact to provider company (it was defunct).
I want to get all tables from DB2 from PHP (running in my Ubuntu 14.04 desktop). I like to use PDO ODBC to connect. But it seems to be over my skills. My desktop is on the same subnet LAN with Windows 2003 server (ping to and from is OK), telnet server2003 ip port 5000 is OK.
I am stuck after install ODBC, config something in my desktop... Nothing works.
Who helps me? Every help is appreciated. There are no words to show my appreciation!
In addition to configuring and troubleshooting PHP access to DB2 via PDO ODBC, you will also need to migrate your DB2 8.1 server and clients, if any, to a newer DB2 release level (IBM ended support for DB2 UDB 8.1 back in May 2009). Fortunately, IBM now offers a no-cost version of DB2 called Express-C, which is authorized for production use. The current release, DB2 Express-C 10.5 Fix Pack 5, can accommodate databases up to 15 terabytes in size.
If it turns out that your company has an active DB2 license available for your application, then forget about Express-C and install whatever DB2 server edition is covered by your license.
To move your data out of DB2 UDB 8.1, you'll need to export the contents of each table to a separate file and import them into the new database. The db2move utility can assist with this process by iterating through all the tables in your database, saving you from typing all those EXPORT statements yourself.
Once your DB2 data is migrated to a new database, you can install a DB2 client on your Linux PHP server and test your connectivity. To keep the file size down, IBM offers a variety of DB2 client downloads, which can add some confusion as to which one you need. For ODBC and PHP applications, you should download the IBM Data Server Driver Package or, to be safe, the larger IBM Data Server Client which contains all the drivers and client libraries. Be sure that the client you download is the same version and Fix Pack level as your DB2 server (e.g. 10.5 Fix Pack 5).
IBM's online documentation and the PHP manual have a bit of information about connecting PHP applications to DB2.

XAMPP PDO Oracle, Cant make it work together

i want to make connection of PDO to oracle database.
i tried all day to set it up, i am using xampp, installed latest version of xampp.
i tried to follow this guide: Installing PHP and the Oracle Instant Client for Linux and Windows
Also have tried to follow this guide: Activate Oracle on XAMPP for Windows : OCI8
Please anyone help me guide me to the right direction. I am stucked and it is a must to do job, cuz all my work relies on it.
the server i want to deploy my file, runs on oracle database, thats why i want to tryout the oracle in my local PC.

Connect to Oracle8i from PHP

I am building a web application on a Ubuntu Server 13.10 running Apache and PHP to connect to a RHEL production server on our LAN running Oracle8i (Oracle8i Enterprise Edition Release 8.1.7.4.0).
I have only connected to MySQL in the past so Oracle is a bit of a learning curve PHP wise. I have searched online but have found contradicting articles so looking for some feedback on any prerequisites required to be able to connect PHP to the Oracle server.
For MySQL it was as simple as installing the php5-mysql package and using mysqli_connect(ip,user,password,db); to connect. Are there PHP packages required for Oracle? Some sites mention a tsnames.ora file and others don't, and other sites are aimed towards newer Oracle versions (upgrading Oracle is not an option).
I am basically looking for some quick start tips on how to even get connected to the Oracle server.
Oracle uses the php5-oci8 package to enable the PHP Oracle connections. It should be just as simple to install that package and get it working.
Here's a helpful page on how to do that within Ubuntu.

Mysqli and OCI8 activation on Redhat Linux

I am a novice developer in web, and I have the following situation:
One of my customers wants to 'activate' php extensions for mysqli and oracle (oci8) on a Redhat Linux server.
The actual goal would be to be able to communicate (connect) with a remote Oracle database , which is located on a remote Unix server.
What do I have to do in order to implement those requirements?
Also note that any actions have to be available for command line, since I only have remote access to the Redhat server.
Thank you in advance.
p.s:
The Redhat server already has the following installed:
Oracle 10g.2
php 5.1.6
Apache 2.2.3

Categories