ORA-22990 saving an XmlDocument

I tried to save an XMLDocument into a CLOB using the code i found in the Steve Muench's book (chap. 6 XMLDocuments).
When I execute it I get the Error ORA-22990 LOB locators cannot span transactions.
The error is issued when i close the BufferedWriter.
One indication more :
. the print of the XMLDocument takes along time (60 secs or more) and the document is very small (200 chr)
null

try {
#sql { SELECT NVL(MAX(version),0)+1 INTO :newVersion FROM content WHERE cn_id_page = :p_id };
#sql { INSERT INTO Content( cn_id_page, version, owner, status, source_file, content,created,modified,created_by,modified_by)
VALUES ( :p_id, :newVersion, USER, 'Created', :p_name, EMPTY_CLOB(),SYSDATE,SYSDATE,USER,USER) };
try {
#sql { SELECT content INTO :tmpClob FROM content WHERE cn_id_page = :p_id AND version = :newVersion };
#sql { call DBMS_LOB.TRIM( :inout tmpClob, 0 )};
out = tmpClob.getCharacterOutputStream();
URL inUrl = new URL(loadPath+p_path+p_name+"."+p_ext);
in = inUrl.openStream();
//in = new FileInputStream(loadPath+p_path+p_name+p_ext);
parseAndStore(in,out,xsl);
in.close();
out.close();
#sql clobSize = { VALUE(DBMS_LOB.GETLENGTH( :tmpClob )) };
#sql { UPDATE content SET content = :tmpClob, status = 'Loaded', file_size = :clobSize, modified=SYSDATE, modified_by=USER
WHERE cn_id_page = :p_id AND version = :newVersion };
if (autoCommitVersion)
#sql { UPDATE pages SET current_version = :newVersion, status = 'Loaded', file_size = :clobSize WHERE id_page = :p_id };
else
#sql { UPDATE pages SET status = 'Loaded', file_size = :clobSize WHERE id_page = :p_id };
} catch (Exception e1) {
if (in != null)
in.close();
if (out != null)
out.close();
String msg = "Error at importing time: "+e1.getMessage();
System.out.println(msg);
#sql { UPDATE content SET status = :msg WHERE cn_id_page = :p_id AND version = :newVersion };
#sql { UPDATE pages SET status = :msg WHERE id_page = :p_id };
return false;
return true;
} catch (SQLException e) {
System.out.println(e.getMessage());
return false;
}Best regards, Marcelo.
null

Similar Messages

  • ORA-22990 ( Cannot span lob... ) while using connection pooling...

    Hi all, I am maintaining a web site that has lots of requests ( about 10 requests a second ) to an Oracle table that has a BLOB field. Those requests create new blobs, updates them and reads them... My program worked fine until I started using connection pooling ( Before that, I used a single connection that was initialized at startup ). Although I had to synchronized the methods that interact with blob field, everything worked great. So now, to optimize my site, I want to use connection pooling so that even if my methods are synchonized on the connection object, there will be more than one connection available so it will not affect performance.
    So once I introduced my connection pooling system with the oracle.jdbc.pool.OracleConnectionCacheImpl class, I started getting ORA-22990 ( Cannot span lob objects... ). I get the error on the flush() method when I try to write the blob to the database. Here is my function that writes a row in the databse.
      private synchronized void writeSession(CapSession pSession) throws Exception
            javax.sql.PooledConnection pc = pool.getPooledConnection();
            Connection conn = pc.getConnection();
            CallableStatement stmt=conn.prepareCall(writeObjSQL);
            stmt.setString(1,pSession.getSessionId()+pSession.getPassword());
            stmt.setLong(2,pSession.getLastAccess());
            stmt.setLong(3,pSession.getTimeout());
            stmt.registerOutParameter(4,java.sql.Types.BLOB);
            stmt.executeUpdate();
            oracle.sql.BLOB blob=(BLOB)stmt.getBlob(4);
            OutputStream os=blob.getBinaryOutputStream();
            ObjectOutputStream oop=new ObjectOutputStream(os);
            oop.writeObject(pSession);
            oop.flush();
            oop.close();
            os.close();
            stmt.close();
            conn.commit();
            conn.close();
            pc.close();
      } If anyone could help me, I would deeply appreciate it!
    Thank you for your time.

    kalle
    Thank you very much for your advice!!!
    Like you said, I started to check whether the connections are fine before giving them from the pool.I am executing a simple "select 'anil' from dual" and if its fine only then I return the connection. So far it seems to be fine. Also I am reopening the connections(closing the old ones and opening new connections) after every 12 hours.
    As far as the JDBC driver is concerned, I already tried with Oracle 8i driver, it gave the same problems. I read that 9i driver might solve this problem, so I changed to the latest 9i driver (classes12_g.zip).
    Sometimes before(before I started checking whether the connection is good )the application used to hang up at the point where I am issuing setAutoCommit(false).It never comes out from that statement.Is this something to do with theconnections being closed?
    What I am afraid is, will the appilation get hung up even after I check the connection with select query and then issue autocommit(false)??
    Or will it hang up while I check with a select query??
    As long as it doesn't hung up, I am fine. Because i am cathching the exceptions.
    Thanks In ADVANCE
    Anil

  • Error ORABPEL-04040 & ORA-22990

    Hi,
    We are getting this particular error when we are placing an Order
    extracting error from log file
    *09/12/14 14:14:51 0 - ORABPEL-04040*
    Cannot update lob column.
    The process domain was unable to update the lob column "3" in the datastore.
    The exception reported is: ORA-22990: LOB locators cannot span transactions
    Action: Verify that the machine hosting the data source is physically connected to the network. Otherwise, verify that the data source connection parameters (user/password) are currently valid.
    checked the database connection it is fine
    Anybody know what exactly is the problem
    regards,
    anvv sharma
    Edited by: anvv sharma on Dec 16, 2009 11:44 AM

    Hi anvv,
    This looks like a bug. See the following forumpost with a workaround.
    EXCEPTION: ORA-22990: LOB LOCATORS CANNOT SPAN TRANSACTIONS
    Regards,
    Melvin

  • EXCEPTION: ORA-22990: LOB LOCATORS CANNOT SPAN TRANSACTIONS

    We hit a brand new BPEL error during Volume Test:
    EXCEPTION: ORA-22990: LOB LOCATORS CANNOT SPAN TRANSACTIONS
    Anyone seen this ? The OC4J BPEL java process started to consume vast amounts of CPU but I'm not sure if this was the cause of effect. I'm sort of hoping it was the result of this error - if it isn't we have another root cause to try and figure out! We're using BPEL 10.1.2.0.2.
    Rob J

    sorry for the delay, i was not checking the otn forum for a while.
    Do you see any other errors before this LOB errors in the log file? This is important, you should see some errors (e.g. cmt error or some other error related to jta transaction)
    we had this lob locater issue in 10.1.2.0.0 and a mandatory oc4j patch is available for 10.1.2.0.0.
    But if you are using 10.1.2.0.2 the patch should be included but i suspect the patch is not taking effect because patch gets applied after the bpel ejb-bean class generation.
    the solution
    -remove the application-deployments/orabpel directory completely (just to be safe...please backup before delete)
    - restart the server with -DKeepWrapperCode=true system property in opmn.xml for OC4J_BPEL, this flag would generate stub .java files under j2ee/home or j2ee/home/application-deployments/orabpel/generated directory
    - please upload these regenerated java files to SR
    this will force to regenerate the bpel ejb stub classes which should fix this issue.

  • ORA 22990 - LOB locators cannot span transactions

    All our composites work fine in dev env which is multi-domain. However, upon deploying them to single-domain DTE env, all of them throw same error -
    ORA 22990 - LOB locators cannot span transactions
    In fact, one of the composites is just fyi notification to a certain set of assignees; nothing fancy there. I suspect, it has something to do with our env or deployment but can't figure out, what's wrong. Logs also don't reveal much. Any pointers are appreciated.

    Oops!
    Solution found: I must have set autocommit to false.
    Sorry for post.
    Thanks, Oleg.
    "Oleg Fainitsky" <[email protected]> wrote in message
    news:[email protected]..
    java.io.IOException: ORA-22990: LOB locators cannot span transactions
    ORA-06512: at "SYS.DBMS_LOB", line 708
    ORA-06512: at line 1
    This exception occures when trying to write CLOB:
    Clob c = rs.getClob(1);
    oracle.sql.CLOB oclob = (oracle.sql.CLOB) c;
    Writer writer = oclob.getCharacterOutputStream();
    writer.write(res);
    writer.flush(); // exception here!
    writer.close();
    conn.commit();
    It occures when I use DATASOURCE or TX_DATASOURCE.
    Are there any ideas about how to work it around?
    Thanks, Oleg.

  • Error (ORA-01403) saveing data form a report with apex_item items

    Hi all,
    I've a problem saveing data that's inserted into a report which I created using apex_item items. Reproducing the exact issue on apex.oracle.com will take me a lot of time, and I don't know if I really can reproduce this matter... So I hope I can explain my problem clearly enough, here...
    The global story of the application is that its an application used for measureing objects. For these objects there are templates, with default properties. When measureing an object, the user must fill in those properties for the object. The report is build dynamicly, becouse each object has different properties and each property could be of an other kind (number, text, list, counter [=number field with add and substract buttons], and date). Depending on the type of the property, the report has to show an other item to fill.
    The query for constructing this report is like this:
    select defprop.proptyp_id,
    apex_item.hidden(41,defprop.id) defprop_id,
    defprop.nam,
    decode(proptyp.id,
                    1, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'' ,p_attributes=>'class=case5_num'),
                    2, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||''),
                    3, apex_item.select_list_from_query(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'', p_query=> 'select wrd, id from property_typewrd where proptyp_id = ' || proptyp.id ||' order by vlgnum', p_show_null=> 'NO'),
                    4, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'',p_attributes=>'class=case5_num')
                    || '<a name="add_f02" href="#"><img alt="add" src="#WORKSPACE_IMAGES#plusBig.gif"/></a>    '
                    || '<a name="sub_f02" href="#"><img alt="sub" src="#WORKSPACE_IMAGES#minusBig.gif"/></a>',
                    5, apex_item.date_popup(p_idx=>42, p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||''),
                    oms
                ) waarde
    from default_property defprop,
    object_instance obj,
    property_type proptyp
    where defprop.stdobjver_id = obj.stdobjver_id
    and defprop.proptyp_id = proptyp.id
    and obj.id = :P2200_ID_INVThis report works fine. Depending on the type of the property it shows a numberic field, text field, selectlist (with right values), counter field or date field.
    If the default property is set to a 'CONSTANT' value, the last known value is filled in.
    With a javascript I check the numberic field value and achieve the counterfield to add or substract values when 'plus' or 'minus' is clicked.
    This javascript is placed in the field 'Execute when Page Loads' in the page properties in APEX. Here is the code:
    /*Execute when page loads*/
    /*Allow only numbers */
    number_elem = $('input[name=f42].case5_num');
    number_elem.keypress(function(event) {
      if (event.which && (event.which < 46 || event.which > 57 || event.which == 47) && event.keyCode != 8) {
          event.preventDefault();
      if (event.which == 46 && $(this).val().indexOf('.') != -1) {
          event.preventDefault();
    //for mouse events, remove any non numeric characters
    number_elem.bind('mouseup mousedown mouseleave', function(event) {
       this.value = this.value.replace(/[^0-9]/g, '');
    /* Subtract Button */
    $('a[name="sub_f42"]').click( function() {
      number_elem = $(this).siblings('input[name=f42].case5_num');
      currVal = number_elem.val();
    if ( isNaN( currVal) ){
       elemVal = 0;
    else {
       elemVal = Number(currVal);
    if (elemVal > 0)
         number_elem.val(elemVal-1);
    else
    { elemVal = 0; }
    /* Add Button */
    $('a[name="add_f02"]').click( function() {
      number_elem = $(this).siblings('input[name=f42].case5_num');
      currVal = number_elem.val();
    if ( isNaN( currVal) ){
       elemVal = 0;
    else {
       elemVal = Number(currVal);
    number_elem.val(elemVal+1);
    });Those two codes makes my report works fine. So far I'm happy. But now I want the data, which the user fills in the items, to be saved.
    So I created a process that should do this for me (it wil run after the user hits a button), here is the code:
    declare
         v_objmet_id number := 0;     
    begin
         select measurment_seq.nextval
         into v_objmet_id
         from dual;
         insert into measurment
         ( id
         , obj_id
         , dat
         values
         ( v_objmet_id
         , :P2200_ID_INV
         , :P2200_METDAT_INV
         /*Loop trough the values (g_f42 holds the value of the property)*/     
         for i in 1 .. apex_application.g_f42.count loop
              /*g_f41 holds the key to the default property*/
              if apex_application.g_f41(i) is not null and
                   apex_application.g_f41(i) > 0 then
                   insert into measurment_prop
                   ( measrument_id
                   , defprop_id
                   , wrd)
                   values
                   ( v_objmet_id
                   , apex_application.g_f41(i)
                   , apex_application.g_f42(i)
              end if;
         end loop;
    end;After running this process, the application branches back to the page, clearing the cache and set some items I use for filtering an other report with their own values.
    Both the process and the branche have a 'when button pressed' condition, where the same button is filled in. The branche fires on submit: after processing.
    When I hit the button to save the data, I get an error: ORA-01403: no data found
    In the debug info I can find there is encountered an unhandeled exception in the process, but I don't know what's going wrong...
    I thought it could be something with the date field, I want to save, so I put it in a to_date() with the right format, but I still got the error...
    I've also checked if the query which fetches the nextval of the sequence is correct, and it is, no typeing error in the sequence name, or something.
    I'm using APEX 4.0.2
    Edited by: Mir on 28-jun-2011 10:25
    Changed some code of the javascript, it directed to the wrong item ID, now its correct

    My problem is solved. The error occured when application item g_f41 was accessed, so my application couldn't find the data, the user putted in there. I now pasted this part of the sql, to the other apex_item field, so it became one field and now it works correctly:
    select [...]
    apex_item.hidden(41,defprop.id) ||
    decode(proptyp.id,
                    1, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
    [... etc ...]

  • SOA 10g: What is the purpose of the sync_trail and sync_store tables?

    Hello,
    We have a 10.1.3.3.1 MLR 19 environment and we're having a production problem where were seeing the following error msgs. When this has happened, it causes the affected server to fail and need to be recycled.
    ====================================================================================
    11/02/07 11:51:12 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_store( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    11/02/07 13:06:15 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_trail( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    ====================================================================================
    We have dozens of synchronous projects but only two of them are writing records to these tables. What makes a sync bpel project write to these tables and what is there purpose? I've seen them listed in various purge scripts so I have to assume they support audit trails or something similar.
    Thanks in Advance.

    I have an update. The two projects use the "inMemoryOptimization" property and that's the cause of the writing to the db. Why would this property trigger a write to the db when the purpose of the property is to do all processing in memory?

  • 10g: what is the purpose of sync_trail and sync_store?

    Hello,
    We have a 10.1.3.3.1 MLR 19 environment and we're having a production problem where were seeing the following error msgs. When this has happened, it causes the affected server to fail and need to be recycled.
    ====================================================================================
    11/02/07 11:51:12 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_store( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    11/02/07 13:06:15 0 - ORABPEL-04040
    Cannot update lob column.
    The process domain was unable to update the lob column "5" in the datastore. The exception reported is: ORA-22990: LOB locators cannot span transactions
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: BEGIN INSERT INTO sync_trail( cikey, domain_ref, bin_csize, bin_usize, bin ) VALUES ( ?, ?, ?, ?, '0' ) RETURNING bin INTO ?; END;
    ====================================================================================
    We have dozens of synchronous projects but only two of them are writing records to these tables. What makes a sync bpel project write to these tables and what is there purpose? I've seen them listed in various purge scripts so I have to assume they support audit trails or something similar.
    Thanks in Advance.

    I have an update. The two projects use the "inMemoryOptimization" property and that's the cause of the writing to the db. Why would this property trigger a write to the db when the purpose of the property is to do all processing in memory?

  • Different between Oracle 8.1.7.0.0 and Oracle 8.1.7.2 ?

    1) Hi all, i have some doubt about the oracle versioning technique. For example, i had installed oracle 8.1.7 release 3 in a SUN Solaris version 8 and the database character set is in UTF-8. Then i select sql : "Select * from product_component_version" and the result is "Oracle8i Enterprise Edition 8.1.7.0.0 ". What does that means ? Our DBA in another location had installed the oracle 8.1.7 release 2 in their db server with the same OS and same database character set which is UTF-8. But the result from the "Select * from product_component_version" is "Oracle8i Enterprise Edition 8.1.7.2 ".
    So as a conclusion, i had confused about the oracle versioning technique, can somebody please explain to me ?
    2) My second problem is actually related to problem stated above (1). In the Oracle 8.1.7 release 2 database,
    when i select a clob/blob value for update, i sometimes encountered the problem as follows but in our Oracle 8.1.7 release 3 the problem didn't exist at all after investigating that all the java code and other factor remain the same but not the oracle version.
    java.io.IOException: ORA-22990: LOB locators cannot span transactions
    ORA-06512: at "SYS.DBMS_LOB", line 700
    ORA-06512: at line 1
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java)
    at oracle.jdbc.driver.OracleBlobOutputStream.flushBuffer(OracleBlobOutputStream.java)
    at oracle.jdbc.driver.OracleBlobOutputStream.write(Compiled Code)
    This was an error log in our backend log and in the web browser it showed "Request Timeout" in both IE and Netscape. We are using J2EE, Oracle DBMS and IBM Websphere App Server for our e-commerce system.
    But retrying the request sometimes may work but most of the time failed.
    The above error didn't exist in our server using Oracle version 8.1.7 release 3 (8.1.7.0.0) and Oracle
    version 8.1.6.0.0. But ORacle version 8.1.7.2 release 2 is encountering this problem now.
    Somebody please help me on this problem, our developers and DBA had try to solved this problem one week ago but still don't know what is the cause.

    Oracle 9i client would fit you well. You need ORACLE_HOME set, ORACLE_HOME/bin in the path variable and of cource check that the user has access there. Are you using OCI to connect to Oracle? JDBC thin client is a better approach, in my opinion, as it is pure java.
    Oracle also provides something called "instant client", which provides connectivity only for applications.

  • ORA_22290 error while using LOB's

    "ErrMsg: ORA-22990: LOB locators cannot span transactions, Code: -22990"
    can somebody help what this error means, and how to resolve it.
    Regards,
    Mani

    ORA-22990: LOB locators cannot span transactions
    Cause: A LOB locator selected in one transaction cannot be used in a different transaction.
    Action: Re-select the LOB locator and retry the operation.
    For future, you can view
    http://tahiti.oracle.com/pls/db102/db102.error_search?

  • Unable to connect to DB from OBIEE 11G

    Hello experts
    I have successfully installed OBIEE 11G on my Linux machine.. On Windows machine I have installed the client tool. Both are version 11.1.1.7.0.
    I have my Tnsname.ora file saved in both Oracle_Home/network/Admin as well as OBIEE/Oracle_BI1/Network/Admin folder..
    Now my DB is on a different linux machine, so my TNSname file has the correct entry for that..
    I am able to connect to the DB from my OBIEE server machine through Putty by doing : sqlplus username/password@instance
    However, from OBIEE side, I am not able to update rowcounts nor viewing reports..
    From RPD side, I am getting errors: The connection has failed,
    From report:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65PState: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified at OCI call OCIServerAttach. [nQSError: 17014] Could not connect to Oracle database. (HY000)
    I have tried
    http://123obi.com/2011/03/error-the-connection-has-failed-in-obiee-11g/
    The problem persists.
    Let me know what should I do to resolve this issue..
    Thanks

    Hi,
    Lets try with these once
    First copy the TNSnames.ora and sqlnet.ora files from ur Database following location:C:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN
    and paste these two files in ur Obiee installetion following two locations:
    D:\MWHOME\Oracle_BI1\network\admin
    D:\MWHOME\oracle_common\network\admin
    Hope if it helps you..
    Please mark......

  • Installing LC 8.2 on WebLogic cluster

    Hi,<br /><br />We are trying to install LC 8.2 on a WebLogic cluster running on Solaris (SunOS 5.10) with a Oracle Database (10.2.0.3)<br /><br />The configuration manager stops during the task 'LiveCycle Component Deployment' with the following output:<br /><br /> Loading state from service container  <br />Deploying DSC   adobe-ejbprovider-dsc.jar<br />   DSC already running adobe-ejbprovider-dsc.jar<br />Deploying DSC   adobe-soapConnector-dsc.jar<br />       DSC already running adobe-soapConnector-dsc.jar<br />Deploying DSC   adobe-remotingConnector-dsc.jar<br />       DSC already running adobe-remotingConnector-dsc.jar<br />Deploying DSC   adobe-usermanager-dsc.jar<br />       DSC already running adobe-usermanager-dsc.jar<br />Deploying DSC   adobe-usermanager-util-dsc.jar<br />       DSC already running adobe-usermanager-util-dsc.jar<br />Deploying DSC   adobe-jobmanager-dsc.jar<br />       DSC already running adobe-jobmanager-dsc.jar<br />Deploying DSC   adobe-scheduler-weblogic-dsc.jar<br />       DSC already running adobe-scheduler-weblogic-dsc.jar<br />Deploying DSC   adobe-cacheservice-dsc.jar<br />       DSC already running adobe-cacheservice-dsc.jar<br />Deploying DSC   adobe-event-dsc.jar<br />       DSC already running adobe-event-dsc.jar<br />Deploying DSC   adobe-emailprovider-dsc.jar<br />       DSC already running adobe-emailprovider-dsc.jar<br />Deploying DSC   adobe-fileprovider-dsc.jar<br />       DSC already running adobe-fileprovider-dsc.jar<br />Deploying DSC   adobe-truststore-dsc.jar<br />       DSC already running adobe-truststore-dsc.jar<br />Deploying DSC   adobe-workflow-dsc.jar<br />       DSC already running adobe-workflow-dsc.jar<br />Deploying DSC   adobe-repository-dsc.jar<br />       DSC already running adobe-repository-dsc.jar<br />Deploying DSC   adobe-repository-provider-dsc.jar<br />       DSC already running adobe-repository-provider-dsc.jar<br />Deploying DSC   adobe-applicationmanager-dsc.jar<br />       DSC already running adobe-applicationmanager-dsc.jar<br />Deploying DSC   adobe-businesscalendar-dsc.jar<br />       DSC already running adobe-businesscalendar-dsc.jar<br />Deploying DSC   adobe-email-dsc.jar<br />       DSC already running adobe-email-dsc.jar<br />Deploying DSC   adobe-fileutils-dsc.jar<br />       DSC already running adobe-fileutils-dsc.jar<br />Deploying DSC   adobe-ftp-dsc.jar<br />       DSC already running adobe-ftp-dsc.jar<br />Deploying DSC   adobe-jdbc-dsc.jar<br />       DSC already running adobe-jdbc-dsc.jar<br />Deploying DSC   adobe-jms-dsc.jar<br />       DSC already running adobe-jms-dsc.jar<br />Deploying DSC   adobe-ldap-dsc.jar<br />       DSC already running adobe-ldap-dsc.jar<br />Deploying DSC   adobe-variablelogger-dsc.jar<br />       DSC already running adobe-variablelogger-dsc.jar<br />Deploying DSC   adobe-webservice-dsc.jar<br /><br />STDOUT fra configurationManager'en siger f.eks. flg:<br /><br />[2008-12-29 16:24:25,132], SEVERE, Thread-29,<br />com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy<br />component<br />/export/home/domadob/projects/livecycle8.2/deploy/adobe-webservice-dsc.jar.<br />com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to<br />deploy component<br />/export/home/domadob/projects/livecycle8.2/deploy/adobe-webservice-dsc.jar.<br />        at<br />com.adobe.livecycle.lcm.feature.deployment.DeployDSCs.deployDSCFiles(DeployDSCs.java:39 6)<br />        at<br />com.adobe.livecycle.lcm.feature.deployment.DeployDSCs.deployDSCs(DeployDSCs.java:149)<b r />        at<br />com.adobe.livecycle.lcm.feature.deployment.DeployDSCsTask$ActualTask.<init>(DeployDSCsT ask.java:84)<br />        at<br />com.adobe.livecycle.lcm.feature.deployment.DeployDSCsTask$1.construct(DeployDSCsTask.ja va:56)<br />        at<br />com.adobe.livecycle.lcm.core.tasks.SwingWorker$2.run(SwingWorker.java:114)<br />        at java.lang.Thread.run(Thread.java:595)<br />Caused by: java.io.IOException: ORA-22990: LOB locators cannot span<br />transactions<br /><br />        at<br />com.adobe.pof.adapter.oracle.Oracle9iAdapter.updateObject(Oracle9iAdapter.java:655)<br />        at<br />com.adobe.pof.adapter.JDBCAdapter.updateObject(JDBCAdapter.java:479)<br />        at<br />com.adobe.pof.omapi.POFObjectManagerImpl.writeObject(POFObjectManagerImpl.java:254)

    Hello,
    Could you get any answers for this apart from the forum? I face the same situation on a non-clustered WebSphere server. We have a case open but no solution yet...
    The error message is as follows:
    [2008-12-31 17:55:48,689], SEVERE , Thread-5, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component ../working/deployLC/deploy/adobe-scheduler-websphere-dsc.jar.
    Regards

  • Trouble creating Oracle Text index

    Hey all,
    I am having trouble creating an Oracle Text index. I am receiving the following error when I try to sync the index after inserting numerous rows (@170,000). I have also tried to insert the rows and then create the index afterword. See below.
    ORACLE_TEXT>insert into varchar_test_ot select doc from varchar_test;
    171327 rows created.
    Elapsed: 00:06:40.08
    ORACLE_TEXT>exec ctx_ddl.sync_index('VT_TEST_IDX_OT');
    BEGIN ctx_ddl.sync_index('VT_TEST_IDX_OT'); END;
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drekmap (lob write)
    ORA-22990: LOB locators cannot span transactions
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.CTX_DDL", line 1328
    ORA-06512: at line 1
    Elapsed: 00:02:09.07

    CREATE TABLE varchar_test
    (doc VARCHAR2(4000)
    CREATE TABLE varchar_test_ot
    (doc VARCHAR2(4000)
    begin
    ctx_ddl.create_preference('storage_pref','BASIC_STORAGE');
    ctx_ddl.set_attribute('storage_pref', 'I_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'K_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'R_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'N_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'I_INDEX_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.set_attribute('storage_pref', 'P_TABLE_CLAUSE',
    'tablespace ot_test_idx_space storage (initial 1M next 1M)');
    ctx_ddl.create_section_group('auto','AUTO_SECTION_GROUP');
    ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
    ctx_ddl.set_attribute('mywordlist','SUBSTRING_INDEX', 'YES');
    end;
    CREATE INDEX vt_test_idx_ot
    ON varchar_test_ot(doc)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS ('datastore ctxsys.default_datastore
    filter ctxsys.null_filter
    wordlist mywordlist
    storage storage_pref
    section group auto
    memory 50M');

  • HELP! Unable to run root.sh

    I have just started to install the Oracle 8.0.5 for Linux and
    have run into a little problem (I am using RedHat 5.1). I setup
    the proper oracle user and group and set up the proper env
    variables in the .profile of the oralce user I setup like so:
    LD_LIBRARY_PATH="$ORACLE_HOME/lib"
    ORACLE_BASE="/u01/app/oracle"
    TMP_DIR="/tmp"
    ORACLE_TERM="vt100"
    PATH="$PATH:/$ORACLE_HOME/bin"
    ORACLE_SID="doug"
    export LD_LIBRARY_PATH ORACLE_BASE TMP_DIR ORACLE_TERM ORACLE_SID
    PATH
    I then went in as the Oracle user and in /cdrom/orainst I looked
    for the file orainst like the instructions say but instead find:
    00_TRANS.TBL crora.sh* install* root.sh
    I am not sure where the orainst file is but I run install
    instead, it asks me a few questions (mentions that it will
    require only 300MB of disk space - this seems small) - what is
    the ORACLE_HOME and ORACLE_SID and then says "extracting from the
    CD". Then it says:
    Do you want to create a database now? [n]
    y
    Saving listener.ora -> listener.ora.sav
    Saving tnsnames.ora -> tnsnames.ora.sav
    Creating listener.ora ...
    Creating tnsnames.ora ...
    Creating database ...
    Environment settings are in file in /opt/oracle/.env
    To set environment :
    $ cd $ORACLE_HOME; . ./.env
    Installation complete.
    Login as root and run root.sh
    This is where all the problems start. I log into another term as
    root, set the env settings like it says (for both the oracle dba
    user and root just to be safe) with the .env script and then I
    try to run root.sh as root and receive the message:
    [root@localhost orainst]# ./root.sh
    Please set ORACLE_HOME, ORACLE_SID environment variables before
    invoking this and run this as root
    /bin/chmod: oracle: No such file or directory
    /bin/chmod: oracle: No such file or directory
    [root@localhost orainst]#
    The problem that I have here is that the ORACLE_HOME and
    ORACLE_SID are set. When I echo these variables they are set:
    [root@localhost orainst]# echo $ORACLE_HOME
    /opt/oracle
    [root@localhost orainst]# echo $ORACLE_SID
    doug
    What seems to be the problem here? The one other thing here is
    that I have verified that the oratab file has been created. I was
    not able to find the oratab.sh script but I found a oratab in
    /etc. I read in the documentation that this should be in
    /var/opt/oracle. I have copied the /etc/oratab to this location
    just to make sure. Can anyone tell me what it is that I need to
    do to run root.sh and exactly what the next step is in this crasy
    install process.
    Thank you for your time.
    null

    Try to run JDK demo's jar file in win98-cn ,does it ok?
    Can you use "java ..." command to complie any java file ?
    Please check you jdk setting in win98.

  • Generating an XML file in local machine

    Hi,
    I have a requirement in Oracle apps forms:
    When i click a button in Oracle forms from front end, the xml file needs to be generated and saved in my local desktop in some path.
    e.g C:/siva/temp.xml
    I mean when we click a button in R12 applications, the file needs to be saved in my local desktop.
    Please anyone suggest a way forward.

    Hi,
    Using the Forms2XML Conversion Tool in a Java Program
    You can pass the Forms2XML tool a JdapiModule Java object (class oracle.forms.jdapi.JdapiModule) and dump its objects and properties to an XMLDocument (class oracle.xml.parser.v2.XMLDocument). For example:
    // get the modules in the session
    JdapiIterator mods = Jdapi.getModules();
    // ... and iterate round them
    while(mods.hasNext())
    JdapiModule mod = (JdapiModule)mods.next();
    Forms2XML converter = new Forms2XML(
    XMLDocument doc = converter.dumpModule(false);
    Note that the Boolean argument taken by the dumpModule() method instructs converter to dump all properties to the XMLDocument doc, not just those which are overridden.
    Once you have the module as a XMLDocument object, you could then use the XDK classes to manipulate it. For example, you could traverse it, remove or add objects, change properties, copy objects into other modules that are also saved as XMLDocument objects, and more—all programmatically.
    Check link for more info: http://docs.oracle.com/cd/E14373_01/migrate.32/e13368/appmgr_forms.htm#CHDEBFAD
    Hope it Helps!!!!
    Regards,
    Yuvaraj

Maybe you are looking for

  • Dynamic configuration in server ( FTP receiver channel)

    Receiver File Adapter - Dynamic FTP Server Address   Posted: Mar 16, 2006 3:25 PM       Reply      E-mail this post  Hi I would like to pass the FTP Server address to the Receiver File Adapter as a parameter but variable substitution seems not to wor

  • Interpreting a field in an equation

    I need to use a value from a field as an operator in an equation. Example: the field holds values like '<' or '>' in the select statement I want to compare two values using this operator something like table.value1 > table.value2 How do I replace the

  • Downloading in China

    Hey all, I have a client who wants to be able distribute in China. I'm aware of many of the challenges to getting approved in China, but right now the client is having trouble downloading samples from the Adobe Content Viewer. The user seems to just

  • Aggregate function and join

    I have three Tables(Emptimesheet,comexpensetable,perexpensestable).I want to show otput something like below, EmpID,EmpName,StartDate,EndDate,Total,Chotel,CAirfare,Cfuel,WeeklCompanyExpenses,Percompanyexpenses rightnow in the below query I don't have

  • How to HIde rows based on User Selection

    I have a requirement where in I have to hide some rows based on Plant Name selected by USer at the time of opening the report. Here is the screen  shot:- Here I am seeing two Tag Types MACT and Average when User selects  Luling Plant. But When User s