installing sqlplus in opensuse
TRANSCRIPT
SQL*Plus + OpenSuse
SQL*Plus+OpenSuseTo install SQL*Plus we must go to the Oracle website and download two files:
- Instant Client Package Basic
- Instant Client Package SQL*Plus
Just simply go to:Oracle Instant Client Download
and select the the Linux option (X86 or X86_X64).
SQL*Plus+OpenSuse
The select download the following rpm packges:
- oracle-instantclient*-basic-*.rpm
- oracle-instantclient*-sqlplus-*.rpm
After downloading the files you must install the *.rpm packages. You can double click in the file to install it using your package management system or you can install it from the command line (rpm -ivh rpm_package_name.rpm).
SQL*Plus+OpenSuse
If you use a Debian based system you can use a tool called alien to convert *.rpm to *.deb .
First of all install alien:
Then you can convert the rpm packages with the following command:
SQL*Plus+OpenSuse
After installing the packages we must do some tweaks in order to run sql*plus.
Let's open the .bashrc of you account:
And put the following:
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib
#SQL PLUS CONFIG FILE
export TNS_ADMIN=~
SQL*Plus+OpenSuse
Now install the Linux Kernel AIO access library with the following command:
In a Debian based system type:
Finally create tnsnames.ora (a configuration file that defines databases addresses for establishing connections to them) with the command:
SQL*Plus+OpenSuse
Open the file and insert your databases addresses configurations. (gedit ~/tnsnames.ora).
tnsnames.ora eg:
ORA11 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = ORA11)
)
)
SQL*Plus+OpenSuse
..:: Filipe Batista - 2010 ::..filipebatista.bitdoo.com