Exports and imports while SAP is up

As a SAP Basis of many SAP ABAP instances, we sometimes get a request to export a Z table (not dependant on SAP tables) in order to protect it from possible unwanted changes due to a new program. The new program has been tested in QA, but in order to protect the data further, the client requests an export. Keep in mind that the table is not used for generic key or single record buffers. Regarding this activity, I have questions:
Q: Is it alright to do the export while the system is running, if we can be sure that noone is modifying the data?
My Answer: As a Basis I would say yes, but I would to know your opinions.
Q: In case of a problem can we import the data back?
My Answer: As a Basis I would say yes, if it is a single table with no dependancies on other tables, but again I would like your opinions?
Q: Can we do it while the instance is up?
My Answer:: In this case, I would say no, since an import means a truncate and we cannot really determine the impacts. The safe thing would be to do it while SAP is down, but I would like to know your opinions.
Thanks in advance!

> Q: Is it alright to do the export while the system is running, if we can be sure that noone is modifying the data?
> My Answer: As a Basis I would say yes, but I would to know your opinions.
Depends on what you want to archieve with the export.
By using the exp/expdb tool of Oracle for just one table you will get a consistent view of the data in any case (for more tables in the export you'd use the consistent=y option).
So, yes, that might be "ok".
> Q: In case of a problem can we import the data back?
> My Answer: As a Basis I would say yes, if it is a single table with no dependancies on other tables, but again I would like your opinions?
Again: what do you do with that data?
Usually a "single table with no dependencies" is actually either crap (unused) or it does have dependencies, although not defined by foreign keys.
Think about it: you don't put data in there for nothing. You do want to do something with it.
Your programs depend on the data.
In fact that's why you want to save the table in the first place.
So there are dependencies.
And once you get the single table back in the saved version, you better know what to do with that data.
> Q: Can we do it while the instance is up?
> My Answer:: In this case, I would say no, since an import means a truncate and we cannot really determine the impacts. The safe thing would be to do it while SAP is down, but I would like to know your opinions.
WHAT?
Why does an import mean a truncate to you?
Why can't you determine the impacts?
Honestly: if you don't know the impacts, you don't know the dependencies of that table !
Why do you pursue the export/import approach at all?
Why do you want to leave the database?
You need a copy of the table.
No problem. Simply copy the table.
There are several options to do that, e.g. *create table <table_copy> as select * from <table_orig>*
That copied table can be backed up, indexed, checked as a reference...
When you need to switch back to the original table, you don't need to re-import the table.
Simply rename the original table and the copied table and you're done.
All that can be done online - without shutting down anything.
regards,
Lars

Similar Messages

  • Exporting and importing packages SAP inst server

    Hello,
    Background: we plan to migrate our current installation server to a newer hardware; we have a wide range of different packages. I could recreate them manually, but that would take a (long) while.
    i wonder if there is a chance to export installation packages from one server and then import them into an other. I looked through the offical docu and found no note regarding this.
    Is there a special directory within the sap installtion server  which can simply be copied to the new server?
    Best regards
    A.D

    Hi Andre
    No, you can not simply copy some folders.
    The official way to do a system copy, i.e,  export from the souce system, and then import it on the new system.
    Then you will get the same version, patch level with the old system in the new one.
    So you don't need to repeat applying all the packages.
    The system copy guide can be found from
    http://service.sap.com/instguides
    - then select netweaver for example,
       -  expanding the "Installation - SAP NetWeaver Systems"
       -   there you should be able to find the sytem copy guide.
    Best regards,
    Thunder

  • Deployment : Exporting and importing a ABAP code to other SAP Server

    Hello Expert,
    I am very new to SAP ABAP. My query is , If we write a code in user exit on one SAP server and if we need to deploy the same on other SAP server who are not tightly coupled with each other , How should we do??
    Is there any way to export and import the code?? How do we deliver the code if anyone wants that code? Is there any way to deliver the code other than manual copy and paste??
    Any idea??
    Thanks,
    Prashant

    Hi,
    Check this.May be this can help you.
    http://www.sap-basis-abap.com/sapac008.htm
    http://www.sap-press.de/forum/gp/themaID-5/zeige-12302/thread
    Message was edited by: Jayanthi Jayaraman

  • Language Problem while exporting and importing data

    hi,
    I have Oracle version 8.1.7.0.0 installed on one server and 9.2.0.1.0 installed on new server.
    I'm copying and pasting my version info from SQL*Plus:
    SQL*Plus: Release 8.1.7.0.0 - Production on Mon Aug 22 10:46:31 2005
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Aug 22 12:30:06 2005
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL>
    I created new user on my new server from enterprise manager.
    Exported user from the old server and imported in the new server.
    i.e: from Oracle8i Enterprise Edition Release 8.1.7.0.0, I did
    c:\>exp system/manager file=abc.dmp owner=abc
    Then on the new server Release 9.2.0.1.0, I did
    c:\>imp system/manager file=abc.dmp fromuser=abc touser=abc
    I'm using Arabic Language on my both servers. NLS_LANG parameter on both the servers is AMERICAN_AMERICA.WE8MSWIN1252.
    On both the servers I'm able to insert and select data in arabic.
    However, after I export the data from old server to the new server, the arabic data comes in question marks.
    If I create new table and insert arabic data on new server's user abc it is displaying well. Only the data which I exported and imported is not showing arabic.
    On both old and new servers operating system is Windows XP.
    I'm stuck with this problem. Anybody having any idea about how to solve this problem please help.
    Thank you all in advance.
    Regards

    Let me be clear here. Storing Arabic data in a WE8MSWIN1252 database is not supported by Oracle and will lead to problems. You are incorrectly using the NLS_LANG to prevent proper conversion and your data appears to be okay when you use utilties like SQL*PLUS to view your data. When you write applications that don't rely on the NLS_LANG like JDBC thin driver for instance you will realize your data is in fact invalid. To learn more about the NLS_LANG you can take a look at this FAQ: http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    To migrate your database to a proper character set you can refer to this paper:
    http://www.oracle.com/technology/tech/globalization/pdf/mwp.pdf
    But please do not ask for help in supporting your current configuration in this forum.

  • Exporting and Importing of Schema

    The Export and Import of Schema is not working consistently in SP4.
    When I create a new repository from the schema, all the subtables get created. The main table is has only one field in it. It reads Category.
    The other fields in the main table are missing and are not imported during the Import Schema operation.
    Has anyone encountered the same issue?
    If so, please let me know how you overcame this errorneous behaviour?

    Hi Adhappan
    I have tried importing without success. The import is not consistent. The same schema creates different sets of tables & fields each time. Sometimes if you reimport some more tables which were not set up the first time gets selected for import.
    I did a simple exercise to test the import / export functionality.
    1. I unarchived a repository from standard content provided by SAP
    2. I exported the schema
    3. I tried importing the schema without any modifications to schema
    4. The results were highly inconsistent.
    Arvind
    Pls reward useful answers

  • Internal table export and import in ECC 5.0 version

    Hi friends,
    I am trying to export and import internal table from one program to other program.
    The below… export and import commands are not working when I run the program in background (using SUBMIT zxxxx via JOB name NUMBER number…..)
    EXPORT ITAB TO MEMORY id 'ZMATERIAL_CREATE'.
    IMPORT ItAB FROM MEMORY ID 'ZMATERIAL_CREATE'.
    Normally it should work. Since It’s not working I am trying with another alternative..
    i.e EXPORT (ptab) INTERNAL TABLE itab.
    My sap version is ECC 5.0….
    For your information, here I am forwarding sap help. Pls have a look and explain how to declare ptab internal table.
    +Extract from SAP help+
    In the dynamic case the parameter list is specified in an index table ptab with two columns. These columns can have any name and have to be of the type "character". In the first column of ptab, you have to specify the names of the parameters and in the second column the data objects. If the second column is initial, then the name of the parameter in the first column has to match the name of a data object. The data object is then stored under its name in the cluster. If the first column of ptab is initial, an uncatchable exception will be raised.
    Outside of classes you can also use a single-column internal table for parameter_list for the dynamic form. In doing so, all data objects are implicitly stored under their name in the data cluster.
    My internal table having around 45 columns.
    pls help me.
    Thanks in advance
    raghunath

    The export/import should work the way you are using it. Just make sure you are using same memory id and make sure its unique - meaning u are using it only for this itab purpose and not overwriting it with other values. Check itab is not initial before you export in program 1 - then import it in prog2 with same memory id...also check case, I am not sure if its case sensitive...
    Here is how you use the second variant...
    Two fields with two different identifications "P1" and "P2" with the dynamic variant of the cluster definition are written to the ABAP Memory. After execution of the statement IMPORT, the contents of the fields text1 and text2 are interchanged.
    TYPES:
      BEGIN OF tab_type,
        para TYPE string,
        dobj TYPE string,
      END OF tab_type.
    DATA:
      id    TYPE c LENGTH 10 VALUE 'TEXTS',
      text1 TYPE string VALUE `IKE`,
      text2 TYPE string VALUE `TINA`,
      line  TYPE tab_type,
      itab  TYPE STANDARD TABLE OF tab_type.
    line-para = 'P1'.
    line-dobj = 'TEXT1'.
    APPEND line TO itab.
    line-para = 'P2'.
    line-dobj = 'TEXT2'.
    APPEND line TO itab.
    EXPORT (itab)     TO MEMORY ID id.
    IMPORT p1 = text2
           p2 = text1 FROM MEMORY ID id.

  • Export and Import of Configuration Data

    Hi All,
    I have created a number of custom properties, structures, groups, renderers, layout sets etc and would like to move them from Dev to Test system.
    I have found the following in the help doco:
    "Export and Import of Configuration Data"
    http://help.sap.com/saphelp_nw04/helpdata/en/e1/029c414c79b25fe10000000a1550b0/content.htm
    However I am unable to see its functionality in our portal systems (namely the Actions->Export and Actions->Import functions).
    Our version of Portal is: 6.0.9.6.0
    KM: 6.0.9.3.0 (NW04 SPS09 Patch3)
    Therefore we should be able to see it? no?
    Are there any special settings to see these buttons?
    Cheers,
    Vic

    Thanks for your replies.
    OK, so in otherwords, it is not available in SP09 and only in SP12+.
    So, to "transport" this information I will have to manually reapply thes settings in the Test system!
    Message was edited by: Victor Yeoh

  • Releases of export and import systems have to be identical

    hi all,
    we want PRD data on DEV , PRD client has been exported successfully. data ( 2 requests from cofile & data) from PRD copied to DEV in cofile and data.
    now when we import these requests in DEV client through STMS , it say that "Releases of export and import systems have to be identical"
    while oracle patch, kernel patch and java version all are same on both systems.
    plz guide
    Regards
    Khan

    Friends,
    We also faced same issue while restoring USER Master backup in one of our system. Even after applying OSS Note 1291394 it didn't work for us. Though the permanent solution is to apply this OSS Note only.
    As a teporary workaround we can add the TR through OS command using Uncoditional Mode "Overwrite Original" and import also using Uncoditional Mode "Overwrite Original". Below are the commands.
    To Add in buffer:
    tp addtobuffer <TR> SID Client=<> U012 pf=<>
    To Import in system:
    tp import <TR> SID U012 pf=<>
    Regards,
    Mukul SHarma

  • Export and Import of Portal Users (UME database only)

    Hi
    What is the most efficient way to export all Portal user that are stored in Portal UME database so that it can be imported to another Portal installation and be used..
    Thanks in Advance
    Ananda

    Hi,
    SAP User Administration is the standard way to export and import users in the portal. Using the export functionality, all the user information will get exported, including the roles and groups assigned:
    [User]
    uid=userid
    last_name=Lastname
    first_name=Tobias
    language=en
    accessibility=0
    role=pcd:portal_content/com.sap.portal.xxx;
    group=Administrators;
    If you only want to export the user data without the roles and groups, you'll have to delete these lines.
    SAP Help: http://help.sap.com/saphelp_nw04/helpdata/en/70/9be23d44d48e5be10000000a114084/frameset.htm
    Export Format: http://help.sap.com/saphelp_nw04/helpdata/en/ae/7cdf3dffadd95ee10000000a114084/frameset.htm
    SDN Article: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02e3e37-5ee3-2910-129d-967aef3fa386
    br,
    Tobias

  • Export and import of 3 Gb table

    Dear ,
    I have table with more than 3 million records, i need to export this table and import into a different database . can you please help me with the export and import options options so that i can speed up the process...
    for you information
    this table hase 3 Fk, 2 Indexs
    i would appreciate your help in this regard
    thanks

    One way to speed up the exp/imp process is to use DIRECT=Y option. Also increase the size of BUFFER parameter.
    While importing large amount of data it is better to drop relational constraints and indexes and recreate them after import.

  • Export and Import of Portal Database - Help Required

    Hi,
      We have a NW04 production portal running on AIX clustered environment (HACMP). We are building another landscape for which i need to export the current portal and import onto new portal which is already clustered (HACMP). Can someone point document to use sapinst (Jload) for export and import for this high availability systems.
    Thanks
    Murali.

    Hi ,
    Check with below pdfs.
    check whther they are helpful or not
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/303af93a-0811-2a10-0687-f3514f0103c8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/508e36c5-5914-2b10-a795-d25997cf3270
    EP6 system copy
    Koti Reddy

  • Export and import parameter

    Hello friends,
    DB: oracle 10 G
    O/S: Sun soalris 10.
    I have two sun system system both are having oracle 10 g
    1 is prod database and another is test database
    both the systems having same schema ,I want to make my test database upto date with production database before i used to use the complete export of prod database 1 schema and simply import it into test database but this process is taking very long time as the export dump file size is alomost 2 GB and while importing at the test database the import process is taking almost 5 to 6 hours ,
    the test database schema having 10 days old old records when compare to production database.
    so I just want to know is there any parameter in IMPORT so that the import process will take only changes information from export dumpfile while importing?
    I am using tradition export and import method

    thanks for your reply,
    But right now I don'thave datapump export dump file and my production database is at remote place ,
    again to take datapump export and copy the dump from netwrok takes again very long time network will also get busy to get 2 gb of file
    right now at my place where test db is located I have only tradition export dump file
    any more sujjestion in that

  • Export and import problem

    hi i am having a test database 9i(9.2.0.1) on windows xp.i want to export a table from test database to development database which is 9i(9.2.0.6) on IBM AIX 5.2. till now i am able to export and import but suddenly i am getting 'TABLESPACE <tablespace name? doesn't exist' error.
    the following is what i am getting
    D:\>imp file=news.dmp fromuser='COUNTER' touser='IBT' tables='NEWS_MASTER'
    Import: Release 9.2.0.1.0 - Production on Sat Oct 6 17:06:00 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Username: system@dev
    Password:
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining o
    tions
    JServer Release 9.2.0.6.0 - Production
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by COUNTER, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses US7ASCII character set (possible charset conversion)
    . importing COUNTER's objects into IBT
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "NEWS_MASTER" ("NEWS_DATE" DATE NOT NULL ENABLE, "SUBJECT" VAR"
    "CHAR2(75) NOT NULL ENABLE, "DESCRIPTION" VARCHAR2(300) NOT NULL ENABLE, "PH"
    "OTO" BLOB, "REG_NO" NUMBER(5, 0), "SYSTEM_IP" VARCHAR2(15) NOT NULL ENABLE)"
    " PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 65536 FREEL"
    "ISTS 1 FREELIST GROUPS 1) TABLESPACE "TESTTBS" LOGGING NOCOMPRESS LOB ("PHO"
    "TO") STORE AS (TABLESPACE "TESTTBS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVE"
    "RSION 10 NOCACHE STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'TESTTBS' does not exist
    Import terminated successfully with warnings.
    help me i want to know what happend actually?and what may be the solution?
    thanks in advance

    tablespace TESTTBS doesn't exist in the database where your are importing.
    Either create tablespace in target database or
    use show=y option while importing to get table structure and create manually in target database then import and give ignore=y.

  • Export and import change document for user master data

    Dear Gurus,
    I have two queries on change document for user master data:
    1. Are there any approaches to export and import change document for user master data?
    We often do system copy from PRD to QAS for UAT and troubleshooting. Before system copy we export the user master data from QAS and then import after the copy process. We would like to keep the change document for user master data on QAS from being refreshed from PRD for security reason.
    2. Change document for Role change in QAS
    When the role is created or modified in DEV and then transported to QAS, the role change document doen't include this change log. The role change document in QAS only records those role changes directly made in QAS.
    Could you advise this is by SAP design or are there any approaches to record this transported role change  in the role change document in QAS?
    Thanks
    YBY

    1. Perhaps you want to consider a system copy to a "virtual system" for UAT?
    2. Changes in QAS (as with PROD as well) will give you the delta. They should ideally be clean... You need to check the source system.
    Another option is to generate the profiles in the target system. But for that your config has to be sqeaky clean and in sync, including very well maintained and sync'ed Su24 data.
    Cheers,
    Julius

  • Is it possible to export and import the roles and users tables?

    Hi,
    is there any possibility to export and import the role and user definitions?
    We have a SAP MDM repository with a lot of roles and users and also with a lot of changes.
    And now I'm searching for a fast and efficient way of managing the roles and users.
    Thanks and Regards, Melanie

    Hi Melanie,
    There is no export/import functionality for roles and users.  The only way to manage these in an automated way would be to write a program that uses the Java or ABAP APIs.  Both APIs expose functionality to create, update and delete roles and users.
    Hope this helps,
    Richard

Maybe you are looking for

  • Can't restore ipod or update

    I have a 2nd gen ipod i've had it for a while now.. 2 years? Anyways my ipod was acting weird, like i couldnt transfer songs or delete them, itunes would just freeze. So i try restoring it, but the bar doesnt move, and i get the error message "Cannot

  • Out of memory issues with PSE 8

    I am using PSE 8 64 bit on a Dell desktop computer with Intel (R) Core (TM) i7 CPU 920 at 2.67 GHz. with 8 GB of ram. My operating system is Windows 7, 64 bit. My problem is that I get out of memory or insufficient ram messages in PSE Editor with som

  • App store is in Japanese

    I just loaded os6 and now the app store is in Japanese. How do I change it to English?

  • How to solve errorcode 2038

    When trying to open a book in ADE I get the message:  I/O error when opening local file. The error code i get is 2038.  What is the problem and how can i solve it? I use Windows Vista  and Norton Security? Same problem was repeorted bij Horserider RK

  • My Z3 is sending duplicate texts, how do I stop it

    I have had my Z3 for 4 months now and I love it but it has 1 problem that I don't seem to be able to solve. Sometimes it will send multiple duplicate copies of an SMS text. I mean 4 or 5 copies of the same message, usually straight after 1 another. H