JDBC with oracle 8.1.6

Hi ,
iam using oracle 8.1.6 . I want to pass an xml file as a clob to database
through Java pl/sql procedure.Iam using setAscii stream function to pass the clob as param from java. When the size of the xml is more than 32 kb.
iam getting an exception
SQL exception: java.sql.SQLException: Data size bigger than max size for this type: 32922
Using clobs we should be able to support 4gb of data?Does Oracle 8.1 support this? Is there any restriction on Clobs in oracle 8.1?
Can you please help me how I should tackle this problem.
Thanks
Chaitanya

My java application is inside the database oracle 8.1. Is it feasible to use oracle 10 driver?is the driver compatible?
is theere any restriction as passing parameters to Pl/SQL procedure specifically with oracle 8.1?
please confirm.

Similar Messages

  • Performance degradation in j2sdk1.4 than jdk1.3 for jdbc with oracle

    Hi All
    I am working on performance issues regarding response time . i have upgraded my system from jdk1.3 to j2sdk1.4 . I was expecting the performance gain in terms of response time in j2sdk1.4. but to my surprise it shows varied results with my application. it shows that j2sdk1.4 is taking higher time for executing the application when it has to deal with database. I am using oracle 9i as the backend database server.
    if any body has the idea about, why j2sdk1.4 is showing higher responce time while interacting with database as compare to jdk1.3. then do let me know this.
    Thanx in advance

    I'm not sure about the error you're getting, but you might want to try a few things:
    1) Try the thin driver instead of the oci driver. The thin driver is all java, while the oci requires an Oracle client installation (which might be why your getting the memory error). I think the only programming difference is the URL, so if you need to switch later it should be relatively easy.
    2) Instead of DriverManager.registerDriver(), try Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    3) I know this sounds bad, but try throwing some print statements in to see how far you're getting.
    Here a quick sample. And remember to include the classes111.zip in your classpath.
    import java.sql.*;
    public class OracleTest {
      public static void main(String args[]) {
        try {
          Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
          Connection c = DriverManager.getConnection(
                      "jdbc:oracle:thin:@localhost:1521:orcl","scott","tiger");
          System.out.println("Got connection.");     
          c.close();
       } catch (Exception e) {
          System.out.println("Error: " + e);

  • Using JDBC with Oracle

    I have just completed compiling and running a simple UI through a java command line interface, however part of my program is running into a problem. I have to connect to Oracle through JDBC, but the server I am not on does not have the oracle drivers. I have copied them over (in tar as distributed) but I have never had to extern any thing like this. I am running on a standard linux bash prompt and need to know what to do to actually change everything so my program can run the database connectivity.
    Simply put, is there a way to compile so the byte code never needs the .jar, and if not how about making my program see the jar which is in my root folder (not root on the server, but my user root folder)
    I hope that was enough info, if not I'll do my best to provide more.

    Hmm, maybe I'm not quite making sense.
    Let's say I want to run my program on my neighbor's machine (A) to connect to an Oracle database on my machine (B). My neighbor has Java version 1.4.2, and my machine has Java version 1.4.2 also. My oracle database is running Oracle 8i (8.1.6.0.0) my machine. Let us also assume that my neighbor, while desiring a program to connect to my database, wants everything to be included in a single directory and no global system settings to be permananty changed. He doesn't mind if I change setting for the current session if need be.
    Now, I make the Java program on my machine and it works just fine. Since I have Oracle installed on my machine the command "java dbConnect" has no problem running. Now I take the program over to my neighbor's computer with the following files in the current program directory (not the java installation directory):
    dbConnect
    ojdbc14.jar
    This I hope would allow me to run the program since I thought (in error) that the program would probably be able to find the ojdbc14.jar since it is in the directory of the dbConnect program. Unfortunately it runs correctly, then fails to load the oracle driver.
    So now here is my real question. I want to be able to have my neighbor run my application, so what do I do to run the application dbConnect.java on their computer?
    I have tried the following, however it gives an exception in the thread when I run this
    javac dbConnect.java
    java -classpath ./ojdbc14.jar dbConnect
    Exception in thread "main" java.lang.NoClassDefFoundError: dbConnect.The program right now is simply a test to see if I can load the driver and make a connection, and it works on my system, so there should be no problems:
    import java.io.*;
    import java.sql.*;
    public class dbConnect
        //Create an input stream for reading data from the user
        private static BufferedReader stdin =
            new BufferedReader(new InputStreamReader(System.in));
        public static void main(String[] args)
            try{
                //>Load the Oracle JDBC Drivers
                try
                    Class.forName("oracle.jdbc.driver.OracleDriver");
                catch(Exception e)
                    System.out.println("Failed to load Oracle driver.");
                    System.exit(0);
                //>Get username, password, and url for Oracle DB connection.
                String user, pass, url;
                System.out.println("Please enter your username: ");
                user = stdin.readLine();
                System.out.println("Please enter your password: ");
                pass = stdin.readLine();
                url = "jdbc:oracle:thin:@somewhere:1521:csl";
                Connection conn = null;
                Statement stmt = null;
                //>Successfully connect to the Oracle database using JDBC and CSLab account.
                try
                    conn = DriverManager.getConnection(url, user, pass);
                    System.out.println("Connection made!");
                catch(Exception e)
                    System.out.println("Incorrect login information.");
                    System.exit(0);
            }catch(Exception e){
                System.out.println("Exception in main program.  Terminating process.");
    }

  • Using jdbc with oracle-for-win95

    i am using oracle thin driver to connect my java code with oracleforwin95 i think it is called as personal oracle, while getting conection DriverManager.getConection("drivername@host:port(1521):sid","user","password") there is no sid for oracleforwin95 if i keep it blank i get an error connection refused some thing like that even i cannot use dsn for connection what is the problem should i use another driver if yes which one it is and from where it can be downloaded, or should i need to configure my oracle. please help me.

    This is my code given below
    import java.sql.*;
    public class Oconnection
         Connection conn;
         Statement st;
         PreparedStatement pst,pstissue,pstret,pstbook;
         public Oconnection()
              try
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","manager");
              catch(Exception ex)
                   System.out.println(ex.getMessage());
                   ex.printStackTrace();
         public static void main(String args[])
              new Oconnection();
    *****************************************************8
    Error
    C:\Library>java Oconnection
    Io exception: The Network Adapter could not establish the connection
    java.sql.SQLException: Io exception: The Network Adapter could not establish the
    connection
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:211)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:324)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:266)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
    va:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at Oconnection.<init>(Oconnection.java:17)
    at Oconnection.main(Oconnection.java:39)
    I am using Oracle for win95 or i think it is oarcleforwin98 .
    The sid of my database i found through query given by you was orcl, what changes soulh i do int he code so that it works.

  • JDBC with Oracle

    As i come from SQL server environment, I am new to Oracle environment. So my newbie question is how do you connect to particular sub-space (inner schema) of main service. For example, the database hierarchy looks like below.
    (1) A (Database/Service Name)
    ----(1.1) X (database or inner schema)
    ----------(1.1.1) Number of tables belongs to x database
    ----(1.2) Y (database or inner schema)
    ---------(1.2.1) Number of tables belongs to y database
    The TNS file (tnsname.ora) includes entry for "A" database/service. I use JDBC drive to connect to oracle database.
    Connection conObj = DriverManager.getConnection(
    "jdbc:oracle:thin:"+user+"/"+passwd+"@serverName:portnumber:A");
    Above command let me connect to "A" database but when i replace "A" with "X" to connect to "X" database, it gives me following exception. I tried using setCatalog() function to connect to sub-space of the Connection database object's database, but it didn't work. Any idea what i am missing? Thanks
    Exception Error: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    Best Regards,
    Prashant Patel

    The Oracle database hierarchy uses different terminology:
    (1) A (Database)
    ----(1.1) X (schema)
    ----------(1.1.1) Number of tables belongs to x schema
    ----(1.2) Y (schema)
    ---------(1.2.1) Number of tables belongs to y schema
    In Oracle world, a "database" properly speaking is the complete collection of files that store the data and the data state.
    Also, service names are not the same as database names; service names can be thought of as "channels" in Oracle's networking layer, through which you connect to a database. 2 different service names may connect you to the same or different databases, either in different modes or with different resource restrictions (such as maximum CPU percentage).
    Each Oracle user has their own schema and it is the default schema when they connect; if the user has privileges to access another schema, they may access the tables in the other schema directly, by fully qualifying table references with a schema name.
    For example, users jdoe and sroe each have a table named my_table; jdoe has the "SELECT ANY TABLE" privilege and sroe doesn't. jdoe can get results from these SQL statements:
    select count(*) from my_table;
    select count(*) from jdoe.my_table;
    select count(*) from sroe.my_table;user sroe can only do these:
    select count(*) from my_table;
    select count(*) from sroe.my_table;for sroe, "select count(*) from jdoe.my_table;" will return a privilege error.
    Additionally a user session can change the "default schema", the schema that is used when a table refence is not fully qualified, by using the "ALTER SESSION" command. For example, jdoe could issue:
    ALTER SESSION SET CURRENT_SCHEMA = SROE;
    // get the count from sroe's table
    select count(*) from my_table;Hope that helps.

  • Why folks afraid to use jdbc with oracle

    I use:
    1) select * from russian_name;
    2) native2toascii
    3) javac
    4) java
    Java.langArrayIndexOutOfBoundException
    at oracle.jdbc.dbaccess.DBConversion.ut8BytesToChar
    In the case of non existent table name it throw:
    SqlException - table does not exist - just right
    In win, unix, linux - everything with different versions.
    But sometimes it return many recods looks like - "KG UYGUYBG (null) (null) iloirdoidfogidf oidro oireio ddfoidfoid foi9eri o9er (null) (null)"...

    Hi,
    I'm new to using JDBC. I have found some really good
    sources online that have good info on how to get
    started and all. However, I do have a question.
    I'm trying to access an Oracle store with JDBC.
    However, in my code, certain classes and such cannot
    be resolved; i.e. I am missing an import or two. So,
    what do I need to set on my classpath, if that is
    necessary (I have JRE 1.5.0_06, which includes JDBC,
    right?), and what files do I need to import?Includes all the java.sql interfaces, but not the Oracle implementation. You need to download that from Oracle:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    Put that ojdbc14.jar in your project's CLASSPATH. You do not need to import any Oracle-specific classes.
    Let me give a quick example. When I type this:
    Connection connection = null;Connection cannot be resolved. Sounds like you need to re-read the JDBC tutorial.
    So my question is,
    what must I import to my Java class in order to use
    this effectively?You don't need to import, but you do need to load the Oracle JDBC driver class and then get a Connection from the DriverManager, just as all the tutorials show you.
    %

  • JDBC with Oracle 7.34

    I'm looking for a JDBC driver (for both Win2k and Solaris) which can be used to connect to an Oracle 7.34 database. Does anybody know where I can download one for free? I have tried the Oracle website, but there are only drivers for Oracle 8 and 9 available.

    I don't think I can help you, but I am surprised that you got 7.3.4 to even work under W2K. I didn't think it was supported, and to be honest, I didn't even think it would install.
    You can try and use the SUN JDBC-ODBC bridge to connect to Oracle 7.3.4. There are some limitations, but it has base functionality.

  • JDBC with Oracle 7.3.3.6.0 Release

    I'm trying to connect to a 7.3 database using any method. I've
    tried the JDBC/OCI for 7.4 and the 8.1.7 Thin drivers. Neither
    will connect to the database. I've tried the following URL:
    jdbc:oracle:thin:@tnsname
    The database is on port 1521 but the TNSNAME should know that
    right? Does anyone have any ideas or suggestions. I'm using
    JDK 1.2. Thanks.

    Yes you can. You could use 8.1.7 and later JDBC drivers to connect to older oracle versions. They are compatible.
    Chandar

  • Jdbc with oracle ....run time error!

    I'm trying to connect to Oracle using jdbc.
    this is the simple code for my program, I'm getting run time error...."memory could not be read"
    import java.sql.*;
    class MyCon{
    public static final String JDBC_URL = new String("jdbc:oracle:oci8:@BhDb1onlocalhost");
    public static final String USERNAME = new String("scott");
    public static final String PASSWORD = new String("tiger");
    public static void main(String args[])
    try {
         MyCon myob = new MyCon();
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         Connection con = DriverManager.getConnection(JDBC_URL, USERNAME, PASSWORD);
         Statement stm = con.createStatement();
         ResultSet rs = stm.executeQuery("Select * from Providers");
         ResultSetMetaData rsmd = rs.getMetaData();
         while(rs.next()) {
         for(int count=1;count<=rsmd.getColumnCount();count++) {
              System.out.println(rs.getString(count));
    } catch(Exception e) {
         System.out.println("caught:"+e);
    I'm using windowsNT 4.0
    jdk1.2.2
    oracle 8.1.5
    classess111.zip is in my classpath
    thanx in advance.

    <<jdbc:oracle:oci8:@BhDb1onlocalhost>>
    I haven't ever used the oci8 driver, but you could use the thin driver as follows:
    jdbc:oracle:thin:@localhost:1521:BhDb1
    The thin driver is more portable since it doesn't require the NetClient to be installed.
    Hope this helps.

  • Non-blocking JDBC with Oracle OCI

    I have been monitoring performance for a batch type application in a production environment over the last couple of weeks and all indications are that the blocking JDBC actions are the cause of performance issues in the application. The data access layer is built on Hibernate. And while HIbernate is a fine ORM, and does a great job of creating lightweight, fast individual pieces of SQL, I fear it is the sum of these parts that is causing our problems. I consistently see the Hibernate BatcherImpl getResultSet as consuming the most exclusive time in processing. Of course this is related to the structure of the target database as a lot of this time is being spent in execution.
    What appears to be happening is that the executing threads are blocking until they get a response from the database. We are currently using Thin connections, on 10.2.x drivers. On last reading our processor queue length was as high as 70!! This is a clear indication of a CPU bottleneck.
    I was wondering if it is possible to configure non-blocking JDBC using the OCI type connections instead of Thin connections....
    Any advice someone could give on this topic would be much appreciated.
    Thanks much in advance,
    Jay

    Hi Thomas,
    Thank you for the reply. I am aware that only one statement can be executed on a connection at any given time, and we have connection pooling configured, so that's not a problem.
    More specifically what I am looking for here is that when a thread executes a sql statement using a connection, it seems to block on the processor, it does not switch out, thus not allowing other work to be done while the database satisfies the sql statement. I was wondering if OCI connections were used would the thread switch out until a response was recieved from the database.

  • JDBC Problem with Oracle 8.1.7. and OC4J  Version 2

    I use the following connection statement with Oracle 8.1.7. and JDeveloper 3 and Apache Server. It works fine.
    String user = "scott/tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@RDL");
    The same program does not obtain the connection with JDeveloper 9i, OC4J Version 2 and Oracle 8.1.7. I do not receive any error message, no exception is thrown.
    Please help me.

    Hi Avi,
    I had already tried the thin Diriver but after yout help I try again.
    With this thin driver, I received a SQLException which helps me.
    As usual, there were a lot of different problems. The main one was that my default configuration do not use the jdbc/lib817 main jdbc/lib. There is a classe12.jar in these libs that are apparently different.
    Finally, I obtain the connection with the "thin" driver.
    Thank you very much Avi!
    Reni

  • What XA JDBC driver should I use with Oracle 8i 8.1.6

    I need to use an XA JDBC driver for Oracle 8i 8.1.6. I am using the driver in
    a ConnectionPool in a TxDataSource for use by some entity beans using EJB 2.0.
    I'm running WebLogic Server 6.0 sp2, EJB 2.0, Java 2 SDK 1.3.1 Server VM, Solaris
    2.7, and Oracle 8i 8.1.6.
    I know of three different Oracle XA drivers: WebLogic jDriver for Oracle XA, Oracle
    OCI type 2 driver XA, and Oracle Thin tyoe 2 XA. Are there any other drivers
    that I can use for Oracle 8.1.6? Which driver and which version should I use?
    For example, can I use the Oracle 8.1.7 JDBC drivers with the Oracle 8.1.6 server,
    or would the Oracle 9i drivers work with the Oracle 8i server? Which drivers
    are faster, and which support more features? I assume that I should not use the
    type 4 driver since I am not using an applet, but I don't know if there are bugs
    in the OCI C library for Solaris or in the JDBC drivers that use it that prevent
    XA from woking. Which version of the Oracle C OCI library should I use if I use
    a type 2 driver?
    Thanks,
    Ross Goldberg

    Hi,
    I think you can't use the 8.1.6 thin driver for XA, you would have to
    use the OCI driver or 2PC-enable your datasource. AFAIK this has been
    changed for 8.1.7
    Check http://e-docs.bea.com/wls/docs61/////jta/thirdpartytx.html.
    Daniel
    -----Original Message-----
    From: Gene Chuang [mailto:[email protected]]
    Posted At: Thursday, August 30, 2001 2:04 AM
    Posted To: jdbc
    Conversation: What XA JDBC driver should I use with Oracle 8i 8.1.6
    Subject: Re: What XA JDBC driver should I use with Oracle 8i 8.1.6
    I've asked this question before. This is the reply from Joe
    Weinstein:
    For reliability and JDBC 2.0 compliance, I recommend the
    Oracle thin driver.
    If not that driver, you should verify that a type-2 driver
    actually does
    deliver better performance, but then I would not have a
    strong preference
    between their type-2 and ours. Theirs may be faster, and JDBC
    2.0 compliant.
    Both are succeptible to OCI bugs, some of which only they can
    fix, but we
    listen.
    Gene
    "Ross Goldberg" <[email protected]> wrote in message
    news:[email protected]...
    >
    I need to use an XA JDBC driver for Oracle 8i 8.1.6. I am using thedriver in
    a ConnectionPool in a TxDataSource for use by some entity beans usingEJB 2.0.
    I'm running WebLogic Server 6.0 sp2, EJB 2.0, Java 2 SDK 1.3.1 ServerVM, Solaris
    2.7, and Oracle 8i 8.1.6.
    I know of three different Oracle XA drivers: WebLogic jDriver forOracle XA, Oracle
    OCI type 2 driver XA, and Oracle Thin tyoe 2 XA. Are there any otherdrivers
    that I can use for Oracle 8.1.6? Which driver and which versionshould I use?
    For example, can I use the Oracle 8.1.7 JDBC drivers with the Oracle8.1.6 server,
    or would the Oracle 9i drivers work with the Oracle 8i server? Whichdrivers
    are faster, and which support more features? I assume that I shouldnot use the
    type 4 driver since I am not using an applet, but I don't know ifthere are bugs
    in the OCI C library for Solaris or in the JDBC drivers that use itthat prevent
    XA from woking. Which version of the Oracle C OCI library should Iuse if I use
    a type 2 driver?
    Thanks,
    Ross Goldberg

  • JDBC for JDK1.1 connection with Oracle 8.0.5

    I have a client running Oracle 8.0.5 on an NT machine. I have downloaded the 8.0.5 OCI8 and thin JDBC from Oracle web site.
    Using the JdbcChecker.java sample code, I am unable to make a connection to the Oracle DB. I tested JDK1.1.8 with the new jdbc and also with the jdbc that originally came with Oracle (orant\jdbc\lib) but to no avail. I tested JDK1.2.2 with the 8.1.5 jdbc, also no luck. I compiled and ran the code each time, using
    DriverManager.getConnection("jdbc:oracle:thin:@" + database, username, password);
    where database is a.b.c.d:port_no:sid
    The error that came out for jdk1.1.8 was:
    (after printing out 'connecting...')
    java.sql.SQLException: Refused: ROR=(CODE=12505) (EMFI=4)))) ....
    Is there a daemon or something that is not running? I am new to Oracle but not to jdbc. My client has used Oracle a lot but not doing any java programming with it.
    What am I missing here?
    Thanks.

    Could you verify that the listener for the database is configured properly and that it is running?

  • Remote JDBC Problem with Oracle BPM Studio

    Hi all, i am facing the Remote JDBC Problem with Oracle BPM Studio.
    When i configure a Remote JDBC Connection for SQL in BPM Studio, it prompt me an error.
    The SQL Connection is configured as following :
    External Resource:
    Name : MyDS
    Type : SQL Database
    Supported Types : Remote JDBC
    Details:
    Database Type : BPM's Oracle Driver Version:10, 11
    J2EE : WLS
    Lookup Name : MyAppDS
    Configuration for "WLS"
    Name : WLS
    Type : J2EE Application Server
    Supported Types : GENERIC_J2EE
    Details:
    Initial Context Factory : weblogic.jndi.WLInitialContextFactory
    URL : t3://localhost:7001
    But, when i try to connect to the Database by using this configuration, I will get an Exception.
    An exception occurred while getting a resource from a connector.
    Detail:The connector [[ MyDS : SQL : REMOTE_JDBC ]] caused an exception when getting a resource.
    Caused by: An exception occurred while getting a resource from a connector.
    Detail:The connector [[ WLS : J2EE : J2EE ]] caused an exception when getting a resource.
    Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [[ Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory ]]
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at fuego.jndi.FaultTolerantContext.createContext(FaultTolerantContext.java:726)
         at fuego.jndi.FaultTolerantContext.<init>(FaultTolerantContext.java:79)
         at fuego.connector.impl.GenericJ2EEConnector.createInitialContext(GenericJ2EEConnector.java:177)
         at fuego.connector.impl.GenericJ2EEConnector.createStandaloneContext(GenericJ2EEConnector.java:98)
         at fuego.connector.impl.BaseJ2EEConnector.getResource(BaseJ2EEConnector.java:92)
         at fuego.connector.impl.BaseJ2EEConnector.getResource(BaseJ2EEConnector.java:76)
         at fuego.connector.J2EEHelper.getReadOnlyContext(J2EEHelper.java:86)
         ... 12 more
    Edited by: user2262377 on Jun 22, 2009 4:01 PM

    I guess the weblogic.jar is not included in the studio.
    So, i added weblogic.jar (Weblogic 10.3) and wlclient.jar (Weblogic 10.3)
    It is working in my simple java code. But, still not working in BPM Studio.
    The error logs:
    An exception occurred while getting a resource from a connector.
    Detail:The connector [OFT_APP_DS:SQL:REMOTE_JDBC] caused an exception when getting a resource.
    Caused by: java.lang.Object cannot be cast to java.io.Serializable
    fuego.connector.ConnectorException: An exception occurred while getting a resource from a connector.
    Detail:The connector [OFT_APP_DS:SQL:REMOTE_JDBC] caused an exception when getting a resource.
         at fuego.connector.ConnectorException.exceptionOnGetResource(ConnectorException.java:88)
         at fuego.connector.JDBCHelper.getReadOnlyConnection(JDBCHelper.java:93)
         at fuego.sqlintrospector.BrowserPanel.connect(BrowserPanel.java:395)
         at fuego.sqlintrospector.BrowserPanel.populateTree(BrowserPanel.java:200)
         at fuego.ui.wizards.ui.CheckTreeBrowser$1.construct(CheckTreeBrowser.java:63)
         at fuego.ui.SwingWorker$2.run(SwingWorker.java:39)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassCastException: java.lang.Object cannot be cast to java.io.Serializable
         at weblogic.iiop.IIOPOutputStream.writeAny(IIOPOutputStream.java:1588)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2231)
         at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
         at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:225)
         at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1963)
         at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:2001)
         at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2266)
         at weblogic.jdbc.common.internal.RmiDataSource_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • NCHAR issue with oracle database using JDBC adapter

    Hi,
    We have a requirement to develop an XI interface from FTP server(File adapter) to oracle database using JDBC adapter. In the oracle database table few fields are of type NCHAR/NVARCHAR. when we try to insert the character(A,B,c..) values into oracle table fields of type NCHAR/NVARCHAR, we are getting the following error message in the JDBC adapter audit log. IF we pass the numeric value to the same field, then we are able to insert the records successfully.
    Unable to execute statement for table or stored procedure. 'IPCSDD_DOWNLOAD_PROCESS' (Structure 'StatementName1') due to java.sql.SQLException: ORA-00904: "P": invalid identifier
    2010-10-19 22:29:59 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
    2010-10-19 22:29:59 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
    Please find the system information below.
    Oracle version- 10.2.4
    XI version - 3.0/ service pack 19
    JDBC driver- oracle.jdbc.driver.OracleDriver
    Please suggest.
    Thanks,
    Venkata
    Edited by: Venkata Narayana  Eepuri on Oct 21, 2010 12:10 AM

    Dear Venkata Narayana,
    Concerning the error, kindly go through the following note :
    731 - Collective note: ORA-00904
    follow the recommendations mentioned in that and please check if that helps.
    Best Regards
    Nishwanth

Maybe you are looking for