Oracle CLOB

Is it possible in Oracle 8.1.6 to create a CLOB, read a file from the filesystem into the CLOB, and return the CLOB without connecting to the database?

Of course, you could also write your own Clob implementation. Haven't tried that before though. Something like:
class FileClob implements java.sql.Clob {
    private final File file;
    public FileClob(File file) {
        this.file = file;
    public long length() throws SQLException {
        return this.file.length();
    public Reader getCharacterStream() throws SQLException {
        try {
            return new FileReader(this.file);
        } catch (FileNotFoundException e) {
            throw new SQLException("File " + this.file.getAbsolutePath() + " not found: " + e);
    // Remaining Clob methods implemented as necessary
    // Or throw SQLException if not supported
}Exactly how many of the Clob methods you'd have to implement without throwing an error would depend on how the Clob is being used. If its read only, it should be fairly easy.
T

Similar Messages

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

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

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

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

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

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

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

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

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

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

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

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

  • Sybase TEXT to Oracle CLOB migration

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

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

  • Problems saving Unicode in an Oracle CLOB

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

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

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

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

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

  • An issue with Oracle CLOB

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

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

  • MS ACcess and Oracle CLOBs

    I am trying to transfer data into an Oracle Database from Access. The table I'm aiming at is a CLOB, and Access/Windows ODBC are complaining about the sql data type being out of range. Experimenting with removing fields from my script I have narrowed it down to the CLOB filed. I have tried google searches and found several answers to the error but none that has anything to do with CLOBs
    The table is set up as a linked table and the file dsn looks like this
    I'm using DRIVER=Microsoft ODBC for Oracle in my data source and the Access field I was migrating out of is set as "Memo", but again I've tried experimental loads with more restrictive datatypes and different drivers and not had any joy.
    I all else fails I can dump the whole lot to an excel file and load it through sql developer but for various reasons I would rather go through the access route if at all possible. Can anyone help please?
    Thanks

    Remember that Microsofts ODBC driver for Oracle was designed with Oracle7 in mind. So possibly clob is not supported. (Also driver was deprecated long, long time ago by MS.)
    Within first few links from relevant google search:
    http://msdn.microsoft.com/en-us/library/ms713590(v=VS.85).aspx
    http://support.microsoft.com/kb/244661
    Edited by: orafad on Sep 20, 2011 2:10 PM

  • Exporting Text data from PHP to Oracle CLOB data (Carriage return - issue)

    This is my original text content in PHP - Data type - Longtext
    SECTION - 1
    This a test description.This a test description.
    This a test description.This a test description.
    This a test description. This a test description.I exported the above content from PHP as a SQL script file (insert into.. ) - export.sql [ insert into table_name (id, text_content) values (1, '') ]
    while exporting data from PHP table into export file.. it replaced the "Carriage return" with "\r\n\r\n" in the insert statement for text_content column
    When I run this INSERT statement in Oracle (for longtext, I have created a CLOB column in Oracle), the following text_content data is inserted into CLOB column in Oracle.
    SECTION - 2
    This a test description.This a test description.\r\n\r\nThis a test description.This a
    test description.\r\n\r\nThis a test description.This a test description.Now I have created a item named P1_TEXT_CONTENT of type TEXTAREA and try to fetch the CLOB data into this page item.
    BUT textarea displays the entire content including "\r\n\r\n" as mentioned in SECTION - 2
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?
    Thanks,
    Deepak

    DeepakJ wrote:
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?Run an update on the Oracle table following the inserts to replace the escaped CR/LFs with real ones:
    update foo
    set clob_column = replace(clob_column, '\r\n', chr(13) || chr(10));You might want to experiment to see which characters are actually necessary. As an OS X/Linux user I'd probably just use a single LF chr(10).

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

  • PHP and OCI-Lob::read from oracle clob

    I'm having a weird problem with PHP and the OCI-Lob::read method.
    We have a page that connects to the database and pulls all the other fields out with no problems. However, it when it comes to the clobs, only a small portion of the actual data is retrieved.
    The code uses:
    $content= $features[14]->read(2000); echo $content;
    And we're getting a tiny section of the field returned (only about 185 out of a total 553 chars). The really strange thing is that no matter what the length specified is - it still only returns a small section - and the cut off seems to actually be 549 bytes/chars - anything below the read(length) specified as 549 shortens the returned string (even though what is returned is far less the 549 chars) but anything over 549 makes no difference.
    Additionally, we've used the OCI-Lob::load method with exactly the same results where only a portion of the actual contents of the clob field is returned.
    Any ideas what could be causing this?
    PHP version is 5.1.6
    RDBMS is 11.2.0.4.2
    Following shows OCI config via phpinfo()
    oci8
    OCI8 Support
    enabled
    Revision
    $Revision: 1.269.2.18 $
    Active Persistent Connections
    1
    Active Connections
    1
    Oracle Instant Client Version
    10.2
    Temporary Lob support
    enabled
    Collections support
    enabled
    Directive
    Local Value
    Master Value
    oci8.default_prefetch
    10
    10
    oci8.max_persistent
    -1
    -1
    oci8.old_oci_close_semantics
    0
    0
    oci8.persistent_timeout
    60
    60
    oci8.ping_interval
    60
    60
    oci8.privileged_connect
    Off
    Off
    oci8.statement_cache_size
    20
    20

    Your version of OCI8 corresponds to PECL OCI8 1.2.1, which is very old.  You can see the subsequent fixes in the changelog PECL :: oci8 Changelog In particular there have been a number of LOB changes.
    I would start by upgrading. Ideally you would use PHP 5.5 with PECL OCI8 2.0.8 and Instant Client 11.2.0.4.  Otherwise just upgrade to PECL OCI8 1.4.10 and Instant Client to 11.2.0.4.  The following instructions should help: Installing PHP and the Oracle 11g Instant Client for Linux and Windows
    I am suggesting using PECL OCI8 because it is more recent than the OCI8 in the PHP 5.1.x - 5.5.x bundles.  PHP 5.6 natively has OCI8 2.0 but you may not want to upgrade an existing site to PHP 5.6 until this branch of PHP has matured.

  • Oracle Clobs, datasources, connection pools, RMI ...

    Hello all,
    We are using Weblogic 7.0, windows 2K server, Oracle 9i and are trying to read from a clob. Using
    Weblogic datasources to manage connection pools. We are getting back a weblogic.jdbc.rmi.serialClob
    object.
    Any help reading data from this?
    The main error is "No Data Found".
    What else might I tell you to help?
    Thanks a bunch for any help.
    BTW
    We had this working in iplanet and we are converting to weblogic. This is our last major hurdle.
    Galen Boyer

    On 3 Feb 2004 12:51:26 -0800, Raymond Tiong <[email protected]> wrote:
    >
    Oracle Database Server 9i supports the usage of LABELS to enforce highly
    granular
    resource access restrictions at the database level independent of the
    application
    that is accessing it. In order to use this however, the particular
    user, and
    not just the application, accessing the database must be known. Oracle
    Application
    Server (Oracle's J2EE product line) solves this by providing the ability
    to PROXY
    the identity of the application user and creditials (SSL Certs for
    instance) down
    to the database server.
    I haven't seen a similar ability for BEA Weblogic Server 8.1 which allow
    the user
    identity and credientials to be PROXIED to the database server. Is this
    possible?
    Have I missed an important document?
    Thanks for any input,
    Raymond Tiong
    I think there is a section in the JDBC documentation for 8.1 which
    describes what it takes to utilize Oracle 9i extension called "Virtual
    Private Database". With this extension, one might be able to proxy the
    callers
    identity to the DB.
    See: http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html#1103627

  • Error converting SQL Server text field to Oracle CLOB

    I am trying to convert an SQL Server DB to Oracle DB using DB link. The issue I am facing is one of the SQL Server table contains text field and we are trying to convert the text field to CLOB.
    The error I am getting is "SQL Error: ORA-00997: illegal use of LONG datatype"
    The statement is something like this.
    Insert into oracle_table
    Select col_1,col_2,col_3,col_4,col_5 from sql_table@sqldblink;
    Please help.

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

  • 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

Maybe you are looking for

  • Outlook 2010 webcal not syncing with iCloud

    I've got Facebook events exported to Outlook 2010 as a webcal, but only my default calendar will sync to iCloud. How can I get the webcal to also sync with iCloud and my iOS devices? I've tried closing outlooking, re-setting up the iCloud control pan

  • Very Poor Coverage at Santa Clara Convention Center

    Last month I was at the Santa Clara Convention Center for a technical conference. Attendees here are constantly borrowing ATT phones to make calls when inside conference rooms or on the Convention Center Exhibit Floor. The signal here is very weak 1x

  • Runtime engine files 8.2

    Hi, Since most users of my written program are users with "restricted right" acounts under Windows XP I copied the Runtime engine files of LV7.11 manualy by copying the "Program Files\National Instruments\LabVIEW 7.1\Shared\LabVIEW Run-Time\7.1" file

  • Clustering objects in jndi

    Hi all, I am building a solution using weblogic version 6.1sp1. I am needing to share an object around a set of clusters to tell each cluster about the services in the other clusters. The first solution I thought of was to create a javax.naming.Refer

  • Getting rid of track numbers in iTunes 8

    I prefer to keep my music filenames without track numbers, which iTunes 7 let me do (under Edit>Preferences>Advanced>Importing>Create filenames with track number). However, I can't find this feature in iTunes 8. Can anybody tell me how I can do this