Help for transfering data from one user' all tables to another

Hello guys,
I have trim the extra sizes of columns in almost all tables of my database. Before doing this, I saved the data of tables by creating another user "User1" with the same objects and importing dmp file in it. After this I cleared my original objects and reduced the extra sizes of columns alomost in all tables.
Now I want to transfer data from backup user "User1" into my original user's "User" tables.
Can any one guid me with the way of doing so, so that I could do it just through 3 or 4 lines of code instead of individualy table wise transfering the data...??
regards
Kashif

SQL> select 'insert into '||table_name||' as select * from user1.'||table_name ||' ;' from user_tables where table_name in ('EMP', 'DEPT') ;
'INSERTINTO'||TABLE_NAME||'ASSELECT*FROMUSER1.'||TABLE_NAME||';'
insert into DEPT as select * from user1.DEPT ;
insert into EMP as select * from user1.EMP ;
2 rows selected.
SQL>You could spool the output of the query above to a .SQL script file and then just run it within the same script using @@script_name.SQL.

Similar Messages

  • BADI for transfering data from one modal to another modal within single appset

    Hallo Experts,
    My Business Requirement is Transfer of data from one modal to another in same environment and did this taking reference from below document.(How to custom badi for replicating destination app)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e04b5d24-085f-2c10-d5a2-c1153a9f9346?QuickLink=index&…
    Document contains TR for implementing BADI, but this document supports bpc version 7.0 and we are using is bpc 10.0.
    So i make all compatible changes in BADI implementation and activate it. Now i am testing using transaction UJKT using following script.
    and the result is records successfully written back to application MIS, but when i check data is not moved to target application MIS.
    I am facing stuck situation in my project work. Please Suggest. Hope for positive reply.
    Script:
    *XDIM_MEMBERSET WM_ACCOUNT = WM_041,
    *XDIM_MEMBERSET WM_UOM_02 = UOM_004
    *XDIM_MEMBERSET WM_UD_2 = WM_07
    *XDIM_MEMBERSET WD_EXT_MAT_GRP =CHALK-PH-I,CHALK-PH-II,CHAVN-PH-I,CHAVN-PH-II,NASHIK-WM,RAJASTHAN-WM,TAMILNADU-WM
    *XDIM_MEMBERSET CATEGORY= Plan
    *XDIM_MEMBERSET AUDITTRAIL=Input
    *XDIM_MEMBERSET P_ENTITY = SIL
    *XDIM_MEMBERSET RPTCURRENCY = LC
    *START_BADI DAPP
       DESTINATION_APP ="MIS"
       RENAME_DIM ="WD_EXT_MAT_GRP= PRODUCT"
       ADD_DIM ="PLANT=NO_PLANT","MIS_ACCOUNTS=CAIN0058040008","COST_CENTER=NO_COST_CENTER","FLOW=Opening","UOM=AMT","CUSTOMER_SALES_2=NO_CUSTOMER","CATEGORY=Plan","AUDITTRAIL=Input"             
       DEBUG = ON
       WRITE = OFF
       QUERY = ON
    *END_BADI
    Please find attached result.
    Regards,
    Dipesh Mudras.

    Hello,
    Here is the manual to copy data between apps (it works with BPC NW75):
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0480970-894f-2d10-f9a5-d4b1160be203?quicklink=index&overridelayout=true
    It works me, but now I need to modify the Script Logic to make that a "property" from the origin dimension has to be copied to the destination dimension as "id", like follow:
    //*XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
    //*XDIM_MEMBERSET TIME = %TIME_SET%
    //*XDIM_MEMBERSET ENTITY = %ENTITY_SET%
    //*XDIM_MEMBERSET RPTCURRENCY =  %RPTCURRENCY_SET%
    *START_BADI FiltroPD
         WRITE = OFF
         APPL = $APPLICATION$
         ADD_DIM = "ORIGEN = APPVENTAS"
         ADD_DIM ="O_COSTE = no_input"
         ADD_DIM="CECO = no_input"
         RENAME_DIM="P_ACCT = RATIOS.P_ACCT "
    *END_BADI

  • Best method for transferring data from one database to another?

    There is an 8i database I have to deal with on a regular basis. Besides being completely outdated and unsupported, in my opinion the database has not been well-maintained--for a table with 25 million records, should ‘select count(*) from table;’ take 5 minutes to run? I don’t really know, but that seems long to me. Many complex queries (most including only tables with less than a million records) take a ridiculously long time to run, to the point that I can’t even run some of them.
    I am not the DBA; I don't have the authority to fiddle with the database (nor would I feel comfortable doing that), and the powers that be will not put effort into improving functionality of this database due to an alleged plan to update/replace it within the next year. However, in the mean time, I still have to get data out of this database on a regular basis.
    I have XE 10g installed on my local machine, and I have set up a database link in it to the 8i database. I have found that I can pull in basic data (simple queries) from the 8i database into tables in my XE database (e.g. create table tbl1 as select data from tbl1@8idb) and then query those tables to get the information I need much, much faster (including creation of the tables). While this option does not allow me to create queries/reports that other people can run, it makes work I’m doing only for myself much faster.
    What I’m wondering is, what is the best way to bring the information I need over to my database? I usually don’t need entire tables, and I can probably identify a number of key tables (or parts of tables) I need. What I’ve been doing up until now is writing CREATE TABLE statements on the fly, but then I end up forgetting what all I’ve done, and each time I want up-to-date data, I have to drop the tables and re-create them. It seems to me that there should be an easier way to do this than to copy and paste from a text document into SQL*Plus.
    Does anyone have any suggestions for me on how best to do this?

    Sorry, I guess I posted this in the wrong forum. I re-posted in the database-general forum.

  • Transfer data from one type of table to another

    Can some kind soul put me out of my misery and explain how I can get the data from Table1 to Table2
    I'm really struggling!
    Table1
    MerchID
    MatchesSKU
    1
    BR34
    1
    BD16
    2
    DE11
    3
    HB12
    3
    DX15
    3
    DR19
    Table2
    MerchID
    MatchesSKU1
    MatchesSKU2
    MatchesSKU3
    1
    BR34
    BD16
    2
    DE11
    3
    HB12
    DX15
    DR19

    I've got a page which shows a piece of merchandise in detail. Below that is a section called "you may also like..." and it shows 3 matching items to the main merchandise.
    I currently hold the matching data in a table like Table1 but I've been getting some performance issues and have narrowed it down to the query that gets the 3 matches.
    I was thinking if I place the 3 matching merchID's into the corresponding row of the main merchandise being shown, it saves hitting the database for the 3 matching items?
    Here's the SQL used to find the matching items
              SELECT *
              FROM merchandise
              INNER JOIN matches_with
              ON merchandise.supplier_code = matches_with.matches_with_supplier_code
              WHERE matches_with.merchandise_ID = '#URL.ProductID#'
    I limit the CFQUERY to MAXROWS=3

  • Business scenairo for transfering data from Non Sourace system.

    Hi everyone,
    i am looking for sample business scenario for transferring data from non source system.
    If the case study is for any Financial system that will be even great.
    if any one has good Document Please Fwd it to e-mail [email protected]

    hi rk,
    what you means to say something source like flat file, not from r/3 side.
    or
    what exactly you want,plz explain?
    regards,
    San!
    if helped,assign point!

  • How do I move all my files from one User Profile (account) into another? I needed to create a new account and want all of my files accessible in the new one.

    How do I move all my files from one User Profile (account) into another?
    I needed to create a new account and want all of my files accessible in the new one.

    ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
    now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
    the start of that tree is /
    so, if you were to do:
    cd /
    (cd means change directory)
    it will bring you at the highest branch of the file system.
    cd /Users
    will bring you to where all the users are.
    to see whats in /Users you can use your friend ls command
    ls means list files/directories
    so:
    cd /Users
    ls -la
    (the -la here means show all (even hidden) and long format (very verbose))  this flag is very optional.
    you will see
    fred
    user2
    for example.
    if you want to see the desktop of user2 you would change directory to it then list the files.
    for example:
    cd /Users/user2/Desktop
    Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
    ls -la
    you should then be able to see everything in users2 desktop
    you could have done as well the same thing in smaller steps, for example:
    cd /
    cd Users
    cd user2
    cd Desktop
    this is the equivalent of cd /Users/user2/Desktop
    So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
    /Users/user2
    which most likely the file you had created from the other user was in /Users/user1
    if you copied all the files from /Users/original_user to /Users/secondUser
    most likely yes, all your mail, bookmarks etc would be copied over.
    so in your case.
    sudo chown -R seconduser:staff /Users/secondUser
    should work
    Remember that if you start a path with the character /  it means start from the root of the file system, at the highest top you can ever get.
    so
    cd /Users/fred
    is not the same as
    cd Users/fred
    unless you were in / already
    i know it may be confusing at first but it's actually very logical if you play with it.
    to simplify, think of it that / means C:\  on windows
    you can't go any higher than C:\  (in a way)
    if you're unsure which directory you're currently in, you can always type:
    pwd
    it will tell you where you are.
    for example:
    cd /
    pwd
    this shows  /
    cd Users
    pwd
    this now shows /Users
    cd /System/Library
    pwd will show /System/Library
    cd /
    cd /Users
    cd fred
    cd Library
    pwd will show /Users/fred/Library
    unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
    so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
    ls -la  (this shows all the files where you are)
    if you see myfile in the list
    do a pwd
    whatever is return, the real location of the file would be:
    whatever pwd returned / myfile
    I hope that makes sense.

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • Passing data from one UIX XML page to another UIX XML page

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.
    (b) If bc4j is used.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?
    Thanks,
    Paul.

    What are the various ways of passing data from one UIX XML page to another UIX XML page?
    (a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
    For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
    (b) If bc4j is used.For forwarded URLs; BC4J Session properties.
    For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
    (c) If my event handler calls:-
    public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
    then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
    This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
    Regards,
    John Fallows
    Oracle Corporation.

  • How to copy BEx Workbooks from one user's favourites to another user's

    Is there a way to copy BEx Workbooks (Excel Analyzer) from one user's 'Favourites' to another user's Favourites?
    A user is away on vacation and we need to get at a couple of workbooks that are stored only in that user's Favourites. We do not have access to that user's user id and password.
    We’re on BW version 3.5.

    Thanks Ravi.
    We are aware that if a workbook is assigned to a Role then other users can access the workbook.
    In order to assign the workbook to a Role, we need to be able to see it in the first place.
    The workbook is currently saved only in a specific user's Favourites, and that user is away on vacation. We can not assign it to a Role unless we sign on as that user. We do not have the user's logonid and password.
    So we are still interested in finding out how to copy from that user's Favourites, perhaps via a program or via the Administrator Workbench.

  • Fatal error while transferring data from one bb to another

    I was trying to transfer data from one bb to a different bb using the bb desktop manager tool.  It collected all the data from the first bb fine and then while transferring data to the new one it said a fatal error occured to try again.  That bb will not even turn on now.  No white screen or anything.  Its like there is no operating system.  I don't know what to do.  I tried to connect it and just update the software but that isnt working either.  Says it is not responding during initialization! I think I killed it.... any ideas what to do???

    You can try to reload the OS in one of the following ways
    http://www.blackberry.com/btsc/KB03485
    http://blackberryfaq.net/index.php/How_do_I_wipe_the_BlackBerry_using_Jl_Cmder%3F
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Need help in passing data from one page to other page in oaf

    Dear All,
    I have a requirement as below.
    I am doing some selection in one page and populating the data in another page table region, next time when i am selecting another row and pressing the button i need to display the previous row as well as new row, how can i achieve this, currently i am able to see only the first row what i selected first.
    Ex: 1 st scenario: after passing the selected data from one page to base page the data looks like below in base page.
    1 test desc
    2nd scenarios: when i am again selcting data and passing to the base page it should be like that
    1 test desc
    2 test desc
    but currently it is showing
    1 test desc only for the 2nd case, can any one please help me on thsi , its little bit urgent
    Thnaks

    How are you passing the values to the base page? Are you using setting the retainAM parameter to true while doing a forward.

  • Transferring data from one to another table

    I am getting delayed in transffering data from one table to another for the purpose of
    making archieve of a transaction table.
    The number of records in question are about five million and the time taking is
    about 3 to 5 hours in Oracle 10g database in Sun SOLARIS config.
    can any one help me in reducing this time

    >> I am getting delayed in transffering data from one table to another for the purpose of making archieve of a transaction table.
    How you are trying to transferring the data? i.e. What commands you are using for this?
    Regards,
    Sabdar Syed.

  • Transferring data from one PRD to other PRD server

    HI All,
    I have read weblogs in transferring scenarios from Dev to Qual to Prod.
    But I have a different requirement in which I have to transfer data from one production server to another production server.
    Say A and B are two production servers, I wanted to transfer data from A to B.
    Please give me some ideas on this....
    rgds,
    ravindra.

    HI
    /people/sap.india5/blog/2005/11/03/xi-software-logistics-1-sld-preparation
    with reference to the above weblog, while I am trying to transfer SLD objects from Dev to Prod I couldnt able to find the buttons Remove and Export in Software Catalog.
    But the same buttons are there in Technical and Business Systems.  If I export from Business system, the related TS, Product and SWCV gets exported or not.
    Plz suggest me how to go ahead.
    Thanks in advance.
    Ravindra.

  • OIM 11g R2 - Transferring accounts from one user to another user

    Hi,
    In OIM  11g R2,we have a requirement that we need to transfer accounts from one user to anothe user.For example,an user "User1" has AD and Exchange Accounts provisioned.Now we wanted to to transfer these AD and Exchange accounts to another user "User2".May I know how this can be done ?.Thanks

        public void moveAccount(){
            try {
                long newUser = xxxxx;
                long oiuKey = xxxxxx;
                userIntf.changeToServiceAccount(oiuKey);
                userIntf.moveServiceAccount(oiuKey, newUser);
                userIntf.changeFromServiceAccount(oiuKey);
            }catch(Exception e){
                e.printStackTrace();
    -Kevin

  • Performance issue while transferring data from one itab to another itab

    hi experts,
    i have stored all the general material details in one internal table and description, valuation details of the meterial is stored in another internal table which is of standard table. now i need to tranfer all the data from these two internal tables into one final internal table but it is taking lot of time as it has to transfer lacs of data.
    i have declared the output table as shown below
    DATA:
      t_output TYPE standard TABLE
               OF type_output
               INITIAL SIZE 0
               WITH HEADER LINE.
    (according to the standard i have to declare like this and the two internal tables are declared similar to the above one)
    could somebody suggest me how shall I procced through this...
    thanks in advance....
    ragerds,
    Deepu

    Have a look at the following article which you may find useful:
      <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40729734-3668-2910-deba-fa0e95e2c541">Improving performance in nested loops</a>
    good luck, damian

Maybe you are looking for

  • No Presence Status With 9971 Phones

    CUCM - 9.1.2.10000-28 CUCM IM and Presence - 9.1.1.31900-1 9971 Load - sip9971.9-3-2-10 Have an issue with the 9971s not updating presence information on Jabber (windows and osx). All phones are able to be controled from Jabber, ie. Dial, answer etc.

  • Error in jdeveloper 11.1.1.4.0

    hi all, i am using jdeveloper 11.1.1.4.0 scenario 1: i am able to invoke w webservice data control through the webservicedata control wizard scenario 2 : i designed a mobile browser page in which i am binding my parameters scenario 3: when i am tryin

  • How to change the selections in selection screen

    Hello all, while executing web report we are getting a selection screen initially. 1.problem is when we want to change the selections how to procedure after . when i went to variable screen it is filtering the exciting report. but i want to change th

  • Change of Gl account centrally

    Description change for Korea I am trying to change the Korean Translation for Account xxxxxxxx but SAP will not allow me to change for Korea.  Do you know of a way I can change? Thank you, I appreciate any help you can provide

  • Employee photo upload issue

    Hello Experts, i am uploading a photo wih the help of abaper but problem is when i run t code OAC0 and create repository for that storage type should be type as R/3 database .but when I  am selecting it is not coming another option is comes HTTP CONT