SqlPlus with ODBC

Hi all
I install Oracle9i Lite on WIN2000 Pro
I want to connect to database with sqlplus
through ODBC.
I use 'scott/[email protected]:polite' connection string
and get following error:
'ORA-03121: no interface driver connected - function not performed'
What this error meaning and how I can avoid it.

Thanks for reply.
But I want to use OCI with ODBC
and SqlPlus I use only for
testing purposes.

Similar Messages

  • SQLPlus works, ODBC with IC gives 12154 error

    I can connect no problem using this:
    sqlplus.exe scott/[email protected]//oracle-test.cue.<ourDomain>.com:1521/montest
    But I can't get a successful connection test when trying to set up the ODBC source.
    I get this error:
    ORA-12154: TNS:could not resolve the connect identifier specified
    (Interestingly, I had an ODBC connection testing fine and receiving inserts using Instant Client on this machine, but that DB got deleted, and I haven't been able to connect to any others since)
    Also, I copied the following files from a machine on my subnet that has no problem connecting either via SQLPlus or ODBC.
    [This is my sqlnet.org file:]
    # SQLNET.ORA Network Configuration File: C:\oracle\ora81\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = cue.<ourDomain>.com
    [end file]
    [This is my TNSNAMES.ORA file:]
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    (ADDRESS = (PROTOCOL = TCP)(HOST = oracle-test)(PORT = 1521))
    (SID = PLSExtProc)
    [end file]
    My paths are set up correctly as far as I can tell:
    I have my TNS_ADMIN pointing to C:\InstantClient\network\admin (location of .ora files)
    And my PATH has C:\InstantClient as it's first entry.
    I've read a whole bunch of web pages concerning this error, but none of the suggestions have worked yet. Any help on this would be very much appreciated. Thanks!

    Yes, I've been using the driver called 'Oracle in instantclient'. And I have run the odbc_install.bat script to get this driver added to the list of ODBC drivers. It told me "Oracle ODBC Driver is instaled sucessfuly", with both mizspeleengs as I've typed them.
    Everything seems to be in place.
    I would still very much like to know why the TNS Listener cannot "resolve the connect identifier specified. (Error 12154)"
    My main folder is "C:\InstantClient"
    My Path contains "C:\InstantClient"
    I have ORACLE_HOME pointing to "C:\InstantClient"
    I have SQLPATH pointing to "C:\InstantClient"
    I have TNS_ADMIN pointing to "C:\InstantClient\network\admin"
    Which is where I have my tnsnames.ora and listener.ora:
    [listener.ora looks like this:]
    # listener.ora Network Configuration File: c:\oracle\product\10.1.0\db_3\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    (ADDRESS = (PROTOCOL = TCP)(HOST = = 1521))
    [tnsnames.ora looks like this:]
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora81\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    (ADDRESS = (PROTOCOL = TCP) (HOST = (PORT = 1521))
    Running a batch file with the following in it:
    sqlplus.exe scott/[email protected]//
    allows me to successfully run SQL statements
    I sure would appreciate any direction you can give.
    Thank you.

  • File upload with ODBC

    I want to upload a file using only the ODBC functions available in PHP to a oracle DB (i'm using a blob column, if this is not correct, please tell me).
    I tried uploading it as a "normal" query but it doesn't work, oracle gives error...
    So i'm asking if someone could give some snippets of code, tips, links, anything about this issue. Or if this is simply not possible to do with ODBC...
    Thanks in advance for your time

    This might help.
    $handle = fopen($_FILES['filename']['tmp_name'],'r');
    $file_content = fread($handle,filesize($_FILES['filename']['tmp_name']));
    $encoded = chunk_split(base64_encode($file_content));
    then the $encoded variable would be used as you blob column value.
    Then when retrieving the value you would need to base64_decode() the data to get it back into the original form.
    Hopefully this helps.

  • Instant client with ODBC driver

    Hi, I have problem with the instant client version 10.2 with ODBC driver. I have the instant client base package and ODBC package installed in my computer. the Oracle ODBC driver did appear in the ODBC driver list, when I test the connection with driver, it gives error "Unable to connect, SQLState=08004 [ORACLE] [ODBC] ORA-12154 TNS could not resolve the connect identifier specified" I have another computer which has Oracle 8i client installed and works fine. I copied sqlnet.ora and tnsnames.ora to the instantclient installation folder, same error appears. here is the contents of sqlnet.ora:
    # SQLNET.ORA Network Configuration File: c:\oracle8i\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    here is the contents of tnsname.ora:
    # TNSNAMES.ORA Network Configuration File: c:\oracle8i\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    barkeep =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
    (SID = barkeep)
    I test the host connection with telnet, it works.
    can anybody out there walk me through how to set up instant client?

    Thanks Sanjay - I had this problem and your suggestion fixed it: setting the TNS_ADMIN did the trick.
    Note: This was on a development PC which already had the Oracle Client drivers installed (so I already had a different TNS_NAMES.ORA in that installation).
    It is worth noting that on my target deployment machine which DOESN'T have the Oracle Client drivers (just the InstantClient + Instant-ODBC) I didn't need to set TNS_ADMIN
    I'm using the 11g InstantClient ( 32 bit)
    Hope this helps someone, and thanks again Sanjay for posting :o)

  • Can I connect to SAP database directly with ODBC?

    I need to read data from SAP and write them into ms sqlserver. I wrote a RFC in SAP and used VB.NET to call RFC. I wonder that the RFC efficency is very slow while reading a great lot data. RFC also cannot support complex condition string, and it cannot fetch my data flexibly.
    I found that the user who was included in a user group "db<sid>adm" could connect to db2 udb with ODBC in VB6.0 or VB.NET. I also can use the SQL sentence to get data flexibly.
    Please tell me whether I can use this user to read (just using select sentense) data from DB2 UDB directly, or whether I can use the newly created user to get data. Will this method cause any problem ?

    > Will this method cause any problem ?
    Pretty likely: yes, it will.
    You may want to read this thread Retrive Data From SAP Using C Language first (and the blogs I refered to in it).
    What it boils down to is: you're trying a super-low-level access to data in order to perform a high-level business data exchange.
    You could as well hex-read the data files of the database or the blocks from your hard disks.
    There are a bunch of options to remote access data in SAP systems and maybe your RFC can be tuned to better support your needs.
    But don't move over to the 'dark side' of direct database access

  • Connect Lotus Notes with ODBC driver

    I am trying to figure out connecting SQL Developer with ODBC connection ( set on to ODBC Data Source ) for lotus notes. I am able successfully connect through Excel with that connection. With SQL Developer , its asking for JDBC driver but lotus notes version (R5) what I am using does not support JDBC driver.
    Is there any way to connect using ODBC data source for lotus notes.

    SQL Developer is a Java based tool and requires JDBC. Theoretically you could use the JDBC-ODBC bridge, but there would be no point. SQL Developer is an Oracle specific development and query tool which allows connection to selected other DBMSs in order to support migration to Oracle. Lotus Notes is not one of the supported systems.
    SQL Developer is NOT a general purpose, multi-DBMS tool.

  • Registering db's with ODBC through Java code?

    Hey, I have a project which uses an msacces database, I first have to register the database with odbc in windows, but I wonder if you can't do this with Java code instead of letting to user do some things he'd probably screw up while deploying the app.

    nope, no api. You will need to JNI to native C++ code to effect things like ODBC setup, registry, and paths, etc. There are third party apps, $$, that you can find on google.com

  • How to spool a file in sqlplus with feedback off option?

    Is there a way to spool a file in sqlplus with the feedback turn off? I want to capture all the logs, but do not want to see all commands and entries on my screen. When I set the feedback off, I get nothing in my logfiles due to the set feedback off option.

    here's what i did
    SET echo off
    SET feedback off
    SET term off
    SET pagesize 0
    SET linesize 200
    SET newpage 0
    SET space 0
    col name format a120
    SQL> spool test.log
    SQL> @trunc_ref_tables.sql -- this script truncates tables
    SQL> spool off
    SQL> exit
    As expected, there was no logs generated in the logfile with the set feedback off option. This is what was in my log file.
    SQL> @trunc_ref_tables.sql
    SQL> spool off
    How do i see the list of tables that were truncated in my logfiles without havign to see the following on my screen.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.
    Table truncated.

  • Command.text with ODBC escape sequence is not working in VC++, Bug in OLEDB ?

    Command.text with ODBC escape sequence is not working in VC++. The Code, which written in VB is working perfectly. Is there any different syntax in VC++ or bug in
    OLE DB provider ?. I am using OraOLEDB 8.1.7 version.
    VB Code
    ' Enable PLSQLRSet property
    Cmd.Properties("PLSQLRSet") = True
    ' Stored Procedures returning resultsets must be called using the
    ' ODBC escape sequence for calling stored procedures.
    Cmd.CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}"
    Set Rst1 = Cmd.Execute
    VC++ Code (while execute it is giving error )
    pCommand->CommandText = "{CALL corpuser.GetCorpUserRec(?, ?)}";
    pRs1 = pCommand->Execute(NULL,NULL,adCmdStoredProc);

    The odbc escape sequence for calling stored procedures works fine with VC++ also.
    You can check the sampe application at following url :
    Hope this helps

  • About call the store procedure using VB with ODBC

    I want to ask how can I use the vb with ODBC call the oracle's store procedure ? I try to pass the parameter from vb and return 1 result, it is ok, but when I try to pass 1 parameter with return mutiple result (put it in recordset), the error message occured(Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available, No work was done) why ?? I can success whit using OLE DB, but why not in ODBC ?? does anybody can help me ?? Thanks a lot.

    oh, really ? it is not use ODBC to connecto to oracle ?
    Here is my program code:
    PROCEDURE getInforcePolicy(PClient_ID IN VARCHAR2, PPolicy_No IN VARCHAR2, BasicCur OUT oraoledb.m_refcur, RiderCur OUT oraoledb.m_refcur)
    inforce200111 WHERE Client_ID = PClient_ID and Policy_No = PPolicy_No and coverage_No = 1;
    inforce200111 WHERE Client_ID = PClient_ID and Policy_No = PPolicy_No and coverage_No <> 1;
    END getInforcePolicy;
    PACKAGE oraoledb AS
    TYPE m_refcur IS REF CURSOR;
    END oraoledb;
    Dim cn As New ADODB.Connection
    Dim rs As New ADODB.Recordset
    Dim rs2 As New ADODB.Recordset
    Dim cmd As New ADODB.Command
    Dim paramclient As New ADODB.Parameter
    Dim parampolicy As New ADODB.Parameter
    Dim I As Integer
    cn.Open "ridev", "abc","abc"
    cmd.ActiveConnection = cn
    Set paramclient = cmd.CreateParameter("PClient", adVarChar, adParamInput, 10)
    Set parampolicy = cmd.CreateParameter("PPolicy", adVarChar, adParamInput, 10)
    paramclient.Value = "0000023011"
    parampolicy.Value = "HK0010021U"
    cmd.Parameters.Append paramclient
    cmd.Parameters.Append parampolicy
    cmd.CommandText = "{call getInforcePolicy}"
    Set rs = cmd.Execute
    Do While Not rs.EOF
    Set rs2 = rs.NextRecordset
    Do While Not rs2.EOF
    Where the RIDEV is a datasource that created from Data Source in Control Panel using the driver call "Microsoft ODBC for ORACLE"

  • Database fileds are not coming when connecting with ado and they are coming when connecting with odbc

    Post Author: yagya
    CA Forum: .NET
    Hi , I am using crystal report XI R2 in visual studio 2005 . Backend is sql server 2000. I have made a connection with odbc connectivity and using dsn. I am using a stored procedure as datasource of report. It is working fine all the database fields are available. Now when i try to connect with the ado connection having same stored procedure as datasource of report , I am not getting data fields. I dont know where is the problem in my stored procedure or in report. But when i connect through system dsn using odbc connectivity everything is working fine. A MAP filed dialogue box appears when i try to change the datasource location to ado from odbc.

    There is a barely acknowledged issue. For Mac users Apple has released an update to the app, but for iOS users the recommendation is for users to update their ipad to the most recent operating system.
    There may be a fix coming for iOS6 users (which seem to be many of those having problems) or there may not be. If your ipad isn't up to date then you can update it and see if that helps, or if you don't want to update then you may want to wait and see if there is either a fix or if it fixes itself.

  • Getting sqlplus and odbc connection to work

    I'm looking to automate some data extraction activities either through a windows batch file or set up a data connection in an excel spreadsheet. I've installed (I think) the instant client, but, I'm not seeing any programs to run in my start>All Programs list except Microsoft ODBC Administrator and sqlplus does not work when typed at the command prompt (sqlplusw neither).
    Not sure what I should do next...thanks for looking and your help.
    I currently use sql server and access and have set odbc connections and connections to sql server in excel.
    Here's what the inventory shows:
    Inventory contents of (my-computer):
    Oracle Homes
    Oracle Client
    Oracle Instant Client
    Oracle ODBC Driverfor Instant Client
    Oracle JDBC/OCI Instant Client
    SSL Required Support Files for InstantClient
    RDBMS Required Support Files for Instant Client
    SQL*Plus Files for Instant Client
    Central Inventory Location: "C:\Program Files\Oracle\Inventory"
    Oracle Home Status
    OraClient10g_home1 Selected
    PATH = D:\oracle\product\10.2.0\client_1\bin;D:\oracle\product\10.2.0\client_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    etc, etc, etc

    sqlplus working, had the wrong path, but, not connecting. I did save a copy of the tnsnames.ora from another machine. Here's what it shows, below, I think I need to use the LDAP adapter, but, not sure how to make it use that, sqlnet.ora is:
    ----command line results------
    C:\>tnsping POST_DBSR.xxx.ourcompany.COM
    TNS Ping Utility for 32-bit Windows: Version - Production on 21-SEP-2
    010 07:33:32
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.1.xxx)(PORT = 1521))) (CONNECT_DATA = (SID = post)))
    TNS-12535: TNS:operation timed out

  • Problem with sqlplus with whitespace in the path of the @ command

    I'm running Oracle 11g on Linux and I'm trying to run a script which will create my database. This script runs fine on windows, but when I test it on Linux, I get the following error:
    SP2-0556: Invalid File NameThe problem may be that the path to the file name has a space in it. I'm going to simplify the problem down to one of the many commands I run in the file to make it simple. The sample command I'm trying to run looks like this:
    sqlplus [uname]/[pw] @'../database/My Schema/create_sequence.sql'the create_sequence.sql file has two simple create sequence commands that run fine by themselves. I strongly suspect it is due to the white space because when I change the directory name from My Schema to MySchema and alter the above sqlplus command accordingly, the script runs fine.
    Like I said, this script works in windows with the spaces, but not in Linux. I suspect spaces may not be supported, but I was wondering if anyone knew any different or it there is a work-around?
    side note: running a command like:
    more ../database/My\ Schema/create_sequence.sqlor
    more '../database/My Schema/create_sequence.sql'prints the contents of the file to the console as you would expect. So, I think this is sqlplus (and linux) specific.
    Edited by: user10887698 on Jul 28, 2009 4:21 PM
    code markup!!!

    user10887698 wrote:
    I'm running Oracle 11g on Linux ...
    ..when I change the directory name from My Schema to MySchema and alter the above sqlplus command accordingly, the script runs fine.i really can't see why you are considering this as a problem.
    On linux, you can't create directory that contains spaces between letters, like let say : fol der. Doing a mkdir fol der would create two folders,
    one named fol and the other named der.
    By information you provided , it's obvious that the exact and the correct full path to the create_sequence.sql file is ...database/MySchema/create_sequence.sql.
    Can you position yourself in the directory where create_sequence.sql file is and type pwd to confirm the correct path?

  • Windows 7 64bit with ODBC - Exception: System.OverflowException

    Please help. I developed an interface between a CAD and Oracle 10g 32bit on Windows Server 2003. I have no problems with the using of the ODBC driver (Instant Client Package - ODBC (instantclient-odbc-win-x86-64- on Windows XP 32bit and Windows XP 64bit.
    If I try to use 64bit ODBC driver (Instant Client Package - ODBC (instantclient-odbc-win-x86-64- on Windows 7 64bit with the Oracle DB 10g 32bit on Windows Server 2003, I receive the following message after the line with OraRead = OraComm.ExecuteReader:
    Exception: System.OverflowException: Die arithmetische Operation hat einen Überlauf verursacht.
    bei System.Data.Odbc.OdbcStatementHandle.RowCount(SQLLEN& rowCount)
    bei System.Data.Odbc.OdbcDataReader.GetRowCount()
    bei System.Data.Odbc.OdbcDataReader.FirstResult()
    bei System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
    bei System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
    bei System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
    The code I use is very simple:
    Dim sConnection = "DRIVER=Oracle in instantclient_11_2;UID=xx;DBQ=xx;SERVER=xx;Pwd=xx"
    Dim strSQL As String
    Dim OraConn As New System.Data.Odbc.OdbcConnection
    Dim OraComm As New System.Data.Odbc.OdbcCommand
    Dim OraRead As System.Data.Odbc.OdbcDataReader
         OraConn.ConnectionString = sConnection
         strSQL = "SELECT * FROM TAB"
    OraComm.CommandText = strSQL
    OraComm.Connection = OraConn
    OraRead = OraComm.ExecuteReader
    If OraRead.HasRows Then
    The test connection from the ODBC admin tool return ok.
    Any help will be apricable.

    I'm having the same problem. Did you ever find a solution for this?
    For reference, my question is located over here: OverFlowException on Oracle ODBC RowCount

  • Failed to create DNS with ODBC Datadirect Driver - error missing or invalid option

    Dear All,
    I tried to post a first time and get my post thrown away. So please just tell me if that's not the place to post such questions. I tried this forum because I didn't find any revelant information yet on internet.
    I installed Informatica and Oracle 11g, tried to create my DSN with the Driver DataDirect Oracle Wire Protocol. I keep bumping into the message " [Informatica][ODBC Oracle wire protocol driver][Oracle] ora-00922: missing or invalid option".
    Can you please help to understand where the error comes from?
    Here are my current status :
    * My table in the Oracle database is created with every field followed by NOT NULL option, the table is successfully created.
    * The connection to the Oracle database using Oracle TNSNames Connection server name and TNSNames files seem to work, I tried to connect with another driver Oracle in OraDB 11g_home1. This one succeeds.
    * Listener.ora:
    # listener.ora Network Configuration File: C:\app\ql186003\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\app\ql186003\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:C:\app\ql186003\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = C:\app\ql186003
    * Running lsnrctl STATUS:
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version - Production
    Start Date                22-FEB-2014 21:43:22
    Uptime                    0 days 1 hr. 8 min. 33 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   C:\app\ql186003\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File         c:\app\ql186003\diag\tnslsnr\WBEQL186003-Q4G\listener\alert\log.xml
    Listening Endpoints Summary...
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "TESTDBXDB" has 1 instance(s).
      Instance "testdb", status READY, has 1 handler(s) for this service...
    Service "TEST_DB" has 1 instance(s).
      Instance "testdb", status READY, has 1 handler(s) for this service...
    Service "orcl.TD.TERADATA.COM" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.TD.TERADATA.COM" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Thank you very much for any guidance.

    Try this :
    While creating TYPE remove semi colon from end of the statement and also dont use extra / as / means execute last statement so you may encounter error..
    CREATE TYPE ind_tab_supplier1 IS VARRAY(6) OF VARCHAR2(30)

Maybe you are looking for

  • I have to position my iPod Touch 2 for my Mac and PC to detect it. Any fix?

    My iPod Touch 2 has to be position exactly the right way for iTunes to detect it. I have restored to non-jailbroken, tried a Google Search, I can't take it into Apple cuz' it is out of its Warranty, and it would probably cost like $100 dollars (NZD)

  • Repository Creation Utility Portal schema for 11g creation fails

    I run RCU for database 11g 64bit created portal schema show error: in portal.log file:* PL/SQL procedure successfully completed. No errors. Create navigation page for shared page group. ERROR: Creating the Navigation Objects Internal error U

  • Can you have an "always downoad attachments" option for imap?

    I would love to just click on attachments and have them open right away using an imap account, is there any way to configure mail to always download attachments? (I did not find a setting for this and I do not want to swtich to POP3). Mail is not ver

  • MacBook Pro (Retina) has S/PDIF Mini-TOSLINK? Audio Input? Boot as FireWire Drive?

    I love all the Apple MacBooks and I fall in love with the new MacBook Pro (Retina) but then I review all the specs and I feel that some things are missing: It has S/PDIF Mini-TOSLINK? I use this a lot! It hast Audio Line-In input? I only see output a

  • CS5 Magic Wand Tool Question

    I have a new Mac and I just got CS5. I find that the Magic Wand tool works differently than it did with CS3 on my PC. First, I'm used to being able to see the "marching ants" as I select the areas. In CS5/Mac they don't appear until the area is selec