How to move patterns of one tablespace to another?

Hi people,

REL: 10.2.0.4.0

I have a requirement to spend some schema of a tablespace (PUBLISH) to a different tablespace (USERS) within the same database. I decided to use
the pump data with the option "remap". Unfortunately, the operation fails because the complaint database objects already exists.

Here is my code and from the journal
 impdp system/*** REMAP_TABLESPACE='PUBLISH':'USERS' DIRECTORY=dump_dir DUMPFILE=schema_exp.dmp SCHEMAS=move_test 
Journal of data pump is:
 Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01":  system/******** REMAP_TABLESPACE=PUBLISH:USERS DIRECTORY=dump_dir DUMPFILE=schema_exp.dmp SCHEMAS=move_test
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"MOVE_TEST" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
ORA-39151: Table "MOVE_TEST"."T1" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
ORA-31684: Object type PROCEDURE:"MOVE_TEST"."PROC1" already exists
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
ORA-39082: Object type ALTER_PROCEDURE:"MOVE_TEST"."PROC1" created with compilation warnings
Processing object type SCHEMA_EXPORT/VIEW/VIEW
ORA-31684: Object type VIEW:"MOVE_TEST"."V_T1" already exists
Processing object type SCHEMA_EXPORT/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT
ORA-39111: Dependent object type OBJECT_GRANT:"MOVE_TEST" skipped, base object type VIEW:"MOVE_TEST"."V_T1" already exists
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" completed with 6 error(s) at 16:40:06 
Can the drawings be moved using data pump? If this is not the case, can someone please suggest an alternative?

Thanks in advance

Rogers

After export patterns, drop it and recreate them with the default tablespace for the USER, then impdp game allows to recreate the objects.

If you do not drop objects/patterns, you will get errors you mention.

You can also set the tablespace default to USERS for these schemas, then use the statement ALTER TABLE... MOVE... command

http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/tables.htm#sthref2297

This will only move the tables. You will also have to rebuild all indexes and recreated them in the new tablespace.

Expdp/impdp option is cleaner.

HTH
Srini

Tags: Database

Similar Questions

  • How to move photos from one Collection to another Collection

    Some, while the rear I hung some pictures from one Collection to another Collection.

    Later, I noticed that I had lost the ability to edit images moved.

    Please explain how can I move photos between Collections without causing problems?

    Cliff

    However, I can't figure out how to move photos from a private Collection to another more appropriate called Collection. I had thought that drag would do the trick. But I was wrong.

    Well, I think it's the right way to do it. Why do you think it's wrong? What is going on? Describe in detail or show a screenshot. State of the edited, complete error messages, Word for Word.

  • How to move pictures from one folder to another folder?

    Heyya! I am trying to move images off 1 folder in another folder how do? Please answer as soon as possible!

    Highlight the files > right click Select Cup > right in the new folder click select Paste

    I hope this helps.

  • How to move email from one dish to another?

    My old computer broke down, I have the hard drive and the data are ok. How can I move old email on my new computer?

    You should be able to move (copy) as if nothing has happened by following the instructions in the article to move data from Thunderbird to a new computer .

  • How to move pictures from one album to another?

    I tried to create an album called 'selfies' but when I clicked on some of my photos to this album, about 175 photos moved by mistake in this album.  When I tried some out, my choice seems to be only to remove them!  I don't want to delete one of them, just move them out of the album 'selfie '!

    If you are viewing a photo album you should be able to secondary click (click right click or control) and one of the options should be 'delete album '.

  • Smartphones blackBerry how to move everything to one BB to another?

    I have a 8520 and looking at goes a Bold 9900.

    I have four sons of my phone e-mail account, more texts, etc.

    I want to spend all THE e-mails and folders from the e-mail to the other account.

    A year ago, I had to do this as my old 8520 died, but the transfer, all the emails went ot 'Messages' and none in the new icons of four who appeared for me.  So I can again.

    Is this normal, or all those emails should go in the records of four mailboxes on the phone?

    Basically, I ask - if I save everythign using BB Desktop and then, after moving the service to the new phone card, do a "restore", it should all work and move in the right places?

    Simon

    When you connect the new device, he recognizes it as new and ask if you want to move the data from the old to the new device.

    I would also like to do a full backup of the old device first... you can always restore the data to the new, but the above process is much more complete.

  • How to move code from one class to another?

    I have a .fla file.

    Here, I have a few keyframes with labels.

    On the .fla file in the property in the field of the class I have adde class MyMatching.

    I also have the main code:

    package 
    {
         import flash.display.MovieClip;
         import flash.events.MouseEvent;
         import flash.text.TextField;
         
         public class MyMatching extends MovieClip 
         {
              var play_btn:MyButton = new MyButton();
              var kyky:MyTimer;
              
              public function MyMatching():void
              {
                   welcomeScreen();
              }
              
              public function welcomeScreen():void 
              {
                   stop();
                   trace("working");
                   play_btn.x = 210;
                   play_btn.y = 300;
                   addChild(play_btn);
                   play_btn.addEventListener(MouseEvent.CLICK, goToLevel_1);
              }          
                   
              public function goToLevel_1(event:MouseEvent)
              {
                   trace("level 1");
                   play_btn.visible = false;
                   gotoAndStop('Level1Screen');               
                   if (kyky==undefined) {
                        kyky = new MyTimer();
                   }
              }
         }
         
    }
    

    And I have another class:

    package 
    {
         import flash.display.MovieClip;
         import flash.display.Stage;
         import flash.utils.getTimer;
         import flash.text.TextField;
    
         public class MyTimer extends Stage
         {
              import flash.utils.getTimer;
              var gameStartTime:uint;
              var gameTime:uint;
              var gameTimeField:TextField;
              function mainFunction():void
              {
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime=getTimer();
                   gameTime=0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              }
              function showTime(event:Event)
              {
                   gameTime=getTimer()-gameStartTime;
                   gameTimeField.text="You plaing: "+clockTime(gameTime);
              }
              function clockTime(ms:int)
              {
                   var seconds:int=Math.floor(ms/1000);
                   var minutes:int=Math.floor(seconds/60);
                   seconds-=minutes*60;
                   var timeString:String=minutes+":"+String(seconds+100).substr(1,2);
                   return timeString;
              }
         }
         
    }
    

    Ho can I play MyTimer class code in the function goToLevel_1 (this furnished function in my main class MyMatching)?

    Thank you.

    First your class MyTimer is sloppy and poorly written.

    Why does go on stage? The more compact class to extend the circumstances is Sprite.

    In addition, it is very important to get the habit of data type declarations. Not only it is advisable, in your case the good compiler will throw error because even if you return the string, function returns nothing.

    In addition, it is important to declare namespaces as public private and protected within the classes. No function clickTime (): String but private function clockTime (): String or publicfunction clickTime (): String.

    How to show your time elsewhere - you just create instnace of it and add it to the list of disaply:

    var myTimer:MyTimer = new MyTimer();

    addChild (myTimer);

    That said, your class should look like this:

    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.display.MovieClip;
         import flash.utils.getTimer;
         import flash.text.TextField;
    
         public class MyTimer extends Sprite
         {
              private var gameStartTime:uint;
              private var gameTime:uint;
              private var gameTimeField:TextField;
    
              public function MyTimer()
              {
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime = getTimer();
                   gameTime = 0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              }
    
              private function showTime(event:Event):void
              {
                   gameTime = getTimer() - gameStartTime;
                   gameTimeField.text = "You playing: " + clockTime(gameTime);
              }
    
              private function clockTime(ms:int):String
              {
                   var seconds:int = Math.floor(ms / 1000);
                   var minutes:int = Math.floor(seconds / 60);
                   var timeString:String = minutes + ":" + String(seconds + 100).substr(1, 2);
                   return timeString;
              }
         }
    }
    
  • How can I move notes from one folder to another?

    I thought that some of my notes were missing, but it seems that some are stored in icloud and the other in different files associated with my personal email address.  How can I make sure that they are all on the icloud (in case I lose my phone, when I update my phone, etc.)?  How can I move them from one folder to another?  I not create separate records in the first place. I guess it happened when I updated to the current IOS.  Thanks for your help!

    Slide left on each note you want to move to your iCloud folder. Move and delete option is available. The rest is simple.

  • How to move items from one profile to a local storage

    original title: move items from one profile to a local storage

    How to move items from one profile to a local storage to free up space under this profile?

    Hi MartySlaught,

    ·         You want to move the files in your user account on a different medium (external hard drive)?

    If so, you can do this only for your personal files. You can refer to the following.

    a. make sure that your external USB hard drive or a USB flash drive is connected to your computer.

    b. open the directory on your computer where are the files you want to transfer. Press 'Ctrl' key and click each file you want to transfer.

    c. click on the option "Move selected files" on the left side of the window. Then select the external USB hard disk or USB flash drive. The files will be moved from the computer to the external hard drive.

    See also:

    Microsoft Windows XP - move a file or folder

    Microsoft Windows XP - move files by dragging

  • How can I move photos from one folder to another?

    * Original title: photos

    How can I move photos from one folder to another?

    A way - http://windows.microsoft.com/en-US/windows7/Move-and-copy-files-using-drag-and-drop

    More here - §ion_5 http://windows.microsoft.com/en-us/windows/working-with-files-folders#1TC=windows-7

  • How can I easily move photos from one folder to another?

    How can I easily move photos from one folder to another?

    On Mon, 15 Sep 2014 23:49:43 + 0000, Frygardener wrote:

    How can I easily move photos from one folder to another?

    Images or any other type of files, there are many easy ways to do
    This. And here's one: click on the file and press Ctr + C (copy). Then go to
    the folder that you want and press Ctrl + V (paste).

  • How can I move photos from one date to another in my catalog? Downloaded LR of photos taken over several days to a date. LR6 PC Win7

    How can I move photos from one date to another in my catalog? Downloaded LR of photos taken over several days to a date. LR6 Win7 PC.

    Hi bubba43,

    Please select the images in the library grid mode Module and then drag and drop them in another folder you want.

    Kind regards

    Tanuj

  • Ability to move songs from one playlist to another

    I want to spend the songs in a playlist to another. It seems, that you can´t move the songs, but you can add them to other playlists. After that, I have to remove it from the previous list.

    It is extra work that can be avoided, if "move" menu will be executed in ITunes. "

    I'm not the first person who wants the same thing. See, for example move the songs in a playlist to another, -playlist-to-another-on-iPad/td-p/120348 https://community.spotify.com/t5/Help-iOS-iPhone-iPad/How-to-move-songs-from-one

    I am running Windows, ITunes 12.3.2.35 64-bit

    Yet another candidate for iTunes comments. That said if you have done the selection and used the right click Add to Playlist option is really so difficult to then click on remove, while the tracks are always selected in the original list?

    TT2

  • How to transfer files from one user to another in Windows Vista?

    How to transfer files from one user to another under Vista?

    How to transfer files from one user to another under Vista?

    A simple way is to move the file to the Public folder.
    Public folder is accessible by all users.

    How...
    Right click on the file > click Move To > navigate to the Public folder > click on move.

    If you do not Move To option in your right click context Menu, here is the tutorial...
    http://www.Vistax64.com/tutorials/89196-context-menu-add-copy-folder-move-folder.html

    Use an easier method.

    PS you can also use methiod drag-and-drop rather than pass to the method. I prefer the latter.

  • How to 'move' photos of the film to another album

    How to 'move' photos of the film to another album,

    IPhone s plus 6

    IOS 9.2.1

    I'm trying to find the solution but did ' t found, why only small option is not available?

    It looks like your strength to move about jailbreak by small options that you lack.

    I'm not sure what you want to achieve? Please explain more.

    Albums do not store photos. They use and referencing the photos that are in your library. You can add a photo of your camera albums as much as you like, but the photo should stay in the camera or the album can not use it.

Maybe you are looking for

  • Portege Z930 - slow Wi - Fi on battery under Linux

    Hello I just bought a Z930 and I run Linux Mint and Windows 7.I have a problem under Linux that I have on Windows.When I put my computer on battery, there is a significant signal drop.Do someone why there is such a problem? We can solve this problem

  • Pavilion dv6: HP Pavilion dv6 locked on password Admin/Pwer

    Locked for the Admin/power passwor. I tried F - 11 - does not work either. The deactivation code is 68421704 Any help? Thank you

  • Pro8000 prints the alignment page after each print job

    I replaced by a black ink cartridge and printed an alignment page and did a print head cleaning. Now, an alignment page prints after each print job and cycling the printer off, then on. I turned off the printer and unplugged the printer and restarted

  • How to enlarge the time of compilation of the canvas?

    With more projects and more in size, I get every moment now, where to export the text next message (after about 15 seconds):"A dans.../exportutils.jsfl script has worked for a long time. Do you want to continue? »How can I disable this message? It is

  • The list of predefined items regex

    Helloright now I'm working on a stream of work that provides a virtual machine, either from scratch or model.I want to make a selection of all the models (virtual machines) that contains "_Template".I created an input parameter as a list of predefine