ORA-21700 error using sys.xmlType in Oracle 9.2

I'm working on an application which uses the XMLType column in some of its database tables. When we started, we were using Oracle 9.0.1, and this test code works (which emulates how we have to, in some occasions, populate the XMLType column).
However, we installed Oracle 9.2.0.3 on the same machine and created database instances using this version of Oracle. We didn't upgrade the original 9.0.1 installation (which still exists side-by-side). When we run this code, we get the following exception...
java.sql.SQLException: ORA-21700: object does not exist or is marked for delete
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1846)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1771)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2361)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:422)
at com.edh.oracle.TransactionTester.testClob(TransactionTester.java:134)
at com.edh.oracle.TransactionTester.main(TransactionTester.java:251)
This exception occurs after we've written the data to a Clob and are attempting to call createXML to update the column.
Is there anything additional I need to do to get this working in Oracle 9.2 again? Thanks.
Code is:
* TransactionTester.java
* Created on 11 October 2002, 14:08
package com.edh.oracle;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
* @author ehillman
public class TransactionTester {
private static String ORACLE_URL = "jdbc:oracle:thin:@wallaby:7012:CT2";
/** Creates a new instance of TransactionTester */
public TransactionTester() throws SQLException {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
private void createTables(Connection conn) throws SQLException {
String createText = "create table SillyData (XML_VALUE XMLTYPE, XML_STORAGE CLOB)";
Statement stmt = conn.createStatement();
stmt.execute(createText);
System.out.println("Tables created");
private void dropTables(Connection conn) throws SQLException {
String dropText = "drop table SillyData ";
Statement stmt = conn.createStatement();
stmt.execute(dropText);
System.out.println("Tables dropped");
private void testClob() throws SQLException, java.io.FileNotFoundException,
java.io.IOException {
System.out.println("testClob - START");
Connection conn = DriverManager.getConnection(ORACLE_URL,
"ehillman", "ehillman");
System.out.println("connection received");
createTables(conn);
try {
System.out.println("Loading MyFn.xml");
java.io.FileReader inputReader = new java.io.FileReader(
"C:\\Documents and Settings\\ehillman\\.netbeans\\edh test\\oracle jdbc\\com\\edh\\oracle\\MyFn.xml");
conn.setAutoCommit(false);
Statement stmt2 = conn.createStatement();
stmt2.execute("insert into SillyData (XML_STORAGE) values (EMPTY_CLOB())");
System.out.println("empty row inserted");
stmt2 = conn.createStatement();
ResultSet rs = stmt2.executeQuery("select XML_STORAGE from SillyData for update");
System.out.println("Empty CLOB retireved");
rs.next();
java.sql.Clob clobValue = rs.getClob(1);
oracle.sql.CLOB oraClob = (oracle.sql.CLOB) clobValue;
System.out.println("casted");
java.io.Writer writer = oraClob.getCharacterOutputStream();
char[] buffer = new char[ oraClob.getChunkSize() ];
for (int charsRead = inputReader.read(buffer); charsRead > -1; charsRead = inputReader.read(buffer)) {
writer.write(buffer, 0, charsRead);
writer.close();
System.out.println("data written to Clob");
PreparedStatement pState = conn.prepareStatement(
"update SillyData set XML_VALUE = sys.XMLType.createXML(?)");
pState.setClob(1, clobValue);
int result = pState.executeUpdate();
System.out.println("executeQuery returned " + result);
} finally {
dropTables(conn);
conn.close();
System.out.println("connection closed");
System.out.println("testClob - END");
* @param args the command line arguments
public static void main(String[] args) {
try {
TransactionTester tst = new TransactionTester();
tst.testClob();
} catch (Exception ex) {
ex.printStackTrace();

I've found this....
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb05obj.htm#1032058
Does this mean that, for a table to use an XMLType column, it has to have a single schema definition for every row in the table?
This won't fit for what we're doing.... that is, our table stores XML data for each row, but they are all different types of XML... they don't have the same structure,they don't use the same schema.
Please let me know if I'm missing something

Similar Messages

  • [HELP] ORA-01990 Error opening password file '/home/oracle/OraHome1/dbs/ora

    Dear All,
    I have changed the PWD file on oracle 9.2.04 under linux redhat advance server 2.1. but when i start to open database by issuing dbstart, i get
    ORA-01990: Error opening password file '/home/oracle/OraHome1/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2 : no such file or directory
    additional information: 3
    How to solve the problems?
    thanks and regard
    ER

    Hai all...
    I did it all..
    but still I got
    ORA-01990: Error opening password file '/home/oracle/OraHome1/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2 : no such file or directory
    additional information: 3
    Help me...
    Thanks
    regard
    ER

  • ORA-31061 error while creating XMLType table with virtual column

    I'm not calling it frustration ;)
    but still... what about this one :
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    SQL> create table test_virtual of xmltype
      2  xmltype store as binary xml
      3  virtual columns (
      4    doc_id as (
      5      xmlcast(
      6        xmlquery('/root/@id'
      7        passing object_value returning content)
      8        as number
      9      )
    10    )
    11  )
    12  ;
    Table created.Now, on the latest version :
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL> create table test_virtual of xmltype
      2  xmltype store as binary xml
      3  virtual columns (
      4    doc_id as (
      5      xmlcast(
      6        xmlquery('/root/@id'
      7        passing object_value returning content)
      8        as number
      9      )
    10    )
    11  )
    12  ;
          passing object_value returning content)
    ERROR at line 7:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-31061: XDB error: dbms_xdbutil_int.get_tablespace_tab
    ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 1002Is there something I should be aware of?
    Right now, I'm just evaluating the version so I can't submit any SR.
    Thanks for anyone trying to reproduce the issue.

    Just tested again on a new installation (64-bit server).
    It works :
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL>
    SQL> create table test_virtual of xmltype
      2  xmltype store as binary xml
      3  virtual columns (
      4    doc_id as (
      5      xmlcast(
      6        xmlquery('/root/@id'
      7                 passing object_value returning content)
      8        as number
      9      )
    10    )
    11  );
    Table created
    Now I'll try to see what are the differences between the two installations.
    Thanks Dan and Marco for looking into this.
    Edited by: odie_63 on 2 mai 2012 15:51

  • ORA-02068 errors using a DB Link between source and remote db servers

    I get the following error when I query a table or view on a remote database using a db link:
    13:58:13 SQL> /
    COUNT(*)
    92862
    13:58:16 SQL> /
    select count(*) from rp_adm.users
    ERROR at line 1:
    ORA-02068: following severe error from DURS.CONDEVD1.WORLD
    ORA-03113: end-of-file on communication channel
    14:03:53 SQL>
    As you can see, the query works sometimes and then if I wait about 5 minutes, I get the error. If I run the query immediately after the error, it works fine.
    rp_adm.users is a view which within the DDL it queries a remote database using a db link.
    Any one have any idea how to get rid of this ORA-02068 and ORA-03113 error????

    By the way, this is running on Solaris 10 OS running Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - 64bit databases.
    Edited by: user10340463 on Nov 3, 2008 11:21 AM - Sorry for the dup. Browser screwing up.

  • Error using "Microsoft ODBC for Oracle" driver

    I am trying to connect to Oracle 10g Express Edition from Access 2003 on Windows XP. I created a DSN using "Microsoft ODBC for Oracle" driver. When I try to connect using ADO, I get this error:
    [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
    I googled this error and got a lot of hits but no solution.
    Any help would be greatly appreciated. I am new to Oracle and am coming from SQL Server 2000.
    Thanks a lot!

    This is the connection string I am using:
    Conn1.ConnectionString = "driver={Oracle in XE};Dbq=GMIS_LIVE.WORLD;Uid=Administrator;Pwd=ubs;"
    These are the contents of my tnsnames.ora (what entries do I add to make this work)?
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = your-a9279112e3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )

  • How to use "sys.XMLTYPE.getClobVal( )"?

    Hi all
    Can any one explain me
    SELECT * FROM (
    SELECT
    A.CID CID,
    A.USERID USERID,
    A.SCORE SCORE,
    A.RESULT RESULT,
    A.ANNOTATION ANNO,
    SYS.XMLTYPE.GETCLOBVAL(A.XML) TRANSACTIONINFO,
    SYS.XMLTYPE.GETCLOBVAL(B.ATTRIB) CUSTOMERINFO,
    ROW_NUMBER() OVER (ORDER BY B.FRAUD_ID DESC) RN
    FROM
    GENERALFRAUDLOG A LEFT JOIN FRAUDCUSTOMERS B
    ON
    A.CID=B.CID
    WHERE A.FRAUDID=674003)
    WHERE RN=1
    How we can use this query exactly in Oracle Html Db
    Thanks&Regards
    Suresh

    wt suresh wt do u want cud u com my wsI think your vowel keys on your keyboard are a bit stuck. Time for a new keyboard perhaps?
    cud u com my wsAnd that part of it just sounds perverted. :o\

  • ORA-12154 error connecting CR 2008 to Oracle XE on Windows 7

    I have Crystal 2008 SP3 running on Windows 7. I have Oracle Database Express Edition installed and running. Using the DirectData CR Oracle ODBC Driver 5.1 I test connect fine to Oracle but when I try to use Database Expert to connect to my Oracle database I fail to connect.
    The error I get is Failed to open the connection. Details: ORA-12154: TNS:could not resolve the connect identifier specified. [Database Vendor Code: 12154].  I've spent a lot of time here trolling for information. My TNSnames.ora file appears to be correctly formatted but I'm not sure if it has the correct information in it. I checked my Path and that may be the problem but I am not technical enough to know what to put there so that this 32-bit driver is the first in the list. It's the driver in Windows/SysWOW64. I just need to be able to run a SQL statement in Oracle and create RPTs in CR - not be an OS Expert. Any help would be greatly appreciated.
    TNSNAMES.ORA
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = Owner-VAIO)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    PATH
    PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program File
    s (x86)\Common Files\Microsoft Shared\Windows Live;C:\oraclexe\app\oracle\produc
    t\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\W
    indows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Softw
    are\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)
    \Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\R
    oxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntim
    e;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Live
    \Shared

    Hello,
    This should work, XE is not lsited in our supported platforms PDF but it's still 10.2 which is supported.
    There are more tools you can use to debug, third party Connection tests and ProcessMonitor as well as our database logging dll but if you are running out of time I suggest you purchase a single case and a Rep will contact you directly to resolve the problem.
    To get a single support case got to:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=38156200
    And No, the ORA file should be in the that folder.
    Thanks again
    Don

  • Error using SYS.XMLAGG function

    Error occurs while using SYS.XMLAGG function.What could be the cause ?
    I tried the below given SQL statement, it throws ORA-29913
    error.
    SELECT SYS_XMLAGG(SYS_XMLGEN(e.a)).getClobval() e FROM try_xmltype e
    ERROR:
    ORA-29913: error in executing ODCIAGGREGATEINITIALIZE callout

    What is the database version? You can post this in XMLDB forum for further support.

  • ORA-01401 error on char column with oracle oci driver

    Hello,
    We found a potential bug in the kodo.jdbc.sql.OracleDictionary class
    shipped as source with Kodo:
    In newer Kodo versions (at least in 3.3.4), the method
    public void setString (PreparedStatement stmnt, int idx, String
    val,          Column col)
    has the following code block:
    // call setFixedCHAR for fixed width character columns to get padding
    // semantics
    if (col != null && col.getType () == Types.CHAR
    && val != null && val.length () != col.getSize ())
    ((OraclePreparedStatement) inner).setFixedCHAR (idx, val);
    This block seems to be intended for select statements but is called on
    inserts/updates also. The latter causes a known problem with the Oracle
    oci driver when settings CHAR columns as FixedCHAR, which reports an
    ORA-01401 error (inserted value too large for column) when definitely no
    column is too long. This does not happen with the thin driver.
    We reproduced this with 8.1.7 and 9.2.0 drivers.
    For us we solved the problem by subclassing OracleDictionary and removing
    the new code block.
    Regards,
    Rainer Meyer
    ELAXY Financial Software & Solutions GmbH & Co. KG

    Rainer-
    I read at
    re:'ORA-01401 inserted value too large for column' - 9i that:
    "This is fixed in Oracle9i Release 2"
    Can you try that version of the driver? Also, does it fail in the Oracle
    10 OCI driver?
    Rainer Meyer wrote:
    Hello,
    We found a potential bug in the kodo.jdbc.sql.OracleDictionary class
    shipped as source with Kodo:
    In newer Kodo versions (at least in 3.3.4), the method
    public void setString (PreparedStatement stmnt, int idx, String
    val,          Column col)
    has the following code block:
    // call setFixedCHAR for fixed width character columns to get padding
    // semantics
    if (col != null && col.getType () == Types.CHAR
    && val != null && val.length () != col.getSize ())
    ((OraclePreparedStatement) inner).setFixedCHAR (idx, val);
    This block seems to be intended for select statements but is called on
    inserts/updates also. The latter causes a known problem with the Oracle
    oci driver when settings CHAR columns as FixedCHAR, which reports an
    ORA-01401 error (inserted value too large for column) when definitely no
    column is too long. This does not happen with the thin driver.
    We reproduced this with 8.1.7 and 9.2.0 drivers.
    For us we solved the problem by subclassing OracleDictionary and removing
    the new code block.
    Regards,
    Rainer Meyer
    ELAXY Financial Software & Solutions GmbH & Co. KG
    Marc Prud'hommeaux
    SolarMetric Inc.

  • ORA-00601 Error using JDBC, Oracle 8i on Linux

    Hello,
    Spatial is considering using Oracle as its database platform. I was assigned
    the task of benchmarking the two platforms. So, I downloaded the latest copy
    of Oracle for Linux, version 8.1.6.1.0 ( 8i Enterprise Edition Release 2 ).
    I'm using RedHat 6.2, with a 2.2.14-5.0smp kernel. I ran the installer, set
    up the databases, and everything seemed to be running quite nicely. I copied
    a table and its data from mysql to Oracle, and wrote a java program to
    benchmark the two. This java program takes command line arguments, the first
    one being the connection URL, the second being the number of threads to
    start, the third being the number of operations to complete for each thread.
    So, if you pass it connection 35 35, it will open 35 threads, and each
    thread will then execute 35 selects, inserts, and updates. These are
    hard-coded queries, but they mimic the functionality currently in
    production.
    Oracle bombs on the update. I turned tracing on, and tried it again, with
    the same result. Here's an excerpt from one of the trace files:
    *** SESSION ID:(4.1) 2000-06-21 16:36:48.937
    kvotenlg: epc_collect failed. EPC error: -1073751468.
    CDF: /u01/app/oracle/product/8.1.6/otrace/admin/cdf/styorap0
    FDF: /u01/app/oracle/product/8.1.6/otrace/admin/fdf/oracled.fdf
    kvotenlg: epc_collect failed. ctx:368.
    I was not able to find any information regarding this error. However, this
    message ( or one very similar ) appeared in every trace file. I get the
    following at the end of the pmon_xxxx.trc file:
    Load Indicator not supported by OS !
    *** 2000-06-21 17:42:19.122
    error 601 detected in background process
    And, the following in the alert_sid.log file:
    Wed Jun 21 17:42:19 2000
    PMON: terminating instance due to error 601
    Instance terminated by PMON, pid = 3797
    I made the assumption that this error was actually ORA-00601, and took a
    peek on the internet for relavent information. The canned error message is
    "PMON process runs into lock conflict trying to recovery processes". I found
    someone who had a similar problem, who suggested setting mts_max_dispatchers
    in the initsid.ora file to 1. However, this did not work.
    Basically, when Oracle crashes, the java program is trying to update one
    column in 1225 rows, 35 times, for 35 threads. The java exception is below.
    java.sql.SQLException: No more data to read from socket
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java)
    at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java)
    at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
    at
    oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java)
    at
    oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithBatch(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
    at
    oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java)
    at ned.util.database.DBHammerThread.run(DBHammerThread.java:78)
    Has anyone seen this kind of behavior before? Is this merely a
    misconfiguration on my part? Help! :)
    -ned

    Sorry for the long delay in reply. I was using the thin client driver. However, when I switched to the oci8 driver, not only did I observe a 300% increase in speed, but this bizarre occurrence disappeared. I did find one issue with the oci8 driver, as follows.
    In this thread program, if I created a connection in the main program before any of the threads were instantiated, and when the first thread attempted to create a connection, it would produce a segmentation fault. This behavior was very easy to replicate, and it did not matter whether or not I close the original connection. This problem was circumvented by moving the code in the "main" program to create its connection after the child threads had created theirs.

  • Error using LKM File to Oracle SQLLDR

    Hi,
    we are getting the following error when trying to use SQLLDR LKM
    The error file says the table does not exist although I can see it in the database.
    Any ideas?
    Oracle DB 9i
    SQLLDR 10.2
    Load.out
    SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jan 20 16:30:58 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Load.log
    SQL*Loader: Release 10.2.0.1.0 - Production on Thu Jan 20 16:30:58 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: D:\HFMBACKUP\/LOAD.ctl
    Data File: D:\HFMBACKUP\/PCONS/Loads/BK_FINST-2009_Thu-20-Jan-2011_14-52-24.TXT
    File processing option string: "str X'0D0A'"
    Bad File: D:\HFMBACKUP\/LOAD.bad
    Discard File: D:\HFMBACKUP\/LOAD.dsc
    (Allow 1 discards)
    Number to load: ALL
    Number to skip: 1
    Errors allowed: 0
    Continuation: none specified
    Path used: Direct
    Table ODISTAG."C$_12181010HFMData", loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    C1_SCENARIO FIRST * ; CHARACTER
    C2_YEAR NEXT * ; CHARACTER
    C3_VIEW NEXT * ; CHARACTER
    C4_ENTITY NEXT * ; CHARACTER
    C5_VALUE NEXT * ; CHARACTER
    C6_ACCOUNT NEXT * ; CHARACTER
    C7_ICP NEXT * ; CHARACTER
    C8_PERIOD NEXT * ; CHARACTER
    C10_C1 NEXT * ; CHARACTER
    C13_C2 NEXT * ; CHARACTER
    C9_C3 NEXT * ; CHARACTER
    C12_C4 NEXT * ; CHARACTER
    C11_VALUE1 NEXT * ; CHARACTER
    SQL*Loader-951: Error calling once/load initialization
    ORA-00942: table or view does not exist
    Load CTL
    OPTIONS (
         SKIP=1,
         ERRORS=0,
         DIRECT=TRUE
    LOAD DATA
    INFILE "D:\HFMBACKUP\/PCONS/Loads/BK_FINST-2009_Thu-20-Jan-2011_14-52-24.TXT" "str X'0D0A'"
    BADFILE "D:\HFMBACKUP\/LOAD.bad"
    DISCARDFILE "D:\HFMBACKUP\/LOAD.dsc"
    DISCARDMAX 1
    INTO TABLE ODISTAG."C$_12181010HFMData"
    FIELDS TERMINATED BY X'3B'
    TRAILING NULLCOLS
         C1_SCENARIO     ,
         C2_YEAR     ,
         C3_VIEW     ,
         C4_ENTITY     ,
         C5_VALUE     ,
         C6_ACCOUNT     ,
         C7_ICP     ,
         C8_PERIOD     ,
         C10_C1     ,
         C13_C2     ,
         C9_C3     ,
         C12_C4     ,
         C11_VALUE1     
    )

    Hi,
    Check the paths - seems like you have a combination of forward slashes and back slashes in the pathnames..
    D:\HFMBACKUP\/LOAD.ctl and
    D:\HFMBACKUP\/PCONS/Loads/BK_FINST-2009_Thu-20-Jan-2011_14-52-24.TX for example have combination '\/' after HFMBACKUP.
    cheers
    Bos

  • JDriver error using WLS6.1 w/ Oracle 8.1.7

    Hello,I am getting the error listed when starting my weblogic server after creating a connection pool and datasource through the weblogic (6.1) console. I am currently using the jDriver 5.1.0 oracle kit. I used this kit previously with the WLS6.0sp1 installation and had no errors.Any suggestions? Thanks in advance!-Christine--***** BEGIN ERROR*******Starting Loading jDriver/Oracle .....-------- LOGIN ERROR CODE: 24327---------- LOGIN ERROR CODE: 24327<Aug 17, 2001 1:40:22 PM EDT> <Error> <JDBC> <Cannot startup connection pool "ConnPool" weblogic.common.ResourceException:Could not create pool connection. The DBMS driver exception was:java.sql.SQLException: ORA-24327: need explicit attach before authenticating a user - (user/********)--*****END ERROR******--

    Also you don't have to have any additional 5.1.0 oracle kit here. WLS6.1
    bundles the oracle drivers and the necessary libraries. can you check if
    your path is pointing to the right bin folder for the 817 libraries.
    sree
    "Sree Bodapati" <[email protected]> wrote in message
    news:[email protected]...
    Hi Christine
    Can you do a dbping from the machine where you start the wls server?
    java utils.dbping ORACLE scott tiger servicename(as in tnsnames.ora)
    sree
    "christine" <[email protected]> wrote in message
    news:[email protected]...
    Thank you for your quick reply, Sree. Unfortunately, both the clientversion of
    oracle and the classes12.zip that ships with that version are correct.
    In
    addition,
    the service name is in the tsnames.ora file.
    What is puzzling is that we used this same connectionpool/datasource/oracle/weblogic
    configuration when running weblogic 6.0sp1 with no errors. The only
    thing
    that
    has changed in our configuration is that we upgraded to weblogic 6.1.
    Any other thoughts?
    Thanks again in advance!
    -Christine
    "Sree Bodapati" <[email protected]> wrote:
    Make sure you are using proper client version of the oracle client
    software.
    And the classes12.zip that ships that version.
    And most importantly make sure you have the service name , in the
    tnsnames.ora file in the oracle client folder <oracalhome>/network/admin.
    hth
    sree
    "christine" <[email protected]> wrote in message
    news:[email protected]...
    Hello,I am getting the error listed when starting my weblogic serverafter
    creating a connection pool and datasource through the weblogic (6.1)
    console. I am currently using the jDriver 5.1.0 oracle kit. I used
    this
    kit previously with the WLS6.0sp1 installation and had no errors.Any
    suggestions? Thanks in advance!-Christine--***** BEGIN
    ERROR*******Starting Loading jDriver/Oracle .....-------- LOGIN
    ERROR
    CODE: 24327---------- LOGIN ERROR CODE: 24327<Aug 17, 2001 1:40:22 PM
    EDT>
    <Error> <JDBC> <Cannot startup connection pool "ConnPool"
    weblogic.common.ResourceException:Could not create pool connection. The
    DBMS
    driver exception was:java.sql.SQLException: ORA-24327: need explicit
    attach
    before authenticating a user - (user/********)--*****END ERROR******--

  • ORA-24327 error when trying to configure Oracle JDriver 2.0 on Commerce Server 3.5 SP1 on WLServer 6.0 SP2

    When I try to install and configure the Oracle JDriver v.2.0 to work with Commerce
    Server 3.5 SP1 and WebLogic Server 6.0 SP2, on starting up the commerce server,
    I get the exceptions that follow this message. I cannot run the dbping utility
    because it says it cannot find the BEA license file to verify that JDriver is
    licensed for use. I looked over previous discussion threads on this particular
    Oracle error, and the problem in the previous cases appears to have been use of
    the wrong TNS name. I am referencing the same TNS name that is in my server's
    tnsnames.ora file. I can connect to the database using SQLNet and the same connection
    parameters that I have set up in weblogic. My Oracle home directory is set to
    the directory just above the client install. I am trying to configure Commerce
    Server on a Sun SPARC system running Solaris 8. Any help would be greatly appreciated.
    Thanks,
    Jon Morgan
    ---------- LOGIN ERROR CODE: 24327
    java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    (WEBLOGIC/********@ARBR.intelixinc)
    at weblogic.db.oci.OciConnection.getLDAException(OciConnection.java:161)
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:92)
    at com.beasys.commerce.axiom.contact.security.RDBMSDelegate.init(RDBMSDe
    legate.java:194)
    at com.beasys.commerce.axiom.contact.security.RDBMSDelegate.<init>(RDBMS
    Delegate.java:139)
    at com.beasys.commerce.axiom.contact.security.RDBMSDelegate$DFactory.get
    Instance(RDBMSDelegate.java:975)
    at com.beasys.commerce.util.Pool.<init>(Pool.java:37)
    at com.beasys.commerce.axiom.contact.security.RDBMSRealm.<init>(RDBMSRea
    lm.java:127)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at weblogic.security.acl.Realm.getRealm(Realm.java:84)
    at weblogic.security.acl.Realm.getRealm(Realm.java:62)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
    a:265)
    at weblogic.security.SecurityService.initialize(SecurityService.java:123
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    <Aug 7, 2001 11:50:29 AM EDT> <Emergency> <Server> <Unable to initialize the ser
    ver: 'Fatal initialization exception
    Throwable: java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.secur
    ity.RDBMSException: realm initialization failed, action 'Driver.connect', - wit
    h nested exception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.security.RDBMSEx
    ception: realm initialization failed, action 'Driver.connect', - with nested
    ex
    ception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    at weblogic.security.acl.Realm.getRealm(Realm.java:91)
    at weblogic.security.acl.Realm.getRealm(Realm.java:62)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
    a:265)
    at weblogic.security.SecurityService.initialize(SecurityService.java:123
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    '>
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.IllegalAccessError: com.beasys.commerce.axiom.contac
    t.security.RDBMSException: realm initialization failed, action 'Driver.connect',
    - with nested exception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    java.lang.IllegalAccessError: com.beasys.commerce.axiom.contact.security.RDBMSEx
    ception: realm initialization failed, action 'Driver.connect', - with nested
    ex
    ception:
    [java.sql.SQLException: Error while trying to retrieve text for error ORA-24327
    - (WEBLOGIC/********@ARBR.intelixinc)]
    at weblogic.security.acl.Realm.getRealm(Realm.java:91)
    at weblogic.security.acl.Realm.getRealm(Realm.java:62)
    at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
    a:265)
    at weblogic.security.SecurityService.initialize(SecurityService.java:123
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception

    Wrong Forum, you want the APEX LISTENER support forum, this is the APEX support forum..
    Thank you,
    Tony Miller
    LuvMuffin Software

  • ORA-01461 error using jdbc 10.2.0.1.0

    I am using the oracle jdbc 10.2.0.1.0 ( the latest version) and oracle 10g (10.1.0.4.0) database. Sometimes, the error "ORA-01461: can bind a LONG value only for insert into a LONG column' if I use a java program to insert record to a table containing a 'long raw' field. Previously, the same java program work well with oracle 9i.
    Interestingly, the 'ORA-01461' only SOMETIMES happen. If the problem appears, I need to rename the table and create a new one and then the data can be inserted.

    After 3 days of deep analysis on my project, now I have a clear idea of the problem.
    As you can find on web, newer versions of Oracle drivers for Java have the possibility to set property :
    oracle.jdbc.RetainV9LongBindBehavior=true
    it's considered the fix for this bug, and effectively it seems to work.
    But also with this setting, drivers have one more bug!+
    The problem appears in these conditions:
    - Application tries to save a string into a LONG column database
    - String length is more than 4000 bytes
    - String has less than 4000 characters (it's possible in case of international characters, which takes more than 1 byte)
    With these conditions, we have again error ORA-01461: can bind a LONG value only for insert into a LONG column.
    It seems that drivers evaluate string length before saving it, and consider it as LONG only for 4000+ characters. The bug is just on this check, that must consider length in bytes, according to database character encoding, and not simply for character length.
    As workaround, on my application we added a logic that appends spaces (" ") until total characters are at least 4001. In this way, string is considered correctly as LONG and storage works correctly.
    The check is something similar to this:
    if(value.getBytes("UTF-8").length > 4000 && value.length() < 4000)
    for(int x = value.length(); x<=4000; x++)
    value += " "; // always use StringBuffer for appending
    This workaround works, but it's clear that it can be not acceptable in many cases, for application funcionalities. In my specific bug, it has been very useful.
    My customer opened a ticket to Oracle, asking for solution of this bug. I will wait for Oracle answer.
    Finally, we have to say that Oracle warned to not use anymore LONG datatype: it's deprecated since v8.0.
    Bye guys ;-)
    Edited by: user12274810 on 25-nov-2009 12.04

  • ORA-03115 Error using CLOB with JDBC

    When I try to access CLOB field data with JDBC driver, I gets following error:
    ORA-03115: unsupported network datatype or representation.
    I am using JDBC 8.1.6(Thin), Oracle 8.0.5
    on Linux OS.
    what's the problem ?
    Thank you for any help.
    Taesoo.
    null

    if it is a bug, then its better to upgrade the database to 10.2.0.4. it is the stable verion in 10g.

Maybe you are looking for