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.

Similar Messages

  • 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.

  • LOB locators cannot span transactions

    Hi,
    I'm trying to call an Oracle stored procedure with one of the parameters being a Clob.
    First I select a clob from a temporary table, manipulate it and then call the stored procedure.
    I always get the error "java.sql.SQLException: ORA-22990: LOB locators cannot span transactions"
    Until then neither the Oracle Connection nor the Statement are closed.
    Here's the part of code:
    // get the CLOB
    String sql = "SELECT XMLDOC,DOCNAME FROM XML_DOCUMENTS WHERE DOCNAME = 'Auftrag_2001-00018.xml' FOR UPDATE";
    stmt = oracleConnection.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while (rs.next()) {
    ClobOut = (CLOB)rs.getObject("XMLDOC");
    // Call the stored procedure
    OracleCallableStatement cs = (OracleCallableStatement) oracleConnection.prepareCall("begin ? :=setAuftrag(?,?); end;");
    cs.registerOutParameter(1, Types.INTEGER);
    cs.setString(2,"tmp_schaetzauftrag");
    cs.setClob(3, ClobOut);
    cs.execute();

    I'm afraid yout solution won't work for me
    I need to send the contents of an xml file to this stored procedure. The procedure contains a mechanism to store the data from the xml file into different tables.
    Since I cannot create a new CLOB in Java I take an existing one, change it and send it to the stored procedure.
    If I had only one procedure with a Clob as Parameter I would store it in a temporary table and access it from the procedure itself, but I already have several existing procedures that need an Clob so I was looking for a way to do it without having to change them.

  • 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

  • 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

  • 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

  • PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables

    Dear ALL,
    My O/S is Redhatlinux 5.2 and i had Migrated my Oracle databse to 11g2. But after that while i am retrieving records through dblinks from one of my other Oracle 9.2.0.8 databse it's throwing the error : PL/SQL: ORA-22992: cannot use LOB locators selected from remote tables.* This error i am getting in TOAD as well as SQL Developer.
    Can anybody tell me how to fix this error ? Because am not able to get the records.
    Also am getting another error during retrieving data from some of my tables after migrating i.e the table which having CLOB data type while am accessing to retrieve the records using select query it's throwing the error :
    +(The following error has occurred:+
    A query with LOB's requires OCI8 mode, but OCI7 mode is used.)
    If anyone having any idea kindly share.
    Thanks and Regards
    Biswa

    Hi,
    Ya what u sent that is fine. But already am using one procudure which is accessing LOB data from another databse through DBlink and working fine. But there Both the databse are 9.2.0.8.
    But while am executing the same procedure in oracle 11g where the Dblink accessing the data from Oracle 9i , there am getting this error.
    Kindly tell if u know any resolution.
    Thanks

  • SQL error 376: 'ORA-00376: file 12 cannot be read at this time

    While installing Appl Patch set SAPKH70010- SAPKH70013 I received followingerror ,
    SQL_fehler in der Datenbank beim Zugriff auf eine
    Following is output of the dev_w0 logfile.
    C SELECT TLINE, SEQNO FROM SNAPT WHERE LANGU = :A0 AND ERRID = :A1 AND TTYPE = :A2 ORDER BY SEQNO;
    B ***LOG BY2=> sql error 376 performing FET dbds#1 @ 592 dbds 0592
    B ***LOG BY0=> ORA-00376: file 12 cannot be read at this time
    ORA-01110: data file 12: '/oracle/RTQ/sapdata2/sr3_9/sr3.data9' dbds#1 @ 592 dbds 0592
    C OCI-call failed with -1=OCI_ERROR
    C SQL error 376: 'ORA-00376: file 12 cannot be read at this time
    C ORA-01110: data file 12: '/oracle/RTQ/sapdata2/sr3_9/sr3.data9''
    C *** ERROR => Error 376 in stmt_fetch() from oci_execute_stmt(), orpc=0
    http://dbsloci.c 12861
    C *** ERROR => ORA-376 occurred when executing SQL stmt (parse error offset=0)
    http://dbsloci.c 12880
    C sc_p=0x106d644c8,no=227,idc_p=(nil),con=0,act=1,slen=95,smax=256,#vars=3,stmt=0x108563c80,table=SNAPT
    C SELECT TLINE, SEQNO FROM SNAPT WHERE LANGU = :A0 AND ERRID = :A1 AND TTYPE = :A2 ORDER BY SEQNO;
    C sc_p=0x106d644c8,no=227,idc_p=(nil),con=0,act=1,slen=95,smax=256,#vars=3,stmt=0x108563c80,table=SNAPT
    C prep=0,lit=0,nsql=1,lobret=0,#exec=1,dbcnt=0,upsh_p=(nil),ocistmth_p=0x1085649b0
    C IN : cols=3,rmax=1,xcnt=0,rpc=0,rowi=0,rtot=0,upto=4294967295,rsize=42,vmax=32,bound=1,iobuf_p=0x1070cf7d0,vda_p=0x1074f664
    0
    C lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
    C OUT: cols=2,rmax=208,xcnt=208,rpc=0,rowi=0,rtot=0,upto=4294967295,rsize=152,vmax=32,bound=1,iobuf_p=0x1070e9f50,vda_p=0x108
    565000
    According this i checked file
    ORA-01110: data file 12: '/oracle/RTQ/sapdata2/sr3_9/sr3.data9''
    This file is in RECOVER mode.
    my SAP application ECC6.9 is running.
    Oracle is also running.
    I do not have any oracle backup
    For any transaction the system is giving following error,
    "SQL_fehler in der Datenbank beim Zugriff auf eine"
    Please advice.

    Hi PushpaMitra,
    Check below note.
    Note 328785 - ORA-00376: File cannot be read at this time
    Regards
    Ashok

  • ORA-00376: file 24 cannot be read at this time

    Hi,
    DB 10.2.0.4
    AIX 5.3
    PROD
    When i am trying to start database i got below error.kindly suggest me.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 5368709120 bytes
    Fixed Size 2091632 bytes
    Variable Size 2399143312 bytes
    Database Buffers 2952790016 bytes
    Redo Buffers 14684160 bytes
    Database mounted.
    ORA-00376: file 24 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/undo_.dbf'
    Thanks
    Edited by: user13382934 on Apr 21, 2011 2:05 PM

    In trace file find below
    ORA-00376: file 27 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data/undo.dbf'
    Parallel Transaction recovery caught exception 376
    Parallel Transaction recovery caught error 376
    *** 2011-04-21 19:09:26.615
    SMON: following errors trapped and ignored:
    ORA-00376: file 27 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data/undo.dbf'
    Parallel Transaction recovery caught exception 376
    Parallel Transaction recovery caught error 376
    *** 2011-04-21 19:09:27.633
    SMON: following errors trapped and ignored:
    ORA-00376: file 27 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data/undo.dbf'
    Parallel Transaction recovery caught exception 376
    Parallel Transaction recovery caught error 376
    *** 2011-04-21 19:09:28.651
    SMON: following errors trapped and ignored:
    ORA-00376: file 24 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data//undo.dbf'
    In alert log file
    *** 2011-04-21 20:18:16.178
    SMON: following errors trapped and ignored:
    ORA-00376: file 24 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data/undo.dbf'
    MMNL absent for 4286 secs; Foregrounds taking over
    MMNL absent for 4286 secs; Foregrounds taking over
    MMNL absent for 4286 secs; Foregrounds taking over
    MMNL absent for 4286 secs; Foregrounds taking over
    Thu Apr 21 20:20:26 2011
    Errors in file /vol01/oracle/admin/bdump/dev_smon_516148.trc:
    ORA-00376: file 27 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data/undo.dbf'
    Thu Apr 21 20:20:36 2011
    Errors in file /vol01/oracle/admin/bdump/dev_smon_516148.trc:
    ORA-00376: file 27 cannot be read at this time
    ORA-01110: data file 27: '/vol01/oracle/data/undo.dbf'
    Kindly update me,
    http://www.oracle.cc/2008/06/case-study-recover-database-after-crash-of-storage-array-linux-error-5-ora-01243-ora-00376.html
    This link is giving solution for the same,confirm me
    Thanks
    Edited by: user13382934 on Apr 21, 2011 2:15 PM
    Edited by: user13382934 on Apr 21, 2011 2:19 PM

  • [help me] Oracle 10G + ASM "ORA-00376: file 5 cannot be read at this time"

    We have used Oracle 10G R2 RAC + ASM on Redhat 4 (EMC cx700 Storage)
    I found below errors on alert log and can't inserted, updated and deleted datas in database.
    Sun May 27 01:12:34 2007
    SUCCESS: diskgroup ARCH was mounted
    SUCCESS: diskgroup ARCH was dismounted
    SUCCESS: diskgroup ARCH was mounted
    SUCCESS: diskgroup ARCH was dismounted
    SUCCESS: diskgroup ARCH was mounted
    SUCCESS: diskgroup ARCH was dismounted
    Sun May 27 01:19:11 2007
    Errors in file /oracle/product/admin/DB/udump/db3_ora_15854.trc:
    ORA-00376: file 5 cannot read at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    ORA-00372: file 5 cannot be modified at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    So:
    I checked and recovered data file
    SQL> select name,status,file# from v$datafile where status ='RECOVER';
    NAME
    STATUS FILE#
    +DATA/db/datafile/undotbs3.257.617849281
    RECOVER 5
    RMAN> run {
    allocate channel t1 type 'SBT_TAPE';
    allocate channel t2 type DISK;
    recover datafile 5;
    recover completed.
    SQL> alter database datafile 5 online;
    Butttttttttttttttttt:
    What is going on?
    I checked EMC storage, not found any disk error.
    I checked alert log of ASM, no found anything.
    I don't know What the problem ?
    Because I had the same problem 2 days ago.
    This day error on undo datafile node 3.
    2 days aGo; error on undo node 4.
    Please please anybody
    What bug or anything wrong ?
    Please introduce me
    trace file:
    /oracle/product/admin/DB/udump/db3_ora_15854.trc
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    ORACLE_HOME = /oracle/product/10.2.0/db
    System name: Linux
    Node name: db03.domain
    Release: 2.6.9-42.ELsmp
    Version: #1 SMP Wed Jul 12 23:32:02 EDT 2006
    Machine: x86_64
    Instance name: DB3
    Redo thread mounted by this instance: 3
    Oracle process number: 65
    Unix process pid: 15854, image: [email protected]
    *** SERVICE NAME:(DB) 2007-05-27 01:19:11.574
    *** SESSION ID:(591.62658) 2007-05-27 01:19:11.574
    *** 2007-05-27 01:19:11.574
    ksedmp: internal or fatal error
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    ORA-00372: file 5 cannot be modified at this time
    ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
    Current SQL statement for this session:
    INSERT INTO DATA_ALL VALUES (:B1 ,:B2 ,:B3 ,:B4 ,:B5 ,:B6 ,:B7 ,:B8 ,:B9 ,:B10 ,:B11 ,:B12 ,:B13 ,:B14 ,:B15 ,:B16 ,:B17 ,:B18 ,:B19 ,:B20 ,:B21 ,:B22 ,:B23 ,:B24 ,:B25 ,:B26 ,:B27 ,:B28 ,:B29 ,:B30 ,:B31 ,:B32 ,:B33 ,:B34 ,:B35 ,:B36 ,:B37 ,:B38 ,:B39 ,:B40 ,:B41 ,:B42 ,:B43 ,:B44 ,:B45 ,:B46 ,:B47 ,:B48 ,:B49 ,:B50 )
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    0x21dc2b4b8 780 package body MGR.AC
    0x21e4815b0 3 anonymous block
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedst()+31 call ksedst1() 000000000 ? 000000001 ?
    7FBFFF7290 ? 7FBFFF72F0 ?
    7FBFFF7230 ? 000000000 ?
    ksedmp()+610 call ksedst() 000000000 ? 000000001 ?
    7FBFFF7290 ? 7FBFFF72F0 ?
    7FBFFF7230 ? 000000000 ?
    ksupop()+3581 call ksedmp() 000000003 ? 000000001 ?
    7FBFFF7290 ? 7FBFFF72F0 ?
    7FBFFF7230 ? 000000000 ?
    opiodr()+3899 call ksupop() 000000002 ? 000000001 ?
    7FBFFF7290 ? 7FBFFF72F0 ?
    7FBFFF7230 ? 000000000 ?
    rpidrus()+198 call opiodr() 000000066 ? 000000006 ?
    .......etc.............................
    Message was edited by:
    HunterX (Surachart Opun)

    To me it looks like your undotbs on node3 is filled and not marking old undo as expired. Use this query to find out if it is labeling old undo as expired.
    SELECT tablespace_name, status, COUNT(*) AS HOW_MANY
    FROM dba_undo_extents
    GROUP BY tablespace_name, status;
    Another thing I noticed from your alertlog is it is only doing that on undotbs3, which I assumes is on node3.
    1) try recreate undotbs on node3
    2) take node3 out of service (stop nodeapps, ASM, instance and finally CRS on node3) and see if you can do DML on your database.
    -Moid

  • ORA-20100 The system cannot find the file specified 0RA-06512

    I can create and deploy a .NET stored procedure but when I run it either from Visual Studio 2005 Oracle Explorer or TOAD or SQLPlus I get the following:
    ORA-20100: The system cannot find the file specified.
    ORA-06512: at "SYS.DBMS_CLR", line 211
    ORA-06512: at "PROD.GETSEGADDRNO", line 7
    ORA-06512: at line 1
    It is basically the same C# code as the OTN sample except for accessing a table in my database.
    I found a forum thread dated 2006 with basically the same error message and it said the problem was fixed in Oracle Database patched to 10.2.0.2 but I can't find such a patch for 10g R2 Enterprise.
    This is my first time setting up Server 2003, Oracle 10g and ODT for .NET
    (I successfully created and deployed an external procedures for Oracle 8.1.7 on Windows 2000 a couple of years ago)
    This is the code:
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Data;
    // use the ODP.NET provider
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace CLRLibrary1
    // Sample .NET stored function returning address number (ADDR_NO) for
    // a given segment number (SEG_NO)
    public class Class1
    public static int GetSegAddrNo(int segno)
    int addrno = 0;
    // Check for context connection
    OracleConnection conn = new OracleConnection();
    if (OracleConnection.IsAvailable == true)
    conn.ConnectionString = "context connection=true";
    else
    throw new InvalidOperationException("context connection" +
    "not available");
    conn.Open();
    // Create and execute a command
    OracleCommand cmd = conn.CreateCommand();
    cmd.CommandText = "SELECT ADDR_NO FROM SEG WHERE SEG_NO = :1";
    cmd.Parameters.Add(":1", OracleDbType.Int32, segno,
    System.Data.ParameterDirection.Input);
    OracleDataReader rdr = cmd.ExecuteReader();
    if (rdr.Read())
    addrno = rdr.GetInt32(0);
    rdr.Close();
    cmd.Dispose();
    conn.Close();
    return addrno;
    } // GetSegAddrNo
    } // Class1
    } // CLRLibrary1
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    was installed from the Oracle downloads site: 10201_database_win32.zip
    On Windows Server 2003 R2 Standard Edition SP2
    Oracle .NET tools was installed using: ODTwithODAC1020221.exe
    The CLR Service is running
    Deployment says that it is successfull.
    The DLL is in the expected Oraclehome\BIN\CLR folder
    The deployment script is:
    CREATE OR REPLACE LIBRARY "SYS"."ORATEST6_DLL" AS '$ORACLE_HOME\bin\clr\OraTest6.dll';
    GRANT EXECUTE ON "SYS"."ORATEST6_DLL" TO PROD;
    GRANT EXECUTE ON "SYS"."DBMS_CLR" TO PROD;
    GRANT EXECUTE ON "SYS"."DBMS_CLRTYPE" TO PROD;
    GRANT EXECUTE ON "SYS"."DBMS_CLRPARAMTABLE" TO PROD;
    CREATE OR REPLACE FUNCTION PROD.GETSEGADDRNO wrapped
    a000000
    1f
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    abcd
    8
    147 138
    ePHIr6kvu6nZ9gYrxgs40akg18owg1zQf/ZqZ3QC2vjqaIs25soMp1nBmBfBj1ZboVvNkdPT
    8qhpuEVdmv4n2nlF5ynrhLsm3F0h9ZGrTQ4tGYIybWjMFxYNlDDeBOx1i7O0GviP8AxHys23
    kW8aTVA2xV8IuLNlwP7KWFw70tGbg+lUIlRhYo5WmLW6N9wcjOCeLZK6W6s6tvd4zKAQykzc
    sIsaneE0FWyV9Q1BD0yJpLoCfWH+f6fVXsne5Feyxu68k5geCJ8F5FCLm2ycvxIiKNKTIpiD
    q4wshbsYLTTPHX3F6pA=
    The parameter mapping is:
    return value int32 number
    segno int32 number
    Bob Sorrell
    [email protected]
    863-662-5524

    These are the Reference Properties for Oracle.DataAccess in the OraTest6 app:
    Aliases: Global
    Copy Local: False
    Description: Oracle.DataAccess.dll
    File Type: Assembly
    Identity: Oracle.DataAccess
    Path: c:\oracle\ora102\odp.net\bin\2.x\Oracle.DataAcess.dll
    Resolved: True
    Runtime Version: v2.0.50727
    Specific Version: False
    Strong Name: True
    Version: 2.102.2.20
    This is what GacUtil shows:
    The Global Assembly Cache contains the following assemblies:
    Oracle.DataAccess, Version=2.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=x86
    Oracle.DataAccess, Version=1.102.2.20, Culture=neutral, PublicKeyToken=89b483f429c47342
    Number of items = 2
    The GAC seems to contain both 2.102.2.20 and 1.102.2.20
    Do I need to remove one?

  • Cannot select Transactions in Print Invoices

    Hi,
    I wonder if anyone can help me with a problem we are facing when trying to Print Selected Invoices in AR.
    We have transactions created with print statuses set to PRINT. However, when we navigate to Print Documents > Invoices > and select Single Request for Invoice Print Selected Invoices....we cannot select Transaction Number Low or High....the message we get is "No entries found for List Of Values"
    On metalink, it mentions that setting the print option to PRINT will make the transactions available for selection but this is not the case in our situation, as all our transactions are set to Print.
    For info, the version of Oracle is 12.0.6
    Regards,
    Anil

    Did you realize you posted your question in probably wrong forum? This forum is for Oracle Application Server. You might want to post this question in one of EBS forum here:
    http://forums.oracle.com/forums/category.jspa?categoryID=3

  • Please helpme "Cannot change transaction isolation level in the middle of "

    sorry my english helpme!!
    i am trying to insert a registry n a table in postgresql throght JAVA STUDIO CREATOR and i got the next error
    Cannot change transaction isolation level in the middle of a transaction
    helpme thanks you

    Duplicate post. Answered in the other thread.
    http://forum.java.sun.com/thread.jspa?threadID=5115855

  • Cannot change transaction isolation level in the middle of a transaction

    por favor pido ayuda a quien sepa de la solucion de este problema, es q estoy trabajando con postgre, e intento realizar actualizaciones a la base de datos y me sale este error
    Cannot change transaction isolation level in the middle of a transaction
    gracias

    sorry my english helpme!!
    i am trying to insert a registry n a table in postgresql throght JAVA STUDIO CREATOR and i got the next error
    Cannot change transaction isolation level in the middle of a transaction
    helpme thanks you

  • Does any one know about this... I was trying to download a song and a messages saying cannot complete transaction call customer support..what can I do cuz I called and couldnt get through

    I was trying to download a song and a messages saying cannot complete transaction please call customer services ... I called and couldn't get through what can I do now

    Welcome to the Apple Community.
    It sounds like you are trying to change your login in the Tunes store through iTunes on your computer, which you can only do once in 90 days, which you don't need to do for this.
    What does your iPad usually sync with.

Maybe you are looking for

  • Can I create MacOS on flash drive to run broken Imac?

    So I've got an Imac that's all brokedy. Won't start up. I tried reinstalling Snow Leopard 10.6.7 on it from a boot disk, but got referred to Disk Utility. Disk Utility told me that the GB 500 drive was so fricked up that Disk Utility can't do a thing

  • IPad syncing issues

    Have two issues when syncing my iPad: 1) iTunes thinks my iPhone and iPad are one and the same device, so when I sync my iPad, iTunes adds the new apps that I have on my iPhone. 2) When I sync my iPad my iTunes U programs are erased. This happens whe

  • Resize a photograph

    In iPhoto you could resize a photo with default sizes or a custom size. How can I resize a photo now? Thanks, George UK

  • MDG Cross entity validation using enrichment spot is not executed.

    I have configured the enrichment sport for cross entity validations and used BRF to validate the data, but looks like validations are not executed. I have the check activated for the step in the configuration and I can see my custom class is being pi

  • PSE 9 Dos not recognize NEF of D7000

    I purchased a Nikon D7000 and read that PSE 8 would not recognize the NEF files for the D7000. So I purchased PSE 9 When bridge opens it shows the NEF thumb nails for the D7000 BUT when I load the NEF pictures the pictures are white and a drop down m