MS SQL connection thru SAP

Dear all,
I know that this question has been asked before, but as i am facing some primitive issues so i am again posting my query.
My requirement is to connect to an external MS SQL db from SAP and read data from that server. That MS SQL is located in a different m/c altogether. I was trying to connect by making settings in DBCON -
CON NAME           MSS_TEST
DBMS                   MSS
USER NAME         administrator
PASSWORD         (some pwd)
CON ENV              MSSQL_SERVER=EISF016
                             MSSQL_DBNAME=MASTER
and then using the query
DATA: CONNECTION LIKE DBCON-CON_NAME VALUE 'MSS_TEST'.
EXEC SQL.
  CONNECT TO :CONNECTION
ENDEXEC.
but after this I am getting sy-subrc eq 4, which means that the connection got failed.
Is there any way to check the connection that whether the value entered in DBCON (MSS_TEST) is getting connected ??
Well my guess is that as the SAP and MS SQL servers are in diff m/c so we have to make one RFC connection and then do the connection, but this is just my guess. And if any RFC is at all required then how to make that.
Kindly help me in resolving the issue.
Points will definately be rewarded.
Thanks,
Saurabh.

Log into the server hosting your SAP instance.
Then, try connecting to the server EISF016  via SQL management studio using user administrator + password.
Is this successful?

Similar Messages

  • SQL Connection to SAP Reset

    Any idea why SAP would keep "forgetting" the location of a company database (SQL) and then prompt the user to provide credentials to a "local" database that does not exist?
    This just started happening on a client workstation this week.  Every time the user logs out of SAP, SAP can no longer see the SQL database it was attached to when it is opened each time so an administrator needs to keep manually enter the server name and credentials.
    Any thoughts on this?
    Thanks in advance!

    Hi,
    Refer this note:1156461
    User profile not saved with roaming profile
    Symptom
    Sap Business one user settings are not saved under the user's
    Local Settings folder.
    When you use roaming profiles, SAP Business One user settings are
    not being saved after logout from the server.
    Other terms
    Citrix, roaming profile, user profile
    Reason and Prerequisites
    Application error
    Solution
    SAP plans to fix this issue in a patch for 2007 A. Please refer to the info.txt file on SAP Service Marketplace to confirm that the fix was included. After the fix user setting path will be loaded from unicode configuration file.
    From SAP business One 2007A SP00 PL35, edit the SAP Business One client configuration on the terminal server in
    ..\SAP Business One\Conf\b1-config-path.txt
    Open the file and set the path to
    %USERPROFILE%\Application Data\SAP\SAP Business One
    Save the file. The setting will now be saved in the roaming profile.
    In case of a load balancing environment including several terminal servers another issue might occur:
    The profile path on one server might be "C:\Documents and Settings\USERNAME", on another server it might be "C:\Documents and Settings\USERNAME.DOMAIN". This is Windows behaviour.
    This leads to incorrect entries in the "b1-current-user.xml", which is written to the profile. The "b1-current-user.xml" uses absolute path names, therefore when being directed to a server with a different profile path the information cannot be retrieved.
    In this case please use the following workaround:
    Create a logon script mapping the profile path to a drive, for example "S:". In the "b1-config-path.txt" use "S:\Application Data\SAP\SAP Business One". This will direct SAP Business One to the correct folder.

  • Remote Connection from SAP to MS-SQL server

    Hello Experts,
    We have been following 2 options so far and we have come across some issues
    The first Option is to call a stored procedure (this is our preferred method) which does the data transfer for us
    We have been able to test this scenario successfully from SQL Server side
    However, while calling the stored proc via native SQL from ABAP we have come across an issue which is due to SQL 2005 changes (Schema implementation and difference in the security context)
    While calling the stored procedure from the ABAP Code we have an error
                The program short dumps with runtime error DBIF_DSQL2_SQL_ERROR, exception CX_SY_NATIVE_SQL_ERROR. The database error code is 15274, and the error text is
                 "Access to the remote server     is denied because the current security context is not trusted."
    This issue is new after the SQL Server 2005.
    We are trying to resolve that.
    Secondly we have been trying the DBCON option as well as per OSS Note 323151
    We have a few things thatu2019s impacting our scenario:
    The remote servers are in a different domain
    The remote servers are located  in DIZ
    Remote server is a named instance
    Remote server has been configured with a different port than standard (1565) u2013 All Connection strings will need port in there
    The Database name starts with a numeric value
    Due a combination of factors as mentioned above the standard approach does not work
    Have any of you used this approach while connecting from SAP to MS-SQL server? Do you know of any successful methods to connect to SQL using ABAP (or not) from SAP.
    Thanks in advance,

    Yes,
    DBConnect & UDConnect.
    Works like a charm.
    We write data into a MS-SQL database via DBConnect & an ABAP program (using open sql).

  • SAP DB Connection from SAP BI on HP UNIX to MS SQL External Database

    Dear All,
    Greetings!
    I have a scenario to configure a SAP DB Connection from SAP BI System on HP UNIX 11i to the external legacy system MS SQL 2000 Enterprise for data upload. I am interested in connecting the SQL server as a Source System to the BI System.
    I read through documents mentioning about installation of a Client driver in the SAP BI System, I also downloaded the JDBC client software and tried installing the same, but the steps as mentioned Setting the CLASSPATH or connecting to the server did not work.
    Please help me in connecting the SQL Server as Source System, I would like to know in detail about the same - so kindly help me with the links to documents and guides about the same.
    Thank you
    Regards,
    Vineeth Damodar

    Short answer: this does not work.
    Long answer: To connect directly to the database you need
    - a database client for the source system
    - a database interface library for the source system
    Both of them are not available for HP-UX if the target database is SQL server --> doesn't work.
    What you can do is: add a Windows application server to your  BI system (heterogeneous installations work and are supported) and add there the database client and the database interface library.
    Markus

  • RSA1 DB Connection from SAP BW to external SQL Server databas.

    Hello,
    I am trying to connect our SAP BW system with SQL Server Source System through DB Connect in transaction RSA1.
    Our BW system is running on Windows and MaxDB platform, therefore have I already added the latest dbmssslib.dll library to the kernel for SQL Server.
    But the connection does not work anyhow, I recieve the error "Database error -1 at CON > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does > exist or access denied." and I am quite sure that my input parameters are correct.
    Therefore I wonder if someone has run into a similar problem and what the problem could be?
    Best Regards,
    Niklas Sandstedt

    Hi,
    I am sorry that my case was assigned to wrong forum.
    That should now have been corrected, however my problem still remains unsolved in one of our systems.
    I found note 178949, which fixed the problem in one system. But even though the system setup seems to be identical, the two systems appears different.
    The following has been done for both systems:
    1. Upgraded kernel to 701 version 111 and added dbmssslib.dll and dbmssslib.pdb files
    2. Created Logical system in BD54.
    3. Tried to create DB connection in transaction DBACOCKPIT.
    In the third step, the setup fails and I receive the following error message when I test the connection:
    Database error -1 at CON > [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not > exist or access denied.
    Database error -1
    All profile parameters AL11-directories also seems to be correct in both systems, so both should find the dbmssslib.dll file.
    One issue that I see is in DBACOCKPIT, the checkbox for "SAP Systems with basis release" is unchangeble and marked. This however, I think was changed in the other system automatically when the connection was established successfully.
    Has anyone run into the same problem?
    Best Regards,
    Niklas Sandstedt

  • Printing thru SAP : Problem when connecting thru a dial-up connection.

    Dear All,
    We are on SAP R/3 4.7 Enterprise with Oracle and AIX. We have our C&F agents who dial-up to our central SAP server thru a broadband connection. These people generate the excise challans and invoices and take a print out. We have configured the printers as frontend printers (access method is F ), since we dont have a fixed IP from the hosts which are connecting to SAP servers. The problem we are facing is that whenever there is a disconnect from a particular location the print spool work process just 'hangs' and eventhough other spool work processes are free the printing just halts. We are unable to kill the work process either thru SAP or at the OS level ( we have AIX ). If you have any inputs on this kindly let me know. The problem is severe since we have no option but to restart the application servers. In case you have any other solution, i could try.
    Awaiting your reply.
    Regards,
    Shrinivas Shukla

    hi all,
    when that happens, please try to check the locked entries in sm12 and try to release them. then delete in sp01.
    let me know if this works.
    Francis

  • Connectivity between SAP and SQL Server

    Hi all,
        how to take the SAP data which is in Oracle database on AIX Operating system to SQL Server database which resides in Windows for a portal?
    Can anyone help on this?  
    Regards,
    Sathya

    HEllo,
    Hi
    Please see the following:
    1. Create an entry in Trxn DBCA for SQL Server in SAP, you are creating a database connection for the SQL server in SAP.
    2. You use this connection, and write Native SQL stmnts...between EXECSQL...ENDEXEC to fetch the data..and then normal ABAP statements to put that data into your ztable.
    TABLE DBCON Entry can be like this...depends on your External database..
    CON_NAME Raj Logical name for connection
    DBMS MSS Microsoft SQL Server
    USER_NAME <User name> For SQL Server
    PASSWORD <password> " "
    CON_ENV MSSQL_SERVER=<server> MSSQL_DBNAME=<database name>
    DB_RECO Availability type for an open database connect
    FUNCTION z_houston_connect.
    *"*"Local interface:
    EXEC SQL.
    CONNECT TO 'RAJ' AS 'V'
    ENDEXEC.
    EXEC SQL.
    SET CONNECTION 'V'
    ENDEXEC.
    *- Get the data from MS-SQL Server
    EXEC SQL.
    open C1 for
    select
    l.loc_id,
    l.loc_name,
    a.acc_id,
    a.acc_name,
    d.person
    from ho_loc_mast as l
    inner join snd_acc_mast as a on l.loc_id = a.loc_id
    inner join snd_acc_addr as d on a.loc_id = d.loc_id and
    a.acc_id = d.acc_id
    where l.loc_id = '001'
    ENDEXEC.
    DO.
    EXEC SQL.
    FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_acc_id, :wa-c_acc_name, :wa-c_person
    ENDEXEC.
    IF sy-subrc = 0.
    PERFORM loop_output.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    EXEC SQL.
    CLOSE C1
    ENDEXEC.
    ENDFUNCTION.
    Regards,
    Vasanth

  • How to db connect from SAP to SYBASE SQL anywhere 16 remotely

    Hi All,
    May i know can i connect to SYBASE SQL Anywhere16 from SAP running on kernel 7.42 via dbacockpit (dbco)?
    I've followed note 1737415 - Sybase IQ: Enable remote/secondary connect to SAP Sybase IQ &  1532253 - SYB: Remote DB Monitoring for SAP Sybase ASE
    but failed.
    Where can i find the dbsl and its client for sybase sql anywhere? I only can find SAP ASE and SAP IQ on SMP. Is those compatible with SQL anywhere 16?
    Thanks.
    Nicholas

    Hi Jason,
    the error message is it complains minimun version for SAP IQ is 15.6, however our SQL anywhere is on version 16, above the support version as per note1737415 - Sybase IQ: Enable remote/secondary connect to SAP Sybase IQ
    fyi, i'm using the latest sybase dbsl and SAPIQ 16 client.
    Any idea or will it works to remotely connect SQL anywhere via dbacockpit?
    Thanks,
    Nicholas.

  • Driver to connect from SAP PO 7.4 on Sybase to third party SQL anywhere 12

    Hi All, We have PO 7.4 on Sybase 16.01 and wants to connect third party SQL anywhere 12(Sybase). We have already the Driver: jconn4.jar in the location --> /usr/sap/SID/J00/exe/sybjdbc in the PO system. Do we need to have any other driver for connection from SAP PO 7.4 on Sybase to third party SQL anywhere 12(Sybase). Please suggest. Regards, Karthik.

    Hi Karthik,
    I guess PO comes from Process Orchestration with Netweaver ?
    Anyway to be able to connect to a remote database, from Netweaver you need a DBSL. It comes with Netweaver kernel: the lib_dbsl required to connect to ASE and IQ (and IQ uses SQLAnywhere ODBC), but there is not specifically to SQLAnywhere (even if the ODBC used for IQ is the ODBC of SQLAnywhere). I guess that *maybe* you can try using your current Sybase lib_dbsl. I don't know how you configure remote connections from PO (with Netweaver it would be done with DBCO t-code) and to be honest I won't be sure it is a supported remote connection.
    Regards,
    Victoria.

  • How to connect MS-sql server with SAP BW

    hi all,
    i want the connection procedure to how to connect MS-sql server with SAP BW.so that i can extract the data from ms sql server and can create cubes using that data.please help me in this issue.

    Hi Vamshi,
    Go through this DOC it explains u how to connect to other data bases like SQL...
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff]
    this is a thread related to connect the SQL server..
    [DB Connect MS SQL Server;
    Regards,
    NR
    Assign points if helpful...

  • External Oracle Databse connection from SAP

    Dear all,
    I know that this question has been asked before, but as i am facing some primitive issues so i am again posting my query.
    My requirement is to connect to an external ORACLE db from SAP and read data from that server. That ORACLE db is located in a different m/c altogether. I was trying to connect by making settings in DBCON -
    CON NAME= ORA_TEST
    DBMS= ORA
    USER NAME= administrator
    PASSWORD= (some pwd)
    CON ENV= ????? (what is to be put here)
    And I know that we have to make some corrections in tnsnames.ora file, but I am unable to find that file in SAP system. Where can I find this file ???
    Do we have to make one RFC connection as the SAP and ORACLE servers are in diff m/c and then do the connection, but this is just my guess??
    And if any RFC is at all required then what should be the parameters for that connection.
    Kindly help me in resolving the issue.
    1. CON ENV ?
    2. tnsnames.ora ?
    3. Any RFC needed ?
    Points will definately be rewarded.
    Thanks,
    Saurabh.

    Hi,
    I have done the required settings everywhere but the connection is failing.
    The tnsname.ora file is located in my Oracle client directory and the settings done there are -
    LEVEL2 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST =  
                                192.167.40.54)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = level2)
    in DBCON i have made the following entry -
    1. DB Connection : NEWORA
    2. DBMS :             ORA
    3. User Name :       User Name external oracle database
    4. DB Password :   Password external oracle database
    5. Conn Info :         level2
    and my ABAP code looks like -
    DATA: BEGIN OF wa,
    ncli(20) TYPE c,
    num(20) TYPE c,
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    dbs = 'NEWORA'. "DB Connection in DBCO
    EXEC SQL.
    connect to :dbs
    ENDEXEC.
    EXEC SQL.
    GET CONNECTION :dbs
    ENDEXEC.
    WRITE : dbs.
    EXEC SQL PERFORMING loop_output.
    select bundle_cnt, job_id from GHCBRMRT.RML_BUNDLE into :ls_wa
    ENDEXEC.
    FORM loop_output.
    WRITE: / ls_wa-ncli,
    ls_wa-num.
    now my dilemma is how SAP will recognize in DBCON what really "level2" means ?? as the settings are there in ORACLE directory and not inside SAP system.
    the dump error msg that I am getting is -
    Runtime Errors         DBIF_DSQL2_CONNECTERR
    Except.                   CX_SY_NATIVE_SQL_ERROR
    Date and Time          13.08.2008 10:20:47
    Short text
         Error setting up a secondary database connection
    What happened?
         Connection to database system not possible with 
          identifier "NEWORA".
    Missing Handling of System Exception
         Program                                 YY_NEW_CONN
    Kindly help in this regard as where I am going wrong.

  • Authentication error when creating EPM Add-in connection with SAP BO Enterprise connection type

    Hello, Experts,
    I have a problem with creation of EPM Add-in connection when SAP BusinessObjects Enterprise connection type is selected.
    An error message is "Error while communicating with the server. Framework message: Authorization failed."
    Here are the steps that were implemented and how this issue was reproduced:
    SAP BusinessObjects Planning and Consolidation 10.0 SP12 for Microsoft was installed and configured.
    Integration between SAP BPC and SAP BusinessObjects BI 4.1 SP02 was implemented. SAP BO users can successfully connect to SAP BPC system.
    EPM connector was successfully installed and deployed in SAP BusinessObjects BI server.
    BPC ODBO 2.0 SP04 64BIT was installed in SAP BusinessObjects server.
    EPM connection was successfully created in SAP BusinessObjects CMC.
    EPM Add-in and BPC ODBO 2.0 SP04 32BIT was installed in another computer (let's call it CLIENT) which has MS Office 2007 32BIT installed.
    From CLIENT computer we have launched Excel manually and successfully created BPC connection with Connection Type - Local.
    Then we have logged into BI Launch Pad and launched New / EPM document (Excel). Excel has started.
    In EPM Add-in we have pressed Logon.
    In connection window selected SAP BusinessObjects Enterprise connection type.
    An error "Error while communicating with the server. Framework message: Authorization failed." appears.
    Before this error appears we are not getting any window where we could select EPM connection (created in CMC) nor the possibility to enter username or password.
    Looking forward you valuable comments and suggestions.
    Thank you in advance.
    Donatas Budrys

    Dear, Roberto,
    Our user has Full Access to all BPC tasks and it is administrator in BI system.
    Also we can successfully connect with the same user using Connection type "Local".
    We had done some investigation and in the BPC SQL Server trace log we can catch the following message when an error occurs:
    ==============[System Error Tracing]==============
    [System  Name] : BPCXMLAService [Message Type] : ErrorMessage [Job Name]    : ValidateUser [DateTime]    : 04/23/2014 10:58:06 [UserId]      : [Exception]    DetailMsg  : {System.Exception: Invalid user    at SAP.BPC.Services.Webservice.XMLAService.XMLAService.ValidateUser()} ==============[System Error Tracing  End ]==============
    It is very interesting that after the EPM workbook is launched via BI Launch Pad till an error occurs we are NOT provided with possibility to enter any username and password. So the EPM add-in should use the same user which was logged into BI Launch Pad - in our case the user with administrative rights both in BI Launch Pad and BPC systems. Am I missing anything?
    Looking forward your feedback.
    Thank you in advance.
    Best regards,
    Donatas

  • URL Reporting connecting to SAP R/3

    Hello,
    We have Crystal Reports that connect to ABAP Function Modules in our R/3 4.7 system as the data source. To minimize the number of user prompts, we use URL Reporting to pass all the required parameters for the report. The one thing we have not been able to do is specify data connection information in the URL. We currently get around this by setting the data connection information (SAP server, system #, client #, etc.) in the Database Configuration for the report in the CMC. The downside to this is that the report is now limited to running against a single SAP client.
    Is there a way to specify the SAP connection information (server, system #, client #, etc) in the URL Reporting string? I know it can be done for SQL data sources through the USER- and PASSWORD- commands on the URL, but is there a similar way to specify SAP connection information?
    Our reporting environment is BOBJ Enteprise XI 3.1, reports are developed in Crystal Reports 2008.
    Thanks,
    Byron Clairoux

    Hi,
    that is not possible. the connection is part of the report.
    Ingo

  • Connection to SAP R/3 or to particular module..n how??

    i m new to Enterprise Portal and m bit confused..  i knw that EP is used to connect to SAP system thru Single Sign ON....
    for my project we will be using ESS and MSS buisness package.
    Thus we need to connect our Portal to nly  SAP R/3 sytem...or v connect to particular module...considering my project i need to connect to SAP HR module.. so how do i configure my portal to only SAP HR module..or creating only SAP R/3 system..i.e the way we normally connect to SAP R/3 from Portal content studio will do..??
    ...if any one could explain it conceptually will surely b awarded POINTS..
    Edited by: jigar oza on Jul 29, 2008 10:46 AM

    Hi Jigar,
    as you know about SSO it is nice, SSO is used to connect to backend (System) you can say R/3. Where as system contains many modules.
    Create one system in portal which will connect to your desired backend using SSO. Once it succeeds.
    Then create an SAP transaction iview from iview template which will point to this created sytem.
    You must be having some t-code to directly access your module in the R/3.
    You have to enter this t-code in the Transaction code property of the iview. After creating this iview and proper SSO settings, when you pre-view this iView it will directly open the first screen of your module/application in the backend system.
    let me know if you face any issues in this.
    also see my postings in following threads:-
    Re: How to Connect Backend R/3 system to EP 2004S
    Re: How to configure SAP R3 system to Portal
    Regards,
    Yogesh...

  • Problem in jdbc connect thru oracle

    hi all
    i hv installed oracle 8i on win2k
    i wanna connect thru jdbc
    but i am getting error below
    i donno whr i got struck?
    plz help me
    thnx in advance
    bye
    ////////// details ///////////////////////
    import java.sql.*;
    ///win2000,oracle 8i
    /// try to fix whr i hv done mistake
    import java.io.*;
    class JDBC1
    public static void main(String[] args)
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver ");
    //// i tried all below connections
    Connection cn=DriverManager.getConnection("jdbc:odbc:santhu:PLSExtProc","scott","tiger"); /// oracle_sid=santhu hv given
    //Connection cn= DriverManager.getConnection("jdbc:odbc:PLSExtProc","scott","tiger"); /// PLSExtProc it is given in tnsnames.ora file
    //Connection cn=DriverManager.getConnection("jdbc:odbc:oracle:PLSExtProc","scott","tiger"); /// driver name i hv given as oracle and one more as santhu--both for oracle driver
    Statement st=cn.createStatement();
    ResultSet rs=st.executeQuery("select * from dept");
    int dno;
    String dname;
    while(rs.next())
    dno=rs.getInt("deptno");
    dname=rs.getString("dname");
    System.out.println(dno+dname);
    catch(Exception e)
    System.out.println(e);
    /// compiled successfully
    /// but runtime error::SQLException---data source name not found no default driver specified
    //// saying tns-12538 error
    /// tnsping-----error is coming.........
    /// lsnrctl start --------is not working
    //// lsnrctl status ------is also not working
    /// in services i hv set oraclelistener to auotmatic start
    /// in net8 configuration assistent everything is ok
    /// try to do it today...ok na
    // i put classpath to home dir of oracle
    ///////////listener.ora file //////////////////////////////
    # LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Vaman)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vaman)(PORT = 2481))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = santhu)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (SID_NAME = santhu)
    /////////////////tnsnames.ora file///////////////////
    # LISTENER.ORA Network Configuration File: D:\Oracle\Ora81\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Vaman)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vaman)(PORT = 2481))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = santhu)
    (ORACLE_HOME = D:\Oracle\Ora81)
    (SID_NAME = santhu)
    ////////////////////////////////////////////////

    Class.forName("oracle.jdbc.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@<hostname>:1521:<database name>", "scott", "tiger");
    You can find OracleDriver in classes12.jar (<ORA_HOME>/jdbc).
    Check your tnsnames.ora file for <hostname> and <database name>. For example, if you had a following entry in tnsnames.ora file:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SOMEHOST)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    you would write:
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@SOMEHOST:1521:XE", "scott", "tiger");

Maybe you are looking for

  • Report error: ORA-06502: PL/SQL: numeric or value error: character string b

    I have a form which uses a customer form/report, drop downs etc.. the debug shows it running this statement ...Execute Statement: begin begin SELECT distinct initcap(RTRIM (LTRIM (e.surname, ' *0123456789-/:.?,'), ' *0123456789-/:.?,') || ', ' || RTR

  • Windows Vista 32bit or 64bit?

    Which is better for my new mac book pro, Windows Vista 32bit or 64bit Ultimate? All I care about is all of my programs and games working properly. And what does 86x mean? Will one version of the bits work faster than the other?

  • Asset partially depreciation

    Hi SAP Gurus, I have some difficulties in cancelling the fixed asset, in fact when I am doing, I would like to have the quote of depreciation up to the 30.10.2009 but when I am trying to do so, I get the quote of depreciation up to the 31.12.2009. Co

  • Item data in smartform

    hi, in my main window i am having 5 columns. out of which one column contains the item datas like: for one delivery order in second column it should have: description (code no) no  of packs type of material. for this should i create 4 text elements?

  • Purchase of special order downloads

    Can I request i tunes to research a song that is not found in the normal i tunes library so that I can purchase it? I wish to down load "Why does it hurt so bad" by Whitney Houston but the live MTV music award version. circa 1996 or 1997. Los Angeles