ORACLE CLOB problem

Hi,
When inserting CLOB of size > 4000 (Oracle database) I encountered an oracle
error: ORA-01002: fetch out of sequence while inserting.
If CLOB < 4000 it works fine.
Kodo version 3.0.1
I'll appreciate any help, thanks in advance
Test source:
TestClob testClob = new TestClob();
testClob .setAttributeValue("name", "name1");
StringBuffer data = new StringBuffer();
for (int i = 1; i < 4010; i++) {
data.append("X");
testClob .setAttributeValue("dataClob", data);
PersistenceManager pm1 = getPersistenceManager();
pm1.currentTransaction().begin();
pm1.makePersistent(testClob );
pm1.currentTransaction().commit();
jdo file:
<class name="TestClob">
<extension vendor-name="kodo" key="jdbc-class-ind-value" value="1"/>
<extension vendor-name="kodo" key="table" value="TEST_CLOB"/>
<extension vendor-name="kodo" key="pk-column" value="ID"/>
<extension vendor-name="kodo" key="detachable" value="true"/>
<extension vendor-name="kodo" key="jdbc-sequence-name"
value="SEQ_TEST_CLOB"/>
<field name="name" default-fetch-group="false" >
<extension vendor-name="kodo" key="fetch-group" value="TestClob_name"/>
<extension vendor-name="kodo" key="data-column" value="NAME"/>
</field>
<field name="dataClob" default-fetch-group="false"
persistence-modifier="persistent">
<extension vendor-name="kodo" key="fetch-group" value="TestClob_dataClob"/>
<extension vendor-name="kodo" key="data-column" value="CLOB_DATA"/>
<extension vendor-name="kodo" key="jdbc-size" value="-1"/>
</field>
</class>
Oracle DB table:
CREATE TABLE test_clob (
ID NUMBER ( 10 ) NOT NULL,
NAME VARCHAR2 ( 255 ) NOT NULL,
clob_data clob,
LAST_UPDATE NUMBER(18),
PRIMARY KEY (ID)
mapping file:
<class name="TestClob">
<jdbc-class-map type="base" table="TEST_CLOB" pk-column="ID" />
<field name="name">
<jdbc-field-map type="value" column="NAME"/>
</field>
<field name="dataClob">
<jdbc-field-map type="clob" column="CLOB_DATA"/>
</field>
</class>
Error log:
- <t -1133534024, conn 5> [10 ms] executing prepstmnt 14 INSERT INTO
OSS_INV.TES
T_CLOB (CLOB_DATA, ID, LAST_UPDATE, NAME) VALUES (?, ?, ?, ?) [params=(Clob)
ora
cle.sql.CLOB@5f4e2d, (long) 1215, (long) 12, (String) nazwa]
- <t -1133534024, conn 5> [20 ms] executing prepstmnt 15 SELECT t0.CLOB_DATA
FRO
M OSS_INV.TEST_CLOB t0 WHERE t0.ID = ? FOR UPDATE [params=(long) 1215]
- An exception occurred while ending the transaction. This exception will
be re
-thrown.
kodo.util.FatalDataStoreException: ORA-01002: fetch out of sequence
{prepstmnt 15 SELECT t0.CLOB_DATA FROM OSS_INV.TEST_CLOB t0 WHERE t0.ID = ?
FOR
UPDATE [params=(long) 1215]} [code=1002, state=72000]
NestedThrowables:
com.solarmetric.jdbc.ReportingSQLException: ORA-01002: fetch out of sequence
{prepstmnt 15 SELECT t0.CLOB_DATA FROM OSS_INV.TEST_CLOB t0 WHERE t0.ID = ?
FOR
UPDATE [params=(long) 1215]} [code=1002, state=72000]
java.sql.SQLException: ORA-01002: fetch out of sequence
at
kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at
kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:510)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java
:158)
at
kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerI
mpl.java:788)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManag
erImpl.java:644)
at
weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(Serv
erSCInfo.java:1010)
at
weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(Se
rverSCInfo.java:115)
at
weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAn
dChain(ServerTransactionImpl.java:1142)
at
weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(
ServerTransactionImpl.java:1868)
at
weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:250)
at
weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
sactionImpl.java:221)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.jav
a:416)

Pawe-
Can you post the complete stack trace? I think you may have truncated
one or more of the nested exceptions, which are important.
The exception is odd: I believe it indicates that the row into which we
will be updating the CLOB wasn't found. This is strange because the
initial insert seems to have succeed on the line previous.
Can you try this with Kodo 3.0.3? Also, which version of Oracle and the
JDBC driver are you using? We recommend using version 9.0.2 of the
driver, since that is the most stable in our experience.
In article <[email protected]>, Pawe__ |wierszcz wrote:
Hi,
When inserting CLOB of size > 4000 (Oracle database) I encountered an oracle
error: ORA-01002: fetch out of sequence while inserting.
If CLOB < 4000 it works fine.
Kodo version 3.0.1
I'll appreciate any help, thanks in advance
Test source:
TestClob testClob = new TestClob();
testClob .setAttributeValue("name", "name1");
StringBuffer data = new StringBuffer();
for (int i = 1; i < 4010; i++) {
data.append("X");
testClob .setAttributeValue("dataClob", data);
PersistenceManager pm1 = getPersistenceManager();
pm1.currentTransaction().begin();
pm1.makePersistent(testClob );
pm1.currentTransaction().commit();
jdo file:
<class name="TestClob">
<extension vendor-name="kodo" key="jdbc-class-ind-value" value="1"/>
<extension vendor-name="kodo" key="table" value="TEST_CLOB"/>
<extension vendor-name="kodo" key="pk-column" value="ID"/>
<extension vendor-name="kodo" key="detachable" value="true"/>
<extension vendor-name="kodo" key="jdbc-sequence-name"
value="SEQ_TEST_CLOB"/>
<field name="name" default-fetch-group="false" >
<extension vendor-name="kodo" key="fetch-group" value="TestClob_name"/>
<extension vendor-name="kodo" key="data-column" value="NAME"/>
</field>
<field name="dataClob" default-fetch-group="false"
persistence-modifier="persistent">
<extension vendor-name="kodo" key="fetch-group" value="TestClob_dataClob"/>
<extension vendor-name="kodo" key="data-column" value="CLOB_DATA"/>
<extension vendor-name="kodo" key="jdbc-size" value="-1"/>
</field>
</class>
Oracle DB table:
CREATE TABLE test_clob (
ID NUMBER ( 10 ) NOT NULL,
NAME VARCHAR2 ( 255 ) NOT NULL,
clob_data clob,
LAST_UPDATE NUMBER(18),
PRIMARY KEY (ID)
mapping file:
<class name="TestClob">
<jdbc-class-map type="base" table="TEST_CLOB" pk-column="ID" />
<field name="name">
<jdbc-field-map type="value" column="NAME"/>
</field>
<field name="dataClob">
<jdbc-field-map type="clob" column="CLOB_DATA"/>
</field>
</class>
Error log:
- <t -1133534024, conn 5> [10 ms] executing prepstmnt 14 INSERT INTO
OSS_INV.TES
T_CLOB (CLOB_DATA, ID, LAST_UPDATE, NAME) VALUES (?, ?, ?, ?) [params=(Clob)
ora
cle.sql.CLOB@5f4e2d, (long) 1215, (long) 12, (String) nazwa]
- <t -1133534024, conn 5> [20 ms] executing prepstmnt 15 SELECT t0.CLOB_DATA
FRO
M OSS_INV.TEST_CLOB t0 WHERE t0.ID = ? FOR UPDATE [params=(long) 1215]
- An exception occurred while ending the transaction. This exception will
be re
-thrown.
kodo.util.FatalDataStoreException: ORA-01002: fetch out of sequence
{prepstmnt 15 SELECT t0.CLOB_DATA FROM OSS_INV.TEST_CLOB t0 WHERE t0.ID = ?
FOR
UPDATE [params=(long) 1215]} [code=1002, state=72000]
NestedThrowables:
com.solarmetric.jdbc.ReportingSQLException: ORA-01002: fetch out of sequence
{prepstmnt 15 SELECT t0.CLOB_DATA FROM OSS_INV.TEST_CLOB t0 WHERE t0.ID = ?
FOR
UPDATE [params=(long) 1215]} [code=1002, state=72000]
java.sql.SQLException: ORA-01002: fetch out of sequence
at
kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:42)
at
kodo.jdbc.sql.SQLExceptions.getFatalDataStore(SQLExceptions.java:24)
at
kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:510)
at
kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java
:158)
at
kodo.runtime.PersistenceManagerImpl.flushInternal(PersistenceManagerI
mpl.java:788)
at
kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManag
erImpl.java:644)
at
weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(Serv
erSCInfo.java:1010)
at
weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(Se
rverSCInfo.java:115)
at
weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAn
dChain(ServerTransactionImpl.java:1142)
at
weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(
ServerTransactionImpl.java:1868)
at
weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:250)
at
weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
sactionImpl.java:221)
at
kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.jav
a:416)--
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Problems saving Unicode in an Oracle CLOB

    We found a problem with saving Unicode in an Oracle CLOB. We use thin
    drivers and Oracle 9.2.0.3.0 The character set of the database is UTF8.
    The following code works:
    // Retrieve clob object into ResultSet rs
    // Data to be saved is in String str
    // Save data:
    oracle.sql.CLOB theClob = (oracle.sql.CLOB)rs.getObject(1);
    theClob.putString(1, str);
    But the following code does not save the data properly while this is
    usually recommended in code samples:
    oracle.sql.CLOB theClob = (oracle.sql.CLOB)rs.getObject(1);
    Writer out = theClob.getCharacterOutputStream();
    out.write( str.toCharArray() );
    out.flush();
    out.close();
    What could be the reasons why the second approach is failing?
    Regards,
    Joop Kaashoek

    Thanks for your reply.
    When I insert .gif files JDeveloper ends with a message saying "Process exited with exit code 0". I then go and check in the database and I find the image added to the table.
    With a word doc, JDeveloper does not give that message. No message at all regarding what the status of the process is. And the document is not added to the database. No error messages too. Could this be an issue with Oracle?

  • How to fill an oracle CLOB with a XML document using Unicode UTF8

    Hi,
    I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding.
    It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The problem is that i can't use Unicode (UTF16) with oracle 8.
    Can someone help me ? Thanks.
    Here is my code.
    OracleTransaction tx = conn.BeginTransaction();
    OracleCommand cmd = conn.CreateCommand();
    cmd.Transaction = tx;
    cmd.CommandText = "declare xx clob; begin dbms_lob.createtemporary(xx, false, 0); :tempclob := xx; end;";
    cmd.Parameters.Add(new OracleParameter("tempclob", OracleType.Clob)).Direction = ParameterDirection.Output;
    cmd.ExecuteNonQuery();
    OracleLob tempLob = (OracleLob)cmd.Parameters[0].Value;
    MemoryStream MemStrm = new MemoryStream();
    XmlTextWriter writer = new XmlTextWriter(MemStrm, Encoding.UTF8);
    writer.Formatting = Formatting.Indented;
    WriteXMLExample(writer, "MSFT", 74.125, 5.89, 69020000);
    writer.Close();
    cmd.Parameters.Clear();
    cmd.CommandText = "test_xml";                    
    cmd.CommandType = CommandType.StoredProcedure;
    tempLob.Write(MemStrm.GetBuffer(), 0, MemStrm.GetBuffer().Length );
    tempLob.Position = 0;
    cmd.Parameters.Add(new OracleParameter("xml_inout", OracleType.Clob)).Value = (OracleLob) tempLob;
    cmd.ExecuteNonQuery();
    Console.WriteLine( "Param 0 = " + cmd.Parameters[0].Value.ToString() );
    tx.Commit();

    Hi,
    I'm working with C# and oracle database v8.1.7 (release 3), and i'm having some problems to fill correctly an oracle CLOB parameter with XML document using UTF8 encoding.
    It works fine with "Encoding.Unicode" but not with "Encoding.UTF8". The problem is that i can't use Unicode (UTF16) with oracle 8.
    Can someone help me ? Thanks.
    Here is my code.
    OracleTransaction tx = conn.BeginTransaction();
    OracleCommand cmd = conn.CreateCommand();
    cmd.Transaction = tx;
    cmd.CommandText = "declare xx clob; begin dbms_lob.createtemporary(xx, false, 0); :tempclob := xx; end;";
    cmd.Parameters.Add(new OracleParameter("tempclob", OracleType.Clob)).Direction = ParameterDirection.Output;
    cmd.ExecuteNonQuery();
    OracleLob tempLob = (OracleLob)cmd.Parameters[0].Value;
    MemoryStream MemStrm = new MemoryStream();
    XmlTextWriter writer = new XmlTextWriter(MemStrm, Encoding.UTF8);
    writer.Formatting = Formatting.Indented;
    WriteXMLExample(writer, "MSFT", 74.125, 5.89, 69020000);
    writer.Close();
    cmd.Parameters.Clear();
    cmd.CommandText = "test_xml";                    
    cmd.CommandType = CommandType.StoredProcedure;
    tempLob.Write(MemStrm.GetBuffer(), 0, MemStrm.GetBuffer().Length );
    tempLob.Position = 0;
    cmd.Parameters.Add(new OracleParameter("xml_inout", OracleType.Clob)).Value = (OracleLob) tempLob;
    cmd.ExecuteNonQuery();
    Console.WriteLine( "Param 0 = " + cmd.Parameters[0].Value.ToString() );
    tx.Commit();

  • Sybase TEXT to Oracle CLOB migration

    Hi All,
    We are doing the migration from Sybase to Oracle 10g.
    Migration steps include..
    1. Creation of Oracle staging area similar structure as Sybase database.
    2. Extract the data through BCP
    3. Import to oracle by Sqlldr (sql loader)
    But we have problem in migrating the SYBASE TEXT column into ORACLE CLOB, as Sqlldr ( sql loader) can load clob column only 500 bytes, unless we are not using LOBFILE clause.
    To use LOBFILE clause, we have to create "Secondary Data file " , But BCP have limitation. It is not supporting custom query to generate CLOB column data file.
    Help me in resolving this issue.

    umesh chandru wrote:
    To use LOBFILE clause, we have to create "Secondary Data file " , But BCP have limitation. It is not supporting custom query to generate CLOB column data file.As I understand it, the core issue is that SQL*Loader wants you to point it to the file containing the CLOB to load. While BCP puts the TEXT/CLOB inline in what is essentially a BCP produced CSV file.
    Now this is a problem. As the CLOB can contain all kinds of formatting, including end-of-CSV-row characters, special characters and so on, it can easily render the format of that CSV file useless.
    SQL*Loader expects a CSV file where the CLOB column contains a filename to load - and where that file contains the contents of the CLOB. With this approach there is no issues dealing with complex file formatting rules in trying to load the CLOB as a part of a CSV file.
    So extract the data in this format - do not restrict yourself to the limitations of BCP. That TEXT column must have a PK column (or two). Write a script that extract the TEXT into a default directory, creating a file that is uniquely identified by the PK.
    Extract the rest of the table's content (using BCP for example) into CSV format. Now you have the data in the two parts (CSV file and separate CLOB files) that SQL*Loader expects. Create the appropriate control file and load the data. This should not be that complex to do.

  • How to insert more than 32k xml data into oracle clob column

    how to insert more than 32k xml data into oracle clob column.
    xml data is coming from java front end
    if we cannot use clob than what are the different options available

    Are you facing any issue with my code?
    String lateral size error will come when you try to insert the full xml in string format.
    public static boolean writeCLOBData(String tableName, String id, String columnName, String strContents) throws DataAccessException{
      boolean isUpdated = true;
      Connection connection = null;
      try {
      connection = ConnectionManager.getConnection ();
      //connection.setAutoCommit ( false );
      PreparedStatement PREPARE_STATEMENT = null;
      String sqlQuery = "UPDATE " + tableName + " SET " + columnName + "  = ?  WHERE ID =" + id;
      PREPARE_STATEMENT = connection.prepareStatement ( sqlQuery );
      // converting string to reader stream
      Reader reader = new StringReader ( strContents );
      PREPARE_STATEMENT.setClob ( 1, reader );
      // return false after updating the clob data to DB
      isUpdated = PREPARE_STATEMENT.execute ();
      PREPARE_STATEMENT.close ();
      } catch ( SQLException e ) {
      e.printStackTrace ();
      finally{
      return isUpdated;
    Try this JAVA code.

  • Loading multiple text files from a folder into oracle clob field

    I would like to load about 300 word documents into a oracle clob field with each document inserted as a separate record.
    I'm not quite sure how to go about doing this. Is there a utility in oracle that would do this?
    I've looked at sql loader and utl_file but both require the name of the file. Is there a way I can do this?
    If its not possible using just oracle, does anyone know how I can do this in combination with perl?
    Many Thanks
    Sam

    I have no experience with this, but pl see if MOS Doc 73787.1 (How to Read A Binary File into BLOB Using PL/SQL) can help.
    Essentially, you will have to write code to loop thru all 300 files to load them into the database
    HTH
    Srini

  • Oracle reports problem in distribution with xml file

    Hi ,
    I am having problem while I am trying to distribute the file with specifing the destination details in the xml. If I am giving the destination details in url then it is working.
    Ex.
    This is Working
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&desformat=pdf&destype=file&desname=devlopersuit/reports/output_file.pdf
    Not working :
    http://bryxh91:8889/reports/rwservlet?report=devlopersuit/reports/test.jsp&userid=anju/[email protected]&DISTRIBUTE=YES&destination=devlopersuit/reports/dis_test.xml
    xml file
    <destinations>
    <file id="test" name="output_file.pdf" format="pdf">
    <include scr="mainSection"/>
    </file>
    </destinations>
    Error : REP-34304: Distribution failed to complete; review the distribution lists
    Its been week I tried many things , but not working.
    Right now I am trying to distribute to single file but my goal is to burst and distribute on basis of account number.
    This is the first stage of the project.
    Thanks a lot for the help
    Anju

    Hello
    see answer in Oracle reports problem in distribution with xml file
    Regards

  • Oracle CLOB fails to display in the Java report viewer (CR4E 2.0)

    We are using Crystal XI report designer and CR4E 2.0 report engine accessing a Oracle 10g MAXIMO database. 
    There is one field (longdescription.ldtext) that is an Oracle CLOB, which Crystal sees as a Memo data-type field, that displays just fine in Crystal Reports Developer 11.0.0.1282 Print Preview, but when the exact same .rpt file is loaded to the web environment and brought up under the report DHTML viewer for the exact same database record, the field does not display.
    I encountered this same issue earlier but worked around it by casting the CLOB to a varchar2(2000), but in this case the data is often larger than a varchar2's max size, so I need to print  the entire CLOB.
    Any ideas, anyone?
    Thanks,
    Bill

    Bill,
    I faced the similar issue some time back. See if this works for you
    In my case the clob size field was limited to 15000 characters for users to enter through the application.
    So if u know the maximum limit of data users can enter into the clob field. You can do something like
    1. Create a view
    create view test_clob as
    select
         to_char( substr (<clob_column>, 1, 2000) ) clob1,
         to_char( substr (<clob_column>, 2001, 2000) ) clob2,
         to_char( substr (<clob_column>, 4001, 2000) ) clob3,
         to_char( substr (<clob_column>, 14001, 1000) ) clob8
    from
         <table_with_clob_field>
    2. Use the view created above instead of the table in the report
    3. Create a formula in the report to join all the individual values from the view
    stringVar msc1 := '';
    stringVar msc2 := '';
    stringVar msc3 := '';
    stringVar msc4 := '';
    stringVar msc5 := '';
    stringVar msc6 := '';
    stringVar msc7 := '';
    stringVar msc8 := '';
    stringVar msc := '';
    if not isnull({test_clob.clob1}) then msc1 := {test_clob.clob1};
    if not isnull({test_clob.clob2}) then msc2 := {test_clob.clob2};
    if not isnull({test_clob.clob3}) then msc3 := {test_clob.clob3};
    if not isnull({test_clob.clob4}) then msc4 := {test_clob.clob4};
    if not isnull({test_clob.clob5}) then msc5 := {test_clob.clob5};
    if not isnull({test_clob.clob6}) then msc6 := {test_clob.clob6};
    if not isnull({test_clob.clob7}) then msc7 := {test_clob.clob7};
    if not isnull({test_clob.clob8}) then msc8 := {test_clob.clob8};
    msc := msc1 +  msc2 + msc3 + msc4 + msc5 + msc6 + msc7 + msc8;
    thanks,
    Kamal

  • SQL Server Long Text column to Oracle CLOB via DB Link

    Does anyone know how to load a SQL Server Long Text column into an Oracle CLOB column using DB Link? When I try to Select from SQL Server table into Oracle table, I receive the error "ORA-00997: illegal use of LONG datatype".
    Thanks,
    Susan

    Hi,
      This is a known restriction involving long columns -
    (1) LONG datatype not supported with use of DBLINK when insert or update involves a select statement
    (2) LONG datatype cannot be used in a WHERE clause, in INSERT into ... SELECT ... FROM
    constructs, and in snapshots.
    The workround is to use a PL/SQL procedure or try the SQLPLUS COPY command.
    If you have access to My Oracle Support then review these notes -
    Cannot Move A Long From non Oracle database Ora-00997: Illegal Use Of Long Datatype (Doc ID 1246594.1)
    How To Workaround Error: Ora-00997: Illegal Use Of Long Datatype (Doc ID 361716.1)
    Regards,
    Mike

  • An issue with Oracle CLOB

    Hello,
    I am trying to read Oracle CLOB using JSP. I have the following objects
    Reader instream = null;
    char[] buffer = new char[100];
    Clob clob=null;I read CLOB like so
    clob= res.getClob(2);
    instream=clob.getCharacterStream();
    buffer[1]=instream.read(); //that's where I get "possible loss of precision"
                                                   // exception And this is where I am lost. I have no clue why I get the error or how to work around it.

    char[] buffer = new char[100];
    I hope your CLOB is 100 characters or less
    how to work around it.Read the documentation on java.io.Reader for a more efficient way of reading
    You'll have to cast the int to a char to do it your way

  • Everyones Oracle Linux Problem solved!!!

    Everyones Oracle Linux Problem solved!!!
    Here's something Linux people should relate to: Use what works!
    what works?
    NT works! NT works great with 8i AND OAS.
    No hassles at all!
    Up and running within one day!!!!
    Guaranteed!
    U don't see a NT forum here with people having ridiculous install problems like Linux people?
    Perhaps Oracle should moderate this newsgroup and even give an authorative answer or two?
    null

    I have switched our development and soon production databases to Linux because it runs like a charm. Fast and efficient, no problems. The installer has been a problem no doubt because Oracle put less of an emphasis on debugging their Linux installer than their idiot-proof NT installer.
    By the way, I was able to circumvent installer problems by just linking svrmgrl to svrmgrlO; this avoided the dreaded segmentation fault and kicked everything open just fine.
    BTW, about NT; what makes an OS is not how well everything works when everything is going well, but how bad it gets when something goes bad. For instance, the segmentation faults on Linux weren't a problem because I just picked up and continued; on NT you'd have to restart the whole system...not a pleasant feature.
    null

  • Oracle Designer Problem Please help me

    Sir,
    1) I created a database
    2) Run>cd d:\Oracle_home\repadm61\admin\@ckqa
    @ckparams.txt
    @ ckvalqa
    @ ckcreate
    3)Opened Repository Administration Utility
    Log in as 'repos_manager/repos_manager@orcltest'
    Installed Repository.
    4) Opened Oracle 9i Designer. I am able to connect
    as 'repos_manager/repos_manager@orcltest'
    But I am not able to logon as any other user in same database/ any other user in different database. Why?
    Please help me.
    regards
    Mathew

    duplicate thread, see this one -> Re: Oracle Designer Problem Please help me

  • Problem in creating Oracle CLOB thorough JAVA

    HI,
    I am facing problem in inserting CLOB data through Oracle.
    My code sends exception at below java code line:-
    oracle.sql.CLOB newClob = oracle.sql.CLOB.createTemporary(nativeConnection,false, oracle.sql.CLOB.DURATION_SESSION);
    Exception is:::::
    ===========
    11/08/10 19:12:33 InsertQuery is::::::>>>>INSERT INTO MCREDIT_XML (Inmxml,outmxml,app_id_c,REQUEST_ID,request_date) values (?,?)
    11/08/10 19:12:50 Error In Clob----->oracle.jdbc.internal.OracleConnection oracle.jdbc.OracleConnection.physicalConnectionWithin()
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: java.lang.AbstractMethodError: oracle.jdbc.internal.OracleConnection oracle.jdbc.OracleConnection.physicalConnectionWithin()
    at QdeMain_StatelessSessionBeanWrapper50.processRequest(QdeMain_StatelessSessionBeanWrapper50.java:158)
    at com.nucleus.los.bean.trackinginterface.ejb.DedupeExtBean.onMessageMCredit(DedupeExtBean.java:153)
    at com.nucleus.los.bean.trackinginterface.ejb.DedupeExtBean.onMessage(DedupeExtBean.java:82)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:745)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:916)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Nested exception is:
    java.rmi.RemoteException: oracle.jdbc.internal.OracleConnection oracle.jdbc.OracleConnection.physicalConnectionWithin(); nested exception is:
    java.lang.AbstractMethodError: oracle.jdbc.internal.OracleConnection oracle.jdbc.OracleConnection.physicalConnectionWithin()
    at com.evermind.server.ejb.EJBUtils.makeException(EJBUtils.java:941)
    at QdeMain_StatelessSessionBeanWrapper50.processRequest(QdeMain_StatelessSessionBeanWrapper50.java:158)
    at com.nucleus.los.bean.trackinginterface.ejb.DedupeExtBean.onMessageMCredit(DedupeExtBean.java:153)
    at com.nucleus.los.bean.trackinginterface.ejb.DedupeExtBean.onMessage(DedupeExtBean.java:82)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:745)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:916)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.AbstractMethodError: oracle.jdbc.internal.OracleConnection oracle.jdbc.OracleConnection.physicalConnectionWithin()
    at oracle.sql.CLOB.createTemporary(CLOB.java:684)
    at oracle.sql.CLOB.createTemporary(CLOB.java:651)
    at com.nucleus.los.dao.daofactory.OracleDAOFactory.executePreparedUpdateClob(OracleDAOFactory.java:2352)
    at com.nucleus.los.bean.application.qde.MCreditInterfaceBean.processRequest(MCreditInterfaceBean.java:171)
    at com.nucleus.los.bean.application.qde.ejb.QdeMainBean.processRequest(QdeMainBean.java:84)
    at QdeMain_StatelessSessionBeanWrapper50.processRequest(QdeMain_StatelessSessionBeanWrapper50.java:101)
    ... 7 more

    AbstractMethodErrorThat occurs when something wants to call a method which does not exist.
    For example if something expects JDBC 4 but the jdbc driver that is being used is for JDBC 2.

  • Convert String to CLOB problem, CLOB is a input parameter in the procedure.

    I can not flush and close "Writer"??
    The following code:
    CLOB inclob=null;
    CallableStatement csr=conn.prepareCall ("begin TestClob(?); end;");
    csr.registerOutParameter (1, Types.CLOB);
    inclob = CLOB.createTemporary(conn,false,CLOB.DURATION_CALL);
    inclob .open(CLOB.MODE_READWRITE);
    Writer tempClobWriter = inclob.getCharacterOutputStream();
    tempClobWriter.write("This is In CLOB");
    // Flush and close the stream
    tempClobWriter.flush(); // problem is here
    tempClobWriter.close();//problem is here
    inclob.close();// this works
    Btw:
    How to use CLOB.setString() to specify string to CLOB directly?
    Message was edited by:
    user515324

    sorry, I fogot mention the error is "No data to read from socket"
    My Oracle JDBC driver is 9.2.0.4, Oracle database is 10.2.1.0
    Some guy said it is driver's problem.

  • CLOB problem in 9.0.4

    hi all,
    I recently converted two LONG columns to a CLOBs. there is no default value on either of these columns.
    The forms properties for the CLOBs are data type: LONG, max length : 32000, data length semantics: NULL
    During testing, I found that any data entered in the form field, would not be saved to the DB, even though all indications were a good save/commit. the data seemed to disappear.
    a direct update statment via sql*plus updates the CLOB without any problems.
    Luckily, i received in oracle insert error. the HELP menu, display errors showed me why the data was disappearing. forms was sending an EMPTY_LOB no matter what is typed into the field. please see below. the save is working, however forms insert is not using the data from the form, it is submitting EMPTY_CLOB()!!
    i have searched everywhere to find the EMPTY_CLOB() statment. it does not exist in the form or attached libraries ( or on the database fo that matter).
    does anyone have any ideas for me, on finding it, or preventing it.
    INSERT INTO bg_bug(LOGGED_BY,BUG_SEQ_NUM,BUG_DESCRIP,STATUS_CODE,STATUS_CHANGE_DATE,PROJ_CODE,MODULE_NAME,SEVERITY_CODE,ASSIGNED_TO,LOGGED_DATE,tech_liaison,REQUESTOR,DUE_DATE,LOCK_BUG,LOCKED_BY,PRIVATE_BUG,PRIVATE_BY,MOO,moo_history,developer_comment) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,EMPTY_CLOB(),EMPTY_CLOB()) RETURNING ROWID,LOGGED_BY,BUG_SEQ_NUM,BUG_DESCRIP,STATUS_CODE,STATUS_CHANGE_DATE,PROJ_CODE,MODULE_NAME,SEVERITY_CODE,ASSIGNED_TO,LOGGED_DATE,tech_liaison,REQUESTOR,DUE_DATE,LOCK_BUG,LOCKED_BY,PRIVATE_BUG,PRIVATE_BY,MOO,moo_history,developer_comment INTO :21,:22,:23,:24,:25,:26,:27,:28,:29,:30,:31,:32,:33,:34,:35,:36,:37,:38,:39,:40,:41

    I have a problem when passing a CLOB value from FORMS to a backend procedure.
    I have coded a back-end proc to accept CLOB data and update a table. In the Forms, I have code in the POST-INSERT (since I have made CLOB column as non-database item) trigger to get the CLOB item of the block and invoke the backend procedure passing the clob as a parameter.
    On testing, I found that the data updated in the table by the proc is[b] JUNK.
    To narrow the problem, I have used dbms_lob.read in back-end proc to read the clob value in to another varchar variable and this varchar variable contains the correct data. So, the data passed from the front-end to back-end seems to be okay. But, instead of varchar, if I copy data into another CLOB variable using dbms_lob.copy in back-end proc, and display this variable, I find junk value. Similarly, the clob data getting into the clob field of the table is junk.
    So, there seems to be some charset(??) conversion problem between client CLOB and Server CLOB. Not sure how to resolve this.
    Could someone please advise?
    Code Snipplet
    POST-INSERT on forms
    ==================
    declare
    vCmttext CLOB;
    msgendtag VARCHAR2(100) CHARACTER SET vCmttext%CHARSET:= '</ichicsr>';
    begin
    dbms_lob.createtemporary (vCmttext,TRUE,10);
    dbms_lob.open (vCmttext,1);
    dbms_lob.write(vCmttext,length (msgendtag),1, msgendtag);
    AS_TEST_LOG_UPD(id,seq_nbr,vCmttext);
    end;
    BackEnd Proc
    ==========
    CREATE OR REPLACE PROCEDURE AS_TEST_LOG_UPD(vid varchar2, vSEQ_NBR number,
    vCommenttext TEST_LOG.CMNT%type)
    AS
    l_text_buffer varchar2(100);
    l_text_amount BINARY_INTEGER := 100;
    vComment1 clob CHARACTER SET vCommenttext%CHARSET;
    amt INTEGER := 3000;
    BEGIN
    dbms_lob.read(vCommenttext, l_text_amount, 1, l_text_buffer );
    DebugProcFunc('clob.txt',l_text_buffer); --- This Prints the correct data
    dbms_lob.createtemporary (vComment1,TRUE,10);
    dbms_lob.open (vComment1,1);
    dbms_lob.copy (vComment1,vCommenttext, amt, 1, 1); -- Copy the Client CLOB to server CLOB
    dbms_lob.read(vComment1, l_text_amount, 1, l_text_buffer ); --- This Prints the JUNK data
    DebugProcFunc('clob.txt',l_text_buffer);
    Update TEST_LOG Set
    CMNT = vComment1 -- Updating the Junk data
    Where ID = vid and SEQ_NBR = vSEQ_NBR;
    END;
    Thank you,
    Beena

Maybe you are looking for

  • Problem installing CS4 -- Error 1603

    Unable to install CS4. Error 1603: Fatal error during installation. Running Windows 7 Pro 64bit (up to date), 4GB ram, plenty of HDD space,etc. I've tried the following, but still get the same result: Error 1603; Installation failed, one or more comp

  • Horizontal Mouse-Sensitive Scroll

    Hi, I am trying to make a vertical mouse-sensitive scroll that I created a while back work going horizontally. You can see the one I created at http://www.elizabethandhomer.com and click on the "CUSTOM" link. I have been fiddling with the x and y coo

  • Decentralized Warehouse System - Movements

    Dear Gurus, Can we reverse the goods movement on DWMS? I have finished these steps : - PO on ERP - and inbound delivery on ERP - Create and confirm TO on Local system - PGR against inbound delivery (directly create GR on ERP against the PO let say Ma

  • DDL generation - sequence of views

    Hello, I'm using several cascading database views. After DDL generation the sequence of the views in the script is not correct for database creation, so the script has to be adjusted before running. Is there are way to define dependencies between vie

  • Cod 4 patch 1.7

    Hi, I wanted to know how to install the 1.7 patch ? Do I simply install the .dmg file ? Do I have to install a previous patch ? Sincerely