Getting java.sql package.

Hi, I need to download the java.sql package in order to connect to an Oracle database. Pl. suggest me a url where I could the above. (Searching sun's website yeilded only the doc files, ".html", which are for reference purpose. I am working on Apache with Oracle 8i as my database installed on Oracle 9i Applciation Server)
Any suggestions or advise or clues would be a great source of help. Thankyou!
Amit.

the java.sql package has been part of java since 1.1 at least. so it is fairly safe to assume that if you have the jdk you have java.sql
any decent zip/archive program can look in and extract the files in a a jar file.
you do not need to touch this however. what you need is to get the JDBC driver for Oracle.
you can get that here...
http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html

Similar Messages

  • Help with Java.Sql package download

    I am compiling some java files with the following :
    import java.sql.*
    and getting errors. I realize I need the java.sql package. Can anyone help me by pointing out where I can download the package?
    Thanks.
    Murthy Gandikota

    This package comes with the JDK. what are your specific problems.

  • Need Info Regarding Implementaion of Interfaces in java.sql package

    Hi All,
    I am interested in knowing details abt how the Interfaces in the java.sql package are implemented. We all work with the database using the interfaces provided ,but how do they work at the backend ? How can a Interface provide details (work ) with out an implementation class.I Is this taken care by the JVM or some of the Call level interfaces? Please do provide details abt this..

    hi Sheshadri,
    The implementation of the various interfaces in
    java.sql package are provided by your jdbc driver,
    which also manages the connection and communication of
    your java program with the appropriate database.
    cheers,
    -Jer

  • BC4J - How can I get java.sql.Connection ?

    Hi,
    I am using BC4J for my Application and want to get the java.sql.Connection from ApplicationModule or from anywhere such that I can use the same connection as in ApplicaitonModule, to do some work in the database.
    I tried to get it from the SessionInfo :
    sessioninfo.getConnectionInfo();
    but this returns me oracle.dacf.dataset.connections.Connection
    How can I convert this to java.sql.Connection?
    Or Is there any other means to get hold of sql.Connection?
    Any help would be appreciated.
    TIA

    Thanks for this reply.. but
    I need java.sql.Connection to call a stored procedure in Oracle database and I have to pass oracle.sql.ARRAY to it.
    My Stored Procedure looks like:
    create or replace PROCEDURE updateRevenueNetworkInfo(revid varchar2, netids Varchar32Array)
    where 'Varchar32Array' is my own datatype in the database which is mapped to oracle.sql.ARRAY object in java.
    And in order to create oracle.sql.ARRAY I need java.sql.Connection as shown below
    oracle.sql.ARRAY pTable = new oracle.sql.ARRAY(desc, connection, netidarray);
    I am executing my stored procedure like this:
    ArrayDescriptor desc = null; CallableStatement cs = null;
    String[] netidarray = {"00-AOL-T1-N003"};
    desc = ArrayDescriptor.createDescriptor("VARCHAR32ARRAY", conn);
    oracle.sql.ARRAY pTable = new ARRAY(desc, connection, netidarray);
    cs = conn.prepareCall( "BEGIN updaterevenuenetworkinfo(?,?); END;" );
    ((OracleCallableStatement)cs).setString(1,"00-AOL-T1-R3");
    ((OracleCallableStatement)cs).setArray(2, pTable);
    cs.execute();
    Is there any way of getting java.sql.Connection such that I can use the same connection as in the ApplicationModule?
    OR Is there any other way of passing Array of Strings to a stored procedure in the database?
    Thanks for the help.
    null

  • Regd Java.sql package

    Hi all
    i want to know whether java.sql package will be automatically installed when i install jdk1.5 otherwise i have to install is separately with java 3.0api for that package. plzzzz any body help me regd this.

    You'll need to put an oracle driver somewhere in your class path. If you don't already have an Oracle jdbc driver, then you can download one here:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

  • How to get java.sql.Timestamp data from database

    Hello, i'm new to EJB and i can't get java.sql.Timestamp data, but when i'm trying to get java.lang.String data it works fine.
    * @ejb.finder
    * query="SELECT OBJECT(c) FROM userSCHEMA AS c
    *      WHERE c.lastName LIKE ?1
    * AND c.firstName LIKE ?2
    * AND c.registeredDate < ?3"
    * signature="java.util.Collection findPatient * (java.lang.String lastName,
    * java.lang.String firstName,
    * java.sql.Timestamp)"
    <method-params>
    <method-param>java.lang.String</method-param>
    <method-param>java.lang.String</method-param>
    <method-param>java.sql.Timestamp</method-param>
    </method-params>
    Where i made a mistake ?

    The main problem that I'm faced with, is that the
    java.sql.Timestamp now has only one constructor, it
    takes "long", i.e., milliseconds.That's because a Timestamp is just an offset from a particular instant of time. It doesn't have a timezone.
    Please note that I'm not trying to "print", i.e., I'm
    not interested in using the SimpleDateFormat.Then what are you interested in? You appear to be trying to create a Timestamp with a particular timezone, which doesn't make sense as I already noted. Is there a reason for this?

  • How can i import java.sql package for midlet development

    I am trying to write a midlet app using Wireless Toolkit 2.5.2. I would like to connect my application to JavaDB in embedded mode. But when I write "import java.sql.*;", I get an error "package java.sql does not exist
    ". I would like to know how can i include this package. please help.

    FBL wrote:
    Sorry to jump in, but isn't there limited jdbc using unconventional methods?
    [http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/|http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/]
    If so, I feel this may better answer the OPs question.
    -TresAbove article refers to CDC - it is useless in CLDC midlets

  • USE OF VARRAY and RECORD object vis-a-vis java.sql package

    Hi Geeks,
    I want to pass an array of java objects to a stored procedure and I will use them for table insertion or updation.
    Say I have a table TASK at DataBase end while the same TASK object is there at JAVA end.
    I want to pass an array of Task objects via my stored proc
    Please guide me how shall I use java.sql.Array and java.sql.SQLDataType etc etc. any mechanism in store!..
    Regards,
    Pratap
    London

    Thanks for you help
    I created the package and I get this error this time:
    javax.servlet.ServletException: bean test not found within scope
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:822)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:755)
         org.apache.jsp.login_jsp._jspService(login_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:268)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:277)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:223)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

  • Getting java.sql.SQLException: Missing IN or OUT at index::9

    Hi,
    I am getting the following error while executing a call to a pl/sql procedure from an updateRow method inside a rowimpl file for an OA View.
    FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Missing IN or OUT parameter at index:: 9;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
    at oracle.apps.pa.progress.server.DlvrProgressDetailsVORowImpl.updateRow(DlvrProgressDetailsVORowImpl.java:1221)
    I have verified that the parameter passed are correct and there is nothing wrong with the values being passed,
    Can someone please assist me with this, is this a known issue ??
    Thanks,
    Anubhav

    Hi Anubhav,
    Did you forget to register the out parameter using the registerOutParameter?
    Regards
    Peter

  • We have migrated our oracle database, now we are getting "java.sql.SQLExce"

    Hi All,
    We are using oracle 9i server, with IBM portal, some day back we have migrated our databses from one server to other server for staging and production databases with same application, staging application is working fine, but production application is giving following error,
    om.bea.p13n.property.ConfigurableEntitySystemException: java.sql.SQLException: ORA-01400: cannot insert NULL into ("SCPSP4_PTL"."PROPERTY_VALUE"."CREATION_DATE")
         at com.bea.p13n.property.internal.EntityPropertyManagerImpl.setProperty(EntityPropertyManagerImpl.java:493)
         at com.bea.p13n.property.internal.EntityPropertyManager_pmrkio_EOImpl.setProperty(EntityPropertyManager_pmrkio_EOImpl.java:46)
         at com.bea.p13n.usermgmt.profile.internal.ProfileManagerImpl.setProperty(ProfileManagerImpl.java:533)
         at com.bea.p13n.usermgmt.profile.internal.UserProfileManager_mfa736_EOImpl.setProperty(UserProfileManager_mfa736_EOImpl.java:311)
    Thanks

    Looks as though you have got the wrong forum.
    Was it Application Server that you were looking for?

  • How to get PL/SQL package to execute in VB

    We have a PL/SQL reference cursor that returns values from Oracle table. we need to pass these values to MS Access tables using VB Code.
    We created ODBC connection and were able to retrieve records from Oracle table in MS ACCESS. but now we need to retrieve cursor values. For that we are using the following code:
    Option Explicit
    Public m_adoCnn As New ADODB.Connection
    Public Sub Command0_Click()
    Dim sSQL As String
    Dim m_adoRst As ADODB.Recordset
    Dim m_adoCmd As ADODB.Command
    Dim m_adoPrm As ADODB.Parameter
    sSQL = "emp_hist_refcur.empsearch"
    Set m_adoCmd = New ADODB.Command
    With m_adoCnn
    '.ConnectionString = "DSN=TGFSDBA_Test;Pwd=tgfsdba_ot35;UID=tgfsdba"
    .ConnectionString = "Provider=msdaora;Data Source=TGFSDBA_Test;" & _
    "User ID=tgfsdba;Password=tgfsdba_ot35;PLSQLRSet=1;"
    .CursorLocation = adUseServer
    .Open
    End With
    With m_adoCmd
    .ActiveConnection = m_adoCnn
    .CommandType = adCmdStoredProc
    .CommandText = sSQL
    ' .Parameters.Refresh
    ' Set m_adoPrm = .CreateParameter("pTest", adVarChar, adParamInput, 1)
    '.Parameters.Append m_adoPrm
    End With
    'm_adoPrm.Value = "x"
    Set m_adoRst = m_adoCmd.Execute
    End Sub
    Private Sub Form_Unload(Cancel As Integer)
    m_adoCnn.Close
    End Sub
    But when we run it, it gives us TNSNAMES.ORA could not be resolved error and it highlights ".OPEN" in the code? What could be wrong? Please help.
    When we run it using this connection string
    '.ConnectionString = "DSN=TGFSDBA_Test;Pwd=tgfsdba_ot35;UID=tgfsdba"
    Then we get error saying
    Wrong number or type of arguments in a call.
    Do we need to configure TNSNAMES, or install a driver or try a new connection string like OO4O instead of ADO?

    I worked on my code some and I have reached a point where I have created a msg box which shows that I am connected to Oracle. I am executing it step by step (step into). When I reach
    Set m_adoRst = m_adoCmd.Execute()
    I get an error message Microsfot ODBC for Oracle: Syntax error or access violation.
    We think that there is something wrong with the way we are passing the parameter.
    Can you tell how to pass an OUT refcursor parameter? There is no IN in the procedure.
    Option Explicit
    Public m_adoCnn As New ADODB.Connection
    Public Sub Command0_Click()
    Dim m_Cnn As ADODB.Connection
    Dim sSQL As String
    Dim m_adoRst As ADODB.Recordset
    Dim m_adoCmd As ADODB.Command
    Dim m_adoPrm As New ADODB.Parameter
    Dim emp_cursor As String
    sSQL = "call emp_hist_refcur.empsearch(resultset 1000, fname)"
    Set m_adoCmd = New ADODB.Command
    With m_adoCnn
    .ConnectionString = "DSN=TGFSDBA_Test;UID=tgfsdba;Pwd=tgfsdba_ot35"
    .Open
    .CursorLocation = adUseServer
    MsgBox ("connected")
    End With
    With m_adoCmd
    .CommandText = sSQL
    .CommandType = adCmdStoredProc
    .ActiveConnection = m_adoCnn
    Set m_adoPrm = .CreateParameter("pTest", adVarChar, adParamInput, 1)
    .Parameters.Append m_adoPrm
    ' .Parameters.Refresh
    End With
    Set m_adoRst = m_adoCmd.Execute()
    Do While Not m_adoRst.EOF
    Debug.Print m_adoRst(0)
    m_adoRst.MoveNext
    Loop
    ' Close the recordset.
    m_adoRst.Close
    'Print m_adoRst.Fields.Item
    ' End With
    ' m_adoPrm.Value = "x"
    End Sub
    Private Sub Form_Unload(Cancel As Integer)
    m_adoCnn.Close
    End Sub

  • What is the diffrence between package javax.sql and java.sql

    Is javax designed for J2EE?
    And when to use package javax?

    Hi,
    What is the diffrence between package javax.sql and java.sql?The JDBC 2.0 & above API is comprised of two packages:
    1.The java.sql package and
    2.The javax.sql package.
    java.sql provides features mostly related to client
    side database functionalities where as the javax.sql
    package, which adds server-side capabilities.
    You automatically get both packages when you download the JavaTM 2 Platform, Standard Edition, Version 1.4 (J2SETM) or the JavaTM 2, Platform Enterprise Edition, Version 1.3 (J2EETM).
    For further information on this please visit our website at http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

  • Java.sql problem

    Hi,
    I have a problem with "import java.sql.*".
    When a try to compile i get the error:
    "package java.sql does not exist"
    I've tried everything, classpath, add JAR/Libraries, install CDC tools, looked into hundred forums and can't solve the problem.
    I'm using NetBeans 5.5 with Mobility Pack.
    If anybody have any idea about what can I do, I'll appreciate it a lot.
    Thank You!
    If you need me to be more specific, please let me know

    I just start the application with
    import java.sql
    an then the rest of the applicationIf you want to import all the classes from the java.sql package, the correct import statement is:import java.sql.*;� {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Java.sql.sqlexception ora24344 error while trying to load Java class

    Hi Guys,
    I am getting "java.sql.sqlexception ora24344 error" while trying to load a java class using sql developer. Due to sensitivity of the code I am unable to post the code here but has anyone experienced a similar error before?
    Thanks

    Hi,
    ora-24344 is known. It means it compiled but there are errors. Because you are not telling which version of Oracle you use, it is hard. Also you couldn't provide code will not make it easy. A common error is not having the right right on packages of SYS, such as UTL_* or DBMS_SYS_SQL. Can you maybe give the line of your code which produces the error?
    Herald ten Dam
    http://htendam.wordpress.com

  • Java.sql.SQLException: Internal Error with oracle.sql.ARRAY getArray()

    hi,
    I am having having problems with the getArray() of oracle.sql.ARRAY.
    Here are the details:
    Oracle Database - 9.2.0.6. The JDBC driver used -10.2.0.1 jar.(the latest available).
    I am calling a stored procedure from java, that has out param as a collection (VARRAY) of a user defined type.
    The stored procedure works fine, if the user/schema used to connect,contains actual type, and i am able to extract the user defined object from the oracle.sql.ARRAY, via getArray().
    But if i use a different user to connect which has public synonyms and execute rights to the actual type, i get the following error:
    java.sql.SQLException: Internal Error
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
         at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
         at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
         at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
         at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
         at oracle.sql.ARRAY.getArray(ARRAY.java:370)
    The problem is happening because we have 2 different users to connect to the database. one is the dba user, which contains all the types, packages and other one the application user, which we are supposed to use, to connect via java. This application user does have access to types via public synonym, but it gives the above mentioned error.
    Please help :(.
    Regards,
    Gaurav.

    Hi avi,
    Even I am getting the same error inspite of preceding the type name with the same user who has created the type.
    It has displayed the array length.When I am trying to fetch each array, I am getting the error.
    ARRAY simpleArray = (ARRAY) cs.getObject(3);          
    System.out.println("Array is of length " + simpleArray.length());          ********************** The above stmt prints 2 records ******************
    But it goes to exception in the foll stmt..
    Object [] objArrStructArray = null;
    try{
         objArrStructArray = (Object[]) simpleArray.getArray();
    }catch(SQLException e){
         e.printStackTrace();
    Do u know abt this?
    The foll is the error which I am getting.
    java.sql.SQLException: Internal Error
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1026)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1056)
         at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:110)
         at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2262)
         at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1656)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:466)
         at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:416)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:979)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:923)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:743)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:242)
         at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:208)
         at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:963)
         at oracle.sql.ARRAY.getArray(ARRAY.java:353)
         at com.telstra.plo.data.NetworkDAO.findCablesInBuffer(NetworkDAO.java:730)
         at com.telstra.plo.data.NetworkDAOTest.testFindCablesInBuffer(NetworkDAOTest.java:45)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
    Thanks
    Archana

Maybe you are looking for

  • REFUND AMOUNT

    IAM NOT PURCHASE THIS APPS  BUTN MY CARD AUTOMATICE CERDIT 550 RS PLS MY PAYMENT RETURN MY ACCOUNT Billed To: [email protected] imran hanfi                          8 south hatipala 8 indore m.p 452001 IND Order ID: MH3W6NJDZK Receipt Date: 27/06/13

  • Embedding video for a CD Presentation

    Hi, I used to know Flash, but haven't used it in a couple of years. I'm working on a project now using 2 large, 16-second AVI videos I created with Bryce 5.5 (355 MB each). The project is for a 90-second self-executing Flash presentation for business

  • Regarding performance enhancement to reduce execution time

    Hi , actually there is a following piece of code(a SELECT query) in my program,due to which TIME OUT dump occurs.plz help me to modify the code to reduce it's execution time. code is: DATA: at_seque_extref TYPE zprms_ord_ind OCCURS 0 WITH HEADER LINE

  • GLPCA Table values upload to BO(Business Objectives)

    Hi, When we upload the GLPCA table values to BO, the following error showing Log:error_07-04-2009_17_07_22_15_8b2d31ab_6f1a_487c_860e_9a608414452f.txt job server: BO:3510 FIL-080104:[dataflow New_dataflow 251[embedded dataflow DF_FICO_GLPCA_BLK_XML R

  • AHHH!!! please read, major help needed

    ok, so i got his brand new iPod nano today...i have been trying to put songs on it for hours! It's notbeing recognized by iTunes or something. and i got this error 1607. I tried the solutions on the apple site, but it doesn't work. I plug in the iPod