Insert types BLOB

Hi,
I need export / import data table from a schema to an other schema, and the table has data like BLOB:
CREATE TABLE DOC_FILE
  ID             NUMBER(19),
  MIME_TYPE      VARCHAR2(255 BYTE),
  FILE_SIZE      NUMBER(19),
  LAST_MODIFIED  TIMESTAMP(3),
  DOCUMENT       BLOB
)I can´t execute the exp/*imp* command, because the tablespaces from the schemas are differents, so I try:
1 Create the table in the second schema. => OK
2 Insert data. Here I have a problem:
the type BLOB I need to save and insert into the new table created. I have the Toad application, and I have tried 'export to a flat file' and now I have the types BLOB like files *.dat*.
How can I insert this .dat into the new table?
thanks.

Hi
What version of oracle is it you are using?
If you are using 10g you can use datapump to import a table into a different tablespace in your destination database.
regards,
Mark

Similar Messages

  • Error while inserting into blob column through PL/SQL

    Hi All,
    I am trying to insert into column having blob as datatype.
    INSERT INTO imagedb(image_name, content,description) VALUES ('logo.png',
    ?{file 'c:\logo.png'}, 'logo');
    it gives me error Unknown JDBC escape sequence:
    Is there anything wrong in above insert syntax for inserting into BLOB data type.
    Can any body please help me.
    Regards,
    Hiren

    It is not valid SQL as far as Oracle SQL is concerned. I assume that the file construct is suppose to replace that with the contents of the file?
    What happens when the file size exceeds the max length of the SQL command?
    And do you have any idea what will happen to the SQL Shared Pool on Oracle that needs to store the entire SQL command for every single SQL command passed to it? The whole purpose of the Shared Pool is for storing shared SQL. Not non-sharable SQL containing hardcoded values.
    Bind variable are to be used.. if you expect Oracle to perform like only Oracle can.
    And my bet is that you have not even bothered to read [url http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14249/toc.htm]Oracle® Database Application Developer's Guide - Large Objects guide....

  • How can I check if my insert of BLOB is successful

    Hi, there,
    after I insert the BLOB data into oracle 9i database table, how can I know if it's successful or not through OEM. because if I view the table content through OEM, I only can see the other fields except BLOB. do I must write a java program to retrieve it or there is some other easy way?
    thank you very much for the great help.

    Open Activity Monitor which is in your Applications > Utilities folder.  Click on the "System Memory" tab toward the bottom left.

  • Problem with inserting two BLOBs into a table using setBinaryStream

    DBMS 9.2.0.1.0, Oracle JDBC driver 10.1.0.2.0
    The following code insert in one INSERT two BLOBs
    into two columns using PreparedStatement.setBinaryStream(). When the size of the of at least one blob exceeds
    some limit (? 2k, 4k ?), the values are swapped and
    inserted into wrong columns.
    Please, is this a problem in JDBC driver?
    ====================================================
    import java.io.ByteArrayInputStream;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.sql.Statement;
    * Test - two BLOBs swapped problem.
    * If size of the blob is larger that some treshold, they are swapped in the database.
    public class BlobSwapTest {
    private static Connection getConnection() throws SQLException {
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    } catch (ClassNotFoundException cnfe) {
    throw new SQLException("ClassNotFoundException: " + cnfe.getMessage());
    return DriverManager.getConnection("jdbc:oracle:thin:@//HOST:1521/DB", "USER", "PSWD");
    private static void createTable() throws SQLException {
    Connection conn = getConnection();
    Statement stmt = null;
    try {
    stmt = conn.createStatement();
    try {
    stmt.execute("DROP TABLE BlobTest2");
    } catch (SQLException e) {
    System.err.println("Table BlobTest2 was not deleted: " + e.getMessage());
    stmt.execute(
    "CREATE TABLE BlobTest2 ("
    + " pk VARCHAR(512), "
    + " blob BLOB, "
    + " blobB BLOB, "
    + " PRIMARY KEY (pk)"
    + ")"
    } finally {
    try {
    if (stmt != null) stmt.close();
    } finally {
    conn.close();
    public static void main(String[] args) throws SQLException {
    createTable();
    Connection conn = getConnection();
    PreparedStatement pstmt = null;
    try {
    conn.setAutoCommit(false);
    pstmt = conn.prepareStatement("INSERT INTO BlobTest2 VALUES (?,?,?)");
    final int size = 5000; // change the value to 500 and the test is OK
    byte[] buf = new byte[size];
    byte[] buf2 = new byte[size];
    for (int i = 0; i < size; i++) {
    buf = 66;
    buf2 = 88;
    pstmt.setString(1, "PK value");
    pstmt.setBinaryStream(2, new ByteArrayInputStream(buf), size);
    pstmt.setBinaryStream(3, new ByteArrayInputStream(buf2), size);
    pstmt.executeUpdate();
    conn.commit();
    } finally {
    if (pstmt != null) pstmt.close();
    conn.close();
    ====================================================

    See my response in the JVM forum.

  • SOS: NameNotFoundException when inserting a BLOB in Oracle 9i

    Hi Guys,
    I am trying to insert a BLOB in a Oracle. In the development enbironment its working fine.
    However, in the test setup the code is behaving differntly. In the test environment, we have one admin server at 172.32.32.58:8001 and two managed servers in a cluster running at 172.32.32.58:8007 and 172.32.32.59:8007 . Both the managed servers are in a cluster.
    My code is as follows
         ........... //Prepare the BLOB for insertion
    ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,"t3://172.200.3.58:8001" ); //Here i have given the admin server url. Is it correct
    PreparedStatement ps=null;
    javax.sql.DataSource ds =null;
    try
    ctx = new InitialContext(ht);
    ds = (javax.sql.DataSource) ctx.lookup ("customerDataSource");
    odsCon = ds.getConnection();
    ps.close();
    odsCon.close();
    ctx.close();
    The customer data source is deployed on all three servers: admin as well as the managed servers.
    But, it still is giving the following exception stack trace at the following line '"ds = (javax.sql.DataSource) ctx.lookup ("customerDataSource");'
    javax.naming.NameNotFoundException: Unable to resolve 'customerDataSource' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'customerDataSource' Resolved ]; remaining name 'customerDataSource'
         at weblogic.rjvm.BasicOutboundRequest.sendReceive()Lweblogic.rmi.spi.InboundResponse;(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(Lweblogic.rmi.extensions.server.RemoteReference;Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;[Ljava.lang.Object;Ljava.lang.reflect.Method;)Ljava.lang.Object;(ReplicaAwareRemoteRef.java:290)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(Ljava.rmi.Remote;Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;[Ljava.lang.Object;Ljava.lang.reflect.Method;)Ljava.lang.Object;(ReplicaAwareRemoteRef.java:247)
         at weblogic.jndi.internal.ServerNamingNode_814_WLStub.lookup(Ljava.lang.String;Ljava.util.Hashtable;)Ljava.lang.Object;(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(Ljavax.naming.Name;Ljava.lang.String;)Ljava.lang.Object;(WLContextImpl.java:371)
         at weblogic.jndi.internal.WLContextImpl.lookup(Ljava.lang.String;)Ljava.lang.Object;(WLContextImpl.java:359)
         at javax.naming.InitialContext.lookup(Ljava.lang.String;)Ljava.lang.Object;(InitialContext.java:347)
         at com.lic.eps.customer.data.PrmReceiptData.insertPrmReceipt(Ljava.lang.String;Ljava.lang.String;DLjava.lang.String;)V(PrmReceiptData.java:57)
         at com.lic.eps.customer.domain.RevivalImpl.insertPrmPaymntReceipt(Ljava.lang.String;Ljava.lang.String;D)V(RevivalImpl.jcs:1385)
         at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
         at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Optimized Method)
         at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(DispMethod.java:371)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Ljava.lang.Object;Ljava.lang.String;Lcom.bea.wlw.runtime.core.dispatcher.DispMethod;[Ljava.lang.Object;)Ljava.lang.Object;(Invocable.java:423)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Lcom.bea.wlw.runtime.core.dispatcher.DispMethod;[Ljava.lang.Object;)Ljava.lang.Object;(Invocable.java:396)
         at com.bea.wlw.runtime.core.container.Invocable.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(Invocable.java:248)
         at com.bea.wlw.runtime.jcs.container.JcsContainer.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(JcsContainer.java:85)
         at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(BaseContainerBean.java:224)
         at com.bea.wlw.runtime.core.bean.SLSBContainerBean.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(SLSBContainerBean.java:103)
         at com.bea.wlwgen.StatelessContainer_ly05hg_ELOImpl.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(StatelessContainer_ly05hg_ELOImpl.java:153)
         at com.bea.wlwgen.GenericStatelessSLSBContAdpt.invokeOnBean(Ljava.lang.Object;Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.dispatcher.InvokeResult;(GenericStatelessSLSBContAdpt.java:62)
         at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(BaseDispatcherBean.java:153)
         at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(BaseDispatcherBean.java:54)
         at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(SyncDispatcherBean.java:168)
         at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(SyncDispatcher_k1mrl8_EOImpl.java:46)
         at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Lcom.bea.wlw.runtime.core.dispatcher.DispFile;Lcom.bea.wlw.runtime.core.request.Request;)Lcom.bea.wlw.runtime.core.request.Response;(Dispatcher.java:161)
         at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(Lcom.bea.wlw.runtime.core.request.Request;)Ljava.lang.Object;(ServiceHandleImpl.java:436)
         at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl._invoke(Lcom.bea.wlw.runtime.core.request.ExecRequest;)Ljava.lang.Object;(WlwProxyImpl.java:326)
         at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(WlwProxyImpl.java:315)
         at $Proxy147.insertPrmPaymntReceipt(Ljava.lang.String;Ljava.lang.String;D)V(Unknown Source)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'customerDataSource' Resolved
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:897)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:230)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:154)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:188)
         at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
         at java.lang.Thread.startThreadFromVM(Unknown Source)
    I donot know what i am doing wrong here. Is the provider url which i am using incorrect.
    The funny part is that in my portal there are other functinalities using 'customerDataSource' they seem to be working fine but when i access this particular one where
    the BLOB is inserted, it gives the error.
    The only difference between the BLOB insert methods and the other JDBC methods is that in the BLOB method i am getting the connnection using code, where as for
    all the other database activity I am using Database controls (jcx). Could that be the issue. I tried using jcx for BLOB insertion but just could not do so because it was giving some error.
    PLS HELP ME AS OUR SYSTEMS ARE GOING LIVE ON THE 15th of this month and we are facing this issue.
    Thanks,
    NIKHIL<pre></pre>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hey i got the solution no need to break your heads ...
    in the provider you have to give the url of the server on which the code runs ...
    so in case of managed server 1 the provider url is t3://172.32.32.58:8007 and for managedServer2 it is t3://172.32.32.59:8007 ..worked on a hunch and it worked.
    NIKHIL

  • Chart Insertion Type

    Hi,
    I am new to Xcelsius.
    I need more details on insertion types position,values,row, column and status list.
    which scenarios which insertion type used.
    Thanks in advance
    Aravind.S

    beside the insertion type dropdown you can find a small icon 'i'. Select an Insertion Type from the dropdown and click on this Icon which plays a small flash movie which explains the insertion type.
    Assume that you have a combo box component with the following items:
    A
    B
    C
    D
    Label: This type will insert the value A,B,C and D respectively based on what label u select.
    Postion: This will insert 1,2,3,4 (ordinal) if you select A,B,C,D respectively.
    Row: This will insert row associated with these items in the excel.
    Column: this will insert the column associated with these items in the excel.
    Iwould recommend you to go through the flash movie.

  • Problem using Insertion Type=Rows in Xcelsius  2008

    I am currently trying to use the Enable Drill-down feature in a bar chart. In this, I am trying to enable the drill-down for one of the series and am following the steps as below:
    1. Select Series
    2. Select Insertion Type = Rows
    3. Assign the source data fields range
    4. Select the destination row column combination
    I have configured the population of destination row on Mouse Over event of chart.
    When I preview the chart, it populates all the columns for the destination row but one column does not get populated. The column has a text data type.
    Can someone urgently advise why I might be getting this issue? Thanks in advance...
    sincerely,
    Bhrugu

    exactly what "text area" are you referring to? a chart has Title, Subtitle, Cateogry X Axis, Category Y Axis, and Labels.
    OR
    do you mean that you have added a "Input Text Area" component on the chart? if so you can just link it to that particular cell. it might be a good idea to also use dynamic visibility.
    note: a text area component can only link to 1 cell. not a range of cells.

  • What is function in excel like "Insertion type : Filtered row" in dashboards

    Hi Every One,
    I have an Excel data, in which i have 4 columns ( State, code, District, population) having 500 rows. When i select the state name, i want to display all the respective state rows at one place. Please see the example at attachments. Just like filtered row (Insertion type in Dashboard)  concept.
    Please HELP ME

    Hi Sreeram,
    Follow the below steps,
    Drag a combo box to canvas ,and map labels as per screenshot,
    And map source and destinations,
    Now map the destination of combo box to the spreadsheet component to display data.
    Now you will get the required output.
    Regards,
    Samatha B

  • Error inserting largeinto BLOB field

    I am unable to insert large object into a BLOB column (Oracle 8.1.7 DB). Files of smaller size ( < 30 K )insert fine. I am using the OCI driver. In the mapping workbench I have mapped a Byte array to the BLOB column.
    Below is a stack trace of the exception.
    Any idea
    MAPPING: oracle.toplink.mappings.SerializedObjectMapping[attachment-->DatabaseField(PR_ATTACHMENT.BLOB_FILE)]
    DESCRIPTOR: Descriptor(gov.usdoj.ojp.gms.jdo.ProgressAttachment --> [DatabaseTable(PR_ATTACHMENT)]), stack: LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-66] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
    EXCEPTION DESCRIPTION: Could not deserialize object from byte array.
    INTERNAL EXCEPTION: java.io.EOFException
    MAPPING: oracle.toplink.mappings.SerializedObjectMapping[attachment-->DatabaseField(PR_ATTACHMENT.BLOB_FILE)]
    DESCRIPTOR: Descriptor(gov.usdoj.ojp.gms.jdo.ProgressAttachment --> [DatabaseTable(PR_ATTACHMENT)])
         at oracle.toplink.exceptions.DescriptorException.notDeserializable(Unknown Source)
         at oracle.toplink.mappings.SerializedObjectMapping.getAttributeValue(Unknown Source)
         at oracle.toplink.mappings.DirectToFieldMapping.valueFromRow(Unknown Source)
         at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(Unknown Source)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(Unknown Source)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(Unknown Source)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(Unknown Source)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(Unknown Source)
         at oracle.toplink.queryframework.ReadAllQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
         at oracle.toplink.threetier.ServerSession.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.internal.indirection.QueryBasedValueHolder.instantiate(Unknown Source)
         at oracle.toplink.internal.indirection.DatabaseValueHolder.getValue(Unknown Source)

    I was originally using Toplink under iPlanet Webserver 4.1. I have now switched to 9iAS 9.0.2.0 and am getting a different error when inserting a BLOB. Even after I get this error I am able to access other parts of the system so it cannot be an issue of not connecting to the DB.
    Rajiv
    EXCEPTION [TOPLINK-4005] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DatabaseException
    EXCEPTION DESCRIPTION: DatabaseAccessor not connected.
         at oracle.toplink.exceptions.DatabaseException.databaseAccessorNotConnected(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.incrementCallCount(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(Unknown Source)
         at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelect(Unknown Source)
         at oracle.toplink.queryframework.DataReadQuery.executeNonCursor(Unknown Source)
         at oracle.toplink.queryframework.DataReadQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
         at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
         at oracle.toplink.internal.databaseaccess.OraclePlatform.nativeGetNextBatchOfSequenceNumbersNamed(Unknown Source)
         at oracle.toplink.internal.databaseaccess.OraclePlatform.nativeGetSequenceNumberNamed(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabasePlatform.getSequenceNumberNamed(Unknown Source)
         at oracle.toplink.publicinterface.Session.getNextSequenceNumberValue(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.getNextSequenceNumberValue(Unknown Source)
         at oracle.toplink.internal.descriptors.ObjectBuilder.assignSequenceNumber(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.assignSequenceNumbers(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.collectAndPrepareObjectsForCommit(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitToDatabase(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(Unknown Source)
         at oracle.toplink.publicinterface.UnitOfWork.commit(Unknown Source)

  • Invalid data format on EXPORTING table  to SQL-FLAT FILE (Insert type)

    Hi there!
    Writing from Slovenia/Europe.
    Working with ORACLE9i (standard version) on Windows XP with SQL-deloper 1.0.0.015.
    FIRST SQL.-DEVELOPER IS GOOD TOOL WITH SOME MINOR ERRORS.
    1.) Declare and Insert data EXAMPLE
    drop table tst_date;
    create table tst_date (fld_date date);
    insert into tst_date values (sysdate);
    insert into tst_date values (sysdate);
    2.) Retriving date with SQLPLUS
    SQL> select to_char(fld_date,'DD.MM.YYYY HH24:MI:SS') FROM TST_DATE;
    23.10.2006 11:25:23
    23.10.2006 11:25:25
    As you see TIME DATA IS CORRECT.
    When I EXPOPRT data TO SQL-insert type I got this result IN TST_DATE.SQL file:
    -- INSERTING into TST_DATE
    Insert into "TST_DATE" ("FLD_DATE") values (to_date('2006-10-23','DD.MM.RR'));
    Insert into "TST_DATE" ("FLD_DATE") values (to_date('2006-10-23','DD.MM.RR'));
    As you seel I lost TIME DATA.
    QUESTION!
    HOW CAN I SET PROPER DATE FORMAT IN SQL-DEVELOPER BEFORE I EXPORT DATA TO FLAT FILE.
    Best regards, Iztok from SLOVENIA
    Message was edited by:
    DEKUS

    A DATE-Field, is a DATE-Field and not a
    DATE-TIME-Field.
    The export-tool identifies a DATE-Field and exports
    the data into date-format.This is not true. Oracle DATE fields include a time element.
    To the original poster - I believe this is a bug in the current version.
    See this thread for possible workarounds Bad Export format --- BUG ???
    Message was edited by:
    smitjb

  • How can I Insert a BLOB into a Table from Java?

    I have a Java class that creates an xml file from data in a non-sql data source. After it successfully creates and saves the file it inserts a record into an Oracle table to log the fact that an xml file was created.
    Now the guy in the warehouse wants to get an email with the file attached. I have been looking into the apex_mail package, because we already have a procedure using htmldb_mail. However, that procedure is on our old server with HTMLDB 1.6 and it is not sending any attachments.
    I think I have most of the apex_mail worked out, but I'm stuck on the blob thing. This is what I have so far:
    * The Java program creates a String object called xmlDoc
    * After xmlDoc is fully constructed, the file is written to the (Linux) server. This is accomplished with the following:
    // writing the xmlDoc
    fileDest = "/home/ewh/XMLOUT/";
    fileName = "OrderEW_"\+orderNbr\+"_"\+ticketNbr\+".xml";
    FileWriter fstream = new FileWriter(fileDest+fileName);
    BufferedWriter out = new BufferedWriter(fstream);
    out.write(xmlDoc);
    out.close();
    * Next I insert a record into the log file with:
    // Add a record to the Oracle order_email table to let the mail process know that
    // a new xml file is ready to be e-mailed to operations.
    emailLogInsertQuery = " insert into ewh.order_email ( file_name, create_date ) ";
    emailLogInsertQuery += " values ('"\+fileName\+"', sysdate)";
    oraAction = oraStmt.executeUpdate( emailLogInsertQuery );
    All of this is working fine so far. Now, I have added a blob type field to the order_email table, but I have no idea what to stick in there so that I have everything that apex_mail.add_attachment needs.
    Here's a description of the order_email table:
    SQL> desc ewh.order_email;
    Name Type Nullable Default Comments
    FILE_NAME VARCHAR2(30) Y
    FILE_BLOB BLOB Y
    CREATE_DATE DATE Y
    SEND_DATE DATE Y
    Thanks ever so much,
    Gregory
    Edited by: Canis Polaris on Jun 10, 2009 2:10 PM - Added escapes as necessary to show the plus signs around Java variables.

    Hi,
    From within APEX one can enter blob data in database tables, view the data and also update the data. Also one can send a blob attachment in an email.
    May be you can follow a combination of the following OBEs to insert BLOB data and send BLOB data from APEX:
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31email.htm
    -Priyanka

  • Error inserting a Blob in the database

    Hi Everyone.
    I have a TABLE (Oracle) which has a Blob field, when I catalogue it the data type inside the BPM is Binary.
    Everything goes fine, but when I try to INSERT a row in that table I get the following exception:
    Caused by: java.lang.ClassCastException: fuego.sql.BlobImpl
         at oracle.jdbc.driver.OraclePreparedStatement.setBlob(OraclePreparedStatement.java:6466)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.setBlob(OraclePreparedStatementWrapper.java:126)
         at fuego.jdbc.FaultTolerantPreparedStatement.setBlob(FaultTolerantPreparedStatement.java:136)
         at fuego.sql.SQLUtils.setParameter(SQLUtils.java:424)
         at fuego.sql.SQLObject.setFldParams(SQLObject.java:465)
         at fuego.sql.SQLObject.setFldParams(SQLObject.java:455)
         at fuego.sql.TableSQLObject.update(TableSQLObject.java:909)
         at fuego.sql.TableSQLObject.implicitStore(TableSQLObject.java:378)
         at fuego.sql.TableSQLObject.store(TableSQLObject.java:340)
         at sun.reflect.GeneratedMethodAccessor480.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.sql.SQLObject.invoke(SQLObject.java:364)
         at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
         at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
         at OFERTAS_COMERCIALES.ABMOfertasNuevo.Default_1_0.Instance.CIL_testBLOG(Instance.xcdl:21)
    at OFERTAS_COMERCIALES.ABMOfertasNuevo.Default_1_0.Instance.CIL_testBLOG(Instance.xcdl)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
         ... 35 more
    The statement is
         TABLE.id = 1;
         TABLE.contenido =     at.contents
         store(TABLE)
    also tried:
    params as Any[] = []
    params[] = 1
    params[] = Binary(data : at.contents).data
    retVal as Int
    query as String = "INSERT INTO TABLE(id, contenido) VALUES (?,?)"
    extResource as String = "db"
    retVal = executeUpdate(DynamicSQL, sentence : query,
    implname : extResource,
    inParameters : params)
    and the result was the same.
    The select statments works fine.
    Any idea???
    I'm working with Studio Version: 10.3.2 Build: #100524
    Thanks in advance.
    Carlos

    Hi,
    Plz check the following thread, you may have the similar issue.
    Insert and Retrieve BLOB column with Oracle BPM
    Bibhu

  • Return the file name of the field type BLOB

    How can I create the PL/SQL procedure that return the file name of the file insert into the record with a field file_date BLOB.
    I have this table:
    TEST
    with this item:
    file_name varchar2(20)
    file_date blob
    example
    I have insert with the OraclePortal Form a record:
    file_date Upload the file c:\test1.pdf
    I want that the my PL/SQL procedure insert into the field
    file_name the value test1.pdf
    Regards
    Basilisco Giorgio

    You may be confused by the error in Excel saying “another user”. Actually Excel cannot tell who (the real human) is editing the file. Based on my research the No.1 possibility of the error is KB2626998.
    2626998  Connection to a network document is lost in the 2007 Office system or in Office 2010 after the computer resumes from standby
    http://support.microsoft.com/kb/2626998
    For Excel 2010, follow these steps:
    a.  Click Start , click Run , type regedit in the Open box, and then click OK .
    b.  Locate and then select the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options
    c.  On the Edit menu, point to New , and then click Dword Value .
    d.  Type NetworkAvailableTimeInSeconds , and then press Enter.
    e.  Right-click NetworkAvailableTimeInSeconds , and then click Modify .
    f.  In the Value data box, click Decimal , type a number value, and then click OK .
    Note This registry subkey sets the time, in seconds, that Excel waits for the network to resume. For example, if you type 15 for the number value, Excel waits 15 seconds for the network to resume. You might have to do some tests in your own environment to
    determine an appropriate value. You may have to try multiple numbers.
    g.  Locate and then select the following registry subkey.
    HKEY_CURRENT_USER\Software\Microsoft\office\14.0\common\Internet
    h.  Repeat step 2C through step 2F again. Reuse the same value that you used previously.
    i.  Exit Registry Editor.
    Feel free to post back. Thanks.
    Cheers,
    Tony Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please contact
    [email protected]

  • Inserting to BLOB from Forms 6i

    I need to take one of the following file types from a client machine and insert it into a BLOB column on the database:
    Word, Excel, PDF, MS Project, GIF or JPG
    I am using oracle forms 6i, the database is Oracle 9.2.
    To get the file into the form, I believe I need to have the blob column defined as an ole_container. To put the file into the container, I need something like this:
    :blob_name := GET_FILE_NAME('c:\');
    if :attchmnt_name is not null
         then
    Initialize_Container('ATTCHMNT_FILE',:blob_name);
    end if;
    Am I missing something here?

    Thanks for your response, Harish.
    Unfortunately, I am still unable to connect to the database under Forms 6i or SQL*Plus 8.0 (under Oracle - OraHome81).
    I have tried to modify the TNSnames.ora file as you suggested, but since there are several TNSnames.ora files under similar directory, I cannot be absolutely sure if I have modified the specific file that you intended me to. Below are the directories of the files that I tried to modify:
    * Oracle\OraDev\NET80\ADMIN
    * Oracle\OraAppSvr\NET80\ADMIN
    * Oracle\oraenterprise\NET80\ADMIN
    * Oracle\Ora81\NETWORK\ADMIN
    Enclosed is also the modification that I added in the TNSnames.ora:
    orcl.world =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = oracle.cba.uh.edu)
    (Port = 1521)
    (CONNECT_DATA = (SID = ORCL)
    Moreover, I am also not sure about your last suggestion to add environmental variable in the registry of Forms. I would really appreciate it if you can elaborate on this.
    Again, thanks very much for your help, Harish. I greatly appreciate it.

  • Insert a blob in remote database using dblink

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

    i have a view (it has a BLOB column) from where i need to select the records. After selecting i need to insert it into a synonym in the remote database through a db link.
    if i execute the procedure i get error; ora-22992--cannot use LOB locators selected from remote table. My code is
    INSERT INTO [email protected]
    SELECT PID,RNO, PTYPE,blob_field
    FROM view;
    I dont wish to creat a temporary table and still wish to perform the above function.
    So is there any method to do this. I tried with DBMS_LOB.APPEND but it didnt work out. Any solution will be greatly appreciated.
    Thanks,
    -Nitin

Maybe you are looking for

  • I can no longer find songs on itunes.  Want to revert back and company not responding to my angry commentary.  Please help.

    Itunes latest version makes it impossible to find the obscure songs I want.  Apple also appears to have removed the ability to sort according to different columns like popularity, artist, album, song length, etc.  Please help me find a way to find th

  • How does one remove a shape?

    I have put down a number of retangular SHAPEs in copper. Some went down correctly, some didn't. I seem to be unable to delete, or even edit, the undesirable shapes. The basic problem may be an inability to actually select the shape.  The procedures g

  • How can I force an ISP to refresh a file in proxy server cache?

    Hi all, In my applet I am getting a remote file. But with some ISP's I have the problem that when I try to get that file again I get the older version which they had in their proxy servers cache. Is it possible for me to enforce refresh on this ISP's

  • Clustor table in Query - SQ01

    Hi All I know that clustor tables can not be used in joins. Can any body please let me know how do I use data in table REGUP with joines. Also I want to know where can we use output of one infoset or SQ01 in other ?? Thanks in advance Sameer

  • Aligning Boolean Control to Plot Legend

    Any ideas on how best to align an array of tick boxes against a plot legend? I have a 1D array of Boolean controls and I want to use them to enable/disable the plots on a XY graph but I'm having problems getting the controls to line up with the legen