How to copy the contents of objects of one user to other without EXP ,IMP

I have a user x, i want to copy all the object from x to y without exp and imp

I suppose you could write a procedure using a bunch of DBMS_METADATA.GET_DDL() commands. Find out all the objects user x owns and loop through them, getting the ddl for each of them and executing the DDL for user y?

Similar Messages

  • How to copy the content in XMLtype column between databases

    Hi, there,
    Does anyone know how to copy the content in XMLtype clumn between databases? I tried insert as select via database link and it gives me the following message:
    SQL> insert into nrt_ot_request_temp (SR_ID, SR_VERSION, ITEM_NUMBER, COMMON_XML, REQUEST_XML )
    2 select SR_ID, SR_VERSION, ITEM_NUMBER, COMMON_XML, REQUEST_XML from nrt_ot_request@nrtdb_acacia;
    select SR_ID, SR_VERSION, ITEM_NUMBER, COMMON_XML, REQUEST_XML from nrt_ot_request@nrtdb_acacia
    ERROR at line 2:
    ORA-00942: table or view does not exist
    Thanks,
    Jessica

    Hi Jessica,
    in my eyes the second statement
    select ... xmlstring_column ... from table@remote_side;
    causes the error. Columns of type XMLString internally are stored as CLOBs in Oracle. Unfortunately there are restrictions on statements for CLOBs and remote locators.
    It seems you cannot say
    SELECT clob_column FROM table@remote_site;
    Remark: For me this is a showstopper for the datatype XMLString if you cannot run a simple statement like this one. It seems you can do an insert and an update but no select.
    On the other hand your first statement
    INSERT INTO table_local SELECT * FROM table@remote_site;
    should work following the documentation.
    See also
    http://docs.oracle.com/cd_a97630/appdev.920/a96591/adl04mng.htm#98328
    Best regards
    Indu Keilitz

  • Copy the contents of table from one production system to other

    Hi Experts,
    I need to copy the contents of tables T880, T9ACW, T9AGZ from one sap system to other.
    Which is the most effective method other than transporting the contents?
    Could we write a program or RFC or something for this?
    Please let me know your comments.
    Points will be given to all the helpful answers.
    Thank you,
    Nobin.

    Hi Nobin,
    for T880 you cna use LSMW.
    Which system are you using as i could not find the tables T9ACW, T9AGZ.
    for these you can use RFC as the bets option as Idoc need to be having some Idocs defined and some Configurations need to be done to define lot many criterias for data transfers.
    ALE to requires lot many criteris to be configured
    BDC needs a Transaction associated for tranbsfer of data.
    LSMW can do transfer of limited application and master data and NOT ALL Data.
    so appropriate one seems to be RFC or BAPIs.
    Hope this solves or clarifies what you have been looking for.
    encourage others to answer you queries by suitably rewarding them
    Thanks
    Venugopal

  • How to view the content (contained objects) of transport files without importing?

    Hi,
    we do often receive transport files (DATA and CODILE) from third parties.
    If is is done correctly the supplier of the transport files devliver also additional information about the detailed content of the transport, e.g object lists as plain text file, so that we are informed which objekts will be imported in advance.
    But some suppliers don't. Or we want only check, if additional info and real transport content match.
    So for that reason  I am looking for a possible way to view the object list of such transports without adding it to the import queue or importing it to a sandbox system or even add it to the import buffer..
    Most likely this should be done by a standalone tool (on Windows) or a tool running on SAP accessing the transportfiles (preference: stored only on the client PC  and not added to the transport directory)
    So my question is: Is there any tool that can extract the object list from the transport files and display it?
    Helst regards
    Helmut Fischer

    Helmut,
    If you don't have access to the server console, it might be possible to 'trick' tp into working from a workstation, but I wouldn't bet on it. You'd have to fake up a profile for it. I haven't tried this.
    Peering into the contents of a delivered transport file would be something that your Basis team would typically do. My suggestion is to work with them, either to use tp command-line option from the server console, or if that's not reasonable, then yes, go ahead and add it to the import queue of one of your sandbox systems. You can always delete it from the queue again later. If you don't actually import it, it isn't going to hurt anything.
    To do any of these options is going to require some level of filesystem access to your transport host, as you need to copy the two files that make up the transport there. You need to put the 'K' file into \usr\sap\trans\cofiles and the 'R' file into \usr\sap\trans\data. Then, you can either use the tp command-line tool, or you can go into STMS, go into the import queue of any system in the transport domain (so a sandbox is fine), and use Extras... Other Requests... Add and type in the transport request ID. Yes, this adds some entries about the transport into a few tables, but it doesn't actually import the transport, and it doesn't change anything about your system. It just allows the transport to show up as importable in the queue, and that will make it so that you can read the object list of the transport. Then, if you decide not to import it, you can delete it from the queue, and your system is back to the way it was before. Also, doing this will not put the transport into any other system's queue. Even if you import the transport (into a sandbox system), it won't show up in any other system's queue until you forward it.
    Regards,
    Matt

  • How to get the contents of more than one comments of human task?

    The human task have more than one comments. I use the following functions to get the contents but still only get the first comment. Append function only returns the first comment.
    How to get all conents of comments?
    <while name="While_1"
    condition="bpws:getVariableData('Variable_int_i')&lt;number(bpws:getVariableData('Variable_comment_node'))">
    <sequence name="Sequence_3">
    <sequence name="Sequence_3">
    <assign name="Assign_7">
    <copy>
    <from expression="string(bpws:getVariableData('single_approve_1_globalVariable','payload','/task:task/task:userComment/task:comment'))"/>
    <to variable="Variable_comment_string"/>
    </copy>
    </assign>
    <assign name="Assign_6">
    <copy>
    <from expression="bpws:getVariableData('Variable_int_i')+1"/>
    <to variable="Variable_int_i"/>
    </copy>
    </assign>
    </sequence>
    </sequence>
    </while>

    You also have to test the value:
    REPORT ztest MESSAGE-ID 00.
    DATA: BEGIN OF itab OCCURS 0,
            f1 TYPE i,
            f2 TYPE i,
            f3 TYPE i,
            f4 TYPE i,
          END OF itab.
    DATA: sel_field(20),
          value TYPE i.
    DO 5 TIMES.
      itab-f1 = sy-index.
      itab-f2 = sy-index + 10.
      itab-f3 = sy-index + 20.
      itab-f4 = sy-index + 30.
      APPEND itab.
    ENDDO.
    LOOP AT itab.
      WRITE: /001 itab-f1, itab-f2, itab-f3, itab-f4.
      HIDE itab.
      CLEAR itab.
    ENDLOOP.
    AT LINE-SELECTION.
      CLEAR: sel_field,
             value.
      GET CURSOR FIELD sel_field.
      IF sy-subrc = 0.
        CASE sel_field.
          WHEN 'ITAB-F1'.
            value = itab-f1.
          WHEN 'ITAB-F2'.
            value = itab-f2.
          WHEN 'ITAB-F3'.
            value = itab-f3.
          WHEN 'ITAB-F4'.
            value = itab-f4.
        ENDCASE.
        MESSAGE s001 WITH 'Value of' sel_field 'is' value.
      ELSE.
        MESSAGE s001 WITH 'Invalid field selected'.
      ENDIF.
    Rob

  • How to read the content of a blob col along with other cols as pipe delimit

    Hi,
    I would like to read the blob content along with the other columns . Assume table TAB1 has columns Response_log, Empcode and Ename. Here Response_log col is a blob data type, and the content of the blob is an xml file.Now i would like to read the content of the xml file of response_log column along with Empcode and Ename as pipe delimited . or else the best option would be to write to a text file with name extract.txt with the data being pipe delimited .
    create  table tab1(
    response_log blob,
    empcode  number,
    ename  varchar2(50 byte)
    )Sample code goes something like the one below .
    select xmltype( response_log, nls_charset_id( 'char_cs' ) ).getclobval() || '|' || empcode || '|' || ename
    from tab1 Can I have any other alternate way for this.
    Please advice

    Just Now one example is given in HOW TO WRITE ,SAVE A FILE IN BLOB COLUMN

  • How to limit the max dialog no that one user can use at the same time?

    Hi,
    I meet one performance problem that one user can open 6 sessions in the GUI and he/she can run 6 reports at the same time witch could occupy 6 dialogs in the sap R/3 instance. It makes poor performance for other users.
    Would you pls tell me how to limit the no. of sessions one user can create at the same time or how to limit the no. of dialogs one user can occupy at the same time?
    Thanks a lot!
    I used this parameters in the default profile as blew:
    rdisp/rfc_check 1
    rdisp/rfc_use_quotas 1
    rdisp/rfc_max_own_used_wp 20 (means: 20%)
    It still didn't work.
    Sean

    Hello,
    We can reserve DIA W.P by giving value to the parameter :- rdisp/rfc_min_wait_dia_wp=1(default)
    that have to necessarily remain free for other users.
    This parameter is used to reserve a number of dialog work processes for Dailog mode.
    For eg. If 10 dialog w.p. are configured for the instance(rdsip/wp_no_dia=10) and the parameter rdisp/rfc_min_wait_dia_wp=3 is set,parallel RFC's can occupy a maximum of 7 DIA W.P.3 DAI W.P. always remain free for dialog mode.
    But now the question is how we assign/restrict this free dialog w.p. to the specific user.
    Reply...
    Regards,
    JUNAID

  • How to copy all tables, triggers, etc from one user schema to another

    Hello everybody!
    I am searching for a QUERY or Stored Procedure to copy the tables of one user schema to another schema.
    Should look kind of: Copy (Select * from all_objects where owner = 'UserIwantToCopyFrom') to user = 'UserIwantToCopyTO'
    I am sure that my example is rubbish but I tried to explain what I want to do.
    So is there a chance to do that within sql-code? I have to build a template of a user schema with hundreds of tables, triggers, etc and copy it to several other user schemas.
    Thanks for your advice!
    Jan

    There are numerous examples available.
    What you typically will want to do is:
    For the export use the job_mode => 'SCHEMA' option
    Export example
    http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
    DECLARE
      l_dp_handle       NUMBER;
      l_last_job_state  VARCHAR2(30) := 'UNDEFINED';
      l_job_state       VARCHAR2(30) := 'UNDEFINED';
      l_sts             KU$_STATUS;
    BEGIN
      l_dp_handle := DBMS_DATAPUMP.open(
        operation   => 'EXPORT',
        job_mode    => 'SCHEMA',
        remote_link => NULL,
        job_name    => 'EMP_EXPORT',
        version     => 'LATEST');
      DBMS_DATAPUMP.add_file(
        handle    => l_dp_handle,
        filename  => 'SCOTT.dmp',
        directory => 'TEST_DIR');
      DBMS_DATAPUMP.add_file(
        handle    => l_dp_handle,
        filename  => 'SCOTT.log',
        directory => 'TEST_DIR',
        filetype  => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
      DBMS_DATAPUMP.metadata_filter(
        handle => l_dp_handle,
        name   => 'SCHEMA_EXPR',
        value  => '= ''SCOTT''');
      DBMS_DATAPUMP.start_job(l_dp_handle);
      DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    /for the import you will have to use the remap_schema option with:
    DBMS_DATAPUMP.METADATA_REMAP (
       handle      IN NUMBER,
       name        IN VARCHAR2,
       old_value   IN VARCHAR2,
       value       IN VARCHAR2,
       object_type IN VARCHAR2 DEFAULT NULL);There are much more details in the document that Thierry provided.

  • How to copy the value of object in jdk 1.6

    Hi,
    I want to copy a object from another with out reference.
    clone(0 is not accessable , only can use super.clone() , but if my class don't have the clone() method at all then ..
    can any body tell me how i can do this..
    thanks in advance

    I think i have not able to describe the problem.
    Well lets have a example
    public class A{
    String value1="";
    public A(){
    public String getValue1() {
              return value1;
         public void setValue1(String value1) {
              this.value1= value1;
    Now ,
    A object1 = new A();
    object1.setValue1("first") ;
    A object2 = new A();
    object2 = object1;
    here giving the reference ...so what is happening if i change object1, object2 will also be updated..
    I don't want this ..instade of this i just want a copy of "object1" for object2 , so that object2 will always have same value and will not depend on object1 updation.
    How to do that ? and i don't want also copying each variable value while coping.

  • How to copy the content of one file into another

    I have tried this code
    try {
                   fin = new FileInputStream("file path");
              catch(FileNotFoundException exc)
                   System.out.println("File not found");
                   return 0;
              catch(ArrayIndexOutOfBoundsException exc)
                   System.out.println("Usage: Showfile file");
                   return 0;
              while(true){
                   i=fin.read();
                   if(i==-1)
                        break;
                   cnt++;
              fin.close();*/
    now in this way i can lift one character at a time and copy it into another file (note i have not done the copy part in this code but that can be implemented) however this whole procedure is taking too much time if the size of the file is too big....kindly suggest another way to copy one file into another

    have you ever copied and pasted a large file in Windows or another OS? Larger files take more time to copy, that's just how it is.

  • How to copy and paste an object (i.e. a drawn polygon) without it automatically rotating in the pasted page?

    In detail:  I have a multiple page PDF for a construction project.  We are using Adobe to mark the drawings up; the drawings have a set scale.  In my scenario, I am highlighting a region of known data on the plan using a shaded polygon.  I have another page that I need to compare that shaded region to that is at a different scale.   I reprinted the differently scaled plan through Adobe at 200% size to match to the main document's scale (going from '1 inch = 40 feet' up to '1 inch = 20 feet').  That newly printed page was inserted into the document containing with the polygon.  I then copied and pasted the polygon onto the new page.  The polygon is automatically rotated 270 degrees.
    The issue is why the polygon is rotating.  The above information is just in case it matters.  And, yes, sometimes this happens in other files as well, but not always.
    Using Adobe Standard X (NOT Pro), version 10.1.9

    Thank you Sukrit for responding.
    The computer I am using is controlled by a government agency.  They do not allow users to install or modify any software.  The file I am using, though a public document, may not be advisable to be posted online.
    However, my solution to the issue was to reprint the document that I was pasting into and modifying the print settings to rotate the PDF image.  First, I had to change the size of the PDF beyond the original full size dimensions to account for the scale change.  Then change the print settings to print landscape while telling adobe's advanced settings to print portrait.  After some finesse with other settings for scale, I was able to copy and paste the polygon without loosing the scale.  This took me a week to figure out.  An extreme waste of time for such a simple issue that should not occur in such a popular software.

  • How to copy the confuguration files in admin to user in terminal.

    Hi, i need to copy configuration files from Admin to user, I am not sure how to do.
    Please help me out on this.
    Thanks,
    Muniraju H

    Specifically, which configuration files and what are you trying to accomplish? What is the lcoation/path? Do you mean /Library/Preferences/SystemConfiguration? By "copy" do you mean make a copy or change the Ownership to your user, while leaving them where they are? (I have no idea why you would want to do this, since it may create Permissions problems for these files.)
    If you only want to copy them, while at the same time making your user the owner, you only need to Option-click on them using the Finder and drag them to your Desktop or somewhere in your user. This will automatically copy them to that new location with your user as owner. You don't need Terminal for this.

  • Copying the Contents of Keychain

    I am about to do an erase and install of Leo. Does anyone know how to copy the contents of the keychain to save from losing all my passwords?
    Keychain has an Export option but I can't get it to work. It is simply greyed out.

    Many thanks. Selecting the login keychains don't seem to allow you to copy them but the system keychains do.
    Anyway, the suggestion to copy the file sounds better. Does this copy all keychains?

  • Copy some workbooks from one user to other

    Hi!
    How can I copy (not share) some workbooks from one user to other?
    The reason to do this is because we are renaming users to other naming pattern.
    Thanks!

    You would first need to share the workbooks you want to transfer ownership of to either the new user name, or a responsibility that the new user has (I am assuming this is an Oracle Applications EUL). The user signs on to Discoverer Plus with their new name. They open up the workbook(s) and then do a SAVE AS. That will save the workbook with them as the new owner. You would then need to sign on with the old owner's name and delete those old workbooks (after first backing them up) once you are sure everything is working okay. Yes, this is a yucky process. What we do is we use a "dummy" user name when we create/modify workbooks. That way the dummy user name is the owner of the workbooks. So it does not matter if a person leaves or if you change user naming conventions. If you have a lot of users creating workbooks, then a dummy user name may not work well. You could always submit an enhancement request to Oracle for a copy function. I expect you would get a lot of customers supporting such a request.
    John Dickey

  • How to get(copy) the contents i.e the cell of an excel sheet to other excel

    How to get(copy) the contents i.e the cells of an excel sheet to another excel sheet.
    I can read the contents i.e the text in the cells and able to display it in the Java console
    i want these contents to be copied to another excel sheet with the cells data.
    I am using Java Swing for the UI, POI framework for the excel work.
    Please anyone suggest some code to this requirement.

    [spreadsheets with poi|http://poi.apache.org/spreadsheet/converting.html] Hi
    on the poi apache site there's a number of good examples...
    I started with poi only a week ago, but just from reading these examples
    (especially SS Usermodel code) i managed all i needed to know (so far).
    kind regards
    BB
    Edited by: BugBunny on Feb 22, 2010 4:36 AM

Maybe you are looking for