LOB/CLOB Oracle 8i

We need to store and manage more than 100 Powerpoint Presentations greater than 2meg each (up to 8meg)in Oracle, and were told that LOB/CLOB technology could help us do this. However, we are having problems even storing files 500K in size !
Can anyone lead us in the right direction?
thanks

this should be relatively straightforward. show us your sql. there are some examples in a similar recent topic on this board. it's the one with about 20 responses associated with the name Gary Fenton -

Similar Messages

  • Table export to csv files and blob/lob/clob data types

    Greetings,
    Im planning to export oracle tables to a csv file, however, it came to my attention if BLOB/LOB/CLOB datatypes will be included during the export to the csv file?
    DB: Oracle9i Database 9.2.0.1.0
    Regards
    Edited by: oracleelcaro on 4-okt-2010 9:45

    Hi,
    The performance would be slow, since as per my knowledge if you go for direct path - still tables or segments dealing with lob will opt for "conventional path".
    Any non-textual information exists - kindly check out before to export.. ??
    - Pavan Kumar N

  • LoB/CLOB/RAW/LON RAW to Securefiles convertion

    Hello Guys,
    I am planning to upgrade oracle 10.2.0.4 to oracle 11g 11.2, and in our database we have lots of tables with LoB/CLOB/RAW/LON RAW datatypes and i want to use securefile feature for this columns.
    Question is how to carry out these converstion? and after convertion of this can we do online reorganization for securefile datatype.
    Regards,
    V.Singh

    Pls, read the doc: http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28393/adlob_smart.htm#BABDIEGE

  • How CLOB Oracle maps to class in Java?

    How does CLOB data type
    of Oracle database table column
    maps to
    Java class
    of instance variable of EJB Bean class?
    For instance:
    In Oracle
    column BABUSHKA is of CLOB type
    in EJB bean class
    instance var baBushka is of ??????? class
    Can ???? be:
    java.lang.String
    java.sql.Somethingelse
    Viktor
    Please help - I'm on brink of bursting in tears!

    Hi,
    I do not believe CLOB is supported yet. JDBC 3.0, I think.
    I think you have to go through the same process as with BLOBs. I know this
    is how you would read them, but do not recall an InputStream method on the
    weblogic....OracleCLOB object.
    sorry could not help more.
    Slava
    "Viktor Gritsenko" <[email protected]> wrote in message
    news:8ists6$ptl$[email protected]..
    How does CLOB data type
    of Oracle database table column
    maps to
    Java class
    of instance variable of EJB Bean class?
    For instance:
    In Oracle
    column BABUSHKA is of CLOB type
    in EJB bean class
    instance var baBushka is of ??????? class
    Can ???? be:
    java.lang.String
    java.sql.Somethingelse
    Viktor
    Please help - I'm on brink of bursting in tears!

  • Sql Developer wont convert Sql Server to Oracle lob w Oracle 11gr2 client

    I have the Sql Developer 2.1.1.64 loaded on a Windows machine accessing Oracle 11g release 2 database on a linux box with no jre. I have the latest version of java (1.6.0.21) and jdk (6 u 21). When I loaded Oracle 11g r2 client onto my windows box, all sql server tables could be moved to my Oracle repository except tables that converted from a Sql Server 2005 type of nvarchar(max) to nclob. I would just get every row in the error column during the move.
    Turns out when I uninstalled the Oracle 11g r2 client and installed the Oracle 11g r1 client, it worked.

    I'm afraid you're in the wrong forum. This is the Berkeley DB Java Edition forum.
    --mark                                                                                                                                                                                   

  • Help!!urgent!!can not insert/update clob:the row containing the lob is not locked

    Hi,
    could you do me help?
    i can not insert a string into a oracle clob field, it echo as:
    ORA22920 row containing the lob value is not locked. ORA 06512 at "SYS.DBMS_LOB" line 708
    ORA 06512 at line 1;
    what its means? please.
    my table defined as : create table clob1(id number(5),mclob clob default empty_clob()); the id is create by a sequece of test_sequence automaticly.
    my code as belows:
    import java.io.*;
    import java.sql.*;
    //import oracle.sql.*;
    public class test4 {
    public static void main(String args[]) {
    String url_String
    = "jdbc:oracle:thin:test/test@myhost:1521:myorcl";
    try {
    Class.forName
    ("oracle.jdbc.driver.OracleDriver");
    java.sql.Connection con =
    java.sql.DriverManager.getConnection(url_String);
    con.setAutoCommit(true);
    Statement stmt
    =con.createStatement();
    String sqlStr ="insert into
    clob1 (mclob) " + "values(empty_clob())";
    stmt.executeUpdate(sqlStr);
    String query = "select
    test_seq.CURRVAL from dual";
    ResultSet rs =stmt.executeQuery
    (query);
    rs.next();
    int currval =rs.getInt(1);
    query = "select * from clob1 where
    id="+currval;
    String str
    ="abcedefhijklmnopqrstuvwxyz";
    rs =stmt.executeQuery(query);
    rs.next();
    java.sql.Clob clob1
    =rs.getClob(2);
    oracle.sql.CLOB clob=
    (oracle.sql.CLOB)clob1;
    System.out.print(clob);
    java.io.Writer
    wr=clob.getCharacterOutputStream();
    wr.write(str);
    wr.flush();
    wr.close();
    stmt.close();
    con.close();
    } catch(Exception ex) {
    System.err.println("SQLException: "
    + ex.getMessage());
    null

    Hi,
    To avoid ORA-22920 error while selecting lob column, use the 'for update' clause in the select statement like :
    query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
    This should solve the problem. However, after fixing this, you might get the error :
    java.sql.SQLException: ORA-1002: fetch out of sequence
    I got this error when testing your code. To avoid this error, before executing 'select ... for update' statement Set AutoCommit to OFF, like :
    query = "select * from clob1 where id="+currval+" FOR UPDATE" ;
    con.setAutoCommit(false);
    rs =stmt.executeQuery(query);
    Hope that Helps,
    Srinivas

  • Using Clob with TopLink 9.0.4.5 and Oracle 10g RAC

    I am trying to store an XML file in a Clob type field of a DB table using TopLink 9.0.4.5 and Oracle 10g RAC and need some guidance about how to do it. I got some directions to start it with the Tip "How-To: Map Large Objects (LOBs) to Oracle Databases with OracleAS TopLink" but still need some more helps.
    When using the Oracle JDBC OCI driver, the tip gives the code block for a Clob field:
    DirectToField scriptMapping = new DirectToField();
    scriptMapping.setAttributeName("script");
    scriptMapping.setFieldName("IMAGE.SCRIPT");
    descriptor.addMapping(scriptMapping);
    As I understand, TopLink creates instances of the Descriptor class at run time for each of the descriptor files and stores them in a database session, where is the proper place (in SessionEvent of TopLinkSessionEventHandler?) for me to get a reference to such an instance of my Descriptor class in Java code so that I can add the above mentioned additional Mapping? Are the above String values of "script" and "IMAGE.SCRIPT" predefined in TopLink API? Can I accomplish the same thing just using the TopLink Workbench tool instead? If yes, please advise the detailed steps to do so.
    The tip also states to call the following code in case of using Clob:
    DatabaseLogin login = session.getLogin();
    login.useStringBinding();
    Should the above 2 lines of code be called after the following lines of code?
    SessionManager sessionManager = SessionManager.getManager();
    Server serverSession = (Server)sessionManager.getSession("MY_SESSION_NAME");
    Besides the above extra coding for the Session and Descriptor Mapping, is there any special handling in between Data model and DB table mapping? Can I map a Java String type to a DB Clob field using the Direct-to-field mapping?
    Appreciate any help.

    Never mind ....... I had already figured it out .....

  • Migration from Oracle OC4J to Weblogic 10.3 and CLOB ClassCastException

    I am migrating a web application from Oracle OC4J to Weblogic 10.0.3. In this application there are number of java files which uses the following piece of code and I can't change that:
    oracle.sql.CLOB clob = (oracle.sql.CLOB)rs.getClob(columnNumber);
    I have deployed the application on Weblogic Application Server. But when I run the application, it gives me the following exception:
    *1. SEVERE: Standard exception info for exception of type: 'java.lang.ClassCastException' at level: 0 - Error Text: 'weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB'*
    *2. Apr 3, 2008 10:19:33 AM com.agencyport.menu.MenuController insert*
    *3. SEVERE: java.lang.ClassCastException: weblogic.jdbc.wrapper.Clob_oracle_sql_CLOB*
    *4.*
    *5. at com.agencyport.database.OracleDatabaseAgent.updateLOB(OracleDatabaseA*
    *6. gent.java:111)*
    *7. at com.agencyport.menu.MenuController.insert(MenuController.java:815)*
    [Post New]posted Today 11:09:13 AM private message
    Quote [Up]
    Dear Marcos,
    I have tried using ojdbc5, ojdbc6 and classess12 but with the same result. I am stuck with the problem. I have googled a lot but in vein. In some posts I got the idea to use weblogic.jdbc.vendor.oracle.OracleThinClob. But there is no package or class like mentioned in bold, available in weblogic.jar that I get from WEBLOGIC_HOEM/lib. I have downloaded weblogic 10.3 two times but still got no solution. weblogic.jar does not contain weblogic.jdbc.vendor.oracle.OracleThinClob.
    I have also read about using weblogic.jdbc.common.OracleClob to write unicode data but I do not find this package within the weblogic.jar
    Any idea please......
    Regards
    Muhammad Ijaz

    Have you reviewed this set of documentation:
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/jdbc/thirdparty.html#wp1043705
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/jdbc/thirdparty.html#wp1045809
    http://download.oracle.com/docs/cd/E12839_01/wls/docs103/jdbc/thirdparty.html#wp1043777
    There is also a special forum for WebLogic JDBC related questions:
    WebLogic Server - JDBC

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

  • VARCHAR(MAX) to Oracle CLOB with Attunity 3.0 and SSIS 2014 Enterprise oracle 11.2.0.3.0

    SQL Server 2014 Enterprise 12.0.2370 to Oracle 11.2.0.3.0
    SSIS Developed on VS2013 sql data tools. 64 bit win2k12 R2 workstation with Oracle 32 and 64 bit dlls and Attunity 3.0 32 and 64 bit drivers for SSIS Oracle.
    I can successfully define my sql data source and my oracle destination. One of the fields in the SQL Server source is varchar(max). Some of the records have 32,000+ characters.
    when i map the varchar(max) column to the CLOB oracle column i get no errors. i save the project and come back and the source column in the mapping in the destination definition is set to IGNORE. No matter what i do it does this. I run the package and it
    exports all of the columns except the varchar(max) column. Compiling and running the project in VS2013 gives no errors.
    It was my understanding that at one time Attunity did not support CLOB but starting with version 2.0 and SQL Server 2012 Enterprise, the field type was supported.
    Any help on this one is greatly appreciated.

    I think you have witnessed the fact it does not.
    Arthur
    MyBlog
    Twitter

  • APEX and CLOB value in trigger

    Hi,
    I am using APEX 3.2.1 with Oracle 11gR1.
    I have two tables:
    CREATE TABLE "TSI"."ATT_TEST2"
    (     "ID" NUMBER NOT NULL ENABLE,
         "TITLE" VARCHAR2(250 BYTE),
         "TOPIC" CLOB
    and
    CREATE TABLE "TSI"."ATT_TEST2"
    (     "ID" NUMBER NOT NULL ENABLE,
         "TITLE" VARCHAR2(250 BYTE),
         "TOPIC" CLOB
    My trigger is:
    create or replace TRIGGER "TSI"."ATT_TEST_TRG"
    BEFORE INSERT ON ATT_TEST
    FOR EACH ROW
    BEGIN
    SELECT ATT_TEST_SEQ.NEXTVAL INTO :new.ID FROM DUAL;
    insert into att_test2(id, title, topic) values (ATT_TEST_SEQ.NEXTVAL, :new.title, :new.topic);
    END;
    Now if I insert a record to ATT_TEST using SQL Developer ATT_TEST2 gets populated.
    If create an APEX form and try to insert into ATT_TEST i get all the fields inserted into ATT_TEST2 except for the CLOB column. The TOPIC column is not copied into ATT_TEST2.
    Any idea why this works from SQL Developer and not from APEX?
    Thank you

    Hello:
    I believe this behaviour is seen because APEX uses the 'DBMS_LOB' API to update LOB/CLOB columns.For the example posted APEX does something like
    INSERT INTO "ATT_TEST" ( "ID","TITLE","TOPIC") VALUES (:B1 ,REPLACE(:B2 ,'%null%',NULL),EMPTY_CLOB()) RETURNING ROWID INTO :0;
    begin select "TOPIC" into wwv_flow.g_dml_clob_text from "ATT_TEST" where rowid = :p_rowid for update; end;
    begin dbms_lob.write( wwv_flow.g_dml_clob_text, length(wwv_flow.g_dml_varchar32767_text), 1, wwv_flow.g_dml_varchar32767_text ); end;
    varad

  • Most robust way to preserve data insert into CLOB?

    Hello.
    When inserting data into a CLOB column, some of the characters are not being preserved, such as ellipsis characters and other unusual characters. The data is being inserted via JDBC as a simple Java string sql statement in a Statement object. So, what is the most appropriate way to insert information into a CLOB such that all characters are preserved? (Do I have to use PreparedStatements or Clob.setString()?)
    For example, the following sql insert:
    "INSERT INTO t1 (myClob) VALUES ('Hello ... how are you?');"
    Will end up inserting something like:
    "Hello ? how are you?"
    The ellipsis character (Unicode U+2026, I believe) is changed to something else. How can I preserve this and other characters? Thanks in advance.

    Hi,
    Must have something to do with NCHAR or Unicode characters.
    Here are the notes i put in chapter 8 of my book, section 8.2.2
    Notes:
    Pre-10.2 JDBC does not support NCHAR literal (n'...') containing
    Unicode characters that cannot be represented in the database character
    set.
    Using 10.2 JDBC against 10.2 RDBMS, NCHAR literals (n'...')
    are converted to Unicode literals (u'...'); non-ASCII characters
    are converted to their corresponding Unicode escape sequence.
    Using 10.2 JDBC against pre-10.2 RDBMS, NCHAR literals (n'...') are
    not converted and generate undetermined content for characters that
    cannot be represented in the database character set.
    Fwiw, here is my blog entry relative to Lobs (CLOB, BLOB, BFILE) :
    http://db360.blogspot.com/2006/11/get-bolder-with-lobs-manipulation-in.html
    Kuassi, http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html

  • How To Update CLOB.......... Data into Table

    I am using oracle 10g and i am having a tale Content_clob having two columns id integer and lob clob
    in thins table i would store the lob data as ('10 20 30 40 ....100 200.........n') n number of data's
    i the piece of data would be separated by space, i want to replace the data 20 into some character aa,
    but if i can ues normal replace function would replace not only the 20 it also replace the 200 too,
    but my requirement is replace only the specified data not the other data(like 200 or 2000)
    how update the clob value

    Since we're talking 10g, have you thought about using regular expressions? Here's an example:
    WITH t AS (SELECT to_clob('10 20 30 40 ....100 200.........n') col1
                 FROM dual
    SELECT REGEXP_REPLACE(col1, '(^| +)20( +|$)', '\1aa\2')
      FROM t;    C.

  • Using REPLACE on CLOB causes increase in CACHE_LOBS...

    I have a requirement to use the built in REPLACE function on a CLOB variable as part of a larger PL/SQL process. I'm using Oracle 11g R2 and the function works OK, in that it does the replace as required, but as the procedure runs (there are around 2.5 millions records to process), it slows down badly - as in:
    first 20,000 records: ~12 minutes
    second 20,000 records: ~24 minutes
    third 20,000 records: ~37 minutes
    fourth 20,000 records: ~52 minutes
    etc...
    Checking V$TEMPORARY_LOBS during operation shows that the value for CACHE_LOBS increases with every row processed - my assumption is that this implies that memory associated with LOBS (CLOBS in this case) is not getting released once it has been used...?
    Stepping through the code using PL/SQL debugger reveals that the value for CACHE_LOBS increases by 2 for every call to the REPLACE function. The function calls are along the lines of:
    [code]
    clobRTFText         CLOB;
    dbms_lob.createtemporary(clobRTFText, TRUE, dbms_lob.call);
    clobRTFText := REPLACE(clobRTFText, '<CR>', '\par ');  <== Causes CACHE_LOBS to increase by 2
    dbms_lob.freetemporary(clobRTFText);
    [/code]
    It's as though the third line of code above is creating further CLOB variables on the fly. Is that because there is some kind of implicit type conversion occurring due to the REPLACE function expecting a VARCHAR2 parameter? I've tried using dbms_lob.copy instead of REPLACE, but it actually was worse (CACHE_LOBS went up quicker).
    I've gone through the PL/SQL Semantics for LOBs section of the Oracle documentation - it mentions the way CLOB and VARCHAR2 variables can be used in built-in functions but I can't find anything about doing so potentially causing extra memory usage.
    Does anyone have any ideas why this is happening or how I could do it (i.e. use REPLACE with a CLOB) without it failing to releasing memory (assuming that is indeed what is happening)?
    Thanks

    Sorry, I should have mentioned in the original post above...the call to dbms_lob.freetemporary does not cause the value of CACHE_LOBS to drop.

  • Retrieving clob locator

    I am having trouble retrieving a clob locator from a column despite being able to set it in a previous statement. The clob is always returned as null.
    This happens to both an 8.1.6 and 8.1.7 with the latest classes12.zip
    Thanks,
    -elliott
    Here is my code snippet:
    oracle.sql.CLOB clob = null;
    // Select LOB locator into standard result set.
    StringBuffer sSelect = new StringBuffer();
    sSelect.append("SELECT " + mercColName + " FROM BUG" + whereClause.toString() + "FOR UPDATE");
    debug.println("Get Clob: " + sSelect.toString());
    ResultSet rs =
    stmt.executeQuery(sSelect.toString());
    while (rs.next()) {
    // Get LOB locator into Java wrapper classes.
    try {
    clob = (oracle.sql.CLOB) rs.getClob(1);
    catch (Exception ex) {
    //do nothing
    if (clob == null)
    //update row
    StringBuffer sUpdateClob = new StringBuffer();
    sUpdateClob.append("UPDATE BUG SET " + mercColName + " = (empty_clob()) " + whereClause.toString());
    debug.println("Update Clob: " + sUpdateClob.toString());
    stmt.execute(sUpdateClob.toString());
    m_DelayConnection.commit();
    ResultSet rs2 =
    stmt.executeQuery(sSelect.toString());
    while (rs2.next()) {
    // Get LOB locator into Java wrapper classes.
    clob = (oracle.sql.CLOB) rs2.getObject(1);
    java.io.Writer writer;
    // read data into a character array
    char[] data = pval.toCharArray();
    // write the array of character data to a CLOB
    writer = clob.getCharacterOutputStream();

    Found the problem. I was using the ODBC driver instead of the JDBC driver.

Maybe you are looking for

  • I'm not receiving any mail into the Junk Mailbox

    Hi I had a problem with the ports of the 2 accounts that I have set up in Mail (one of those is mac.com) due to an excess of space used. I tried several options and it finally it worked. As a result, a week later I realised that I was not receiving a

  • Where did multiple saved login names go in ios8 Safari?

    Where did multiple saved login names go in ios8 Safari? In io7 you could have multiple logon names for a given webpage, and select which one you wanted, and even though these different names are saved in saved passwords in the Safari settings, I can'

  • Acrobat X User How to disable Notification "Claim your Benefit Today"

    Notification pop up  from  the task manager "Claim  your benefit Today exclusive for acrobat X 10  user. you  can also complete  your adobe ID Profile is there a registy fix to disable Ron 

  • Fill and object array

    I have too many books and not enough understanding on this subject. I am trying to fill an object type array with values and am totally confused. In my application, I successfully create a constructor in one file and test the object with some values

  • Computerized Theft of Personal Information (Virus)

    Not sure what to call this, and what to do about it but advice is appreciated. I spent several hours this weekend browsing the web. The next day I had an e-mail from one of the web sites (a Russian enterprise by the way) inviting me to join their ser