XML script to copy data from one repository to another

Hi all,
a customer wants an xml script that copy all data from the repository A to the repository B. I think that this is not possible to do this with an xml script, because the script tags (add-item, update-item, query-item, import-item, load-item, remove-item) seems don't give this feature. The same for RQL, that doesn't give you a command like "SELECT INTO".
But what i'm asking is: Is there a way to run the copy using the repository script tags?
Thanks.
Edited by: user10980894 on 11-lug-2011 3.33

Please elaborate , If what you need is to copy data from between two dissimliar repositories then it is not possible , but if a and b are having the same structure then you might be able to do that using the following and tweaking the generated xml
Both the repositories should have the same structure and name , please follow the below commands and you will be able to export the data in below format , see if this is all you want
export using
bin/startSQLReository -m module -export all outputfile.xml -repository repositoryA
Change the reference to repositoryA in the file
import using
bin/startSQLRepository - m module - import outputfile.xml -repository repositoryB
<add-item item-descriptor="priceList" id="plist4350003">
<set-property name="description"><![CDATA[Group of Thirteen States which is generally called as L13 in AT&T]]></set-property>
<set-property name="displayName"><![CDATA[L13]]></set-property>
<!-- export is false <set-property name="version"><![CDATA[7]]></set-property> -->
<set-property name="basePriceList"><![CDATA[listPrices]]></set-property>
<set-property name="creationDate"><![CDATA[9/3/2010 07:38:49]]></set-property>
<set-property name="lastModifiedDate"><![CDATA[9/10/2010 17:02:09]]></set-property>
<set-property name="itemAcl"><![CDATA[Admin$role$administrators-group:list,write,write_owner,write_acl,read_owner,destroy,read_acl,read;Admin$role$everyone-group:list,read]]></set-property>
</add-item>
please refer to this section of ATG Repository guide for further info

Similar Messages

  • What are the diffrent ways to copy data from one application to another?

    Hi,
    Can you guys tell me what are the different ways to copy data from one application to another application??
    I know we can do it through script logic using DESTINATION_APP.
    Is there any other way to copy data from one application to another application?
    Please help me
    Thanks,
    Charly

    You can also call a custom DTSX package in SSIS via the datamanager.
    there are at least 5 ways of transfering data in BPC between apps.
    1. Through the front end (excel etc) via evdre/evsnds
    2. Through Script logic using *Dest App
    3. Using BPC's standard export dtsx package via DM
    4. Using SSIS using BPC's custom SSIS tasks
    5. Through Script logic using stored procs.
    i am sure people will come up with more.
    remember if you use ssis and move data into any table but the wb, you need to process the cube afterwards.

  • T code to Copy Data from one table to another table

    Hi,
    I want copy all data of one table to its copy table. Anyone knows transaction code to copy data from one table to another table.
    Regards,
    Jigar Thakkar.

    Hi
    Create a small program.
    Extract data from T1 - database table and put it in one internal table - itab1.
    loop the itab1 data .............
        insert itab1 into tab2.   (tab2 - second database table)
    endloop.
    try this....
    hope it works....

  • Copy data from one Table to another Table

    How can I copy data from one Oracle Table to another Oracle Table on a different server? Question 2: How can I clear all of the data in one Table with a single SQL script?
    Thanks...

    Question 1:
    I assume you have the privileges. If you don't, ask the DBA to give them to you. Then
    1. Login to database_source (It could be either the source or the target. Let's assume it's the source.)
    2. Create a database link to database_target: CREATE DATABASE LINK link_to_database_target CONNECT TO myuserid IDENTIFIED BY mypassword USING 'database_target'; Note the single quotes.
    3. Copy the table data: INSERT INTO targetowner.mytable@link_to_database_target SELECT * FROM sourceowner.mytable; COMMIT;
    Question 2:
    You have two options, but you may not have privileges for both.
    Option 1:
    DELETE FROM tableowner.tablename; COMMIT;
    Advantage: Since this is a DML (Data Manipulation Language) statement, you have to commit the transaction. Also, the data will be gone but the table size is NOT changed, so it's ready for accepting replacement data. DML statements can simply be executed not only from SQL scripts, but from PL/SQL scripts as well.
    Disadvantage: Slow, because all record deletion is logged, so you can recover from it by issuing a ROLLBACK; instead of the COMMIT; above. The table size is NOT changed, so if you are short of disk space or tablespace space, you have not resolved the issue.
    Option 2:
    TRUNCATE TABLE tableowner.tablename;
    Advantage: Since this is a DDL (Data Definition Language) command, you do NOT have to commit the transaction. (DDL commands automatically commit both before and after their execution.) The table size will be changed back to the initial extent size which is the minimum size a table can have and can only be set when the table is created. If it needs to be changed, the table has to be dropped and recreated with a different initial extent size. The statement execution of this command is not logged, therefore it's much faster then the DELETE.
    Disadvantage: No rollback. Being a DDL, this command cannot be executed straight from PL/SQL. If you need to issue this within PL/SQL, you will have to use dynamic SQL.

  • Copy documents from one repository to another

    Hi all
    We have a scenario. We need to copy content from one repositoy to another when
    1.  a new document is created.
    2. the same document is updated. (replication should happen automatically, immediately)
    Is it possible? If yes, how?
    Regards
    Aparnna

    Hi
    I have done all the configurations according to the following document
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/802c1739-d270-2910-ad9f-f369de07c1bf">Link to the document</a>
    But the current status of the offer is still "ICE_INITIAL"
    Please help me to sort this out
    Regards
    Aparnna

  • How to copy data from one table to another (in other database)

    Hi. I would like to copy all rows from one table to another (and not use BC4J). Tables can be in various databases. I have already 2 connections and I am able to browse source table using
    ResultSet rset = stmt.executeQuery("select ...");
    But I would not like to create special insert statement for every row . There will be problems with date formats etc and it will be slow. Can I use retrieved ResultSet somehow ? Maybe with method insertRow, but how, if ResultSet is based on select statement and want to insert into target table? Please point me in the right direction. Thanks.

    No tools please, it must be common solution. We suceeded in converting our BC4J aplication to PostgreSQL, the MSSQL will be next. So we want to write simple aplication, which could transfer data from our tables between these 3 servers.

  • Copying data from one table to another table thru java

    Hi
    I have to copy data from table emp in Database A to table emp in Database B. My input would be table name and number of rows to be fetched. these rows i need to insert in table B.
    The problem over here is I won't be having any info. of table emp i.e the number of columns it has and their type.
    So is their any way i can copy the data from one table to other without having the info abt the number of cols and their type.
    TIA

    Cross post - http://forum.java.sun.com/thread.jspa?threadID=5169293&messageID=9649839#9649839

  • Copy data from one table to another

    Hello everyone,
    I have a student table with fields sno, sname. I created another table student1 with same fields sno, sname and with one new field class.
    Now i want to copy data from sno, sname of student table to sno, sname of student1 table when the class field in styudent1 has no data i.e., its null.
    Could any one let me know how to do this?
    Thanks,
    Prathima

    i want to copy data from sno, sname of student table to sno, sname
    of student1 table when the class field in styudent1 has no dataSo what is the join condition? What column in STUDENT1 tells us what row in STUDENT to copy?
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Copy data from one schema to another schema tables

    Hi,
    I was doing a copy using sql developer copy feature, data copy worked perfect but for few table data didn't move there are about 30 tables from schema prod to schema dev i need to move tables are already created only data needs to be moved from prod to dev
    Can you suggest me any method were I can move all the tables data at a time from one schema to another. Please suggest.
    Thanks
    Sudhir

    Hi,
    If table structure is the same then:
    insert into dev.table_name
    select
    from
      prod.table_name  --if prod is in another database change to prod.table_name@db_link_to_prod_db
    commit
    ;Hope this helps. Otherwise give some more info about where these schema's are.
    Regards,
    Peter

  • How to copy data from one BB to another via Desktop Manager

    I've got two BBs (8900 and 9300), both actively in use and with different data (contacts, memos, etc.) on them.
    I need to copy my tasks, memos and contacts from 8900 to 9300. I tried "switch phones" option, but it substitutes data, while I need to syncronize it, so that data from 8900 is added to what is currently is on the 9300. 
    Is it possible to do it via Desktop Manager? It seems there was somewhere an option "copy data from another BB", but I can't find it in the latest Desktop Manager version.

    You would need to use Desktop Mangaer to sync BB1 with a local PIM program (such as Outlook or Lotus Notes) to get the information off BB1. Then use Desktop Manager to sync BB2 with the same PIM program. 

  • Copying data from one table to another, but not duplicate

    Good afternoon!
    I am new to Oracle SQL, I have a difficulty.
    I have a script that copies or add another table with data from another table.
    If the table already has 01 "Registry 01" when you make a copy of the data in table 02, can not duplicate the "Registry 01" again.
    As the table already exists since the beginning of the year before last and duplicate information, I can not apply the UNIQUE constraint because of the error. I have to make this change from now.
    How to perform this validation so that no duplicate data?
    DECLARE
    w_cont NUMBER;
    CURSOR c_simpro IS
    SELECT sc.cd_simpro,
    sc.ds_produto,
    sp.qt_embalagem,
    MAX(sp.dt_vigencia)
    FROM simpro_cadastro sc,
    simpro_preco sp
    WHERE sc.cd_simpro = sp.cd_simpro
    GROUP BY sc.cd_simpro,
    sc.ds_produto,
    sp.qt_embalagem;
    BEGIN
    FOR r_simpro IN c_simpro LOOP
    w_cont := 0;
    SELECT COUNT(1)
    INTO w_cont
    FROM pls_material pm
    WHERE pm.cd_material_ops = r_simpro.cd_simpro;
    IF w_cont = 0 THEN
    INSERT INTO pls_material(nr_sequencia,
    dt_atualizacao,
    nm_usuario,
    dt_atualizacao_nrec,
    nm_usuario_nrec,
    ie_tipo_despesa,
    cd_estabelecimento,
    nr_seq_estrut_mat,
    cd_simpro,
    ds_material,
    ie_situacao,
    ds_material_sem_acento,
    dt_inclusao,
    cd_material_ops_orig,
    cd_unidade_medida,
    cd_material_ops,
    qt_conversao_simpro)
    VALUES(pls_material_seq.nextval,
    SYSDATE,
    'ES-SIMPRO',
    SYSDATE,
    'ES-SIMPRO',
    3,
    1,
    3,
    r_simpro.cd_simpro,
    r_simpro.ds_PRODUTO,
    'A',
    r_simpro.ds_PRODUTO,
    SYSDATE,
    r_simpro.cd_simpro,
    'un',
    TRIM(to_char(r_simpro.cd_simpro,'0000099999')),
    r_simpro.qt_embalagem);
    COMMIT;
    END IF;
    IF w_cont > 0 THEN
    UPDATE pls_material p
    SET p.qt_conversao_simpro = r_simpro.qt_embalagem,
    p.dt_atualizacao = SYSDATE
    WHERE p.cd_simpro = r_simpro.cd_simpro;
    COMMIT;
    END IF;
    END LOOP;
    END;
    Edited by: 983464 on 22/01/2013 10:30

    Hi,
    in addition to what Marwin has already said, I suggest you to post CREATE TABLE and INSERT statements (as mentioned in the FAQ).
    The error you are getting from MERGE command is because you need a way to uniquely identify within the table. So it's is important to know also if your table has a primary key/unique index so the keys could to be used in the MERGE command.
    Additionally when you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Copying data from one HD to another problem

    No matter what data I try to copy from one of my Firewire HDs to another I get this error message: The Finder cannot complete the operation because some data in ".DS_Store" could not be read or written. (Error code -36)
    Any ideas??
    thanks,
    burger

    burger-
    Is this from one particular drive to another, or from any of the drives to any other of the drives? Are these FW400 or 800 drives or a combination?
    If it is one drive that should make it easy to find the culprit. If it isn't, then you may want to try repairing permissions on all of the drives including your boot drive.
    "DS_Store" I have seen before but I just can't seem to remember where or why. I will keep the gears turning.
    Luck-
    -DaddyPaycheck

  • Copy data from one sheet to another based on content of popup menu

    I'm trying to create a spreadsheet to help teachers grade students during reading time in my school.  If you're interested in the specifics of it, the long version is in the following paragraph:
    I work in a high school, and 10% of each student's English class grade is supposed to come from reading during what is called "Enrichment time," a 20-minute daily reading time.  This occurs at the beginning of the second period of the school day.  With a few rare exceptions, students are not in their English teacher's class for this reading time; their 2nd period teacher, whether a teacher of math, science, English, or history, or whatever, records a daily grade for each student, based on whether or not the student is reading during enrichment time. In the past, teachers have recorded the grade of each student on a separate sheet of paper, then gone to the teachers' lounge and sorted through their students' grade sheets, putting each student's sheet into a folder for the student's English teacher to grade. Next year every teacher will have an iPad, so I'm trying to create a cloud-shared numbers spreadsheet that could help solve the problem of teachers not communicating well.  I've settled upon the solution of giving each teacher with a 2nd period Enrichment group access to a spreadsheet that would be accessible to all the English teachers as well.  The enrichment teacher would enter the students' names on teh far left hand side, then with each student's name the teacher's name would be indicated in a popup menu.  The first sheet is where the 2nd period enrichment teacher would enter the data, and then the different English teachers would, ideally, have a separate sheet with only their students populating that sheet. 
    tl;dr:
    I need sheet 2 to be populated with whole rows of data from sheet 1, and I want sheet 2 to only include rows which have a specific choice selected in a popup menu.
    Here's the document, via iCloud:
    https://www.icloud.com/iw/#numbers/BAL2c7eirUmlW1C8CvqB7F6X9LlhwHB3bHWF/Enrichme nt_Template

    A,
    It seems that your iCloud Numbers document is protected by password.
    Jerry

  • Copying data from one table to another

    Hello!
    I have a table (TABLE1) and I want to copy part of TABLE1's data to an another table (TABLE2).This proccess is made by an application in PROC Language with ORACLE 8.1 in UNIX environment.
    1) I've tried to make the copy with a cursor:
    void search() {
    char alias[ALIASTAM];
    struct tpNoticia noticia;
    printf("Introduzca el nombre del autor: ");
    scanf("%s",alias);
    EXEC SQL DECLARE AUX CURSOR FOR
    SELECT idNoticia,titulo,texto,TO_CHAR(publicacion,'HH24:MI:SS DD-MM-YYYY'),
                        URLimagen,numVisitas,sumaVal,totalVal,esBorrador,alias,nombreT
    FROM TABLE1
         WHERE alias=:alias;
    EXEC SQL OPEN AUX;
    EXEC SQL WHENEVER NOT FOUND DO break;
    for (;;) {
    EXEC SQL FETCH AUX INTO :noticia;
    printf("%d %s \n", noticia.idNoticia,noticia.titulo);
    EXEC SQL INSERT INTO TABLE2 (idNoticia,titulo,texto,publicacion,URLimagen,numVisitas,sumaVal,totalVal,esBorrador,alias,nombreT)
    VALUES (:(noticia.idNoticia),:(noticia.titulo),:(noticia.texto), TO_DATE('00:00:00 01-01-1900','HH24:MI:SS DD-MM-YYYY'),:(noticia.URLimagen),:(noticia.numVisitas),
         :(noticia.sumaVal),:(noticia.totalVal),:(noticia.esBorrador),:(noticia.alias),:(noticia.nombreT));
    EXEC SQL CLOSE AUX;     
    IN THIS CURSOR printf SHOWS CORRECTLY THE DATA BUT IT ISN'T INSERTED INTO TABLE 2;
    2) I've tried to define TABLE2 from TABLE1:
    EXEC SQL CREATE TABLE TABLE2 AS
    SELECT * FROM TABLE1 WHERE alias=:alias
    BUT MY COMPILER SAYS: PCC-S-02206, Host variables are not permitted within a DDL statement
    ANY IDEA???
    Thanks

    If you want to create the table dynamically, then you have to use dynamic Sql. Didn't you like my above suggestion ? If you want I can post a small example of a similar stored procedure.
    See also http://www.mcs.csuhayward.edu/support/oracle/doc/8.1.7/appdev.817/a76942/pc_07pls.htm#2778

  • Copying data from one field to another on a form

    Hi
    I have created a form called application which contains the following fields:
    Name
    Address1
    Address2
    Address3
    Address4
    Location1
    Location2
    Location3
    Location4
    When the user has entered his name and address I would like the data to then prefill into the location lines.
    I think you can do this sort of thing in java event handlers but I have no experience of this.
    Any one got any ideas how I can do this.
    Thanks
    Jayne

    hi Jayne,
    The following is an example of something just like what you want.
    In this form, get_add1Vals(); is called in the js-event handler for the field NEWFNAME1 which gets populated by the value selected or entered into FNAME1. The following code goes in the additional plsql code region (Before displaying the page).
    hope that certainly helps! please update it with your results.
    AMN
    BEGIN
    HTP.PRINT('<SCRIPT LANGUAGE="JavaScript1.1">
             function get_add1Vals{
                var  v_fname;
                for (i=0; i<document.forms[0].elements.length; i++)
                  if (document.forms[0].elements.name=="FORM_TBL_TEST_FORM_3.DEFAULT.FNAME.01")
    v_fname = document.forms[0].elements[i].value;
    break;
    if (document.forms[0].elements[i].name=="FORM_TBL_TEST_FORM_3.DEFAULT.NEWFNAME1.01")
    document.forms[0].elements[i].value = v_fname;
    break;
    void("");
    return true;
    </SCRIPT>');
    EXCEPTION
    When Others THEN
    null;
    END;

Maybe you are looking for

  • Problem  with text element

    i get the data from text element i.e is from so10 i should display data in the footer window if the exceeds the footer window it should get display in the bottom of the next page how to split according to number of characters

  • GB won't export

    Hi folks. Suggested solutions welcome. I've got some old interviews I need to compress and archive to CD-Rom, which means I need to export to ITunes then compress. But, though I've managed to export 1 of the files, when I open the others "export" doe

  • Cant launch Photoshop cs6

    hi, i downloaded Photoshop cs6 trial and when i click the Photoshop icon to open the software i get a window: Photoshop.exe - Entry Point Not found   The procedure entry point GetLogicalProcessorInformation could not be located in the dynamic link li

  • Format of /ByteRange array

    I am trying to implement signing for pdf documents. As far as I understand - the digest must be calculated for everything except for the signature's /Content entry contents. The contents can be "isolated" by using /ByteRange array. I just wanted to c

  • Froze and hangs on startup logo

    I was using the Tone Board app and when I pressed the Home button, a tone kept playing and the iPod froze. I forced a shutdown and the screen went black with no red slider at any stage. Now when I try to start up it simply hangs at the Apple logo. So