DBSL in AIX for connecting to MS SQL

Hi
I would like to know if there is a DBSL available for connecting MS SQL from on a AIX?
regards
Ramesh

no DBSL for SQL cannot be setup in AIX.
we had to use informatica BI connector and set it up as an external system in BI

Similar Messages

  • Unix Environment variable for connect string in SQL*Plus

    I am using some environment variables to connect to a sql*plus session in unix.
    they are exported as part of a file which contains the following and gets executed through the .profile.
    export db_username=xxx
    export db_password=xxx
    export db_name=xxx
    i have created a file abc.sql which contains the following
    connect $db_username/$db_password@$db_name
    Now, I have a shell script which uses this file inside it to connect to a sql*plus session and execute some queries.
    The contents of the shell script :
    API_CONNECT_SQL=abc.sql
    sqlplus /nolog << THEEND
    WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK
    WHENEVER OSERROR EXIT FAILURE ROLLBACK
    set timing on
    @${API_CONNECT_SQL}
    ---- do something
    EXIT
    THEEND
    Now, the sql*plus session is able to get db_username and db_password, but not the db_name. It says "TNS service name not found".
    If I hardcode some database name in place of db_name, it connects properly.
    Please let me know the problem and solution as well.
    Any help appreciated.
    thanks,
    Vijay

    for me this one works
    # =========================================
    # begin of script
    # =========================================
    export db_username=alpha
    export db_password=bravo
    export db_name=charly
    echo "connect $db_username/$db_password@$db_name" > xxx.sql
    API_CONNECT_SQL=/cfs/dummy1/0/appl/dummy2/rev_04/zzz/tst/xxx.sql
    cat ${API_CONNECT_SQL}
    sqlplus /nolog << THEEND
    spool xxx
    WHENEVER SQLERROR EXIT SQL.SQLCODE ROLLBACK
    WHENEVER OSERROR EXIT FAILURE ROLLBACK
    set echo on
    host cat ${API_CONNECT_SQL}
    @${API_CONNECT_SQL}
    select * from dual;
    spool off
    EXIT
    THEEND
    # =========================================
    # end of script
    # =========================================

  • Java Concurrent Program - connecting to MS SQL Server

    Hi,
    I hope this is correct forum to post this question.
    I am writing a JCP which will connect to a MS SQL Server DB, pull data from a table and populate this data into a custome table in EBS (R12.1.1) database. But I am facing some issues.
    When I run run this concurrent program from EBS, I get following exception message:
    Wed Aug 08 01:18:04 GMT 2012: In openConection()
    Wed Aug 08 01:18:04 GMT 2012: Before Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver
    Wed Aug 08 01:18:04 GMT 2012: openConection() ClassNotFoundException: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Wed Aug 08 01:18:04 GMT 2012: Before Calling processPrintMachineRecords()
    Wed Aug 08 01:18:04 GMT 2012: Exception:: java.lang.NullPointerException
    Wed Aug 08 01:18:04 GMT 2012: In closeSQLServerConnection().......closing JDBC Connection
    Wed Aug 08 01:18:04 GMT 2012: Connection object was null, hence skipping close
    Wed Aug 08 01:18:04 GMT 2012: After Calling processPrintMachineRecords()
    The I read somewhere on internet that I should set CLASSPATH in options field of concurrent program definition. So I provided classpath as follows:
    -cp /rs01/u02/applmgr/utyeb02/apps/apps_st/appl/au/12.0.0/appsborg.zip:/rs01/u02/applmgr/utyeb02/apps/apps_st/comn/java/classes/apps.zip:/rs01/u02/applmgr/utyeb02/apps/apps_st/comn/java/classes/sqljdbc_4.0/enu/sqljdbc.jar
    In this classpath sqljdbc.jar contains the classes for connecting to MS SQL Server DB. However after giving classpath like this I started getting different error:
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/fnd/cp/request/Run
    Caused by: java.lang.ClassNotFoundException: oracle.apps.fnd.cp.request.Run
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    It appears from the error message that after giving this CLASSPATH, program was not able to find the "Run" method itself. In otherwords, CLASSPATH screwed it further.
    Can anybody please point out what am I doing wrong here?
    Regards
    Java Code:
    package oracle.apps.custom.printmachine;
    import java.sql.*;
    import oracle.apps.fnd.cp.request.* ;
    import java.io.*;
    import oracle.apps.fnd.util.*;
    public class PrintMachineInterface implements JavaConcurrentProgram {
    public static final String M_SUCCESS = "SUCCESS";
    public static final String M_ERROR = "ERROR";
    public static final String M_WARNING = "WARNING";
    int mRequestStatus = -1;
    int max_number_of_records = 99999999;
    private String mSqlServerHost = "mysqlserver.domain.com";
    // Application Short Name
    private String applName;
    CpContext mCtx;
    LogFile logFile;
    OutFile outFile;
    Connection mConn = null;
    ReqCompletion lRC;
    public PrintMachineInterface(){
    // if no parameter value is specified for APPLNAME then use FND
    //as default value
    applName = "FND";
    private void logMessage(String str) {
    java.util.Date now = new java.util.Date();
    logFile.writeln(now.toString() + ": " + str, LogFile.STATEMENT);
    static String mInsertRecord = " Declare " + " BEGIN "
    + " INSERT INTO XXGFN_GBL_CE_PM_STAGE(ID, KEY, FILENAME, PRINTED_AT, CREATED_AT, DOCTYPE, LANGUAGE, OU, TRX_ID, DOC_ID, REQ_ID, TEMPLATE, PAGES, DOC_TEXT, TIMES_RECEIVED)"
    + " VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, substr(:14,2000), :15);"
    + " COMMIT;"
    + " END;";
    static Connection con = null;
    public void openConection() {
    logMessage( "In openConection()");
    try {
    logMessage( "Before Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    logMessage( "After Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver");
    logMessage( "Attempting to connect to " + mSqlServerHost);
    con = DriverManager.getConnection("jdbc:microsoft:sqlserver://" + mSqlServerHost + ":1433;User=sql_user;Password=sql_pwd");
    logMessage( "After con assigned from getConnection(jdbc:microsoft:sqlserver://" + mSqlServerHost + ":1433;User=pm_dba_access;Password=*****");
    } catch (java.lang.ClassNotFoundException e) {
    logMessage("openConection() ClassNotFoundException: " + e);
    } catch (SQLException ex) {
    logMessage("openConection() SQLException: " + ex);
    public void closeSQLServerConnection() {
    try {
    logMessage( "In closeSQLServerConnection().......closing JDBC Connection");
    if (con != null)
    logMessage( "Con is not null");
    con.close();
    logMessage( "Con Closed Successfully");
    else
    logMessage( "Connection object was null, hence skipping close");
    } catch (SQLException ex) {
    logMessage("SQLException: " + ex);
    } catch (Exception ex) {
    logMessage("Exception in closeSQLServerConnection() : " + ex);
    private void populate_staging_table(
    String p_id,
    String p_key,
    String p_filename,
    String p_printed_at,
    String p_created_at,
    String p_doctype,
    String p_language,
    String p_ou,
    String p_trx_id,
    String p_doc_id,
    String p_req_id,
    String p_template,
    String p_pages,
    String p_doc_text,
    String p_times_received
    PreparedStatement lStmt = null;
    logMessage("Populating data from PrintMachine history table");
    try {
    lStmt = mConn.prepareCall(mInsertRecord);
    lStmt.setString(1, p_id);
    lStmt.setString(2, p_key);
    lStmt.setString(3, p_filename);
    lStmt.setString(4, p_printed_at);
    lStmt.setString(5, p_created_at);
    lStmt.setString(6, p_doctype);
    lStmt.setString(7, p_language);
    lStmt.setString(8, p_ou);
    lStmt.setString(9, p_trx_id);
    lStmt.setString(10, p_doc_id);
    lStmt.setString(11, p_req_id);
    lStmt.setString(12, p_template);
    lStmt.setString(13, p_pages);
    lStmt.setString(14, p_doc_text);
    lStmt.setString(15, p_times_received);
    lStmt.execute();
    lStmt.close();
    } catch (SQLException s) {
    logMessage("Exception thrown w/ error message: "
    + s.getMessage());
    s.printStackTrace();
    finally {
    try {
    if (lStmt != null)
    lStmt.close();
    } catch (SQLException e) {
    logMessage("SQLException: " + e);
    private void processPrintMachineRecords() {
    int number_of_recs = 0;
    try {
    PreparedStatement stmt = con.prepareStatement("SELECT TOP 1000 ID, Key, Filename, PrintedAt, CreatedAt, Doctype, Language,OU, TransactionID, DocumentID, RequestID, Template, Pages, Documenttext, TimesReceived FROM PM_DATA.dbo.History" );
    ResultSet rst = stmt.executeQuery();
    while (rst.next()) {
    number_of_recs++;
    if (number_of_recs == max_number_of_records) break;
    populate_staging_table(
    rst.getString(1), rst.getString(2)
    ,rst.getString(3), rst.getString(4)
    ,rst.getString(5), rst.getString(6)
    ,rst.getString(7), rst.getString(8)
    ,rst.getString(9), rst.getString(10)
    ,rst.getString(11), rst.getString(12)
    ,rst.getString(13), rst.getString(14)
    ,rst.getString(15)
    stmt.close();
    rst.close();
    mConn.commit();
    } catch (SQLException ex) {
    logMessage("SQLException: " + ex);
    catch (Exception ex) {
    logMessage("Exception:: " + ex);
    closeSQLServerConnection();
    public void runProgram(CpContext pCpContext) {
    applName = "XXGFN";
    String l_file_path = null;
    mCtx = pCpContext;
    //get handle on request completion object for reporting status
    lRC = pCpContext.getReqCompletion();
    // assign logfile
    logFile = pCpContext.getLogFile();
    // assign outfile
    outFile = pCpContext.getOutFile();
    // get the JDBC connection object
    mConn = pCpContext.getJDBCConnection();
    l_file_path = ((new File(outFile.getFileName())).getParent() == null ? ""
    : (new File(outFile.getFileName())).getParent());
    // get parameter list object from CpContext
    ParameterList lPara = pCpContext.getParameterList();
    while (lPara.hasMoreElements())
    NameValueType aNVT = lPara.nextParameter();
    if ( aNVT.getName().equals("APPLNAME") )
    applName = aNVT.getValue();
    /** openConection() Opens the connection to SQL Server Database*/
    openConection() ;
    logMessage("Before Calling processPrintMachineRecords()");
    processPrintMachineRecords();
    logMessage("After Calling processPrintMachineRecords()");
    try{
    setCompletion(ReqCompletion.NORMAL, "Request Completed Normal");
    } catch (Exception e) {
    setCompletion(ReqCompletion.ERROR, e.toString());
    } finally {
    pCpContext.releaseJDBCConnection();
    * Sets the request completion status based on proper precedence. ERROR >
    * WARNING > NORMAL
    * @param pStatus
    * Status of the request.
    * @param pCompletionText
    * Request's completion text.
    public void setCompletion(int pStatus, String pCompletionText) {
    if ((pStatus == ReqCompletion.ERROR)
    || ((pStatus == ReqCompletion.WARNING) && (mRequestStatus != ReqCompletion.ERROR))
    || ((pStatus == ReqCompletion.NORMAL)
    && (mRequestStatus != ReqCompletion.WARNING) && (mRequestStatus != ReqCompletion.ERROR))) {
    mRequestStatus = pStatus;
    lRC.setCompletion(pStatus, pCompletionText);
    }

    ok
    i used Template.java as input
    useful MOS:
    How To Create a Java Concurrent Program? [ID 827563.1]
    Java Concurrent Program FAQ [ID 827575.1]
    i used
    //goto ms sql server 2008r2       
            try{
             Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");        
             con = java.sql.DriverManager.getConnection( 
                                          "jdbc:sqlserver://1.2.3.4:1433;databaseName=test;selectMethod=cursor", 
                                          "test", "test");          
              if(con!=null) System.out.println("Connection Successful!");
            }catch(Exception e){
              e.printStackTrace();
              System.out.println("Error Trace in getConnection() : " + e.getMessage());
            }1.2.3.4 - ip of instance with sqlserver2008r2 :)
    in your code
    >
    try {
    logMessage( "Before Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver");
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    logMessage( "After Loading Driver com.microsoft.jdbc.sqlserver.SQLServerDriver");
    logMessage( "Attempting to connect to " + mSqlServerHost);
    con = DriverManager.getConnection("jdbc:microsoft:sqlserver://" + mSqlServerHost + ":1433;User=sql_user;Password=sql_pwd");
    logMessage( "After con assigned from getConnection(jdbc:microsoft:sqlserver://" + mSqlServerHost + ":1433;User=pm_dba_access;Password=*****");
    } catch (java.lang.ClassNotFoundException e) {
    logMessage("openConection() ClassNotFoundException: " + e);
    } catch (SQLException ex) {
    logMessage("openConection() SQLException: " + ex);
    >
    try my case for Driver and Connection
    put result .class file to needed directory
    put sqljdbc4.jar to /rs01/u02/applmgr/utyeb02/apps/apps_st/comn/java/lib
    and for concurrent program option
    -classpath /rs01/u02/applmgr/utyeb02/apps/apps_st/comn/java/classes:/rs01/u02/applmgr/utyeb02/apps/apps_st/appl/au/12.0.0/appsborg.zip:/rs01/u02/applmgr/utyeb02/apps/apps_st/comn/java/lib/sqljdbc4.jaralso useful mos:
    Classpath Setting of Third Party Jar Files in R12 Java Concurrent Program (JCP) [ID 1292694.1]

  • Connecting to a SQL Server Database

    Can someone please point me to a guide or tutorial that
    explains the basics for connecting to an SQL Server Database. I'm
    just installed Coldfusion Developer Edition and Microsoft SQL
    Server Studio Express on Windows Professional. Do I go into the
    administration section of Coldfusion to add the database so that
    the datasource can then be used in my Coldfusion application? What
    other steps are there?

    Briefly,
    1. Create the database using SQL Management Studio Express.
    2. Set up your MSSQL security by following the tricks in
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb400255
    3. Go to ColdFusion administration and create the datasource,
    as you suspected. Enter T30\SQLEXPRESS as the server, where T30 is
    your windows computer name (obviously different, unless your naming
    conventions and the choice of laptop matches exactly mine ;-). Your
    SQLEXPRESS instance name might also differ, but that's the default
    I guess.
    4 That's it, you're ready to go.
    5. If things don't still work, start the SQL Server Browser.
    (It's a Windows service installed by MSSQL Server). I haven't
    figured out quite what this does, but it solved the problem for me.

  • ODBC Drivers for SQL Server 2005 on AIX for OWB connect

    Hi All -
    I have a problem whereby I am trying to connect OWB with SQL Server 2005. The problem statement follows: -
    Infrastructure: -
    OWB Server installed on AIX
    Oracle Installed on AIX
    SQL Server 2005 source on Windows
    OWB Client on windows XP
    My problem is: -
    I am trying to connect OWB with SQL Server 2005 for which I have to create heterogenous source entry in Oracle home. But AIX box does not have any ODBC drivers installed and hence I can not configure a DSN on the same. Can any one suggest where can I get these drivers and their installation steps.
    Thanks in advance!
    Arun
    Edited by: Uni.... on Jun 2, 2009 10:50 PM

    I was not able to find DG4ODBC anywhere.
    Somehow I managed to get a copy of Data Drivers from Data Direct and configured ODBC.INI file as below: -
    ODBC Data Sources
    DB2 Wire Protocol=DataDirect 6.0 DB2 Wire Protocol
    Informix Wire Protocol=DataDirect 6.0 Informix Wire Protocol
    Oracle Wire Protocol=DataDirect 6.0 Oracle Wire Protocol
    Sybase Wire Protocol=DataDirect 6.0 Sybase Wire Protocol
    Teradata=DataDirect 6.0 Teradata
    SQLServer Wire Protocol=DataDirect 6.0 SQL Server Wire Protocol
    MySQL Wire Protocol=DataDirect 6.0 MySQL Wire Protocol
    PostgreSQL Wire Protocol=DataDirect 6.0 PostgreSQL Wire Protocol
    Greenplum Wire Protocol=DataDirect 6.0 Greenplum Wire Protocol
    ODBC
    IANAAppCodePage=4
    InstallDir=/u01/app/ODBC
    Trace=0
    TraceFile=odbctrace.out
    TraceDll=/u01/app/ODBC/lib/odbctrac.so
    AMS
    Driver=/u01/app/ODBC/lib/ddmsss24.so
    Description=DataDirect 6.0 SQL Server Wire Protocol
    Address=10.240.20.154,1433
    Database=AMS
    My TNSName.Ora file is shown below: -
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/10/db/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DWHDEV =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixdevdb2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DWHDEV)
    AMS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.240.20.154)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = AMS)
    (HS = OK)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Listener.Ora file is as below: -
    # listener.ora Network Configuration File: /u01/app/oracle/product/10/db/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/10/db)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = AMS)
    (ORACLE_HOME = /u01/app/oracle/product/10/db)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aixdevdb2)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    INITHSODBC file for this source is initAMS.ora is configured as: -
    HS_FDS_CONNECT_INFO = AMS
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME = /u01/app/ODBC/log.log
    HS_DB_NAME = MSSQL
    HS_FDS_SHAREABLE_NAME = /u01/app/ODBC/lib/odbc.so
    # ODBC specific environment variables
    #set ODBCINI= /u01/app/ODBC/odbc.ini
    I have tested the DSN created in ODBC.INI file using example appplication that comes by default with datadirect drivers and that is connecting to database and fetching data as per query supplied, but when I am trying to create connecting from OWB to SQL Server it is failing with following error: -
    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 OWB_188
    Even database link is giving same error message.
    I have followed all the steps which are necessary to configure Heterogeneous connectiviyt including restarting listener, but no luck.
    Any comments

  • Oracle 10.2 on AIX -- need to connect to remote SQL server by dblink

    oracle 10.2 on AIX -- need to connect to remote SQL server by dblink
    i didn't see a odbc diectory in our oracle home path. how do i know odbc driver is installed in the oracle on our AIX server.
    If it is there, do i just need to modify the odbc.ini and then the inithsodbc.ora, linster.ora, tnsnammes.ora files, or am I missing something
    Appreciate your response
    Edited by: user10876711 on May 12, 2011 9:18 AM
    Edited by: user10876711 on May 12, 2011 9:18 AM

    when you want to connect from Oracle to a SQl Server you need the Oracle Gateway (HSODBC or even better Dg4ODBC) and a FOREIGN ODBC DRIVER for your foreign database - a SQL Server ODBC driver. You have to get this driver from a 3rd party vendor - Oracle does not offer any foreign ODBC drivers.
    So before being able to use DG4ODBC/HSODBC you need to install from a 3rd paryt vendor a SQL Server ODBC driver. Commercial vendrs are for example Data Direct, Openlink or Easysoft.
    On Unix ODBC drivers commonly also require a driver manager. If the ODBC driver vendor does not ship one with the ODBC driver you can get it from www.unixodbc.org

  • DbSl Trace: CONNECT failed with sql error '12518'  at IMPORT ABAP

    Hi
    We are trying to install ECC 6.0 on windows 2008 SP2 and oracle 10.2.0.4. We get an error at IMPORT ABAP phase.
    content of import_monitor.java :
    java version "1.4.2_26"
    Java(TM) Platform, Standard Edition for Business (build 1.4.2_26-b03)
    Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_26-b03, mixed mode)
    Import Monitor jobs: running 1, waiting 1, completed 26, failed 0, total 28.
    Loading of 'SAPSLOAD' import package: ERROR
    Import Monitor jobs: running 0, waiting 1, completed 26, failed 1, total 28.
    content of SAPSLOAD.log:
    E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20100705173108
    E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/701_REL/src/R3ld/R3load/R3ldmain.c#5 $ SAP
    E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe: version R7.01/V1.4 [UNICODE]
    Compiled Feb 24 2009 23:41:07
    E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe -i SAPSLOAD.cmd -dbcodepage 4103 -l SAPSLOAD.log -stop_on_error
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12518
    DbSl Trace: CONNECT failed with sql error '12518'
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12518
    DbSl Trace: CONNECT failed with sql error '12518'
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12518
    DbSl Trace: CONNECT failed with sql error '12518'
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12518
    DbSl Trace: CONNECT failed with sql error '12518'
    (DB) ERROR: DbSlErrorMsg rc = 99
    E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe: job finished with 1 error(s)
    E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20100705173108
    content of sqlnet.log file:
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleUED)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=UED)(CID=(PROGRAM=E:\oracle\UED\102\bin\sqlplus.exe)(HOST=U34SSAPUED)(USER=uedadm))))
      VERSION INFORMATION:
         TNS for 64-bit Windows: Version 10.2.0.4.0 - Production
         Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 10.2.0.4.0 - Production
      Time: 05-JUL-2010 16:19:39
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12518, connecting to:
    (DESCRIPTION=(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=u34ssapued)(PORT=1527))(CONNECT_DATA=(SID=UED)(GLOBAL_NAME=UED.WORLD)(CID=(PROGRAM=E:\usr\sap\UED\SYS\exe\uc\NTAMD64\R3load.exe)(HOST=U34SSAPUED)(USER=uedadm))))
      VERSION INFORMATION:
         TNS for 64-bit Windows: Version 10.2.0.2.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 10.2.0.2.0 - Production
      Time: 05-JUL-2010 17:28:38
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12564
        TNS-12564: TNS:connection refused
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0
        nt OS err code: 0
    Best Regards...,

    Hi,
    TNS-12560: TNS:protocol adapter error
    Probably your listener or database is down...
    If both are running, just stop the installation and reboot the server.
    Then again start listener and database and continue SAP installation with "Continue old installation" option..
    Also make sure that below environment variables are set properly...
    ORACLE_HOME
    ORACLE_SID
    DBSID
    Regards.
    Rajesh Narkhede

  • DbSl Trace: CONNECT failed with sql error '12154'

    Hi
    I am trying to install DB instance , platform -> IBM AIX 5.3 , Database - Oracle 9i, sap version -> 4.7. I am getting error at  Database load phase. The listener is started successfully, TNS ping is ok. Host file edited with proper ip address and the hostname, Still the error is same.
    DbSl Trace: CONNECT failed with sql error '12154'
    I am able to connect to oracle idle instance .
    Please help me in solving this issue
    Regards
    Prasanna.B.S

    Hi,
    Good evening and greetings,
    Please go through the following OSS Note
    Note 324714 - DB connect error in TMS after Oracle upgrade/change
    Please reward points if found useful
    Thanking you
    With kindest regards
    Ramesh Padmanabhan

  • DbSl Trace: CONNECT failed with sql error '12170'

    Hi,
    I'm having this problem during installation of DB instance. I already installed Oracle patchSet. Could you some tell me what could be the issue.
    SAP Release: NW 2004s SR1
    SAP Variant: ABAP
    OS: Solaris 10 64 Bit
    Oracle: 102_64
    INFO       2006-11-16 11:32:19
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/RED/SYS/exe/run/R3load -testconnect is written to the logfile R3load.exe.log.
    WARNING    2006-11-16 11:47:19
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/RED/SYS/exe/run/R3load -testconnect" finished with return code 2. Output:
    sapparam: sapargv( argc, argv) has not been called.
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    /usr/sap/RED/SYS/exe/run/R3load: START OF LOG: 20061116113220
    /usr/sap/RED/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#6 $ SAP
    /usr/sap/RED/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
    Compiled Apr  1 2006 03:18:31
    /usr/sap/RED/SYS/exe/run/R3load -testconnect
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    (DB) ERROR: DbSlErrorMsg rc = 99
    /usr/sap/RED/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/RED/SYS/exe/run/R3load: END OF LOG: 20061116114718
    ERROR      2006-11-16 11:47:19
               CJSlibModule::writeError_impl()
    CJS-30023  Process call '/usr/sap/RED/SYS/exe/run/R3load -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
    ERROR      2006-11-16 11:47:19 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step testDatabaseConnection with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|testDatabaseConnection was executed with status ERROR .
    Thanks
    Torpedo

    Hi ram
    Just brief ur Env please ..
    If you are receiving the ora-12535 error from tnsping as well as sqlplus, the client box is probably unable to find the listener for whatever reason. If the listener is definitely running and you are able to ping the listener's address from the client box but still can't tnsping it, you are probably running into a firewall issue.
    The reason for this is that with tnsping failing you are probably timing out before the connection gets to the listener. You can verify that the listener is running by checking the status in lsnrctl or doing a loopback connection through it. You can verify that the listener's address is visible to the remote box by pinging it from the remote box. Firewalls generally filter by port number so this is the next logical thing to check. If the remote connection passes through a firewall and the listener's port has not been opened up you will see this error.
    regards
    Vinod

  • SSMA for My SQL v6.0 not connecting to MS SQL 2008R2

    Is SSMA for My SQL v6.0 not supporting SQL 2008 R2.
    Is this version not backward compatible. As while connecting to 2008R2 SQL i am getting the below message.
    "You cannot connect to an older version (SQL Server 2008) of target SQL Server from a higher version SSMA project (Project type = SQL Server 2014). Try creating another SSMA project of project type
    which matches the version of target SQL Server you are connecting to OR connect to a target SQL Server equal to SQL Server 2014.
    And if issue is there then which version of software will let me do that?

    Hi Shubhra,
    As indicated in this
    download link , SQL Server Migration Assistant v6.0 for MySQL supports SQL Server 2005 or higher version.
    According to the above error message, it seems that you create a SSMA project for SQL Server 2014. To implement the migration process from MySQL to SQL Server 2008 R2, please ensure that you choose “SQL Server 2008” type in the following screenshot when
    creating  SSMA project, then connect to SQL Server 2008 R2 and check if the error still occurs.
    There is also a blog about how to migrate from MySQL to SQL Server using SSMA for your reference.
    http://blogs.msdn.com/b/ssma/archive/2011/02/07/mysql-to-sql-server-migration-how-to-use-ssma.aspx
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Best practise for creating an application that connects to a SQL Server database

    I have created an application that connects to a SQL Server database and views information using a datagrid and performs several updates when a button
    is selected.  
    I have created a SQLcontrol.vb using the following code:
    Imports System.Data.Sql
    Imports System.Data.SqlClient
    Public Class SQlControl
    'connection 1
        Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
        Public sqlcmd As SqlCommand
        Public sqlda As SqlDataAdapter
        Public sqldataset As DataSet
        Public Function hasconnection() As Boolean
            Try
                SQLCon.open()
                SQLCon.close()
                Return True
            Catch ex As Exception
                MsgBox(ex.Message)
                Return False
            End Try
        End Function
        Public Sub runquery(query As String)
            Try
                SQLCon.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon.State
    = ConnectionState.Open Then
                    SQLCon.Close()
                End If
            End Try
        End Sub
        Public Sub runquery1(query As String)
            Try
                SQLCon1.Open()
                sqlcmd = New SqlCommand(query,
    SQLCon1)
                'LOAD
    SQL RECORDS FOR DATAGROD
                sqlda = New SqlDataAdapter(sqlcmd)
                sqldataset = New DataSet
                sqlda.Fill(sqldataset)
    BH READ DIRECTLY FROM THE DATABASE
                'Dim
    R As SqlDataReader = sqlcmd.ExecuteReader
                'While
    R.Read
                'MsgBox(R.GetName(0)
    & ": " & R(0))
                'End
    While
                SQLCon1.Close()
            Catch ex As Exception
                MsgBox(ex.Message)
                'will
    close connection if still open
                If SQLCon1.State
    = ConnectionState.Open Then
                    SQLCon1.Close()
                End If
            End Try
        End Sub
    End Class
    A code for one of my button which views displays data grid contains the following code:
    Private Sub Button1_Click_1(sender As Object,
    e As EventArgs) Handles Button1.Click
            If SQL.hasconnection
    = True Then
                SQL.runquery("select 
    * from tablea")
                If SQL.sqldataset.Tables.Count
    > 0 Then
                    DGVData.DataSource = SQL.sqldataset.Tables(0)
                End If
            End If
        End Sub
    I am fairly new to vb.net and have read a few books and followed a few tutorials on youtube, what I would like to know is, are there any disadvantages
    to the way I have connected to a SQL database using the SQLControl.vb.  A lot of the vb books include data adapter and dataset within the form, I'm not sure if I'm following best practice by have the connection details outside of the form.
    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter
    and dataset.  It all works fine but I just wanted to know of any potential issues?
    Public SQLCon As New SqlConnection With {.ConnectionString
    = "Data Source=;Initial Catalog=;Integrated Security=True"}
    'connection 2
        Public SQLCon1 As New SqlConnection With {.ConnectionString
    = "Data Source;Initial Catalog=;Integrated Security=True"}
    Thanks

    My other question is, I have created two connections in the SQLControl and call these connections within the same form using the same data adapter and dataset.  It all works fine but
    I just wanted to know of any potential issues
    1) You are not using Sepration of concerns for a solution that is doing data access, like using a DAL.
    http://en.wikipedia.org/wiki/Separation_of_concerns
    2) You are directly issuing SQL commands at the UI, leading to sql injection attacks.
    3) You are not using a UI design pattern, which leads you to tightly couple database activity to the UI.
    http://www.codeproject.com/Articles/228214/Understanding-Basics-of-UI-Design-Pattern-MVC-MVP
    @System243trd, parameters are important to prevent SQL injection attacks (people will insert SQL commands into the database if you do not perform basic checking of what you are passing to the database). If you write a stored procedure try to make
    the variables the correct SQL server data type to avoid problems later of people trying to call it directly.  Darnold924 is right, I see no code to prevent against SQL injection attacks. In addition, during development in some instances LocalSQLDB
    database system is used and during deployment you usually need to use the production SQL server database. Moreover,  Linq-to-SQL is used on Windows Phone 8.1 and it is required for phone development later and so I highly recommend learning
    it if you plan on developing windows phone applications.
    @System243trd, If you want the code for the windows phone app I think it uses the MVVM model or that might be for universal apps or regular windows phone apps. I have been using the windows phone Silverlight pivot or panorama template (it might
    be pieces of both). I've already submitted to the windows phone marketplace and it had to go through certification first. I plan on later making an article on it but I need to first fix one or two simple problems I have with it.  Here's a link to
    the source code if you later want to look at the source code (in vb.net): 
    https://jeffsblogcodesamples.codeplex.com/downloads/get/1445836
    Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - Sherlock Holmes. speak softly and carry a big stick - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering - Yoda. Blog
    - http://www.computerprofessions.us

  • I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management

    I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management 
    This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
    I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
    I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
    Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
    Thanks!
    -Max

    Hello,
    Which version and edition of the SQL Server instance did you installed on the new server machine?  If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
    this link.
    You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
    What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
    SQL Serve 2008 Feature Pack
    which contains packages above.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • (DB) ERROR: db_connect rc = 256 DbSl Trace: CONNECT failed with sql error '-2'

    Hi Experts,
    I have an error when I copy Homogeneous in SOLMAN, I do the import of the database and this error occurs:
    sapparam: sapargv(argc, argv) has not been called!
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    /usr/sap/SOP/SYS/exe/uc/linuxx86_64/R3load: START OF LOG: 20140407112019
    /usr/sap/SOP/SYS/exe/uc/linuxx86_64/R3load: sccsid @(#) $Id: //bas/720_REL/src/R3ld/R3load/R3ldmain.c#21 $ SAP
    /usr/sap/SOP/SYS/exe/uc/linuxx86_64/R3load: version R7.20/V1.4 [UNICODE]
    Compiled Mar 18 2014 22:40:46
    /usr/sap/SOP/SYS/exe/uc/linuxx86_64/R3load -testconnect
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: CONNECT failed with sql error '-2'
    (DB) ERROR: DbSlErrorMsg rc = 99
    /usr/sap/SOP/SYS/exe/uc/linuxx86_64/R3load: job finished with 1 error(s)
    /usr/sap/SOP/SYS/exe/uc/linuxx86_64/R3load: END OF LOG: 20140407112019
    I need help to correct this error.

    Hi Michal,
    Login with ora<SID> and check whether you are able to connect to sqlplus ( do steps as below )
    1. sqlplus "/as sysdba"
    2. select status from v$instance.
    Let us know the ouput of both the command
    Thanks
    Anil

  • AIX SSH Connectivity,  existence check failed for bin/bash

    hello;
    I received error
    AIX 7 Oracle RAC 11g R2
    Oracle RAC AIX SSH Connectivity
    existence check failed for bin/bash on node2
    but the bin/bash exists
    have any idea?
    regards
    siyavus
    Edited by: sak on May 31, 2011 10:41 PM

    Does it really say "bin/bash"? It should have a slash in front of bin: "/bin/bash"
    Can you login to node 2 and do:
    echo $PATH
    ls -l /bin/bash

  • Code for connecting to a Microsoft SQL server database

    Hi
    What is the code for connection to a Microsoft SQL server database using JSP? I know the structure of the code but i do not know the driver name. Any importing required besides java.sql?
    Thanks

    Back up there. JSP's should never contain any
    database code. You should write a bean to handle
    database transactions and call that from your JSP.I agree wholeheartedly with that.
    Why didn't you consult google to help you with your
    problem? The answer is on the MS website.
    http://support.microsoft.com/default.aspx?scid=kb;en-u
    s;313100This is correct, too. Isn't Google installed on your machine?
    %

Maybe you are looking for

  • How to set dynamic column width for analysis item

    Dear Experts, I have a query view which is added in the web template as an analysis item. The web item properties on width is not working - I tried entering a value in the width but when I execute the template, the query view's width still stays the

  • One particular GL account is appearing twice in a Report.

    Hi Xperts, We have a report in that particular report we can see the Balances of TOTAL COST OF SALES,Total wages & salaries,Total other staff costs,Total designing & merchantiging, Total selling, Total Depriciation,Total Distribution & TOTAL SUNDRY &

  • T code for ER1 report

    Hello CIN experts , Pls tell me the T code for SAp ER1 report . Also if there are any other Excise reports available with SAP Regards

  • Installing Oracle Apps on Linux Virtual Machine, but need patch "6078836"

    Hello Friend's, Hope you are doing well...! I start my EBS Training in a functional role in less than 10 day's. My dilemma is that i am having a heck of a time installing Oracle Apps on my machine. As recommended in many blogs, i've installed a virtu

  • Release date of MacBook Pro Retina in 2014

    Hello everyone, I've got the idea of buying a MacBook Pro Retina 13". A friend of mine already has one - he bought it early in November 2013. Because I already have an iMac 21" I am not in a rush buying the MacBook. To be honest - I'm using my iMac b