<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Install_Oracle_client_on_Ubuntu</id>
	<title>Install Oracle client on Ubuntu - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Install_Oracle_client_on_Ubuntu"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Install_Oracle_client_on_Ubuntu&amp;action=history"/>
	<updated>2026-07-21T03:50:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Install_Oracle_client_on_Ubuntu&amp;diff=70&amp;oldid=prev</id>
		<title>78.45.88.190: Oracle client on Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Install_Oracle_client_on_Ubuntu&amp;diff=70&amp;oldid=prev"/>
		<updated>2017-05-26T15:39:00Z</updated>

		<summary type="html">&lt;p&gt;Oracle client on Ubuntu&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Go to: http://www.oracle.com/technetwork/database/features/instant-client/index.html&lt;br /&gt;
&lt;br /&gt;
* Scroll to Downloads and click on: Instant Client for Linux x86-64&lt;br /&gt;
&lt;br /&gt;
* Accept the license agreement and find the x64.rpm files containing the following string:&lt;br /&gt;
** basic&lt;br /&gt;
** sqlplus&lt;br /&gt;
** devel&lt;br /&gt;
&lt;br /&gt;
* Install the rpm to deb conversion tool:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;apt-get install alien&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* install the 3 packages in the following order:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;alien -i oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;alien -i oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* The above file names will vary according to the version. The alien tool will generate and save the respective .deb file and install the package&lt;br /&gt;
&lt;br /&gt;
* Install the required library:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;apt-get install libaio1&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Add the oracle client library to linker path:&lt;br /&gt;
&lt;br /&gt;
* Find the path for the Oracle libraries. It should be in /usr/lib/oracle/12.1/client&lt;br /&gt;
&lt;br /&gt;
You are looking for a lib folder inside.&lt;br /&gt;
&lt;br /&gt;
* create (or edit) the file /etc/ld.so.conf.d/oracle.conf&lt;br /&gt;
&lt;br /&gt;
* Add the folder you found to the above file&lt;br /&gt;
&lt;br /&gt;
* refresh the library paths:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ldconfig&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* run the client and attempt to connect to the database:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;sqlplus username/password@//dbhost:1521/SID&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Install the required package - OCI8 for PHP:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;apt-get install pear php7.0-dev&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* Attempt to install the PHP extension:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;pecl install oci8&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The install script will autodetect the oracle client path&lt;br /&gt;
&lt;br /&gt;
* Add the extension=oci8.so line to your /etc/php/7.0/fpm/php.ini file&lt;br /&gt;
&lt;br /&gt;
* Restart the FPM service:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;service php7.0-fpm restart&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>78.45.88.190</name></author>
	</entry>
</feed>