Migrating a table with BLOB column from one db to another

Hello everybody,
I have two databases D1 and D2. Each database contains table T1 (same structure in both databases). T has a BLOB column and is populated in D1. I have to move all the data from T database D1 into T database D2.
D1 and D2 are located on different machines. T in D1 is a huge table (milions of records). What is the best solution to migrate the T data between the 2 databases?
Any help will be appreciated.
Thank you in advance.
daniela

Depending on the version of the database you have, you could use transportable tablespaces.
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96524/c04space.htm#9370

Similar Messages

  • I can't import a table contains BLOB column  from one user to another user.

    1) I create two user both have connect role,and each has its own tablespace, DDL:
    create user d2zd identified by d2zd default tablespace d2zd quota unlimited on d2zd account unlock;
    grant connect to d2zd;
    create user d3zd identified by d3zd default tablespace d3zd quota unlimited on d3zd account unlock;
    grant connect to d3zd;
    2)Then enter oracle as d2zd and create a table contains BLOB column and insert data to the table.
    3) export d2zd as follow:
    exp d2zd/d2zd file=d2zd.dmp
    4) import to d3zd as follow:
    imp d3zd/d3zd fromuser=d2zd touser=d3zd file=d2zd.dmp
    the question is the table with BOLB colum can't be import,
    it says:have no privilege on tablespace d2zd.
    How can I import a table contains BLOB column from one user to another user?

    Hi - the reason for as our friend already told ist that a blob can be stored outside of the table segment, in another Tablespace, This is for performance reason.
    Sou you would need to have Quota on two tablespaces.
    the one which holds the table segment the other which holds the blob(segment).
    Regards
    Carl
    Message was edited by:
    kreitsch

  • Migrating a table with BLOB field from SQL-Server to Oracle.

    Hi All,
    I'm trying to create a Class to migrate data from SQL-Server to Oracle, this table has a BLOB field.
    The Code:
    package br.com.infox;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class Migrador {
         public static void main(String[] args){
              try {
                   // Conex�o com o SQL Server
                   Class.forName("net.sourceforge.jtds.jdbc.Driver");
                   Connection conSQL = DriverManager.getConnection ("jdbc:jtds:sqlserver://10.10.2.9/protocolo","prot","suinf2002");
                   // Conex�o com o Oracle
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   Connection conORA = DriverManager.getConnection ("jdbc:oracle:thin:@10.10.2.2:1521:des","protocolo","protocolo");
                   Statement stSQL = conSQL.createStatement();
                   String querySQL = "SELECT * FROM DOC_INCORPORADO";
                   ResultSet rsSQL = stSQL.executeQuery(querySQL);
                   String queryORA = "INSERT INTO PROT_VITALICIAMENTO (NU_PROCESSO, ANO_PROCESSO, CD_USUARIO, DT_ENVIO," +
                             "DE_COMPLEMENTO, NM_ARQUIVO, ARQUIVO, NU_SEQ, CD_TIPO_ARQUIVO, MES, ANO) VALUES (?,?,?,?,?,?,?,?,?,?,?)";
                   PreparedStatement psORA = conORA.prepareStatement(queryORA);
                   while (rsSQL.next()){
                        System.out.println("Linha: " + rsSQL.getRow());
                        psORA.setInt(1, rsSQL.getInt("nu_processo"));
                        psORA.setInt(2, rsSQL.getInt("ano_processo"));
                        psORA.setInt(3, rsSQL.getInt("cd_usuario"));
                        psORA.setDate(4, rsSQL.getDate("dt_incorporacao"));
                        psORA.setString(5, rsSQL.getString("complemento"));
                        psORA.setString(6, rsSQL.getString("nm_arquivo"));
                        psORA.setBinaryStream(7, rsSQL.getBinaryStream("arquivo"), (int)rsSQL.getBlob("arquivo").length());
                        psORA.setInt(8, rsSQL.getInt("num_seq"));
                        psORA.setInt(9, rsSQL.getInt("cd_tipo_arquivo"));
                        psORA.setInt(10, rsSQL.getInt("mes"));
                        psORA.setInt(11, rsSQL.getInt("ano"));
                        psORA.executeUpdate();
                   stSQL.close();
                   psORA.close();
                   conORA.close();
                   conSQL.close();
              } catch (Exception e){
                   e.printStackTrace();
    The ERROR:
    java.sql.SQLException: Exce��o de E/S: Connection reset
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
         at oracle.jdbc.ttc7.TTC7Protocol.handleIOException(TTC7Protocol.java:3668)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2191)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2064)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2989)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at br.com.infox.Migrador.main(Migrador.java:41)
    What's the problem of these Class?
    Thank's.

    Depending on the version of the database you have, you could use transportable tablespaces.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96524/c04space.htm#9370

  • Drag a column from one position to another within the table.

    Hello All,
    In Web Dynpro Java, Is it possible to provide user a functionality with which he/she can move the columns of a table from one position to another ?
    Scenario : Users want flexibility to decide the location the columns as per their convinience while they are working with the application.
    So can we develop some code or can we use some UI element so that user is able to drag a column from one position to another within the table.
    Regards
    Mrinalini.

    Hi Mrinalini,
    Yes this is possible you can try to move the table columns (Change the order). for this you don't need to do additional coding or property change its a default property for web Dynpro java tables.
    Regards
    Jeetendra

  • Error while importing a table with BLOB column

    Hi,
    I am having a table with BLOB column. When I export such a table it gets exported correctly, but when I import the same in different schema having different tablespace it throws error
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "CMM_PARTY_DOC" ("PDOC_DOC_ID" VARCHAR2(10), "PDOC_PTY_ID" VAR"
    "CHAR2(10), "PDOC_DOCDTL_ID" VARCHAR2(10), "PDOC_DOC_DESC" VARCHAR2(100), "P"
    "DOC_DOC_DTL_DESC" VARCHAR2(100), "PDOC_RCVD_YN" VARCHAR2(1), "PDOC_UPLOAD_D"
    "ATA" BLOB, "PDOC_UPD_USER" VARCHAR2(10), "PDOC_UPD_DATE" DATE, "PDOC_CRE_US"
    "ER" VARCHAR2(10) NOT NULL ENABLE, "PDOC_CRE_DATE" DATE NOT NULL ENABLE) PC"
    "TFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS"
    " 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TS_AGIMSAPPOLOLIVE030"
    "4" LOGGING NOCOMPRESS LOB ("PDOC_UPLOAD_DATA") STORE AS (TABLESPACE "TS_AG"
    "IMSAPPOLOLIVE0304" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE L"
    "OGGING STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEF"
    "AULT))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TS_AGIMSAPPOLOLIVE0304' does not exist
    I used the import command as follows :
    imp <user/pwd@conn> file=<dmpfile.dmp> fromuser=<fromuser> touser=<touser> log=<logfile.log>
    What can I do so that this table gets imported correctly?
    Also tell me "whether the BLOB is stored in different tablespace than the default tablespace of the user?"
    Thanks in advance.

    Hello,
    U can either
    1) create a tablespace with the same name in destination where you are trying to import.
    2) get the ddl of the table, modify the tablespace name to reflect the existing tablespace name in destination and run the ddl in the destination database, and run your import command with option ignore=y--> which will ignore all the create errors.
    Regards,
    Vinay

  • Move column from one place to another..

    Hi
    I need to  arrange the order in which the columns are displayed in my ALV Grid displayed so that i can move the columns from one position to another but its not been allowed in the program so could u pls suggest which field needs to be set for this?
    Regards
    Gunjan

    Hi
    You can use the following statement
    ls_fcat-col_pos           =  01.
    By using this you can fix your column position
    or else to sort the column try like this
    sort-spos = '10'.
    SORT-FIELDNAME = 'Years'.
    SORT-TABNAME = 'DATA_TAB2'.
    sort-UP = 'X'.
    sort-subtot = 'X'.
    SORT-GROUP = '* '.
    APPEND SORT. CLEAR SORT.
    In the It_SOET internal table write:
    IT_SORT-Group = 'X'.
    REPORT  ZSDN                                    .
    TABLES : ekkn,ekko,EKPO,EKET,VBEP,LFA1.
    TYPE-POOLS : slis, ICON.
    DATA : DATE1 TYPE SY-DATUM.
    data : begin of itab occurs 0,
          VBELN like ekkn-VBELN, "SALE ORDER
          VBELP LIKE EKKN-VBELP, "LINE ITEM
          BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE
          KUNNR LIKE VBAK-KUNNR, "SOLD TO PARTY
          VBELN1 like VBEP-VBELN, "SALE ORDER1
          POSNR1 LIKE VBEP-POSNR, "LINE ITEM
          EDATU LIKE VBEP-EDATU, "END DATE
          EMATN LIKE EKPO-EMATN, "STATUS
          BMENG LIKE VBEP-BMENG, "DAYS
          TDDAT LIKE VBEP-TDDAT, "START DATE
          LMENG LIKE VBEP-LMENG, "DAYS -START DATE
          LABNR LIKE EKPO-LABNR, "STATUS
          PLNUM LIKE VBEP-PLNUM, "OVERALL STATUS
          EKGRP like ekko-EKGRP, "PURCHASING GROUP
          EBELN LIKE EKKN-EBELN, "PO NO
          EBELP like ekkn-EBELP, "LINE ITEM
          EINDT LIKE EKET-EINDT, "DELIVERY DATE
          MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
          TXZ01 LIKE EKPO-TXZ01, "MATERIAL TEXT
          LIFNR LIKE EKKO-LIFNR, "VENDOR
          MENGE LIKE EKPO-MENGE, "QUANTITY
          WEMNG LIKE EKET-WEMNG, "GR QTY
          WAMNG LIKE EKET-WAMNG, "BAL QTY
          MEINS LIKE EKPO-MEINS, "OUn
          NETPR LIKE EKPO-NETPR, "PRICE
          LOEKZ LIKE EKPO-LOEKZ, "DELETED
          LIFNR1 LIKE LFA1-LIFNR, "VENDOR
          NAME1 LIKE LFA1-NAME1, "VENDOR NAME
          WERKS LIKE EKPO-WERKS, "PLANT
          end of itab.
    DATA : BEGIN OF it_final OCCURS 0,
          KUNNR LIKE VBAK-KUNNR, "SOLD TO PARTY
          LABNR LIKE EKPO-LABNR, "STATUS
          EMATN LIKE EKPO-EMATN, "STATUS
          VBELN like ekkn-VBELN, "SALE ORDER
          VBELP LIKE EKKN-VBELP, "LINE ITEM
          BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE
          EDATU LIKE VBEP-EDATU, "END DATE
          TDDAT LIKE VBEP-TDDAT, "START DATE
          PLNUM LIKE VBEP-PLNUM, "OVERALL STATUS
          EKGRP like ekko-EKGRP, "PURCHASING GROUP
          EBELN LIKE EKKN-EBELN, "PO NO
          EBELP like ekkn-EBELP, "LINE ITEM
          EINDT LIKE EKET-EINDT, "DELIVERY DATE
          MATNR LIKE EKPO-MATNR, "MATERIAL NUMBER
          TXZ01 LIKE EKPO-TXZ01, "MATERIAL TEXT
          NAME1 LIKE LFA1-NAME1, "VENDOR NAME
          MENGE LIKE EKPO-MENGE, "QUANTITY
          WEMNG LIKE EKET-WEMNG, "GR QTY
          WAMNG LIKE EKET-WAMNG, "BAL QTY
          MEINS LIKE EKPO-MEINS, "OUn
          NETPR LIKE EKPO-NETPR, "PRICE
          WERKS LIKE EKPO-WERKS, "PLANT
    END OF it_final.
    DATA: color TYPE TABLE OF lvc_s_scol WITH HEADER LINE,
          st_layout TYPE slis_layout_alv.
    DATA : fcat TYPE slis_t_fieldcat_alv,
          ls_fcat LIKE LINE OF fcat,
          fheader TYPE TABLE OF slis_listheader WITH NON-UNIQUE DEFAULT KEY
          WITH HEADER LINE INITIAL SIZE 0.
    DATA :i_repid LIKE sy-repid,
         gs_layout   TYPE slis_layout_alv,
         week type n.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: zso FOR ekkn-vbeln.
    SELECT-OPTIONS: zpgr FOR ekko-EKGRP.
    SELECT-OPTIONS: ZPL FOR EKPO-WERKS.
    SELECTION-SCREEN END OF BLOCK bk1.
    gs_layout-colwidth_optimize = 'X'.
    select A~VBELN
          A~VBELP
          A~EBELN
          A~EBELP
          B~MATNR
          B~TXZ01
          B~MENGE
          B~MEINS
          B~NETPR
          B~WERKS
          B~LOEKZ
          C~EINDT
          C~WEMNG
          D~EKGRP
          D~LIFNR
          D~BEDAT
          INTO CORRESPONDING FIELDS OF TABLE ITAB
          FROM EKKN AS A
          INNER JOIN EKPO AS B ON A~EBELN = B~EBELN
          AND A~EBELP = B~EBELP
          INNER JOIN EKET AS C ON A~EBELN = C~EBELN
          AND A~EBELP = C~EBELP
          INNER JOIN EKKO AS D ON A~EBELN = D~EBELN
          WHERE A~VBELN IN ZSO
          AND D~EKGRP IN ZPGR
          AND B~WERKS IN ZPL.
    LOOP AT ITAB.
    ITAB-WAMNG = ITAB-MENGE - ITAB-WEMNG.
    SELECT SINGLE VBELN KUNNR
    FROM VBAK INTO (ITAB-VBELN , ITAB-KUNNR )
    WHERE VBELN = ITAB-VBELN.
    SELECT SINGLE VBELN EDATU
    FROM VBEP INTO (ITAB-VBELN , ITAB-EDATU)
    WHERE VBELN = ITAB-VBELN.
    DATE1 =  SY-DATUM.
    ITAB-BMENG = ITAB-EDATU - DATE1.
    if itab-BMENG  < 0.
       ITAB-EMATN = 'OVER DUE'.
    elseif itab-BMENG ge 0 AND itab-BMENG le 10.
       ITAB-EMATN = 'CRITICAL'.
    elseif itab-BMENG > 10.
       ITAB-EMATN = 'UNDER FOLLOW-UP'.
    endif.
    SELECT SINGLE VBELN POSNR TDDAT
    FROM VBEP INTO (ITAB-VBELN1 , ITAB-POSNR1 , ITAB-TDDAT)
    WHERE VBELN = ITAB-VBELN AND
    POSNR = ITAB-VBELP.
    ITAB-LMENG = ITAB-TDDAT - DATE1.
    if itab-LMENG  < 0.
       ITAB-LABNR = 'OVER DUE'.
    elseif itab-LMENG ge 0 AND itab-LMENG le 10.
       ITAB-LABNR = 'CRITICAL'.
    elseif itab-LMENG > 10.
       ITAB-LABNR = 'UNDER FOLLOW-UP'.
    endif.
    IF ITAB-WAMNG LE 0 OR
        ITAB-LOEKZ = 'L' OR
        ITAB-LOEKZ = 'S'.
        ITAB-PLNUM = 'CLOSED'.
    ELSE.
        ITAB-PLNUM = 'OPEN'.
    ENDIF.
    SELECT SINGLE LIFNR NAME1
    FROM LFA1 INTO (ITAB-LIFNR1 , ITAB-NAME1)
    WHERE LIFNR = ITAB-LIFNR.
    MODIFY ITAB.
    ENDLOOP.
    loop at itab.
       move-corresponding itab to it_final.
       append it_final.
    endloop.
    perform edit_mask.
    i_repid = sy-repid.
    PERFORM fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program      = i_repid
         i_callback_user_command = 'USER_COMMAND'
         it_fieldcat             = fcat
         i_save                  = 'A'
       TABLES
         t_outtab                = it_final
       EXCEPTIONS
         program_error           = 1
         OTHERS                  = 2.
    *&      Form  fieldcat
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fieldcat .
    MOVE sy-repid TO i_repid.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-decimals_out = 2.
    ls_fcat-col_pos = 1.
    ls_fcat-fieldname = 'KUNNR'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Sold to Party'.
    ls_fcat-emphasize = 'C310'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  6.
    ls_fcat-fieldname = 'LABNR'.
    ls_fcat-outputlen = 20.
    ls_fcat-seltext_m = 'Window Start Status'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C510'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  5.
    ls_fcat-fieldname = 'EMATN'.
    ls_fcat-outputlen = 15.
    ls_fcat-seltext_m = 'Window End Status'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C410'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  2.
    ls_fcat-fieldname = 'VBELN'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Sale Order'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C710'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  3.
    ls_fcat-fieldname = 'VBELP'.
    ls_fcat-outputlen = 5.
    ls_fcat-seltext_m = 'Item'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C710'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  4.
    ls_fcat-fieldname = 'EBELN'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Number'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C710'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  7.
    ls_fcat-fieldname = 'EBELP'.
    ls_fcat-outputlen = 5.
    ls_fcat-seltext_m = 'PO Item'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  8.
    ls_fcat-fieldname = 'EKGRP'.
    ls_fcat-outputlen = 3.
    ls_fcat-seltext_m = 'Pur.Group'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  9.
    ls_fcat-fieldname = 'BEDAT'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Doc.Date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  10.
    ls_fcat-fieldname = 'EINDT'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Delivery Date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  11.
    ls_fcat-fieldname = 'MATNR'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Material Number'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  12.
    ls_fcat-fieldname = 'TXZ01'.
    ls_fcat-outputlen = 15.
    ls_fcat-seltext_m = 'Description'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  13.
    ls_fcat-fieldname = 'NAME1'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Vendor'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C110'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  14.
    ls_fcat-fieldname = 'MENGE'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Quantity'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  15.
    ls_fcat-fieldname = 'WEMNG'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Quantity Recvd'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  16.
    ls_fcat-fieldname = 'WAMNG'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Bal Qty'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  17.
    ls_fcat-fieldname = 'MEINS'.
    ls_fcat-outputlen = 2.
    ls_fcat-seltext_m = 'OUn'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  18.
    ls_fcat-fieldname = 'NETPR'.
    ls_fcat-outputlen = 8.
    ls_fcat-seltext_m = 'NetPrice'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  19.
    ls_fcat-fieldname = 'TDDAT'.
    ls_fcat-outputlen = 15.
    ls_fcat-seltext_m = 'Window Start date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  20.
    ls_fcat-fieldname = 'EDATU'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'Window End date'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  21.
    ls_fcat-fieldname = 'PLNUM'.
    ls_fcat-outputlen = 10.
    ls_fcat-seltext_m = 'PO Status'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C610'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ls_fcat-col_pos           =  22.
    ls_fcat-fieldname = 'WERKS'.
    ls_fcat-outputlen = 5.
    ls_fcat-seltext_m = 'Plant'.
    ls_fcat-tabname = 'IT_FINAL'.
    ls_fcat-emphasize = 'C210'.
    APPEND ls_fcat TO fcat.
    clear ls_fcat.
    ENDFORM.                    " fieldcat
    *&      Form  edit_mask
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM edit_mask .
    loop at it_final.
       CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
         EXPORTING
           INPUT  = it_final-vbeln
         IMPORTING
           OUTPUT = it_final-vbeln.
    Read table it_final.
    *  modify it_final.
    endloop.
    ENDFORM.                    " edit_mask
    Reward all helpfull answers
    Regards
    Pavan

  • How to read/write a binary file from/to a table with BLOB column

    I have create a table with a column of data type BLOB.
    I can read/write an IMAGE file from/to the column of the table using:
    READ_IMAGE_FILE
    WRITE_IMAGE_FILE
    How can I do the same for other binary files, e.g. aaaa.zip?

    There is a package procedure dbms_lob.readblobfromfile to read BLOB's from file.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#sthref3583
    To write a BLOB to file you can use a Java procedure (pre Oracle 9i R2) or utl_file.put_raw (there is no dbms_lob.writelobtofile).
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1559124855641433424::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:6379798216275

  • Sample insert into table with BLOB column

    This is my first opportunity to work with BLOB columns. I was wondering if anyone had some sample code that shows the loading of a blob column and inserted into the table with a blob column.
    I have to produce a report (including crlf) and place it into a blob column. The user will download the report at a later time.
    Any suggestions / code samples are greatly appreciated!!!!

    You can enable string binding in TopLink.
    login.useStringBinding(int size);
    or you could enable binding in general,
    login.bindAllParameters();

  • URGENT: How to selectively migrate composite instances and task data from one env to another

    Gurus,
    We've come across a situation whereby we need to migrate instance data (including Human Task related) of some specific composites from one environment to another.
    (Environment is equivalent here to a different domain installation on different physical server.)
    Is this possible in some standard way like using Oracle import-export utility or script?
    If not, how can this be achieved?
    Thanks in advance for any help you can provide on this.
    With regards-
    Ashish

    Hi,
    If your SharePoint environment supports InfoPath Forms, then you can customize the form and add rules to make the list items as read only when user A submits the form.
    you can then write a form load event to check the logged in user using username() function. This logic can be implemented in variety of ways, like setting a flag when User A submits the form, or storing user A username in a form variable etc., else comparing
    User A and User B values within form Load event.
    Another way of doing this is using Views or grouping all of the User A fields within a section etc.,
    The above would take care of Form logic, and for the workflow, you can use SharePoint designer to create a custom workflow, where it will run on onItemCreate and onItemChange events.
    The logic for workflow would be if the form Submitted for the first time, the workflow will start and send an email to User B, and when User B submits the Data then onItemChange change event will start the workflow to send an email to approver to approve
    the data.
    here are some links for your reference -
    http://office.microsoft.com/en-us/infopath-help/add-formulas-and-functions-in-infopath-2010-HA101821255.aspx
    http://office.microsoft.com/en-us/videos/video-create-an-approval-workflow-in-sharepoint-designer-2010-VA101897477.aspx
    http://blogs.technet.com/b/meacoex/archive/2010/11/01/get-manager-approval-in-sharepoint-designer-2010-step-by-step.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Best LKM to move data from with in Oracle from one schema to another Schema

    Hi Gurus,
    What is the best KM to move data from one schema to another schema within same oracle database.
    Thanks in advance

    Dear,
    If your source and target are on the same database server then you dont need LKM.
    You have to 1. create one data server for the database server
    2. Create one physical schema for your source and another physical schema for your target under the above created data server.
    3. Then create models for each above created physical schema
    In this case you just need IKM knowledge module
    Please refer http://oditrainings.blogspot.in/2012/08/odi-interface-source-target-on-same.html
    If your source and target are on different server then you must create two different data servers in topology. You have to use LKM.
    The best LKM to use is LKM oracle to Oracle dblink. But you should have proper grants to use it
    If your source has very few records you can go with LKM SQL to Oracle other wise use LKM oracle to Oracle dblink

  • Migrating CMP EJB mapped to SQL Server table with identity column from WL

    Hi,
        I want to migrate an application from Weblogic to SAP Netweaver 2004s (7.0). We had successfully migrated this application to an earlier version of Netweaver. I have a number of CMP EJBs which are mapped to SQL Server tables with the PK as identity columns(autogenerated by SQL Server). I am having difficulty mapping the same in persistant.xml. This scenario works perfectly well in Weblogic and worked by using ejb-pk in an earlier version of Netweaver.
       Please let me know how to proceed.
    -Sekhar

    I suspect it is the security as specified in the message. E.g .your DBA set the ID columns so no user can override values in it.
    And I suggest you 1st put the data into a staging table, then push it to the destination, this does not resolve the issue, but ensures better processing.
    Arthur
    MyBlog
    Twitter

  • How to know exact size of table with blob column

    I have a table with one BLOB column. I ran this query.
    select bytes/1024/1024 from user_segments where segment_name='GMSSP_REQUEST_TEMP_FILES'
    (user_segments is a view)
    it gave me 0.125
    It means size of table is 0.125. I have uploaded 3 files to this table. Each of them is of 5 mb. After that I check size of table. but result was same. i.e 0.125.
    Can any body tell me how to know exact amount of space consumed by files. I am expecting following result
    size should be (5+5+5+0.125)MB
    Any help is appreciated.
    Thanks.
    Akie

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • ORA-03237 when creating table with BLOB columns on Oracle 9i

    I am playing with my new Oracle 9i database. I am trying to copy
    tables from my 8.1.6 db. Three tables won't create due to this
    new message. The 9i documentation says it's soemthing to do with
    freelist groups but my DBA says he hasn't set up any.
    The tablespace is one of these newfangled locally managed
    tablespaces (predetermined size 8k).
    I can create these tables if I change the BLOB column to datatype
    VARCHAR2(4000).
    I have raised this through the usual channels, but I thought I'd
    try this site as well.
    Cheers, APC

    victor_shostak wrote:
    Figured, Virtual Columns work only for Binary XML.They are only supported, currently, for Binary XML.

  • Calculate size of table with BLOB column

    Hello,
    when trying to calculate the occupied space for a table, I'm using DBA_SEGMENTS, which works fine as long as the table does not have a BLOB column.
    As far as I can tell, the size of the BLOB data is stored with the SEGMENT_TYPE = 'LOBSEGMENT', but I cannot find a view that tells me which DBA_SEGMENT row belongs to the BLOB column in the table I'm checking.
    To give you an example:
    select sum(BYTES)
    from DBA_SEGMENTS
    where owner = user
    and segment_name = 'MY_TABLE'
    group by SEGMENT_NAMEreturns 262144
    running:
    SELECT sum(length(blob_column))
    FROM my_tablereturns 821333
    There are entries in DBA_SEGMENTS for my user with the type LOBSEGMENT, but I cannot find a way to map the correct DBA_SEGMENTS row to the table I am checking.
    Any ideas?
    I'm using Oracle 10.2.0.3.0 on Redhat
    Thanks in advance
    Thomas

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_1092.htm#i1581211
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:266215435203#993030200346552097

  • Import table with BLOB Column

    hi
    I would like to export table "A" containing data in BLOB column and then import the same table into another user's table "B".
    i got the following error
    ORA-06502PL/SQL: numeric or value error

    When you export from one user's table A to another user table B. you should have privilege to import from the user X.
    Do this
    exp system/password file=filename.dmp log=filename.log tables=A owner=X
    exp scott/tiger file=emp.dmp tables=(emp,dept)
    imp scott/tiger file=emp.dmp full=yes
    imp system/password file=filename.dmp log=filename1.log fromuser=X touser=Y tables=A
    Now table A is imported into Y schema. drop the table B(if you do not need old table B) then rename table A to B.
    If you need old data in Table B then generate insert statements for the data and insert them into new table B

Maybe you are looking for

  • Connecting a external hard drive to airport extreme

    im having some issues here i just got the airport extreme and i got it set up then once i tried to plug in my external HD and i go into the airport utility to set it up. but it says there is no base station plugged in. and i try rescan and it still c

  • Benefits Service - Error occurred during currency conversion from  to USD

    I am attempting to run the add beneficiaries service in employee self servie and receive the following error message "Error occurred during currency conversion from blank to USD Has anyone come across this error before?

  • How to execute the method of a class loaded

    Hi, I have to execute the method of com.common.helper.EANCRatingHelper" + version version may be 1,2, etc if version = 1 the class is com.common.helper.EANCRatingHelper1; Iam able to load the class using following code.But iam unable to execute the m

  • Can't add JMS topics using weblogic.Admin

    I have seen a similar problem being mentioned before on this board, except it occurred more directly through management APIs. I'm working with Weblogic 6.1, and trying to create a JMSTopic from command-line using weblogic.Admin First I create a JMSSe

  • Branching quiz

    I am trying to create a course that has two versions of a short quiz, one in English and one in Finnish. Unfortunately, I can't seem to get the settings right so that the learner can choose which quiz to take and so that the score for the quiz that t