JDBC beginner

i am using O8i in linux, how can i write a applet to connect with the database, i download the oracle thin client, and using
jdk1.3, i dun know how to get start,
can any one suggest some documents or tutorials?

Oracle JDBC 8.1.6 Developer's Guide:
http://technet.oracle.com/doc/oracle8i_816/java.816/a81354/toc.htm

Similar Messages

  • JDBC beginner too

    Hi,
    I am trying to learn how the JDBC intergrates with JSP. I have imported the following:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.math.*" %>
    <%@ page import="oracle.jdbc.*" %>
    <%@ page import="oracle.sqlnet.*" %>
    <%@ page import="oracle.gss.*" %>
    and I have places the oci73jdbc.dll in the PATH. I am getting the following error: java.lang.UnsatisfiedLinkError: no oci73jdbc in java.library.path What do I need to do? I am not familar with that error or how to solve it. Thank you.

    You must set the environment variable LD_LIBRARY_PATH to $ORACLE_HOME/lib -- that should do it.
    slag

  • WebLogic Server - JDBC - Oracle

    Hi,
    I'm a JDBC beginner and I got an ORA-24327 error when accessing Oracle database with IBM WebLogic Server and JDBC OCI 1.2 on a Sun Solaris 2.6 host whith Sun JDK 1.2.2.
    Who can help me ?
    PASCAL

    I am having the same problem and have not had any luck. Did you figure it out?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Pascal LAMBERT ([email protected]):
    Hi,
    I'm a JDBC beginner and I got an ORA-24327 error when accessing Oracle database with IBM WebLogic Server and JDBC OCI 1.2 on a Sun Solaris 2.6 host whith Sun JDK 1.2.2.
    Who can help me ?
    PASCAL<HR></BLOCKQUOTE>
    null

  • Java beginner, please help!! (oracle jdbc setting)

    Hi, I am a java beginner. I can't access remote oracle db from my computer. please help me. I can't figure out the problem.
    1.The error------------------------------------------------------------
    Exception in thread "main" java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:532)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at testdb.main(testdb.java:9)
    2.JDBC DRIVER is in----------------------------------------------------
    c:\j2sdk1.4.1_02\jdbc\classes12.zip
    3.CLASSPATH is --------------------------------------------------------
    .;c:\j2sdk1.4.1_02\bin;c:\j2sdk1.4.1_02\jdbc;
    4.My program is--------------------------------------------------------
    import java.sql.*;
    class testdb
    public static void main (String args[])
    throws SQLException,ClassNotFoundException
    Connection conn=
    DriverManager.getConnection("jdbc:oracle:thin:@111.31.111.11:1526:ORA81","scott","tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset=stmt.executeQuery("SELECT EMPNO FROM EMP");
    while (rset.next()) {
    System.out.println (rset.getString(1));
    5. Why can't i connect to db?

    Hi...i have the same problem and can't seem to solve it
    this is my source code
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class TextToDatabaseTable {
    public static void main (String[] args) {
    try {
    // connect to db
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con = DriverManager.getConnection("jdbc:oracle:thin:@cs-bid:1521:SVRDESK", "lynn", "abc");
    catch( Exception e) {
    e.printStackTrace();
    and this is my error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at TextToDatabaseTable.main(TextToDatabaseTable.java:12)
    and i try the methods above
    C:\download\Lynn>java -classpath c:\download\lynn;classes12.zip TextToDatabaseTable
    C:\download\Lynn>java TextToDatabaseTable
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at TextToDatabaseTable.main(TextToDatabaseTable.java:12)
    i'm using oracle 8i with tomcat on win 2k server.
    i dunno what's wrong with it...do i need to set any classpath?
    i have TOMCAT_HOME and JAVA_HOME Variables in My Environment Variables.
    Do i need to set anything for these variables?
    Do i need to download any patches? I'm kinda confused.
    Thanks!

  • Beginner Has Problem With Loading JDBC Driver Using MySQL

    Hi, I am having problem with loading JDBC driver, and need your diagnotic help.
    1. I have installed MySQL (C:\mysql), created a databse (soup), and created a littel table (VIDEOS). I am able to see the table in the console:
    sql> select * from videos
    2. I have downloaded the latest version of Connector/J (mysql-connector-java-3.1.0-alpha.zip), and unzip the zip file into my C:\ directory.
    3. I copied the mysql-connector-java-3.1.0-alpha-bin.jar to the C:\j2sdk1.4.1_02\jre\lib\ext folder and it is in my CLASSPATH
    4. MySQL server is running
    C:\> C:\mysql\bin\mysqld-nt --standalone
    5. open another DOS window and use the database
    mysql>USE SOUP
    6. succesfully compiled a Java program (javac Test.java):
    import java.sql.* ;
    public class Test
    public static void main( String[] args )
    try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    try
    Connection con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/soup" );
    try
    Statement statement = con.createStatement();
    ResultSet rs = statement.executeQuery("SELECT TITLE FROM VIDEOS");
    while ( rs.next() )
    System.out.println( rs.getString( "TITLE" ) );
    rs.close();
    statement.close();
    catch ( SQLException e )
    System.out.println( "JDBC error: " + e );
    finally
    con.close();
    catch( SQLException e )
    System.out.println( "could not get JDBC connection: " + e );
    catch( Exception e )
    System.out.println( "could not load JDBC driver: " + e );
    7. when I run the Java program (java Test), I got
    the message:
    could not load JDBC driver: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    What am I missing?

    Hi,
    I missed to specify test in my last post.
    Try running your program by explicitly setting the classspath when
    running your program . java -classpath c:\mysql-connector-java-3.1.0-alpha-bin.jar test
    Make sure your jar file contains org.gjt.mm.mysql.Driver class

  • Beginner's Question on Inserting a BLOB with JDBC

    What is the easiest way to accept a file from a user and insert it into a BLOB field in a database?
    If it makes a difference - I'm using DB2 and DB2's JDBC driver
    But I would like to know the simpliest solution (maybe even using the JDBC-ODBC bridge)
    -Michael

    Hi Michael,
    with DB2's JDBC driver it is pretty easy:
    You use a prepared statement and the method setBinaryStream or setBytes:
    PreparedStatement pstmt = con.prepareStatement("UPDATE myTable SET blobColumn = ? WHERE ID = ?");
    FileInputStream in = new FileInputStream(...) ;
    pstmt.setBinaryStream(1, in, in.available()) ;
    pstmt.setInt(2, id) ;
    pstmt.execute() ; Or you read the file first into an array of bytes and put it in the database with pstmt.setBytes(...)
    Yannick

  • File to JDBC adapter , beginner in doubt

    Hi,
    i created a scenario JDBC as receiver and File as sender. Data should be inserted in mysql Databank.
    Msg Interface is defined as
    regards
    Hüsniye

    Hi,
    SQL  table insertion example:
    Below the sample .xsd of datatype that runs suceesfully  via the JDBC adapter.
    You must import this .xsd and study.
    In this datatype Vendor01  is tablename
    action is an attribute
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://borcelik.com/tbit40/ms_sql" targetNamespace="http://borcelik.com/tbit40/ms_sql">
         <xsd:complexType name="VendorMaster_insert_DT">
              <xsd:annotation>
                   <xsd:appinfo source="http://sap.com/xi/TextID">
                   fa3c1bd0ad8111d996a0001185be9a9f
                   </xsd:appinfo>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="Insert1">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             6f642270a5b411d999c1f82f0a0407da
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="Vendor01">
                                       <xsd:annotation>
                                            <xsd:appinfo source="http://sap.com/xi/TextID">
                                            6f642271a5b411d98e60f82f0a0407da
                                            </xsd:appinfo>
                                       </xsd:annotation>
                                       <xsd:complexType>
                                            <xsd:sequence>
                                                 <xsd:element name="access" maxOccurs="unbounded">
                                                      <xsd:annotation>
                                                           <xsd:appinfo source="http://sap.com/xi/TextID">
                                                           6f642273a5b411d9b62df82f0a0407da
                                                           </xsd:appinfo>
                                                      </xsd:annotation>
                                                      <xsd:complexType>
                                                           <xsd:sequence>
                                                                <xsd:element name="VendorNumber" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          6f642274a5b411d9ba32f82f0a0407da
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="LastName" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          6f642275a5b411d9c92cf82f0a0407da
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="SearchTerm" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          6f642276a5b411d9ca6bf82f0a0407da
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="Currency" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          6f642277a5b411d9889cf82f0a0407da
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                           </xsd:sequence>
                                                      </xsd:complexType>
                                                 </xsd:element>
                                                 <xsd:element name="key1">
                                                      <xsd:annotation>
                                                           <xsd:appinfo source="http://sap.com/xi/TextID">
                                                           e20d53b0a5b811d98519f82f0a0407da
                                                           </xsd:appinfo>
                                                      </xsd:annotation>
                                                      <xsd:complexType>
                                                           <xsd:sequence>
                                                                <xsd:element name="VendorNumber" type="xsd:string">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          716d5130a5ba11d9b907f82f0a0407da
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                           </xsd:sequence>
                                                      </xsd:complexType>
                                                 </xsd:element>
                                            </xsd:sequence>
                                            <xsd:attribute name="action" type="xsd:string">
                                                 <xsd:annotation>
                                                      <xsd:appinfo source="http://sap.com/xi/TextID">
                                                      094ca410aa7a11d9ae7ccc950a0407da
                                                      </xsd:appinfo>
                                                 </xsd:annotation>
                                            </xsd:attribute>
                                       </xsd:complexType>
                                  </xsd:element>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>

  • Beginner with JDBC

    Hi,
    I work with Java 1.1.8 and I'm completely new with databases using JDBC.
    Please, tell me what I need to make a simple database in Java and put it in my web page.
    I am usin Linux Suse 7.2. I have access to a local server.
    Many thanks,
    Mihai

    http://java.sun.com/docs/books/tutorial/jdbc/index.html

  • Beginner on JDBC. problem to connect database postgreSQL

    hi there everyone,
    new to JDBC.
    not sure, what's wrong with that.
    I am using XP, postgreSQL 7.3.3 - the database is fine ( i can create a table via cygwin).
    - i have downloaded the pgSQL jdbc driver also set the classpath.
    thanks in advanc
    ===================================
    import java.sql.*;
    public class Example {
    public static void main(String args[])
              String userName="user1";
         String password="whatever";
    try
    String url = "jdbc:postgresql:myDB";
                   Class.forName("org.postgresql.Driver");
    Connection myConnection= DriverManager.getConnection(url,userName,password);
    } catch ( java.lang.Exception ex){ ex.printStackTrace();}
    ===========================================================
    Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
         at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:167)
         at org.postgresql.Driver.connect(Driver.java:122)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:172)
         at Example.main(Example.java:17)

    Thanks colbell
    =========================
    I have got them or newer verion.
    crypt 1.0-1
    cygipc 1.13-2
    cygwin 1.3.16-1
    gcc 3.2-3
    libncurses6 5.2-8
    libreadline5 4.2a-1
    readline 4.2a-1
    zlib 1.1.3-6
    Sun JDK 1.3
    Ant 1.5
    ===================
    i should have this perl 5.8.0-1 but when i install it directly from the net, it only has perl 5.6.2.-1 and it's doc 5.8.0-1.
    i think i have installed the ant correctly but is there any way that i could test it??
    what is the different between
    String url = "jdbc:postgresql:myDB"; and
      jdbc:postgresql:localhost:5432/myDB
    Just check the port number that you're actually
    using.
    how and where can i find it out??? or u mean the usually postgreSQL's port number??
    Also make sure that you have installed cygipc and that
    it is running. Take a look through
    <cygwin>\usr\doc\Cygwin\postgresql-7.3.2.READMEi have installed cygipc - any ways i could test it?
    thanks in advance

  • A beginner question from a beginner in JDBC

    Hi,
    I am trying to execute a query on the database and I have a really strange problem:
    When i execute the query, the system answers me "invalid column name?". I try to male query to find the name of all the column and the answer is good (all the column exist).
    The qu

    Did you check the spellings of column names?
    -XL

  • XI: RFC to JDBC scenario - handle JDBC Adapters Errors

    In scenario could happened to ERP side try to insert an already saved record in receiver side SQL Server. when this happens XI returns a message structure like :
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
      <!--  Call Adapter
      -->
      <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'dbo.ZZTest01' (structure 'Statement_aux'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Violation of PRIMARY KEY constraint 'PK_ZZTest01'. Cannot insert duplicate key in object 'ZZTest01'.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    But i need to read this error message and map to RFC response structure, how can i do that?

    Hi Karoline,
         Well, i create a BPM process and put a Block Step with Exception Lane, so in normal lane a create a Send Step with the JDBC message, and when an error occurs the process goes to the Exception Lane and there a create a Transform Step with other mapping for de response message for the beginner step, something like:
    1º) Receive Step: Sender system with open bridge;
    2º) Transform Step: mapping de Sender message request to JDBC request message;
    3º) Block Step:
         3.1) Normal Lane: Send Step for JDBC Receiver System;
         3.2) Exception Lane: Transform Step with a message mapping with a constant error message;
    4º) Send Step: Sender System with closes bridge;
    I couldn´t pick up the correct error message from jdbc driver, but in this model my process doesn´t stop with a JDBC error.
    If you have an eMail address i can send to you my model.

  • "Name jdbc is not bound in this Context" when conncetiong from different pa

    Hi,
    I'm just a beginner at this so I'll have to explain everything in details as i have no idea what could be wrong.
    I have a working connection to mydatabase using the following method in a CommonMethods.java file in WEB-INF; this file belongs to the "package mrkt.app;" package.
        public Connection getDataBaseConnection() {
            Connection conn = null ;
            try {
                Context ctx = new InitialContext();
                DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/myproject");
                conn = ds.getConnection();
            } catch (Exception ex) {
                ex.printStackTrace();
            return conn ;
        }     I needed to create a new class in package "package mrkt.app.cat.shop;", in this new java file i need access to the database so i just copied and pasted the above code in the new java file, compiled it, put it in the "WEB-INF/classes/mrkt/app/cat/shop" folder, restarted tomcat to reload classes. The class is loaded successfully, but i always get the following error when calling the method(getShopsCount) using the connection function (getDatabaseConnection)
    javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
         at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
         at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
         at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at mrkt.app.cat.shop.ShoppingGuide.getDataBaseConnection(ShoppingGuide.java:30)
         at mrkt.app.cat.shop.ShoppingGuide.getShopsCount(ShoppingGuide.java:49)
         at org.apache.jsp.shopping_005fguide_005fsection_jsp._jspService(shopping_005fguide_005fsection_jsp.java:1418)Regards.
    Yehia A.Salam

    I have the same problem!
    I created a couple of virtualhost on the same webapp like described here
    http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html
    the application works without problems if I point my browser to
    http://ip_address/webapp
    but, if I open http://www.myvirtualhost.com/ I get a
    javax.servlet.ServletException: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
    I even defined the same datasource I use for the ip based browsing in the virtualhost datasources (through admin, without restarting tomcat) but I get the same exception... any suggestion?
    thanks

  • Java.sql.SQLException: Cannot load JDBC driver class 'null'

    Hi,
    I am a beginner of using jdbc, i use the tomcat4.1.x, mysql3.23.54 and it's jdbc driver 2.0.14. I place the drive <in jar file> in tomcat/commons/lib and configure the server.xml, web.xml and some testing coding. But there are some error like the following:
    java.sql.SQLException: Cannot load JDBC driver class 'null'
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
         at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
         at foo.DBTest.init(DBTest.java:18)
         at org.apache.jsp.test_jsp._jspService(test_jsp.java:48)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    of course its some of the error code and there are more.
    Why I have this problems and how can I fix it? Can someone help me??
    Thanks,
    Tong
    I place my test.jsp at tomcat/webapps/DBTest and DBTest.java at tomcat/webapps/DBTest/WEB-INF/classes/foo
    additional of the tomcat/conf/server.xml
    <Resource name="TestDB" auth="Container" type="javax.sql.DataSource" description="MySQL TestDB"/>
    <ResourceParams name="TestDB">
    <parameter><name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter><name>maxActive</name><value>10</value></parameter>
    <parameter><name>maxIdle</name><value>1</value></parameter>
    <parameter><name>maxWait</name><value>10000</value></parameter>
    <parameter><name>username</name><value>javauser</value></parameter>
    <parameter><name>password</name><value>javadude</value></parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.gjt.mm.mysql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:mysql://localhost:3306/javatest?autoReconnect=true</value>
    </parameter>
    </ResourceParams>
    tomcat/webapps/DBTest/WEB-INF/web.xml :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    </web-app>

    Post the part of your code that loads the driver and connects. My guess is you are using a variable for the name of the driver and the variable has not been set to anything(intially set to null).
    Thanks
    Cardwell

  • JDBC - Sybase Connectivity Issue

    I'm a Java beginner.When using the java JDBC i'm experiencing the following issues
    Connection string used - jdbc:sybase:Tds:<Serverip>:<ServerPort>
    Driver File - com.sybase.Jdbc2.Jdbc.SybDriver
    Initially when i tried using these values i'm able to establish the database connection.But recently i changed the machine name.I'm using the same machine for both Database and Java.After the machine name changes i'm getting the following error
    SQLException:Jz006:caught IOException:java.net.connect Exception.
    Please help me...

    Just rename back the host. Do it work?
    See [http://tmaj.pathology.jhmi.edu/doc/manual/FAQs.html#DATABASE_TROUBLESHOOTING]
    I found somewhere that
    Note: The following exception occurs when you click Test Connection to connect a Sybase data source from the administrative console.
    Test connection failed for data source isagent on server server1 at node
    svtaix24Node01 with the following exception: java.lang.Exception:
    java.sql.SQLException: JZ006: Caught IOException: java.net.ConnectException: A
    remote host refused an attempted connect operation.DSRA0010E: SQL State = JZ006,
    Error Code = 0
    This exception occurs when the Sybase data source port number is not matched to the port configured in Sybase server.
    The default port number is 5000.
    Check the port number of your Sybase server in the interfaces file under /<sybase install directory>.

  • JDBC or RandomAccessFile?

    I'm thinking of developing a pure Java application/applet that gets line inputs from text files and stores them in either a random access file or a database, whichever is workable, for later retrieval. I was told I may need SQL so I am thinking of JDBC, which may result in an applet/application that is not pure Java. On the other hand, I am also thinking of using random access files to create a pure Java applet/application. Any advise?

    blozada said
    I don't have an SQL database. I am just an instructor
    trying to develop a Java solution to solve the problem
    of administering, checking, and grading of manual
    classroom examinations.
    How about the java.sql package? Can it help me?Nothing you have said indicates that you need a database.
    If you are beginner in java and especially if you are beginner in programming then I would suggest that you absolutely not use a database. Even if that is the best solution. The complexity would be overwhelming.
    If however, you are not a beginner and you want to learn some database skills then there are free databases. You should start with seeing if you have MS Access. That is the best choice. If not then MySQL is probably workable. MySQL is probably harder than MS Access, because it requires more work to get it going. Which could be an advantage if you want the technical challenge but irritating otherwise. There are more obscure free ones but I wouldn't suggest them unless you really want a challenge.

Maybe you are looking for

  • Photo gallery in DW CS3

    Can someone tell me how to make a photo gallery in DW CS3? I mean a site with thumbnails that are linked to larger images, preferably all thumbnails on one site, not the filmstrip system. I read that there would be a gallery option in DW, but I canno

  • How to change a single shortcut that keeps messing me up?

    In another program that I use frequently, typing an "8" switches me to another tool. In Photoshop, by default, it executes a "Master Opacity Change". Whenever I'm in Photoshop, I keep accidentally hitting the 8--my brain is on autopilot from the othe

  • Inserting images in divtags

    Have 2 adjacent divtags one above the other with zero margin between. I click inside top one and insert image. Then try to click inside lower one to insert another image but cursor does not appear. I can select the div by clicking its border but can'

  • Move Tool makes the layer disappear

    I'm having so many problems with CS5 bugs...so here's another one. If I try to move a layer, sometimes it will completely disappear. This is usually right after I have pasted something but it can also happen with type. If the layer is Type, I can sel

  • Edit Submit Email Message

    I've seen other people post this question, but cannot find an answer.  When a user completes and submits a form created in LiveCycle and distributed as a saved file (as opposed through Adobe) an email is generated that has the completed form attached