MS SQL Server ODBC Connection On Linux

Hi All,
I am badly stuck with configuration of MS SQL Server ODBC connection on SUSE Linux 10. I am almost tried everything I got from SAP notes but still getting ODBC Lib Data Direct drivers could not be loaded IES 10901.
ENV: SAP BO 4.0 SP7, MS SQL SRV 2008
Here is what I have tried so far:
1) Modified env.sh under /install_dir/sap_bobj/setup and added the line in bold.
":${BOBJEDIR}enterprise_xi40/linux_x64/odbc/lib:${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/odbc/lib"
The line should look like this
LIBRARYPATH="$LIBDIR:$LIBDIR32:$WCSCOMPONENTDIR:$PLUGINDIST/auth/secEnterprise:${CRPEPATH64}:${CRPEPATH}:${MWHOME}:$PLUGINDIST/desktop/CrystalEnterprise.Report:
${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/ras:${BOBJEDIR}mysql/lib:${BOBJEDIR}enterprise_xi40/linux_x64/odbc/lib:${BOBJEDIR}enterprise_xi40/$SOFTWAREPATH32/odbc/lib”
2) We have .odbc.ini file in the home directory of our BO user on linux. Added following DSN entry (Same DSN is created on client and odbc connection has been created on the universe using this DSN:
boeadm01:~> vi .odbc.ini
[DSN_NAME]
Driver=/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib/CRsqls24.so
Description=DataDirect 6.0 SQL Server Native Wire Protocol
HostName=SQL Server Hostname
Database=SQL DB Name
QuotedId=Yes
AnsiNPW=No
3) We then added the environment variables and LIBPATH in BO user .profile file.
boeadm01:~> vi .profile
#Sql Server Environment
ODBCINI=$HOME/.odbc.ini
export ODBCINI
LD_LIBRARY_PATH=/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib
export LD_LIBRARY_PATH
4) Did echo to check the LIBPATH
boeadm01:~> echo $LD_LIBRARY_PATH
/opt/sapboe/sap_bobj/enterprise_xi40/linux_x64/odbc/lib
5) Modified sqlsrv.sbo under /install_dir/sap_bobj/enterprise_xi40/dataAccess/connectionServer/odbc
  <Parameter Name="Use DataDirect OEM Driver" Platform="Unix">Yes</Parameter>
6) Restarted BO node.
Tried creating a new webi report and got the error mentioned above.
Please help!!!
Thanks,
Anshul

Hi Anshul,
Please refer the below KBA & SCN thread regarding your issue.
Data Direct ODBC Drivers for SAP BusinessObjects Data Services
Link:
http://scn.sap.com/docs/DOC-8898
Business Objects XIR2 Link:
Link:
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50eca18b-d13e-2b10-a8ab-9738927177d6?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20e11153-5c3f-2b10-f9be-974dc4749fd8?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/70eabcba-5c64-2b10-6db2-ae28ae4d1295?quicklink=index&overridelayout=true
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/4039c80b-6b3f-2b10-64a4-e8e591292e89?quicklink=index&overridelayout=true
KBA:
1291142 - Web Intelligence reporting using DataDirect drivers in Unix
1292899 - Data Direct Drivers for Crystal Report in Unix environment
SQL Server ODBC Driver for Linux/Unix Getting Started Tutorial
Link:
http://www.easysoft.com/products/data_access/odbc-sql-server-driver/getting-started.html
Step by Step: Setting up Linux ODBC driver for SQL Server
Link:
http://blogs.technet.com/b/sqlman/archive/2012/08/03/step-by-step-setting-up-linux-odbc-driver-for-sql-server.aspx
Microsoft SQL Server ODBC driver for Linux
Link:
http://www.codesynthesis.com/~boris/blog/2011/12/02/microsoft-sql-server-odbc-driver-linux/
Thanks,
Daya

Similar Messages

  • Lack of TCP keepalive parameter in Microsoft SQL Server ODBC Driver for Linux

    Hello,
    the problem in the
    aforementioned driver is the lack of TCP keepalive parameter that results in hanged threads because of closed connections on the SQL Server side, but not closed
    sockets on the client side. This could happen due to network-related problems.
    The driver is used in mission critical 24/7 uptime application and due to hanged threads the application cannot continue it's work and it needs to be restarted.
    This is observed in the latest version of the driver on RHEL 5.6.
    If you need clarification please ask.
    Does anybody know any workaround to this situation or a solution that I'm not aware of?
    Thank you for your help,
    luk.s

    Find the TCP socket of the ODBC connection in your process and set the keep-alive option and keep-alive timeout on it.
    You can do that by interposing socket system call.
    Or use libkeepalive: http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/#libkeepalive

  • Error in connecting SQL Server ODBC connection to Oracle 8i

    I am tried connecting Oracle 8i on Windows2000 to SQL Server on Windowns2000 using ODBC. Sitting on Oracle server, in datasource(ODBC) when i give SQL servername and userid and password and click next, it gives error:
    connection failed
    SQL Server Error:1326
    ODBC SQL Server driver(Namespipe)
    client unable to establish connection
    can anyone help urgently?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sanjayp patel ([email protected]):
    I tried connecting Oracle 8i on Windows2000 to SQL Server on Windowns2000 using ODBC. Sitting on Oracle server, in datasource(ODBC) when i give SQL servername and userid and password and click next, it gives error:
    connection failed
    SQL Server Error:1326
    ODBC SQL Server driver(Namespipe)
    client unable to establish connection
    can anyone help urgently?<HR></BLOCKQUOTE>
    null

  • Connecting Oracle to MS SqlServer using Microsoft SQL Server ODBC Driver

    Hello,
    I have just downloaded the newly released Microsoft® SQL Server® ODBC Driver for Linux and trying to configure it to connect to SqlServer Database from Oracle using DG4ODBC
    Below are my config files:
    # odbcinst -j
    unixODBC 2.3.1
    DRIVERS............: /etc/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/odbc.ini
    FILE DATA SOURCES..: /etc/ODBCDataSources
    USER DATA SOURCES..: /usr/oracle/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8
    cat /etc/odbcinst.ini
    [SQL Server Native Client 11.0]
    Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
    Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1720.0
    #UsageCount = 1
    Fileusage = 1
    Dontdlclose = 1
    [ODBC]
    Trace = ON
    Tracefile = /tmp/mstestodbc.log
    cat /usr/oracle/.odbc.ini
    [DEFAULT]
    Driver = SQL Server Native Client 11.0
    [MSTEST]
    Driver = SQL Server Native Client 11.0
    Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
    Servername = ret2axxx
    Database = testdb
    Port = xxxx
    And when I am trying to do an ODBC test using isql I am getting the below error.
    # iusql -v MSTEST username password
    [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
    [ISQL]ERROR: Could not SQLDriverConnect
    Any help is much appreciated!!
    Thanks,
    Steve.

    Thanks Kgronau for your response.
    I have made changes to the ODBC.ini file still getting the same error
    [MSTEST]
    Driver = /opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1720.0
    #Driver = SQL Server Native Client 11.0
    Description = Microsoft SQL Server ODBC Driver V1.0 for Linux
    #Address = ret2axxx
    Server = ret2axxx, <port>
    Database = testdb
    and when I am trying to export odbcinst.ini export ODBCINSTINI=/etc/odbcinst.ini
    in odbcinst -j output it shows the wrong information.
    :~ $ odbcinst -j
    unixODBC 2.3.1
    DRIVERS............: /etc//etc/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/odbc.ini
    FILE DATA SOURCES..: /etc/ODBCDataSources
    USER DATA SOURCES..: /usr/oracle/.odbc.ini
    SQLULEN Size.......: 8
    SQLLEN Size........: 8
    SQLSETPOSIROW Size.: 8
    And when export odbcinst.ini as export ODBCINSTINI=odbcinst.ini it shows the correct path.
    :~ $ odbcinst -j
    unixODBC 2.3.1
    DRIVERS............: /etc/odbcinst.ini
    isql -v mstest username password
    [IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed
    [ISQL]ERROR: Could not SQLConnect
    Thanks,
    Steve.

  • Microsoft SQL Server ODBC Driver 1.0 for Linux problem

    Hello! I've RedHat Linux 6 Update 1 x64 on VMware Player and MS SQL Server on real machine. My application "servernew" on RedHat. All right, but when i try connect my SQL Server:
    retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof(buf),&StringLength2,SQL_DRIVER_NOPROMPT);
    i get retocde = -1;
    Using SQLGetDiagRec:
    MessageText = Data source name not found, and no default driver specified
    To make my connection i use next attempts for connection string:
    //char constring[200]="Driver={Microsoft Server ODBC Driver 1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={SQL Server Native Client 11.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={Microsoft SQL Server ODBC Driver V1.0 for Linux};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    //char constring[200]="Driver={/opt/microsoft/sqlncli/lib64/libsqlncli-11.0.so.1790.0};Server=ARTPK2\\SQLEXPRESS2;Database=Kurs;Uid=sa;Pwd=2ef5Fese";
    char constring[200]="DSN={SQL Server Native Client 11.0};Uid=sa;Pwd=2ef5Fese";
    but...Data source name not found, and no default driver specified .. help me

    Ok. New attempts with sqlcmd:
    [root@localhost ~]# sqlcmd -S 192.168.0.3 -U sa -P 2ef5Fese -d first
    SqlState HYT00, Login timeout expired
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online.
    TCP Provider: Error code 0x6F
    New error 0x6F (i turned off firewall in windows).
    [root@localhost ~]# sqlcmd -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
    SqlState HYT00, Login timeout expired
    A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information
    see SQL Server Books Online.
    SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
    It's bad way, but...
    [root@localhost ~]# sqlcmd -D -S ARTPK2\\SQLEXPRESS2 -U sa -P 2ef5Fese -d first
    SqlState IM002, Data source name not found, and no default driver specified
    It's like in my program!!
      retcode = SQLDriverConnect(hdbc,NULL,string,sizeof(string),buf,sizeof     (buf),&StringLength2,SQL_DRIVER_NOPROMPT);
      i get retocde = -1;
      Using SQLGetDiagRec:
      MessageText = Data source name not found, and no default driver specified
    Why "SQLDriverConnect"  is looking for DNS?!

  • Connect to MS SQL server from OWB on Linux platform

    Hi,
    I want to connect to MS SQL server through OWB, on Linux platform.
    I suppose I would use JDBC driver, and Heterogeneous services. Is that possible?
    I did not see anything on JDBC driver for MS SQL server for Linux platform from Oracle.
    Also, I was wondering is Oracle Gateway 10g for Linux a way to connect to MSSQL server?
    Any leads would be appreciated.
    Thanks
    Ani

    Hi,
    This quite an actual topic for myself, so I decided to take some time to collect some information.
    Start at:
    * Oracle Generic Connectivity and Oracle Transparent Gateway - http://www.oracle.com/technology/products/gateways/gateways_fov.html
    You can use the free Heterogenous Services component named Generic Connectivity for connecting to SqlServer over ODBC. You will need to find (or purchase?) a third-party ODBC driver for SqlServer for Linux, e.g. from www.datadirect.com. Setting this up will allow you to define a databaselink to the SqlServer. Open Gateways implements a limited set of the oracle SQL, so you will have to find out what is possible and what not.
    See also:
    * How To Setup HSODBC on Linux - https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=264567.1
    * Generic Connectivity Available on Linux x86 with 10g - https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=261726.1
    You can also use the Transparent Gateway for SqlServer (HS), which is about EURO 12000 per computer(!). This gives you a full implementation of Oracle SQL and you can access the SqlServer like it was Oracle.
    You can also install Microsofts JDBC drivers into Oracle's JVM, and connect through JDBC to SqlServer. This is however not supported by Oracle, but it will work. See:
    * What is required for a Java Stored Procedure to connect to a SQL Server Database? - https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=276167.1
    See also:
    * Options for Connecting to Foreign Data Stores and Non-Oracle Databases - https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=233876.1
    * JDBC Developer's Guide - http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979/overvw.htm
    Good luck, Erik Ykema

  • Error:java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection

    Hi,
    while running jsp page i m getting error as follows:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt..
    what is this error...
    what should i do to solve this problem...
    plz let me know what is this error & how to solve this...
    Thanx in advance....

    Why don't you do a search in google with the excpetion?
    If you cannot then try this link
    [http://www.idssoftware.com/faq-e.html]

  • Error updating data source from SQL Server ODBC into SQL Native Client 10.0

    I am converting Crystal 8.5 reports into Crystal XI release 2. The data source was ODBC using SQL Server 2000 and pointing to a stored procedure. In the new server the data source has to be ODBC again, but it uses the SQL Native Client 10.0 Driver, because the new server is SQL Server 2008. I have copied the same old stored procedure on the new server and it works fine as a data source to a brand new Crystal XI report. But when I am opening an existing 8.5 version crystal report and updating the data source to the new location I get the error message "Some tables could not be replaced, as no match was found in the new data source".
    I thought I could tackle this error by creating a temporary data source using the standard ODBC SQL Driver linked to the SQL 2008 Server instead of the SQL Native Client 10 ODBC. So I first updated the crystal data source to link to this temp ODBC using SQL Driver and it worked fine. But after that, when I try to update the data source to link to the SQL Native Client 10 ODBC, I get the same error again.
    So I guess that the problem is not the new server itself, but the switch between SQL Server ODBC and SQL Native Client 10 ODBC.
    Does anyone know what's going on with this SQL Native Client 10 in updating crystal report data sources?

    CR XI does not support that driver. Try selecting the Native driver or upgrade to CR XI R2 for free and use SP4, 5 and 6 and then FP 6.4 or upgrade to CR 2008 and SP 3 and Fix Pack 3.3
    Thank you
    Don

  • Java - SQL Server 2000 Connectivity

    hi all. i m looking for help in Java - SQL Server 2000 Connectivity.i worked on Java- Oracle & Java - MS Access format.now i m looking to work on Java - SQL Server 2000. I m using JBuilder 2005. can any1 help me how to make any change(configuration) in my SQL Server.thanx in advance.

    http://www.jguru.com/forums/JBuilder is hopeless. ihvn;t get good replies from them.i downloaded the JDBC driver from microsoft and added the JAR files (3 files) and tried the following code:
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test {
    public Test() throws Exception {
    // Get connection
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
    //Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD>");
    // Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://GMC01:1433;DatabaseName=MoonDB");
    Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://Moon:1433;DatabaseName=MoonDB");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test test = new Test();
    it run without any error and then showed fatal exception as below:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
         at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:193)
         at Test.<init>(Test.java:11)
         at Test.main(Test.java:31)
    Exception in thread "main"
    where's the problem?can any1 try to solve this plz.

  • CF8 & MSDE SQL Server DSN Connection Error SOLVED!!!

    Getting the following error trying to add a CF DSN to SQL
    Server?
    Connection verification failed for data source:
    datasource_name
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket to host and port: localhost:1433.
    Reason: Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket to
    host and port: localhost:1433. Reason: Connection refused: connect
    There are several steps in order to make ColdFusion 8 and
    MSDE SQL 2005 Server
    1. TCP/IP is not enabled by default. When looking in SQL
    Server Configuration Manager it appears TCP/IP is enabled by there
    is a second place that it has to be enabled.
    2. The TCP/IP port is dynamically assigned each time the
    service is started, if they are no errors it the port number stays
    the same but if there is an error the port number is dynamically
    changed the next time the service starts.
    3. You have to add your dsn login username and password to
    the database in order to connect without using the sa username and
    password.
    Steps to get DSN setup correctly.
    1. Open SQL Server Configuration Manager
    2. Expand the SQL Server 2005 Network Configuration Group
    3. Click on Protocols for SQLEXPRESS
    4. Right click TCP/IP in the right pane and select properties
    5. On the protocol tab under enabled set to yes and apply.
    6. Disable dynamic port assignments by following the
    instruction below:
    If enabled, the default instance of the Microsoft SQL Server
    Database Engine listens on TCP port 1433. Named instances of the
    SQL Server Database Engine and SQL Server Compact Edition are
    configured for dynamic ports, which means they select an available
    port when the SQL Server service is started. When connecting to a
    named instance through a firewall, configure the Database Engine to
    listen on a specific port, so that the appropriate port can be
    opened in the firewall.
    To assign a TCP/IP port number to the SQL Server Database
    Engine
    In SQL Server Configuration Manager, in the console pane,
    expand SQL Server 2005 Network Configuration, expand Protocols for
    &lt;instance name&gt;, and then double-click TCP/IP.
    In the TCP/IP Properties dialog box, on the IP Addresses tab,
    several IP addresses appear, in the format IP1, IP2, up to IPAll.
    One of these are for the IP address of the loopback adapter,
    127.0.0.1. Additional IP addresses appear for each IP Address on
    the computer. Right-click each address, and then click Properties
    to identify the IP address that you wish to configure.
    If the TCP Dynamic Ports dialog box contains 0, indicating
    the Database Engine is listening on dynamic ports, delete the 0.
    In the IPn Properties area box, in the TCP Port box, type the
    port number you wish this IP address to listen on, and then click
    OK.
    In the console pane, click SQL Server 2005 Services.
    In the details pane, right-click SQL Server (&lt;instance
    name&gt;) and then click restart, to stop and restart SQL
    Server.
    7. Open Microsoft SQL Server Management Studio Express
    8. Connect to your local copy of SQL Server
    9. Expand the Security group
    10. Right click login. Select new login.
    12. Enter the dsn login name you want.
    11. Choose SQL Server Authetication.
    12. Enter the dsn password you want twice.
    13. Disable user must change password at next login
    14. Choose default database if you like.
    15. Click User Mappings in left pane.
    16. Click databases you want login to have access to.
    17. Click ok.
    You should now be able to add your CF DSN using localhost for
    server and the port number you put in earlier. Default port number
    is 1433.
    You can view which port number SQL is listening to at this
    registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
    Server\SQLEXPRESS\MSSQLServer\SuperSocketNetLib\Tcp
    tcpport
    You can test connectivity to the sql server by typing telnet
    localhost 1433 or the port number you selected at a command prompt.
    You should get a blank screen not an error.
    Hope this helps, I spent 3 hours figuring it out.
    David

    I'm running into the same error with CFMX 7 and SQL 2000. The
    port is set correctly (1433) in SQL, but it just can't communicate
    successfully. SQL reside on a seperate server. Any thoughts?
    Chris

  • Problem to connect SQL Server using dg4msql  form Linux machine

    Hi All,
    I have oracle 11g 11.2.0.1.0 on RHEL 4 on one machine and MS SQL Server 2000 on another Windows XP machine. I have to link the oracle database with SQL Server Database. So that we can run queries on SQL Server from Oracle 11 Database.
    For this purpose I have installed Oracle Database 11g Release 2 (11.2) Gateway for SQL Server on oracle machine.
    For the purpose of configuration, I have followed the instructions of Doc ID (437374.1) available from oracle metalink.
    listener.ora file
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = orcl)
    (ORACLE_HOME = /opt/orabase/orahome11g)
    (SID_NAME = orcl)
    (SID_DESC=
    (SID_NAME=dg4msql)
    (ORACLE_HOME=/opt/orabase/orahome11g)
    (ENVS="LD_LIBRARY_PATH=/opt/orabase/orahome11g/dg4msql/driver/lib:/opt/orabase/orahome11g/lib")
    (PROGRAM=dg4msql)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.15)(PORT = 1522))
    ADR_BASE_LISTENER = /opt/orabase
    tnsnames.ora file
    DG4MSQL =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.10.15)(PORT=1522))
    (CONNECT_DATA=(SID=dg4msql))
    (HS=OK)
    initdg4msql.ora file
    # HS init parameters
    HS_FDS_CONNECT_INFO=172.16.30.51:1433//Northwind
    I have created DB link using following statement:
    CREATE public DATABASE LINK dg4 CONNECT TO "sa" IDENTIFIED BY "sa" USING 'dg4msql';
    when I give select statement, It gives following error:
    select * from "Employees"@dg4
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][libssclient24]General network error. Check
    your network documentation. {08001,NativeErr = 11}[Oracle][ODBC SQL Server
    Driver][libssclient24]ConnectionOpen (()). {01000,NativeErr = 11}[Oracle][ODBC
    SQL Server Driver]Invalid connection string attribute {01S00}
    ORA-02063: preceding 2 lines from DG4
    I will appreciate if anyone can help me

    The general DG4MSQL configuration is correct as DG4MSQL is loaded and tries to connect to the SQL Server.
    Is the IP Address and the SQl Server port (HS_FDS_CONNECT_INFO=172.16.30.51:1433//Northwind) correct?
    Can you ping it from the Oracle gateway machine?
    Can you telnet to it from the gateway machine to the SQl Server: "telnet 172.16.30.51 1433"

  • MS SQL SERVER-APPLET CONNECTION WITHOUT ODBC

    ONE QUESTION ALL
    Can it be achieved? I want to setup a database on a running sql server. On the same machine both and then i want to connect an applet with the database!! Please tell me if it can be done and any source code would be helpful!!!
    e-mail:[email protected]
    i will look again here but if you have anything send it here on this e-mail!!!
    I need some answer please!

    To connect to sql server directly from an applet is a waiste of time.
    Do multiple clients use your applet?
    yes:
    You have to write server side script on the same server that the applet came from that
    does the database work according to submitted values from the applet (applet uses url
    urlconnection POST or GET).
    If you want the applet to connect directly you have to sign the applet or set up a policy and
    tell all the clients to install the needed jdbc classes.
    no:
    Write an application using swing.

  • Oracle 11.1.0.7 x64 to SQL Server 2008 connectivity

    Hi There,
    I'm trying to establish connectivity between oracle database running 11.1.0.7 64bit on windows 2008 server x64 to sql server 2008 database. Both databases (oracle and SQL) are on the same machine.
    I know with the older oracle versions, we used to setup hs connection between the two databases, however, I've been reading note 466225.1 (How To : How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit) on metalink and it states the following:
    >
    Please be aware:
    - DG4ODBC is first ported to 64bit Windows platforms starting with 11.2. Using a 32bit DG4ODBC on a 64bit Windows operating system is NOT certified.
    - HSOLEDB is no longer available for 11g on Windows.
    >
    So, according to the above, I'm guessing that we won't be able to use dg4odbc to establish the connectivity between the two.. how about the old hsodbc setup under ORACLE_HOME\hs\admin ? would that work? or is there another way that w can do this?
    I've been working on this and trying to get it going but not sure if I'm doing something wrong or it just doesn't work here..
    On the server I did the following:
    1. created the sqlserver DSN and tested the connection and it's all ok.
    2. added the following to the tnsnames.ora
    SQLCentralODBC  =
      (DESCRIPTION=
        (ADDRESS=(PROTOCOL=tcp)(HOST=188.87.135.90)(PORT=1522))
        (CONNECT_DATA=(SID=SQLCentralODBC))
        (HS=OK)
      ) 3. added the following to the listener.ora:
    LISTENER_ELMSCENTRAL =
    (ADDRESS_LIST=
          (ADDRESS=(PROTOCOL=tcp)(HOST=188.87.135.90)(PORT=1522))
    SID_LIST_LISTENER_SQLCENTRAL=
      (SID_LIST=
          (SID_DESC=
             (SID_NAME=SQLCentralODBC)
             (ORACLE_HOME=C:\oracle\product\11.1.0.7)
             (PROGRAM=hsodbc)
      )4. the listener started ok, and I validated the dsn connection and it's all ok:
    C:\Users\oracle>tnsping SQLCentralODBC
    TNS Ping Utility for 64-bit Windows: Version 11.1.0.7.0 - Production on 21-MAY-2010 15:47:12
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    C:\oracle\product\11.1.0.7\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=188.87.135.90)(PORT=1522)) (CONNECT_DATA=(SID=SQLCentralODBC)) (HS
    =OK))
    OK (10 msec)
    C:\Users\oracle>5. created the db link:
    SQL> create database link LM_SQLC connect to sqlc_user identified by xxx using 'SQLCentralODBC';
    Database link created.6. Test the connection:
    SQL> select * from event@LM_SQLC;
    select * from event@LM_SQLC
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from LM_SQLC
    SQL>Any ideas/help will be really appreciated.
    Thanks alot.
    Edited by: user4415740 on May 21, 2010 12:36 PM
    Edited by: user4415740 on May 21, 2010 12:52 PM

    They say "Using a 32bit DG4ODBC on a 64bit Windows operating system is NOT certified." but we do it extensively and it works just fine. You need to install a 32-bit home and create a listener for the 32-bit gateway. Only downside (aside from maintaining 2 homes) is that if you need to file an SR, you must prove that you're able to reproduce the problem when the gateway is running on a 32-bit OS. We keep a little 32-bit server around for this purpose and point our gateways to that box to reproduce issues for SR's.
    If you want to run "certified" all the time, you could leave the gateways running in Production on a 32-bit OS, but it runs considerably slower this way, and all because Oracle won't support your SR's. You have to decide if you really think you'll hit an issue that wouldn't reproduce on the true 32-bit OS and decide if it's worth the risk. We've made our decision...
    Good luck!

  • AIX (Oracle 8.1.6) to MS/SQL Server (ODBC)

    Hi,
    The company I am working for is about to evaluate the Oracle Transparent Gateway to connect 8.1.6 (on AIX) to MS/SQL Server (on NT). I have heard that you can do this via ODBC (on AIX) to ODBC (on NT).
    Does anyone have a step-by-step guide on how to do this? The Oracle documentation
    "Managing Heterogeneous Services Using Generic Connectivity" just gives you concepts and does not tell you how to just
    "do it" or where to get the ODBC driver manager (for AIX) or ODBC driver manager (for AIX).
    Anyone set this up before?

    Hi,
    Good that you are exploreing lot many things. As you are already working on 8.1.6, I guess you know much about that. To get more on 9i features read this link
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96531/toc.htm
    and 9.2.0.4 that 0.4 is a patch which you need to download from metalink site (metalink.oracle.com) for which you needs oracle licence.
    Hope this meets your basic requirement.
    Kamalesh JK

  • Oracle 10.2 to MS-SQL Server 2005 connectivity

    Hi,
    I Have oracle10.2 installed on windows server 2003 (server2) and MS SQL server 2005 on windows server 2005(server1).
    Connectivity architecture
    1. I have created the DSN in windows odbc drivers in server2 and tested (connectivity is successful).
    2. Created Heterogeneous Services Initialization File called initbowmacnet.ora (same as DSN) made the changes as below
    #SQL SERVER DSN
    HS_FDS_CONNECT_INFO = "SERVER=10.1.1.2;DATABASE=bowmacnet"
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_RECOVERY_ACCOUNT=oracle
    HS_FDS_RECOVERY_PWD=oracle
    3. Made changes to listener.ora as below.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    BOWMACNET =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.2)(PORT = 1522))
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = orasrv1.tlisoftware.com)(PORT = 1521))
    4. Changes to tnsnames.ora file
    BOWMACNET =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.1.2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = bowmacnet)
    (HS = OK)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = orasrv1.tlisoftware.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Unfortunately i am getting error connecting database
    C:\>lsnrctl start bowmacnet
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-AUG-2008 01:59:47
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    System parameter file is E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    Log messages written to E:\oracle\product\10.2.0\db_1\network\log\bowmacnet.log
    Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=10.1.1.2)(PORT=1522))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    32-bit Windows Error: 49: Unknown error
    Listener failed to start. See the error message(s) above...
    C:\>tnsping bowmacnet
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 07-AUG-2
    008 02:00:33
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    E:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 10.1.1.2)(PORT = 1522))) (CONNECT_DATA = (SID = BOWMACNET)) (HS = OK))
    TNS-12541: TNS:no listener
    kindly let me know what to do. please Help me out to resolve this issue
    thanks and Regards
    Prasad N

    The listener must have the ip address/hostname of the machine where it is configured.
    According to you configuration:
    IP address 10.1.1.2 is for host orasrv1.tlisoftware.com.
    Is this correct? Why don't you use the hostname as it was done for the listener with name listener?

Maybe you are looking for

  • Keyboard Layout Problem in Bootcamp Using Windows 7

    Both OSX, bootcamp and Windows 7 are the latest versions and all up to date and I have had this problem ever since I first started using Windows 7. Everything has worked smoothly and without problems except for my keyboard. No matter what program I a

  • No Reporting Symbol for the cube.

    Hi all, no reporting symbol for an cube. I created Z cube without any aggregates and loaded data sucessfuly QM status is green but i'm not able to see the reporting symbol next the request id.  When i checked in manage content data, data is available

  • Ora- 3135 , connection timeout

    Hi Experts, I'm having a 2 node RAC, 11.2.0.3 on AIX. I'm facing a strange scenario. The application is  trying to connect from  apps server using sqlplus  to the database. I have 2 schemas, say schema1 and schema2. I can connect successfully using s

  • Dip to Black - start at 50%

    I always start my fade ins at 50% and end with 100%.  Meaning it gradually transitions from black to the clip throughout the entirety of the transition selection.  By default, Premiere sets the fade in at 0% and ends at 100%, hereby making it black f

  • In MSS  Recruitment Zscenario, how to prepopulate custom fields of emp data

    Hey guys,   I created a Zscenario in recruitment in MSS... i assaigned a adobe form for the scenario... in portal in MSS the form is getting displayed... but i had some fields in the form(ex EMPLOYEE NAME ,DESIGNATION,etc) i want to prepopulate these