MS SQLServer Linked Server using Instant Client?

Does anyone have an example of setting up a linked server in SQLServer using instant client ODBC?

user11273096 wrote:
Hi All,
PLease need help urgently....
Have issue of connecting to a remote oracle server after following several tutorial online from step A-Z. http://www.dbatoolz.com/t/installing-oracle-instantclient-basic-and-instantclient-sqlplus-on-win32.html
I am the DBA that installed the remote oracle too so every information are right.Either you are mistaken or Oracle is in error.
I doubt Oracle mis-reports reality!
>
These are the errors: ORA-12154 or ORA-12560 TNS: protocol adapter error.ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
The lookup operation fails because the name provided can NOT be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.

Similar Messages

  • Problem using instant client with Win 7

    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.

    user1931557 wrote:
    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.
    If the characters only appear on certain clients, then they are NOT being "replaced ... in the database".  What you are seeing is an issue with presentation, not data.

  • Linked server using kerberos working fine then after inacitive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine but after leaving the session inactive for 10 minutes is startin to fall down to ntlm and receive the anonymous logon error

    we are connecting to  SQL mgmt studio app published on citrix, using  Windows authentication and Kerberos to forward the credentials to the linked servers and avoid the double hop issue, that part is working fine,  we already have the Constrained
    delegation, SPNs and Active directory settings for the Service accounts and the authentication is working, we can connect to the linked servers without errors, it's only whe the Session get idle when we faced the issue, the citrix team already have verifyed
    any timeout setting and they mentioned there is no 10 minute timout setting anywhere,  we also looked at the Kerberos AD Global policy settings to see if maybe the kerberos service ticket was expiring, but the configured values are  Maximum lifetime
    for service ticket 600 minutes  Maximum lifetime for user ticket 10 hours  Maximum lifetime for user ticket renewal 7 days, if you have any other suggestion please let me know.

  • Linked server using kerberos working fine then after inactive for 10 minutes start receiving the anonymous logon error

    Linked server using kerberos working fine then after inactive for 10 minutes start receiving the anonymous logon error

    Hi,
    This Could be  a double hop problem or some thing could have gone wrong with your SPN
    This could also be non trusted Service Account under which your SQL Server is running
    Check the following links
    http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx
    http://blogs.msdn.com/b/sql_protocols/archive/2006/12/02/understanding-kerberos-and-ntlm-authentication-in-sql-server-connections.aspx
    https://technet.microsoft.com/en-us/library/cc739474(v=ws.10).aspx
    Hope this helps
    Thanks
    Bhanu

  • How to connect sql server using oracle Client

    Hi,
    I am working in oracle9i and windows os 32 bit.
    I need to connect SQL server 2000 from my oracle client..
    I heard about heterogeneous connectivity ...
    Please expalin me the steps what to add and how to connect the sql server...
    Regs....

    Are you trying to connect to SQL Server from your Oracle database (i.e. create a database link in Oracle to SQL Server)? Or are you trying to connect to SQL Server using your Oracle client software (i.e. SQL*Plus)?
    The former just requires Heterogeneous Services with Generic Connectivity. The latter is functionality that has been depricated and probably no longer works in your environment.
    Justin

  • Problem using Instant Client 10g with PHP4.3.10-16 on Debian Sarge

    Hello,
    My current email is [email protected]
    I am trying to use PHP on Debian box using Oracle 10gR2 on a RH 4 server. Everything works fine individually, but I cannot get PHP4 to use InstantClient to connect to the Oracle Server. This is what I've done:
    Oracle 10gR2 works fine on the RH 4 server. Listener is running and all required OS security is in place and works (TCP_wrappers, etc.).
    Client machine runs Debian 3.1 (Sarge). It works fine and SSH connectivity to RH4 server works.
    Instant Client 10gR2 installed on Debian client and works fine. Tested SQL*Plus connection to the RH server. I installed Instant Client from the zip file.
    I did have to add libclntsh.so to /etc/ld.so.conf and run ldconfig to get Debian to use it, though.
    Apache2.0.54-5 on Debian client works fine. Web pages on it can be opened in browsers from other machines.
    Installed PHP4.3.10-16 on Debian client using following:
    ./configure --with-oci8-instant-client=<dir of my choice>
    --enable-sigchild
    I first checked ./configure help and the option with-oci8-instant-client was there.
    Configure went well. Log showed checking for Instant Client files.
    Ran make. Saw numerous Instant Client message as words scrolled.
    Ran make install. Successful.
    Restarted Apache2 with following env variables:
    LD_LIBRARY_PATH=<my Instant Client directory)
    TNS_ADMIN=<same directory where I put my sqlnet.ora and tnsnames.ora files).
    SQLPATH=<same directory>
    I know this is correct because Instant Client SQL*Plus can connect.
    Browsers on other machines can view simple php scripts run from the Debian box.
    BUT, phpinfo does NOT show an OCI8 section.
    phpinfo does show the correct extension directory, though.
    Somehow, my PHP4 configure and make is not using the --with-oci8-instant-client option.
    I checked $PHP4HOME/ext/oci8/config.m4 file and the verbiage IS in there to use the --with-oci8-instant-client option, either with the default location or the extension_dir location.
    I tried using the new ZendCore product, even though it is not certified for Debian. It installed okay but I could not get PHP5 to work. I uninstalled it successfully and redid all of the above.
    So, any ideas as to what else I can do here? Other than not use Debian (which is probably the wisest thing to do). And I suppose I could install a thick Oracle client, assuming that Debian would take it. But I prefer the Instant Client.
    I tried the PHP ./configure syntax I've seen several places on this forum.
    ./configure --with-oci8=instantclient,<directory>
    This syntax may work on Red Hat machines but it throws a syntax error on Debian and aborts the configure.
    Thanks for any help.

    Thanks, but that did not work. Configure aborts because it cannot find the required OCI8 libraries. The --with-oci8 option is for the Oracle "thick" client.  I have only the Instant Client...and am not interested in loading the older client.
    I may have my own solution next week, though. I will be loading RH4 on a new server and will then install ZendCore and forget all about using Oracle with Debian.
    Update on trying ZendCore on Debian Sarge:
    I tried installing it again yesterday. The install seemed go to well, and said it was successful.
    It did NOT load PHP5, however. Nor did it load the Instant Client. My previously installed PHP4 and Instant Client remained in my original directories.

  • How to use Instant Client  10G DSN-less feature  with SQLDriverConnect?

    We have been trying to use the DSN-less feature of the latest Instant Client, instantclient10_2, with the ODBC programming interface using SQLDriverConnect.
    We are getting ORA-12560 errors and believe that our connect string isn't correct. The docs don't provide an example or indicate the correct keyword(s) to use.
    The help file's "Format of the Connection String" page doesn't provide any clues and DBQ is definitely not working.
    What format should be used?
    Thanks

    ...So I take it that I'll have to have the server
    export to csv or a db format that will provide a
    connection on a stock xp or vista box.I'm not sure exactly what you're saying here. Are you suggesting that you'd export the data on the server to a CSV file, copy that to a network share, and have your application create an ODBC connection to the CSV file?
    Are you wedded to installing absolutely nothing else? The Oracle Instant Client, for example, just requires copying 3 or 4 DLLs to a directory & setting some environment variables in order to install a minimal Oracle client and ODBC driver (though it won't work with the Microsoft ODBC driver for Oracle). That's normally a pretty minimal burden for an application to include in its installation scripts.
    Justin

  • #Deleted in all fields using Instant Client ODBC

    Finally I got Instant Client ODBC installed and working. The trick seemed to be defining ORA_HOME, TNS_ADMIN, and the PATH to point to the Instant Client directory - and alphabetizing the entries in tnsnames.ora!
    Anyway, now in linking tables within MS-Access there is one particular table that displays "#Deleted" in all columns of all rows. If I link to the same table using the regular Oracle ODBC driver, everything displays as it should.
    I don't believe there is anything unusual about the table, no bigints. I show the columns below. Is there an explanation, and more importantly, a fix for this?
    ML_TRANSACTION_ID VARCHAR2 16
    ML_NAME_FIRST VARCHAR2 50
    ML_NAME_LAST VARCHAR2 50
    ML_ADDR1 VARCHAR2 64
    ML_ADDR2 VARCHAR2 64
    ML_CITY VARCHAR2 32
    ML_STATE CHAR 2
    ML_POSTAL_CODE VARCHAR2 10
    ML_COUNTRY VARCHAR2 50
    ML_PHONE VARCHAR2 25
    ML_EMAIL VARCHAR2 150
    ML_TRANSACTION_DATE DATE 7
    ML_TRANSACTION_FREQ NUMBER 3,0
    ML_TRANSACTION_AMT NUMBER 11,2
    ML_TRANSACTION_TYPE CHAR 5
    ML_REPEAT_ID VARCHAR2 16
    ML_REPEAT_DATE DATE 7
    ML_COMMENT VARCHAR2 512
    DONATION_ID NUMBER 22,0
    IS_PROCESSED CHAR 1
    FILEDATE_STRING VARCHAR2 10
    IMPORT_DATE DATE 7
    BATCHNO VARCHAR2 16

    Hi all. Just got ODBC working w/the instant client and would like to add what I've found with this with some quick testing.
    I created a new Access 2002 database and created links to a test database on our 8.1.7.4 db. Created a link to the same schema/table in the test 10g database. The table from 8x works fine. The table from 10g has the #deleted for all data. On tables from 10g where the primary key is defined using a numeric column (seq number generated) the data look fine. If the table has a text based PK then I get the #deleted for all rows. The same keys in the 8x tables work fine.
    Hope this helps in tracking down what might be amiss.

  • OCIEnvCreate fails with -1 using Instant Client 10.2.0.1 on Windows XP

    I have a working application (using the full Oracle install) and I'm trying to see if I can get it to work using the instant client. I installed the client, changed my path and rebooted. According to the instant client how to install - it should just work but then if everything worked like it was documented then lots of support folks wouldn't have jobs. The only parameter I'm setting is the OCI_THREADED flag. The database is on a different server - but that shouldn't matter I'm not getting that far. I am logged into an administrator account on the client box - so I'm not sure what else could be wrong. Also if anyone knows why we always seam to need administrator accounts that would be a great piece of info too.

    It should work if you follow the instructions on the instant client page on OTN:
    http://www.oracle.com/technology/tech/oci/instantclient/index.html
    Are you able to connect to SQL Plus after setting up instant client ?

  • Help Using Instant Client ODBC on Linux

    I am familiar with using ODBC and visual basic under Windows. I would like to use the Oracle instant client ODBC under Red Hat ES3 within a C or C++ program to access an Oracle database.
    Where can I find documentation related to this:
    a) setting up an ODBC connection on Linux
    b) installing the Oracle instant client on Linux
    c) building an application with Oracle instant client ODBC
    Am I correct in assuming that any C/C++ ODBC code examples from windows could also be used on Linux.
    Thanks,
    Werner

    We are also interested in the very same thing. We are using third party compiler called SIMSCRIPT from CACI which has a module called SDBC for database connectivity. SDBC requires ODBC to be installed/configured. Our application is for Linux, therefore we are interested in using the ODBC driver on Linux clients to connect Oracle database servers on Linux and Sparc. I see the odbc related zip (for 10g) and rpm (for 11g) instant client files on the OTN Instant Client download page. How to install/configure odbc instant client? Is there a document/whitepaper/Metalink Note ?
    Thank you

  • TNS_ADMIN (path to tnsnames.ora) using Instant Client IGNORED

    Hi,
    I developed a simple utility which uses OCCI LIB from 10g release. I'm deploying it with Oracle Instant Client lite libraries.
    Everything works fine when tnsnames.ora is present in the same dir. When I move it somewhere else and set TNS_ADMIN to that directory, it doesn't work anymore:
    C:\uplob>set TNS_ADMIN=c:\tns;
    C:\uplob>echo %tns_admin%
    c:\tns;
    C:\uplob>uplob u/p@xe 15 input.dat
    Exception:12154 ORA-12154: TNS:could not resolve the connect identifier specif
    ied
    This seems very simple, but I still cannot determine why TNS_ADMIN is not being taken into account.
    Thank you for any help with this issue,
    david

    I think for Windows ,
    You may have to set this in MY-COMPUTER-->Advanced-Env-Variables
    and reboot to take effect.
    rgds

  • Unable to connect remote databse via windows XP(using Instant Client)

    I have downlaod instant Client and the PATH env variable automatically is set when I install Instant Client. Then I try to connect using the following(from the path C:/XEClient/bin):
    sqlplus username/passwd@//host:[port][service name]
    I get the following error:
    ORA-12170: TNS: Connect timeout occurred
    When I ping the host I get reply.
    Also I am able to connect to that same database thru perl( so I presume there is no problem with the database not avaiable or port not open etc), where additionally ORACLE_HOME and ORACLE_SID env variable are set to the path in the remote machine. The databse version is Oracle 9.2
    Below is the sqlnet.log:
    Fatal NI connect error 12170.
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
    Time: 30-AUG-2006 14:56:03
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12535
    TNS-12535: Message 12535 not found; No message file for product=NETWORK, facility=TNS
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Message 505 not found; No message file for product=NETWORK, facility=TNS
    nt secondary err code: 60
    nt OS err code: 0
    Client address: <unknown>
    ===========================================================
    Am I missing some set up.
    Can anybody help please...I have been trying since last 3 days.
    Thanks

    Hi Laurenz,
    Sorry to say...but it still does not connect(incorporated your suggestions), nor is the trace generated. sqlnet.log looks no different. As about any other oracle clients...I did not have any until yesterday evening when we installed the entire 10g oracle...client and database.
    Anyways now too after having installed oracle 10g on D drive, no succes in connecting to remote databse.
    Two questions:
    1. Is XE client compatible with 10g database? As I am trying to connect to 9.2 version as mentioned in my initial query.
    2. When I ping the host I do get reply. BUT when I telnet i.e.
    telnet host port
    ....it says "could not open connection to the host, on port XXX: connect failed"
    Does it mean there is a firewall at the remote end which is preventing the successfull connection? But then how do I connect thru' Perl with no extra info...
    Any other suggestion please let me know...and also do you suggest I uninstall all oracle clients other than XE...or is there any way out ...having multiple clients?
    Another query...hope I can use toad after having set up the XE client?
    Thanks in advance...
    Message was edited by:
    user527367

  • Linked server using ASEOLEDB

    Hello.
    Has anyone managed to get a linked server working between SQL 2008R2 and Sybase ASE 15.7 using the SAP/Sybase OLE DB driver and not using an ODBC DSN?
    I've tried what seems like every combination of parameters to create the linked server both through the GUI and using sp_addlinkedserver, all to no avail.
    If you could supply an example sp_addlinkedserver call that would be really helpful.
    Thanks.

    Hi Hedgehog,
    According to your description, you need to create a linked server to Sybase by using ASE OLEDB provider, right?
    If in this case, you need to install the DataDirect OLEDB Provider for Sybase on the machine running SQL Server.  And you need to create and configure a Data Source before creating a linked server. Here is a blog which describes how to create a linked
    server in SQL Server Sybase ASEdatabase using OLEDB provider.
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2009/11/12/how-to-create-a-linked-server-in-sql-server-2005-for-sybase-ase-12-5-database-using-datadirect-s-odbc-driver-and-oledb-provider.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Deploying to remote WL 6.1 Admin Server using SNMP Client

    Hi All
    I am a newbie to JMX and I want to know if it is possible to use a SNMP
    Client to deploy an EAR to a remote WL 6.1 SP2 Admin Server. If Yes can
    somebody please give me a code snippet, some guidelines or some links for
    this. How would I create an SNMP client?
    Is there any HTTP Connector in WL 6.1 SP2 that I Can use to deploy an EAR on
    a remote admin server?
    thanx in advacne for all the help
    Daya

    Hi All
    I am a newbie to JMX and I want to know if it is possible to use a SNMP
    Client to deploy an EAR to a remote WL 6.1 SP2 Admin Server. If Yes can
    somebody please give me a code snippet, some guidelines or some links for
    this. How would I create an SNMP client?
    Is there any HTTP Connector in WL 6.1 SP2 that I Can use to deploy an EAR on
    a remote admin server?
    thanx in advacne for all the help
    Daya

  • Unable to connect to a database on one server using oracle client on anothe

    Hi,
    I am trying to connect to a database on zodiac server (10.180.173.201), from client installed on pluto server (10.180.173.203). But its giving the below error:
    bash-2.05$ sqlplus CTEMEA_MWEL3/payplus@ctftdb1
    SQL*Plus: Release 11.2.0.2.0 Production on Wed Mar 28 15:57:22 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-21561: OID generation failed
    I went through online help but they were not clear.
    kindly suggest
    -Azad

    Hi,
    entry is there. But when i changes the oracle home path to that of the previous client i am able to login.
    But when i set the oracle home path of 11g client its giving error.
    Tks,
    -Azad

Maybe you are looking for

  • InputRangeSlider is not working properly in Jdeveloper 11.1.1.6.0

    Hi, I am using jdeveloper 11.1.1.6.0. I have a requirement with InputRangeSlider in ADF. When ever i change the slider, i would like to invoke the managed bean method (ValueChangeListener). it's working for me. In the same page i have radio (SelectOn

  • Lack of Replies

    Hi,           I've asked a number of questions over the last few months, but have received no even the most brief of replies. If the problem cannot be sollved, or if it would be best for my to go to a Mac dealer, then I'd appreciate someone having th

  • External hard drives and MacBook

    Sorry, I don't know if this is posted in the right section. I have a MacBook connected with an external hard drive. I'm not sure what it takes for an external hard drive to crash, but I unplug it until I need to pull something from it or backup files

  • Query analyzing in Oracle

    Hi, I use the execution plan in the PL/SQL for analyzing complex queries. There is evaluation of the queries and subqueries as "cost". Is this value reputable? I have two views A and B which have the same purpose but have a different definition. The

  • I am wanting to put the new firmware on to my iPhone 4 and am wondering if I do this from another computer will I loose all my data - i.e music

    I am wanting to put the new firmware on to my iPhone 4 and am wondering if I do this from another computer will I loose all my data - i.e music