1.- Paso
apt-get install libaio1
2.- Paso
apt-get install alien
3.- Paso
root@WebServerDeb6:~# alien oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm oracle-instantclient11.2-basic_11.2.0.3.0-2_amd64.deb generated
root@WebServerDeb6:~# alien oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm oracle-instantclient11.2-devel_11.2.0.3.0-2_amd64.deb generated
root@WebServerDeb6:~# alien oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm oracle-instantclient11.2-sqlplus_11.2.0.3.0-2_amd64.deb generated
4.- Paso
dpkg -i oracle-instantclient11.2-basic_11.2.0.3.0-2_amd64.deb
dpkg -i oracle-instantclient11.2-devel_11.2.0.3.0-2_amd64.deb
dpkg -i oracle-instantclient11.2-sqlplus_11.2.0.3.0-2_amd64.deb
5.- Paso
mkdir /etc/oracle
nano /etc/oracle/tnsnames.ora
NOMBRE_MAQUINA.DOMINIO.COM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.10)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORCL)
)
)
hoja14.tudominio.com.ar =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.48.14 )(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PROD)
)
)
aps1.tudominio.com.ar =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.160.42)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID=SGS)
)
)
6.- Paso
nano /root/.bashrc
export TNS_ADMIN=/etc/oracle
export SQLPATH=/usr/lib/oracle/11.2/client64/bin
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib:$LD_LIBRARY_PATH
export PATH=$PATH:$SQLPATH
7.- Paso
pecl install oci8
shared,instantclient,/usr/lib/oracle/11.2/client64/lib/
echo extension=oci8.so >> /etc/php5/apache2/php.ini
8.- Paso
service apache2 reload
No hay comentarios:
Publicar un comentario