URL for SqlServer Thin Driver ?

Hi all,
I have developed a web application in jsp with Microsoft SQL Server 2000, used 4th type of driver and it is working fine in my desktop PC . When I tried to deploy war to Laptop, where SQL Server is installed as standalone, i got error in establishing the connection with the socket, Following is the code snippet i used for laptop
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");                              
String    strDBUrl="jdbc:microsoft:sqlserver://localhost:1433;databaseName=GNXT;selectMethod=cursor";for workstation or desktop, i just changed the localhost into the database server name
I suspect problem is with the URL, Can anyone give me the URL for Ms Sql Server 4th type jdbc driver?
Suggestions welcome!!!
Regards,
Srini.

The URL is the same.
Did you double checked that the server is listening to TCP?
Try to use your local IP instead of 'localhost'.

Similar Messages

  • Error Code Definition for JDBC Thin driver

    Would like to know where I can find the definition of error codes
    for JDBC thin driver to Oracle 7 database. Right now, when I have
    database errors, I get SQL execption with CODE=XXXXXX. Need to
    know the definition of the error codes in order to decide whether
    the application shall retry or quit or do something else. Thank
    you in advance.
    null

    Hi,
    thin client session Language is controlled by java Locale.
    Based on testing code, ORA- messages are localized after the connection is successfully established. ORA- messages returned in the middle of connecting are in instance language.
    So, as far as I can say, you need to catch exceptions from DriverManager.getConnection(url, info); and translate them on your own.
    Once the connection is successfully returned, ORA- message language is defined by java Locale.
    Tests were performed on Oracle 10gR2 (both thin driver and DB).

  • Specify a Connection URL for JDBC thin

    I am trying to generate a Report using JDBC but the connection to the database fails when I try to run this Report. What is the Parameter I have to put for the JDBC Connection. i.e userid=scott/tiger@db1

    This topic has been answered in a duplicate thread.
    The Oracle Reports Team.

  • Problem with thin driver and tnsname syntax

    I have tried to use the tnsname syntax for the thin driver.
    ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
    I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
    Then entry:
    MEDORA.euro.med.ge.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
        (CONNECT_DATA =
          (SID = rad)
          (GLOBAL_NAME = MEDORA.euro.med.ge.com)
      )The URL: jdbc:oracle:thin:@medora
    Thanks,
    Sascha

    I have tried to use the tnsname syntax for the thin driver.
    ORACLE_HOME points to the right home, but I always get an E/A-Exception: Unknown host specified.
    I thought that tnsname syntax is supported in the latest driver. What am I doing wrong?
    Then entry:
    MEDORA.euro.med.ge.com =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (COMMUNITY = TCP.euro.med.ge.com)(PROTOCOL = TCP)(Host = zzimedo1.euro.med.ge.com)(Port = 1521))
        (CONNECT_DATA =
          (SID = rad)
          (GLOBAL_NAME = MEDORA.euro.med.ge.com)
      )The URL: jdbc:oracle:thin:@medora
    Thanks,
    Sascha

  • JDBC thin driver pads CHAR col to byte size when NLS_LENGTH_SEMANTICS=CHAR

    We're using an Oracle 9.2 database with the database character set specified as AL32UTF8 with NLS_LENGTH_SEMANTICS set to CHAR. I've reproduced this problem with both the "classes12.zip" and "ojdbc14.jar" available with the Oracle 9.2 client installation.
    The problem occurs with the JDBC thin driver. The problem does not occur with the JDBC OCI driver (nor SQL*Plus 9.2).
    There are 2 relatively simply workarounds: use the OCI driver or convert CHAR columns to VARCHAR2 columns. I'm mostly curious as to whether there is some kind of setting for the thin driver to circumvent this problem, or if this is actually expected behavior. We're not that familiar with the NLS_LENGTH_SEMANTICS setting.
    Consider a table as follows:
    create table my_table (status CHAR(1));
    If I describe the table it correctly shows the column using CHAR semantics.
    STATUS CHAR(1 CHAR)
    Given the AL32UTF8, this means that 4 bytes of storage are reserved for this column.
    If I insert a single ASCII character in this table (for example "A") then read it back using the JDBC thin driver, I get the string "A " - the letter A followed by 3 spaces. In other words, the thin driver appears to have padded the value to its BYTE length. The OCI driver and SQL*Plus do not pad the value.
    I understand that CHAR columns are normally blank padded when the data size is shorter than the defined column length, but I think that with NLS_LENGTH_SEMANTICS=CHAR, the padding should be based on the length of the column in chars, not in bytes.
    Can anyone shed some light on this issue?
    Thanks in advance,
    Tim

    Update:
    I guess I should mention we're using Java 2 SDK 1.4.1_01 on Windows XP with an Oracle 9.2 database on Windows 2000.

  • Oracle thin driver

    Hi,
    Are there any problems while using Oracle's jdbc thin driver with Weblogic 6.1
    sp1?
    Is there a 9i version for Oracle thin driver?
    Regards
    Perumal

    Hi Vaidy,
    You should download the latest Oracle 9i thin driver from Oracles website
    and place it in the beginning of the classpath when you start the server. It
    is use it at your own risk, AFAIK make sure you dont use any 8.1.7 or 8.1.6
    driver specific calls in your application and it should work just fine. If
    you dont use Oracle extensions everything should be ok.
    hth
    sree
    "vaidy" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    Are there any problems while using Oracle's jdbc thin driver with Weblogic
    6.1
    sp1?
    Is there a 9i version for Oracle thin driver?
    Regards
    Perumal

  • Support for using TNSNAMES with Oracle Thin Driver?

    Hi.
    In the official Oracle JDBC FAQ (http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm), they say that from the "10.2.0.1.0" release, the Thin driver hast support for using TNSNAMES entries. Thus, you can use URLs like this:
    jdbc:oracle:thin:@GL (thin driver, but connection info defined in tnsnames.ora)
    Does anyone know how could I use an URL like this? Do I have to install the Oracle client? or can I simply copy a tnsnames.ora file someplace on disk and specify its ubication through an environment variable or something like that?
    I haven't find util information in the Oracle site....any ideas are much appreciated.
    Thanks in advance.

    I just found some info here:
    Re: Thin Driver and Load Balancing
    Thank you very much.

  • [Microsoft][SQLServer 2000 Driver for JDBC] Broken pipe

    Using 10.1.2.0.2
    I have Web App in which I am connecting to MS SQLServer 2005. I have created a datasource on the server and used Microsoft's free JDBC drivers i.e. msutil.jar,mssqlserver.jar,msbase.jar. Now every now and then I am getting the following error when trying to connect to the SQLServer
    [Microsoft][SQLServer 2000 Driver for JDBC]Broken pipe;nested exception is: java.sql.SQLException:[Microsoft][SQLServer 2000 Driver for JDBC]Broken pipeAny ideas what might be wrong and how to take care of this issue.
    Thanks

    DataDirect driver is certified with Oracle Application Server accessing SQLServer, here is an example of a data source entry for SQLServer in OralceAS 10.1.2.x.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSSDS"
    xa-location="jdbc/xa/MerantSSXADS"
    ejb-location="jdbc/MerantSSDS"
    connection-driver="com.oracle.ias.jdbc.sqlserver.SQLServerDriver"
    username="test"
    password="secret"
    url="jdbc:oracle:sqlserver://hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    Here shows a SQLServer managed data source example and a SQLServer native source example in OracleAS 10.1.3.x:
    SQLServer Managed Data Source
    <connection-pool name="ConnectionSqlserver"
    max-connections="20"
    min-connections="1">
    <connection-factory
    factory-class="com.oracle.ias.jdbcx.sqlserver.SQLServerDataSource"
    user="msuser"
    password="mspass"
    url="jdbc:oracle:sqlserver://myserver\\myinstance;User=msuser;Password=mspass" >
    <property name="serverName" value="myserver\\myinstance"/>
    <xa-recovery-config>
    <password-credential>
    <username>msuser</username>
    <password>mspass</password>
    </password-credential>
    </xa-recovery-config>
    </connection-factory>
    </connection-pool>
    <managed-data-source connection-pool-name="ConnectionSqlserver"
    jndi-name="jdbc/mysqlserver"
    name="mysqlserver" />

  • Thin driver / 8i / Solaris hangs for 60 seconds

    I am having the same problem that I have also seen in these two messages:
    http://technet.oracle.com:89/ubb/Forum8/HTML/002149.html http://technet.oracle.com:89/ubb/Forum8/HTML/001335.html
    Using the thin driver to connect to Oracle 8.1.6 on Solaris 7, every several hundred operations or so will hang for 60 seconds. A stack trace will reveal it is hung on "socket.read()", most frequently when it is trying to close a Statement but not exclusively. After 60 seconds, or if another database operation on a different connection proceeds, it will wake up and continue until the next freeze. This problem occurs with jdk1.2.2 and jdk1.3 (Sun VMs), several different versions of the thin driver (tried classes111.zip, classes12.zip, classes102.zip, downloaded the most recent the other day), and will happen from a remote server or on localhost. A patch upgrade the other day to 8.1.6 seemed to make the problem less frequent but it persists.

    I am having the same problem that I have also seen in these two messages:
    http://technet.oracle.com:89/ubb/Forum8/HTML/002149.html http://technet.oracle.com:89/ubb/Forum8/HTML/001335.html
    Using the thin driver to connect to Oracle 8.1.6 on Solaris 7, every several hundred operations or so will hang for 60 seconds. A stack trace will reveal it is hung on "socket.read()", most frequently when it is trying to close a Statement but not exclusively. After 60 seconds, or if another database operation on a different connection proceeds, it will wake up and continue until the next freeze. This problem occurs with jdk1.2.2 and jdk1.3 (Sun VMs), several different versions of the thin driver (tried classes111.zip, classes12.zip, classes102.zip, downloaded the most recent the other day), and will happen from a remote server or on localhost. A patch upgrade the other day to 8.1.6 seemed to make the problem less frequent but it persists.

  • How to use a custom KeyManager for Oracles JCBD thin driver

    I am trying to create a java application that uses PKI for authentication. I need to be able to retrieve a certificate from the Microsoft Certificate Store MCS) and pass it along to an Oracle database (11.2). I am connecting using the jdbc:oracle:thin driver. After spending some time googlling it appears that I have to create a custom KeyManager and a custom TrustManager to accomplish this. I am not sure if this is even the correct way to approach the problem, but assuming it is; how do I force the jdbc:oracle:thin driver to use my KeyManager and TrustManager? Also, as stated above the client certificates will be stored in the MCS while the Oracle database will be using a wallet. The database could be running on just about any OS that supports Oracles database which is why I will not be setting up Oracle to use MCS.
    Thanks for the help!

    I am trying to create a java application that uses PKI for authentication. I need to be able to retrieve a certificate from the Microsoft Certificate Store MCS) and pass it along to an Oracle database (11.2). I am connecting using the jdbc:oracle:thin driver. After spending some time googlling it appears that I have to create a custom KeyManager and a custom TrustManager to accomplish this. I am not sure if this is even the correct way to approach the problem, but assuming it is; how do I force the jdbc:oracle:thin driver to use my KeyManager and TrustManager? Also, as stated above the client certificates will be stored in the MCS while the Oracle database will be using a wallet. The database could be running on just about any OS that supports Oracles database which is why I will not be setting up Oracle to use MCS.
    Thanks for the help!

  • Thin driver 8.1.7 for HP-UX JDK 1.3.1

    Hello,
    I would like to know which is the suggested current thin driver for this environment
    HP UX
    8.1.7
    JDK 1.3.1
    and a pointer to how to get it.
    We are experience slow access to stored procedure when a high number of calls are issued concurrently and I've read that there may have been threading issues in thin oracle drivers.
    I assume these issues, if any, have been solved in the most recent versions.
    Thanks a lot.
    Franco

    I believe the one from technet was created
    under the Solaris environment. That is
    the only difference that I know of.
    null

  • Oracle JDBC Thin Driver for oracle 9.2.0.4

    Hi,
    It would be nice if someone please guide me to the download of Oracle JDBC Thin Driver for oracle 9.2.0.4.
    Thanks in anticipation

    user566773,
    As far as I know, all Oracle JDBC drivers are meant to be backward compatible.
    According to the table on the following Web page, the latest Oracle JDBC driver can be used with Oracle 9.2.0.x DBMS.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • JDBC thin Driver 8.0.X Limit 2k for varchar2?

    I am using Oracle JDBC thin driver 8.0.5.0.0 to query Oracle
    8.0.5 via SQL net. The problem I met is every time I try to
    retrieve data for varchar2 (over 2k), it get truncated and only
    return the first 2k without throwing any warning or exception.
    I tried getString(), getAsciiStream() and getBinaryStream(), and
    the results are still the same. The SQL Net works fine, since it
    successfully returns over 2k varchar2 type data when programing
    with PERL.
    null

    Rong Lu (guest) wrote:
    : I am using Oracle JDBC thin driver 8.0.5.0.0 to query Oracle
    : 8.0.5 via SQL net. The problem I met is every time I try to
    : retrieve data for varchar2 (over 2k), it get truncated and
    only
    : return the first 2k without throwing any warning or exception.
    : I tried getString(), getAsciiStream() and getBinaryStream(),
    and
    : the results are still the same. The SQL Net works fine, since
    it
    : successfully returns over 2k varchar2 type data when programing
    : with PERL.
    check the following oracle jdbc faq link :
    http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
    #_36_
    null

  • JDBC thin driver for oracle 7.1.3

    Hi,
    we r using Oracle 7.1.3. i would like to know where i can get the
    thin driver for java compatible with the oracle version 7.1.3 so
    that i need not install an oracle client in the clients pc.
    thanks
    veera
    null

    Jay (guest) wrote:
    : BUBBA (guest) wrote:
    : : Veera Nagendran (guest) wrote:
    : : : Hi,
    : : : we r using Oracle 7.1.3. i would like to know where i can
    : get
    : : the
    : : : thin driver for java compatible with the oracle version
    : 7.1.3
    : : so
    : : : that i need not install an oracle client in the clients pc.
    : : : thanks
    : : : veera
    : : Thedatabase you're using went out of support over 2 years
    ago.
    : : oracle doesn't provide jdbc drivers for anything less than
    : : supported version 7.3.4.
    : So why does Oracle make this claim
    : "The Thin driver does not require Oracle software on the client
    : side. It connects to any Oracle database of version 7.2.x and
    : higher. The driver requires a TCP/IP listener on the server
    : side. " ???
    : Jay
    re-read my earlier reply -- the comment was :
    Thedatabase you're using went out of support over 2 years
    ago. oracle doesn't provide jdbc drivers for anything less
    than the minimum supported version ---> 7.3.4.At no time did i refer to the client s/w being required !!
    also it was not tested against unsupported version of the
    rdbms ...
    also rdbms 7.1.3 isn't y2k compliant.
    use it at your own risk..
    what "claim" are you saying oracle made ??
    null

  • Sql_trace does not work for Java app using Oracle JDBC thin driver

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

    Hi,
    I'm using Oracle 8.1.7. I enabled sql trace at instance level by setting sql_trace and timed_statistics to true in init.ora. I restarted the db instance. I wrote a stand-alone java application which used Oracle JDBC thin driver(classes12.zip) to make a connection to my db instance, do some select statements, and close the connection. There were no trace files generated in the folder specified by udump_dest variable. However, if I used sqlplus or dba studio, I saw trace files generated. Has anyone got Oracle sql trace work for JDBC calls from java apps.
    Thanks in advance!

Maybe you are looking for

  • Swing Help!!

    Is there some sort of class or something that can allow me to make an expander in swing? Im not really sure the technical name for it so i have done a little example of what i mean below. +great +really good when great is pressed it expands to: -grea

  • XI Adapter not visible in Comm Channel Monitoring ?

    Hi friends , I am trying a proxy scenario in Discovery System V3 .But when we create XI receiver adapter we cannot see the status of that channel in communication channel monitoring . What could be the reason ? Any input will be appreciated Thanks.,

  • Blank entry removed from af:selectOneChoice drop down on valueChangeListene

    I am using af:selectOneChoice component which is getting populated with values from DB. when the page is loaded first time, I can see one blank entry in this component. I have valueChangeListener set on this. when i change the value, the blank entry

  • Confused with ME_PROCESS_REQ_CUST PROCESS_ITEM

    Hi All, I'm using ME_PROCESS_REQ_CUST PROCESS_ITEM and check to validate a line item. Lets say i have 2 line items I entered line item 1 and hit enter then i'm getting the custom messge that i put in process_item and in this method i'm setting a glob

  • Tcode IW32 and Printing Word Docs Attached to Equipment

    Hello, This is my fist attempt to use SND so I am hoping for a fast reply that will get me to long on more often.  Here goes. I want to be able to print the word documents that are attached to an equipment that is used in the PM order.  When the orde