Instant Client & Oracle 9i
Hello,
may be the wrong forum to ask this question.
Can anyone tell me that can I connect to Oracle10g database with Oracle 9i client.... if yes, from wherei can download it.
second, can instant client only works with 10g Database.
regards
Tabs,
Yes, it is possible to connect to the Oracle 10g database using an Oracle 9i Client. You can download a client from the otn.oracle.com site, under downloads for databases. There should be a client CD available for your version and platform. However, why not use the 10g client?
Also, Instant Client is a client that is only available for 10g. However, that does NOT mean it can ONLY connect with the 10g database. It can connect with databases back to 8.1.7.
I hope that helps.
Similar Messages
-
My .NET app was developed on a computer where 11g Instant Client Oracle.DataAccess 2.111.6.20 was installed. I copied the application code to another computer where the 11g Full Client Oracle.DataAccess 2.111.6.0 was installed. When I tried to run it I get the following error:
An unhandled exception of type 'System.TypeIntializationException' occured in System.dll
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw and exception
My .NET app requires the use of sqlldr which does not come with 11g Instant Client so I'm trying to get it to run on another computer with the 11g Full Client which includes sqlldr.
The appilcation was built referencing the Oracle.DataAccess 2.111.6.20 on the computer with 11g Instant Client but the app needs to run on a computer where sqlldr is installed which is on another computer with 11g Full Client Oracle.DataAccess 2.111.6.0.
Am I going to have to install the 11g Full Client Oracle.DataAccess 2.111.6.0 on the development computer to get the app to work or what?Thanks Mark
The 2.111.6.20 version is already on our production server so I can't replace it. The app that uses sqllder ony runs two weeks out of a year so I'm thinking that I can set up another dev computer(dev2) with the full client and run the app from there. I may try installing both clients but I'm not sure how that will work out yet. I'm still looking into deploying 2.111.6.20 from dev to dev2 like the option 1 you suggested but coping the file from the GAC of dev to dev2 is more involved than I expected. I'm also trying to get the development tools VS2008 installed on dev2 to try option 2 as you suggested.
Configuration
dev 11g Instant Client Oracle.DataAccess 2.111.6.20
prod 11g Instant Client Oracle.DataAccess 2.111.6.20
dev2 11g Full Client Oracle.DataAccess 2.111.6.0
Thank you,
Keith -
Oracle Instant Client & Oracle 9i Client Co-existence
I am having problems installing Instant client with existing Oracle 9i client. Some of our users have Oracle 9i client already installed. In this case, I need to do the following to make it work.
1. Add the Instantcclient dir path
2. Remove oracle_home from registry
3. SET NLG_LANG and TNS_ADMIN env variables.
The main issue we are facing is with TNS_ADMIN. When you set this variable to Instantcclient dir , then both Oracle 9i and InstantClient 10g started using the tnsnames.ora in instant client dir. This is not acceptable , as some of the might intend to use Oracle 9i network/admin/tnsnames.ora file when they use Oracle 9i ODBC driver.
Can you please tell me how to install/configure Instant client 10g with an existing Oracle 9i client. Also, can you send me the ODBC Connection string thats doesn't use tnsnames.ora.
Your help is appreciated.
ThanksMetalink note 90419.1 describes how to connect to a database without using tnsnames.ora. eg
sqlplus system/manager@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=tiger5.com)(Port=1521))(CONNECT_DATA=(SID=V815)))
I cannot use this method when creating an ODBC DSN. I tried the Oracle9i ODBC driver, the Microsoft ODBC driver for Oracle but not the Oracle10g instant client ODBC driver. I suspect that the long string exceeds the ODBC specification.
I have had some success using a MS-DOS Batch File to launch an application that required the Oracle7 client long after it had been removed from the registry. This could work for the Oracle10 Instant Client
REM set up the environment variables
REM these are local to this application
set ORACLE_HOME=%CD%\oracle7client
set TNS_ADMIN=%ORACLE_HOME%\NETWORK\ADMIN
SET ORA_NLS32=%ORACLE_HOME%\NLSRTL32\DATA
set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
set API=%ORACLE_HOME%\DBS
path=%ORACLE_HOME%\BIN;%PATH%
REM run the application
DBOUTIL.EXE -
Instant Client Oracle 11g release note : Readme_IC
Hello All
I am looking for readme_ic.htm for oracle 11G instant client.
http://www.oracle.com/technology/docs/tech/sql_plus/10103/readme_ic.htm
link is there for oracle 10G instant client but I could not find for oracle 11g instant client.
Please let me know if anybody has any idea
ThanksHere, it comes with the software:
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html
regards -
Instant Client sqlplus: error while loading shared libraries: libsqlplus.so
os : Linux ch5dlfp090 2.6.18-128.el5 #1 SMP Wed Dec 17 11:58:23 EST 2008 ppc64 ppc64 ppc64 GNU/Linux
Oracle : Instant client
[oracle@ch5dlfp090 instantclient_10_2]$ pwd
/shared/instantclient/64bit/instantclient_10_2
[oracle@ch5dlfp090 instantclient_10_2]$ ls -ltr
total 108288
-rwxrwxr-x 1 oracle dba 72658720 Dec 27 2008 libociei.so
-rwxrwxr-x 1 oracle dba 41007 Dec 27 2008 genezi
-rw-rw-r-- 1 oracle dba 237 Dec 27 2008 BASIC_README
-r-xr-xr-x 1 oracle dba 3790338 Dec 27 2008 libnnz10.so
-rwxrwxr-x 1 oracle dba 23543028 Dec 27 2008 libclntsh.so.10.1
-r--r--r-- 1 oracle dba 1555682 Dec 27 2008 ojdbc14.jar
-r-xr-xr-x 1 oracle dba 164432 Dec 27 2008 libocijdbc10.so
-rwxrwxr-x 1 oracle dba 3014136 Dec 27 2008 libocci.so.10.1
-r--r--r-- 1 oracle dba 1609607 Dec 27 2008 classes12.jar
-r--r--r-- 1 oracle dba 1646178 Dec 27 2008 orai18n.jar
-r-xr-xr-x 1 oracle dba 48473 Dec 27 2008 libheteroxa10.so
-rw-rw-r-- 1 oracle dba 235 Dec 27 2008 JDBC_README
-rw-rw-r-- 1 oracle dba 241 Dec 27 2008 SQLPLUS_README
-r-xr-xr-x 1 oracle dba 15629 Dec 27 2008 sqlplus
-r-xr-xr-x 1 oracle dba 1183998 Dec 27 2008 libsqlplus.so
-r-xr-xr-x 1 oracle dba 1443102 Dec 27 2008 libsqlplusic.so
-r--r--r-- 1 oracle dba 1525 Dec 27 2008 glogin.sql
drwxrwxr-x 4 oracle dba 16384 Dec 27 2008 sdk
[oracle@ch5dlfp090 instantclient_10_2]$
Issue : When I tried to connect Sqlplus
[oracle@ch5dlfp090 instantclient_10_2]$ sqlplus
sqlplus: error while loading shared libraries: libsqlplus.so: wrong ELF class: ELFCLASS64
When I connect with 32 bit instant client of Power Linux version I am able to connect
When Hardware is 64 os 64 Bit Instnat client 64 bit not working
what could be the reason ? How to resolve this ?Pl post in the Instant Client forum - Instant Client
What does "which sqlplus" return ?
This thread may be relevant - Instant client for Solaris AMD x64
HTH
Srini -
Unable to install 64-bit Oracle ODBC Instant Client on Windows 2008 R2 machine.
I am trying to upgrade the Oracle ODBC driver from the 32-bit version currently installed (ODBC Instant Client Release 10.1.0.5.0, April 2006) to a newer 64-bit version but have not been successful. I have had success at uninstalling and reinstalling the existing 32-bit version package (release 10.1.0.5.0) however when I've tried to install the 64-bit ODBC Instant Client (Release 12.1, December 2012), I run the odbc_install.exe application inside the package. it appears to run without issue/compliant, but then I do not see the 64-bit Oracle ODBC driver anywhere, either if I go via the traditional Administrator Tools --> ODBC Data Sources or if I go to the c:\windows\syswow64\odbcad32.exe route. Further investigation into the ReadMe file (ODBC_IC_Readme_Win.html) reveals that you need the 3 DLLs oci.dll, oraociei11.dll and orannzsbb11.dll which the package does not come with. Where could I obtain the correct version of these DLLs or else where can I get an installation package which already contains them?
Any help with this is greatly appreciated. Thank youWelcome to the forums !
Pl post this in the Instant Client forum - Instant Client
HTH
Srini -
Can I install Oracle XE on a system that has the Instant Client installed?
Hello,
After installing Oracle XE (Oracle Database Express Edition 11g Release 2 for Windows x64) on my Windows 8.1 64-bit system, I can not connect to the "Get started" url (http://127.0.0.1:8080/apex/f?p=4950).
The output of "Start database" shows:
The OracleXETNSListener-service is being started.
The OracleServiceXE-service is being started.
The OracleServiceXE-service has been started.
The OracleXETNSListener service refuses to start. Could the presence of the Instant Client have something to do with this?
The Instant Client is installed in C:\Apps\Oracle, with a tnsnames.ora in C:\Apps\Oracle\network\admin.
Oracle XE is installed in C:\Apps\OracleXE.
There is a system wide environment variable ORACLE_HOME, pointing to C:\Apps\Oracle.
In the registry under HKLM\Oracle there are keys KEY_odac, KEY_ORACLE_HOME, KEY_XE, ODP.NET and OracleMTSRecoveryService.
HKLM\Oracle\KEY_ORACLE_HOME\ORACLE_HOME = C:\Apps\Oracle
HKLM\Oracle\KEY_XE\ORACLE_HOME = C:\Apps\OracleXE\app\oracle\product\11.2.0\server
Thanks,
GeorgeXE was the last installed Oracle product. I installed it on my development laptop, so I can use an Oracle database when not connected to the company network.
The instant client was broken by the XE install. Uninstalling Xe fixes this, even without a reboot.
The output of tnsping is:
TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 21-APR-2015 07:18:00
Copyright (c) 1997, 2014, Oracle. All rights reserved.
Message 3511 not found; No message file for product=NETWORK, facility=TNSTNS-03505: Message 3505 not found; No message file for prod
uct=NETWORK, facility=TNS
The Oracle related directories in the PATH environment variable are (in this order):
C:\Apps\OracleXE\app\oracle\product\11.2.0\server\bin
C:\Apps\Oracle\
C:\Apps\Oracle\bin\ -
Hi,
on a windows 2008 machine that has the Oracle instant client 11_1 installed (11.01.00.06) i am calling SQLDriverConnect in the following way:
std::string str = "Driver={Oracle in instantclient11_1};Dbq=//10.10.101.66:1521/orcl;;Uid=myUser;pwd=a;b";
odbcRc = SQLDriverConnect(hdbc, NULL, (SQLTCHAR*)str.c_str(), str.size(), (SQLTCHAR*)szConnStrOut, 1024, &cbConnStrOut, SQL_DRIVER_NOPROMPT)) == SQL_ERROR);
as long as the password contains no special chars (namely semicolon) it works fine. but when I try to use special chars in the password It stops working, with an invalid username/password error.
State: 28000 Native error: 1017 Message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied
i tried different variations of adding " (\") over the password, over the entire pwd=a;b or braces { but nothing seems to work.
the thing is that using ODBC works! what I did was:
open ODBC, go to System DSN tab, add "Oracle in instantclient11_1", then fill the following information:
Data source name: Anything
TNS Service Name: //10.10.101.66:1521/orcl
User ID: myUser
then i press test connection, enter the password "a;b"
and it works!
I cannot figure out what's my problem.
Thanks,
Roy.I've created your test table in my Oracle database using this extra character and I'm able to describe it properly.
SQL> desc test;
Name Null? Type
ATTIVITÀ VARCHAR2(40)
My character set being used is:
SQL> select * from v$nls_parameters;
NLS_CHARACTERSET
WE8ISO8859P15
NLS_NCHAR_CHARACTERSET
AL16UTF16
NLS_LENGTH_SEMANTICS
BYTE
So as long as it doesn't work for you in your native Oracle database I don't think it would work with DG4ODBC. So yes, it would be best to log a service request so that the Oracle database support can check out the NLS issue.
Edited by: kgronau on Sep 28, 2011 9:21 AM
To be complete here the describe of the MySQL table native and using DG4ODBC:
mysql> create table TEST (attività Varchar(40));
Query OK, 0 rows affected (0.00 sec)
mysql> desc TEST;
---------------------------------------------------+
| Field | Type | Null | Key | Default | Extra |
---------------------------------------------------+
| attività | varchar(40) | YES | | NULL | |
---------------------------------------------------+
1 row in set (0.00 sec)
SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 28 09:20:17 2011
SQL> desc "gateway"."TEST"@MYSQL_DG4ODBC_EMGTW_1122_DB;
Name Null? Type
attività VARCHAR2(80)
So in general it should work. -
Oracle Instant Client and OUT Parameter of custom type in Stored Procedures
Hi @ all!
I try to set up a simple client application, that calls a stored procedure via Instant Client from C#.
The stored procedure and assiciated types looks like this:
TYPE MYVALUE AS OBJECT
Id INTEGER,
value FLOAT
TYPE MYVALUELIST AS TABLE OF MYVALUE;
PROCEDURE ReadValues( ID IN INTEGER,
RESULTSET OUT MYVALUELIST)
IS
...I created an Oracle Command executing this SP and added OracleParameters for ID and (where I got stuck) the RESULTSET.
Is it possible to pass a parameter with a custom type from C# in some way?
I already tried it as a function with SELECT * FROM TABLE(ReadValues(1));
With my parameter RESULTSET as the RETURN type. But since I use DML within the procedure, this does not work inside of a query...
Any suggestions?
Thanks in advance!Hi Greg!
Sorry, I misunderstood the forum topic then. =(
Anyway, in the example you provided in the link, this is nearly exactly my situation. But there the Oracle.DataAccess.Client is used, where the OracleDBType can be called to initialize an object of type person. I use the instant client libraries called by using System.Data.OracleClient. There is only the OracleType enum, that does not contain an object or something similar.
So I do it right now after trying a bit with a ref cursor parameter and an OracleDataAdapter - the ref cursor is passed back from Oracle as a DataReader, so die DataAdapter is able to use it for a .Fill():
OracleCommand cmd = new OracleCommand();
cmd.Parameters.Add("RESULTSET", OracleType.Cursor).Direction = ParameterDirection.Output;
OracleDataAdapter odr = new OracleDataAdapter(cmd);
DataTable result = new DataTable();
odr.Fill(result);Within my stored procedure I just added the following OUT parameter:
PROCEDURE ReadValues( ID IN INTEGER,
RESULTSET OUT sys_refcursor)
IS
currentlist MYVALUELIST;
... [Adding elements to that list] ...
OPEN resultset for select * from TABLE(currentlist);It works now, but I don't like that solution that much since I'm always afraid that there are lots of opened cursors idyling around. Do I have to close this one explicitly after filling my table by the DataAdapter?
Regards -
Imp Exp utility in ubuntu 10.4 with oracle instant client 10
Hi,
I have a problem with the imp/exp utility on Ubuntu 10.4.
I have installed the oracle instant client 10, and I have followed this thread
[http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/impexp.htm#CHDDBGDF]
So, I've set env variable in my .bashrc
ORACLE_HOME=/home/lucia/Programmi/instantclient10_1
export ORACLE_HOME
LD_LIBRARY_PATH=/home/lucia/Programmi/instantclient10_1:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
PATH=/home/lucia/Programmi/instantclient10_1:${PATH}
export PATH
SQLPATH=/home/lucia/Programmi/instantclient10_1:${SQLPATH}
export SQLPATH
Sqlplus works fine, but when I try to use the utility exp/imp
exp DB_USER/DB_PW@DB_SCHEMA owner=DB_USER buffer=300000 LOG=DB_USER.log FILE=DB_USER.dmp compress=n
I have the following error:
No command 'exp' found, did you mean:
Command 'xep' from package 'pvm-examples' (universe)
Command 'ex' from package 'vim' (main)
Command 'ex' from package 'nvi' (universe)
Command 'ex' from package 'vim-nox' (universe)
Command 'ex' from package 'vim-gnome' (main)
Command 'ex' from package 'vim-tiny' (main)
Command 'ex' from package 'vim-gtk' (universe)
Command 'axp' from package 'axp' (universe)
Command 'expr' from package 'coreutils' (main)
Command 'expn' from package 'sendmail-base' (universe)
Command 'epp' from package 'e16' (universe)
exp: command not found
(I cannot use data pump exp)
Any suggestions?
thanks in advance.
Luciaroot@laptop:~# /tmp/CVU_11.2.0.1.0_lucia/runfixup.sh
Response file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.enable
Log file location: /tmp/CVU_11.2.0.1.0_lucia/orarun.log
[: 845: true: unexpected operator
[: 860: unexpected operator
Any suggestions?
thanks
LuciaHello,
I had the same problem. It was related to the shell script interpreter being used: it is really a bash script asking to be interpreted as sh. For the impatient, the solution was to change the first line of the script orarun.sh to read as:
#!/bin/bash
Explanation:
1. The script runfixup.sh calls orarun.sh. The latter is the one that fails starting at line 845.
2. The script is really a bash script as can be seen from the if syntax used. For example at line 191 we see the double equall sign ==:
if [ "`echo $SET_KERNEL_PARAMETERS | tr A-Z a-z`" == "true" ]
3. The bash man page says:
string1 == string2
string1 = string2
True if the strings are equal. = should be used with the test command for POSIX conformance.
string1 != string2
True if the strings are not equal.
(End of man page excerpt)
Notice in particular that for a bash script to be POSIX it should avoid the == and just use =
4. orarun.sh has on its first line #!/bin/sh. On my Ubuntu system, sh is a softlink to dash and the dash man page says:
s1 = s2 True if the strings s1 and s2 are identical.
s1 != s2 True if the strings s1 and s2 are not identical.
5. So this script script uses bash syntax but is interpreted by dash. It is possible that this worked fine for the Oracle developer if on their system sh was softlinked to bash (which is often the case). Apparently, one should then be very careful to not use idioms that are not POSIX compliant.
6. Another solution is to change the /bin/sh softlink from dash to bash. Personally, I was less comfortable doing this (the possible repercussions were wider than the proposed solution above).
After making the change, the script ran perfectly. I think the best solution is for Oracle to update the script to be POSIX compliant or to identify itself as bash.
Hope that helped,
Mark Gaber
Edited by: user1112514 on Jun 30, 2010 3:28 AM -
The problem still remain:
I've installed oracle 10g instant client
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Jan 10 12:43:40 20
PHP VERSION: php-5.2.0 for Win32
APACHE VERSION: apache_2.0.59 for WIN32
But I've the same old error when I try to restart Apache:
The procedure entry point OCILobRead2 could not be located in the dinamic link library OCI.dll
Is there anyone who can help me to solve this kind of problem?
Thanks in advance.The solution is that you need to have Oracle 10g client side libraries
installed (or you have to recompile PHP yourself). The oci8 extension
has some version dependent code and the person who builds Windows PHP
builds it with the latest version of Oracle. I was discussing the
impact of this just this week.
Luckily Oracle Instant Client can be downloaded and used for free from
http://www.oracle.com/technology/tech/oci/instantclient/index.html
Also see
http://www.oracle.com/technology/pub/notes/technote_php_instant.html
-- cj -
Oracle Instant Client for Intel MacOS X
Hi all, this is my first post here (so I don't know if it's the proper place, but to try it is free. Sorry for any inconvenience).
Anybody, can confirm/explain why, one year after launch, there isn't one available download of Oracle Instant Client for Intel MacOS X?
Without it's impossible, for example, to compile PHP with OCI support under Intel MacOS X (native mode) and it's really a pain.
With PPC version existing since ages, wouldn't be absolutely easy to recompile that cool stuff for Intel MacOS X?
TIA and ciao, Eloy Lafuente :-)Hi again...
just to know a bit more... two months later... how is customer demand going...?
Have you searched for "macos x instant client intel" ?
Aren't PHP/Perl/Ruby applications enough?
I sincerely think it's a big mistake to don't offer native connectivity for MacOS X Intel users... of course, your mistake.
Some developers, like me, will stop developing/improving Oracle support in their applications just because they use MacOS X to develop. So, those applications won't run ok under Oracle, no matter where you deploy them.
With thousands of applications running natively under MacOS X Intel... isn't there (@ Oracle) able to recompile that tiny piece of software to run under Intels... sorry but I cannot believe it.
I'll email SJ right now! Ciao :-) -
OCIEnvNlsCreate():Oracle Instant Client libraries
Pls help solve this error:
[Mon Feb 18 13:45:14 2008] [error] [client 0.0.0.0] PHP Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\\EID_Web\\test.php on line 3
[Mon Feb 18 13:45:14 2008] [error] [client 0.0.0.0] PHP Warning: oci_close() expects parameter 1 to be resource, boolean given in C:\\EID_Web\\test.php on line 14
[Mon Feb 18 13:45:18 2008] [error] [client 0.0.0.0] PHP Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\\EID_Web\\test.php on line 3
[Mon Feb 18 13:45:18 2008] [error] [client 0.0.0.0] PHP Warning: oci_close() expects parameter 1 to be resource, boolean given in C:\\EID_Web\\test.php on line 14.
tried to change the path but still no changes.
this is what i use:
apache 2.2,oracle server 10g ,instant client 10g, windows 2000,php 5.2
Message was edited by:
tamseMake sure that you have only one Oracle Client on the client machine.
Delete/uninstall all others. Best uninstall all Oracle Software on that machine and reinstall one client.
Before you try to connect from a PHP script, try to connect with sqlplus. If that works, proceed.
The PHP you use must compiled and linked against the Oracle client version you use, else it won't work.
Now try again. If you still get the same errors, post the error messages and relevant parts of the PHP script.
Be aware that this forum is for Instant Client, so there might be better forums for PHP questions.
Yours,
Laurenz Albe -
Oracle instant Client and unixODBC for Linux has Error
Hi experts,
I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
I have done steps as following:
Login to Redhat2 as root and type commands:
1)Install Instant Client + sqlplus
# rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
# rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
2)Setting environment variable
# LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
# SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
3)Testing connection to Redhat1(Oracle DB server) using sqlplus
# sqlplus abc/[email protected]:1521/lab2
Connected.
5)Begin to install unixODBC
# rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
# rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
# ls /etc | grep odbc
odbc.ini
odbcinst.ini
7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
# tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
# ls /usr/local/bin/
dltest isql iusql odbc_config odbcinst
# ls /usr/local/include
autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
# ls /usr/local/lib
libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
# NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
# TNS_ADMIN=/root; export TNS_ADMIN
# ODBCINI=/etc/odbc.ini; export ODBCINI
7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
# sqlplus vonphoto/vonphoto@lab2
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
8) Edit odbc.ini and odbcinst.ini
---odbcinst.ini
# Included in the unixODBC package
[Oracle 10g ODBC driver]
Description = Oracle ODBC driver for Oracle 10g
Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
Setup =
FileUsage =
CPTimeout =
CPReuse =
---odbc.ini
[ora_dns]
Driver = Oracle 10g ODBC driver
DSN = ora_dns
ServerName = xxx.xxx.xxx.121
UserID = vonphoto
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
TraceFile = /backup/sql.log
Trace = Yes
9)Testing the driver and the data source
# odbcinst -q -d
[Oracle 10g ODBC driver]
# odbcinst -q -s
[ora_dns]
10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
# isql -v ora_dns
isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
I have spent 4 days to search on the internet. But it still error.
Pls help me.Apologies - thought it was a database to database connection that you were trying to create.
isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directoryThe readline library is in package readline-4.3-13 on RHEL4 and in readline-5.1-1.1 for RHEL5 on my servers (minor version number are of course dependent on the kernel version used).
This is also not an ODBC or Oracle issue. It seems that isql is using rlwrap or similar - this requires the readline library. And possibly LD_LIBRARY_PATH to be set too. -
Oracle instant Client and unixODBC for Linux not work
Hi experts,
I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
I have done steps as following:
Login to Redhat2 as root and type commands:
1)Install Instant Client + sqlplus
# rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
# rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
2)Setting environment variable
# LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
# SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
3)Testing connection to Redhat1(Oracle DB server) using sqlplus
# sqlplus abc/[email protected]:1521/lab2
Connected.
5)Begin to install unixODBC
# rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
# rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
# ls /etc | grep odbc
odbc.ini
odbcinst.ini
7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
# tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
# ls /usr/local/bin/
dltest isql iusql odbc_config odbcinst
# ls /usr/local/include
autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
# ls /usr/local/lib
libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
# NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
# TNS_ADMIN=/root; export TNS_ADMIN
# ODBCINI=/etc/odbc.ini; export ODBCINI
7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
# sqlplus vonphoto/vonphoto@lab2
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
8) Edit odbc.ini and odbcinst.ini
---odbcinst.ini
# Included in the unixODBC package
[Oracle 10g ODBC driver]
Description = Oracle ODBC driver for Oracle 10g
Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
Setup =
FileUsage =
CPTimeout =
CPReuse =
---odbc.ini
[ora_dns]
Driver = Oracle 10g ODBC driver
DSN = ora_dns
ServerName = xxx.xxx.xxx.121
UserID = vonphoto
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
TraceFile = /backup/sql.log
Trace = Yes
9)Testing the driver and the data source
# odbcinst -q -d
[Oracle 10g ODBC driver]
# odbcinst -q -s
[ora_dns]
10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
# isql -v ora_dns
isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
I have spent 4 days to search on the internet. But it still error.
Pls help me.I don't understand your step 7 (the first step 7, actually).
What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
unixODBC should be installed after step 5.
I guess that that is the cause of your problem.
isql is not linked against readline at all on my RHEL 5 system.
Do you notice any improvement after removing the files from that tar.bz file?
Yours,
Laurenz Albe
Maybe you are looking for
-
A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. The message is now f
-
How to download data from a an external hard drive ?j
How to download data from an external hd ?
-
My iPhone 5 running iOS 7.0.4 gets stuck on "waiting for items to copy" when syncing to my iTunes (version 11.1.4). I've tried; quiting and restarting iTunes, updating iTunes, restarting my computer, restarting my iPhone, turning off iCloud on my iPh
-
New shuffle - cant get it to work on my pc
i got a brand new shuffle for xmas and i have since been trying to get it to work on my laptop. my laptop spec is: vista 32 bit itunes is running latest 7.5 i believe, tried updating but it says it is the latest. i have charged the shuffle up using t
-
Hello, When I create an activity from a Sales Opportunity it updates the Source Object Type on the Linked Doc tab. This then displays on Related Activities. If I follow up this activity, the follow up is no longer associated with he Source Object and