How to import a user schema to its original state

Hi,
I had a task to export user schema 'USER01' with all the objects of the user, export was successful when I executed this statement.
$expdp USER1/PASS1@PD01 DIRECTORY=user1exp DUMPFILE=USR01.dmp SCHEMAS=USER1 LOGFILE=USR01.LOG
After which I dropped USER01 and tablespace USER01.
how can I import usr01.dmp so that I can have all objects of user as it was before export and dropping the user.
$impdp USER1/PASS1@PD01 DIRECTORY=user1exp DUMPFILE=USR01.dmp FULL=y LOGFILE=impfullusr01.log
will this statemnet work to import.
Thanks,
Ven

Hi,
Just two notes I'd like to share:
1 - If the user that is running the export job is prived, then the export dump file will contain the statement to recreate the schema, if it is not prived, then this statement will be missing.
2 - you ran a schema mode export which never includes the create tablespace statement.
So, you said that you dropped the schema and the tablespace. Minimally, you will have to create the tablespace where the objects existed. You may also have to create the schema if the export dump file does not contain that information. So, based on now the export was done, you will have a slightly different import command:
1. if export was from a prived account, you don't have to create the schema. If you want the data pump do create the schema, you need to run the impdp from another schema that is prived. This import job will create the original schema and all of the objects in the dumpfile.
2. If export was from a non-prived account, you will have to create the schema and then you can run the import from either the schema you just created, or from a prived schema.
Hope this helps.
Please let me know if you have other questions or if this was not clear.
Dean

Similar Messages

  • My mac book pro colors have turned brown instead of blue how do I get it back to its original state?, My mac book pro colors have turned brown instead of blue how do I get it back to its original state?

    How do I turn the colors back to the original colors that came on the MacBook. Somehow all of my colors look to be disorganized for instance blue is gold etc. I am not sure how this happened but I really would like it fixed any suggestions?

    Your first choice is to go to System Preferences>Displays>Color.  Make sure that your profile set is the appropriate one for the MacBook Pro, which should be "Color LCD".
    I'm going to skip all of the normal suggestions of resetting this and that, because from what I've researched this in the past, and it appears you have an issue with either the graphics chip (low probability) or a worn cable causing one of the color channels to be bad or your LED screen has a problem.
    In other words, it's probably hardware related.

  • How to restrict the user(Schema) from deleting the data from a table

    Hi All,
    I have scenario here.
    I want to know how to restrict a user(Schema) from deleting the values from a table created in the same schema.
    Below is the example.
    I have created a table employee in abc schema which has two values.
    EMPLOYEE
    ABC
    XYZ
    In the above scenario the abc user can only fire select query on the EMPLOYEE table.
    SELECT * FROM EMPLOYEE;
    He should not be able to use any other DML commands on that table.
    If he uses then Insufficient privileges error should be thrown.
    Can anyone please help me out on this.

    Hi,
    kumar0828 wrote:
    Hi Frank,
    Thanks for the reply.
    Can you please elaborate on how to add policies for a table for just firing a select DML statement on table.See the SQL Packages and Types manual first. It has examples. You can also search the web for examples. This is sometimes called "Virtual Private Database" or VPD.
    If you have problems, post a specific question here. Include CREATE TABLE and INSERT statements to create a table as it exists before the policies go into effect, the PL/SQL code to create the policies, and additonal DML statements that will be affected by the policies. Show what the table should contain after each of those DML statements.
    Always say which version of Oracle you're using. Confirm that you have Enterprise Edition.
    See the forum FAQ {message:id=9360002}
    The basic idea behind row-level security is that it generates a string that is automatically added to SELECT and/or DML statement WHERE clauses. For example, if user ABC is only allowed to query a table on Sunday, then you might write a function that returns the string
    USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'So whenever any user says
    SELECT  *
    FROM    table_x
    ;what actually runs is:
    SELECT  *
    FROM    table_x
    WHERE   USER  != 'ABC'
    OR      TO_CHAR (SYSDATE, 'DY', 'NLS_DATE_LANGUAGE=ENGLISH') = 'SUN'
    ;If you want to prevent any user from deleting rows, then the policy function can return just this string
    0 = 1Then, if somone says
    DELETE  employee
    ;what actually gets run is
    DELETE  employee
    WHERE   0 = 1
    ;No error will be raised, but no rows will be deleted.
    Once again, it would be simpler, more efficient, more robust and easier to maintain if you just created the table in a different schema, and not give DELETE privileges.
    Edited by: Frank Kulash on Nov 2, 2012 10:26 AM
    I just saw the previous response, which makes some additional good points (e.g., a user can always TRUNCATE his own tables). ALso, if user ABC applies a security policy to the table, then user ABC can also remove the policy, so if you really want to prevent user ABC from deleting rows, no matter how hard the user tries, then you need to create the policies in a different schema. If you're creating things in a different schema, then you might as well create the table in a different schema.

  • How to import LDAP users into OSM users?

    Can you please guide how to import LDAP users into OSM users?
    Regards,
    Menaka

    Hi Menaka,
    Refer http://docs.oracle.com/cd/E35413_01/doc.722/e35414/adm_security.htm u would find the necessary soultion.
    Thanks..

  • How you import essbase users list into Hyperion reports?

    How you import essbase users list into Hyperion reports?

    I don't think this is a standard feature of Hyperion Reports.
    Why do you need to see all the users in a report. Administrators can always query EAS, Shared Services or MaxL.
    Brian Chow

  • The box in my Photoshop Elements, which shows the size and types of brushes has shrunk to one unreadable line. How do I expand the box to its original size?  I have tried dragging it open but nothing moves.

    The box in my Photoshop Elements, which shows the size and type of brushes, has shrunk to one unreadable line. How can I expand this box to its original size? I have tried dragging it open but nothing happens and none of the tool boxes appear to give me an expansion option

    Well, when you open the program, the splash screen, the window you see while the program is opening, should make that clear enough. For example:

  • How to revert VMWare RAC OBE toolkit to its original state?

    I have installed the Oracle By Example VMWare RAC toolkit and I have done a few of the tutorials. But now I think I have made a mess of it, so I want to revert my virtual machine to its original state, just as it was when I had just installed it. How can I do it? I took several snapshots as I went along with the tutorials, but none of them is good for me.
    I hope I do not have to install the whole environment again.
    Any help would be appreciated.

    Well if you didn't take a snapshot of original state then you can only delete all .vmdk files and extract original one again ...

  • I have a I MAC i bought in 2004 and I am having all sorts of problems.  How can I restore my computer to its original form?

    How can I restore my computer to its original form or update my operating system?

    vincenzofromhenderson wrote:
    How can I restore my computer to its original form?
    See Erasing disks securely 
    Start up from your install disc, go to Disk Utility and select the disk and click erase - to securely erase data click Security Options and Erase Free Space which will entirely wipe your disk, overwriting it with zeros so that no data is recoverable.
    Restoring your computer’s software

  • HT1695 how do i reset my ipod to its original settings

    how do i reset my ipod to its original settings

    Go here: Settings > General > Reset
    Troubleshooting 101
    Some topics covered
    -Basic troubleshooting steps
    -Hard reset instructions
    -Manual restore instructions
    -Hardware troubleshooting
    -Preventive Maintenance
    -Anti-theft & recovery tips
    -Battery-saving tips
    -Repair options
    -Contacting Apple
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • My iphone was restored to its original state and I lost all of my contacts and applications... any ideas how I can get it back??

    My iphone was restored to its original state and I lost all of my contacts and applications... any ideas how I can get it back??

    Why did you restore without transferring your music to your computer?
    If you are in the U.S., then you can use the newly released beta version of the cloud to get your music.

  • How do you restore and iPhone to its original settings?

    How to restore an iPhone 5 to its original settings

    That depends on what you are trying to accomplish.
    If you wish to restore the device as new: http://support.apple.com/kb/HT1414
    If you just want to erase the content and settings: iOS: Understanding 'Erase All Content and Settings'

  • How do you restore a playlist to its original order?

    How do you restore a playlist to its original order after its been sorted by song or artist?

    diamondTV76 wrote:
    How do you restore a playlist to its original order after its been sorted by song or artist?
    Click above the column of sequence numbers (the left-hand column).

  • How to restore a 3TB imac fusion drive back to its original state?

    I bought a 27"imac with a 3TB fusion drive which stopped working. Ended up having to boot from the internet and since my HD stopped working and wasn't being found by disk utility I erased it using Disk Utility an re-installed OS X. Did OSX automatically get installed in the 128gb SSD drive (under disk util i only see one macintosh hard drive with another one under its first branch but there is no separate ssd drive)?
    Also, since then my imac's hard drive haven't stopped making a constant cranking noise as if it's working non-stop (unless the computer goes into sleep mode). Is this normal? Anything I can do to bring it back to its original state?

    The problem is that I bought my computer in the US and brought it with me to my home in Brazil and over here it's going to take a long time to get it fixed or repair/replace parts if it's necessary. Any other procedure I can try on my own before throwing the towel and taking it in?
    Thanks

  • My computer has reverted back to its original state!! Help!!!

    I was using my computer and went to log into ichat, it acted like I had never logged into the program before, asking me to enter my screen name and password. I then went to go into mail and it did the same thing asking for my email address and outgoing mail servers. I decided to shut down my computer and when I logged back on, the my background image disapeared and the dock had reverted back to its original state. All my other programs do not recognize my previous preferences and my keychain is nowhere to be found in my applications menu. My documents and saved pictures, along with my itunes music is still intact, but the rest of my computer is reverted.
    Is there any way to fix this and get my computer back to my personal settings? How do I get my keychain back?
    I really need help!!

    Hello linty242,
    First of all, Welcome to Apple Discussions Forums!
    Did you happen to rename your Home Folder? If so have alook at Dr. Smoke's (of the X-Lab) FAQ found at:
    http://www.thexlab.com/faqs/renamehomerecovery.html
    Read and fully understand the advice found there before proceeding.
    If this is not the problem post back here,
    littleshoulders [:-)

  • Is factory reset for Windows 7 gonna restore my BIOS too to its original state when I bought it?

    I am using Windows 8 now, I bought my laptop in JULY 2012. It came with Windows Home Premium and I have the recovery disks for Windows 7. I plan to factory reset my laptop because of my disappointment with Windows 8 and supprt for Windows 8.
     I want to know that if the 'Factory Reset' will restore the laptop BIOS to its original state. I mean I have my BIOS updated to the latest. I want it to go back to its old state. Also how long does the Factory Reset takes? I own HP DV6T 7000 Quad edition with 32gb mSSD.
    Intel RST doesn't work no matter what, my HDD is shown in non-RAID and there is no way I can change it to RAID. So my last option is to try the Factory Reset and see if it helps. I am pretty sure  IRST will work only if my BIOS is restored to the original state along with everything so it starts detecting my HDD in RAID.
    This question was solved.
    View Solution.

    Hi,
    A factory image recovery will not affect the BIOS version or its current settings. The amount of time that the factory image recovery takes wil depend on which type of recovery media you have. If you have usb recovery media than it will probably take perhaps thiry minutes. It you use a recovery disk set then the recovery could take a few hours to complete.
    Once you start the recovery do not touch the keyboard.
    Make sure that the wireless is turned on before you commit to the recovery.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

Maybe you are looking for

  • [Solved] System is looking for wrong shared library version

    Hey guys. Today I installed updates on my two arch machines, both running SLiM + XFCE4, using `pacman -Syu`. The update on one machine worked like a charm, but broke the other. When booting and trying to login with SLiM, the screen goes black and I'm

  • Planning at Sub-Assy Phantom Level - Work order&Sales order FG Level

    Hi everyone, I'm searching for a way of setup my SAP to have my MPS loaded at the sub-assy(phantom) level and my work orders/sales orders loaded at the FG assy level. Loading the MPS at the sub-assy and exploding requirements to the components are wo

  • How to set the margin between panel?

    i have added four panels to a frame by borderlayout, however, i think that they are too close together... any method that can be used, such that i can increase the margin between four panels? thx

  • C6-00 mail for Exchange account consumes a lot of ...

    Hi all, I'm trying to set up push mail for my gmail account. I have tried RoadSync application and built-in 'Mail for Exchange' account in my phone. While RoadSync after one hour of instance connection consumes about 100kB of transfer built-in accoun

  • Query to pull out Tables from Workbooks/Folders

    Hi, Do anybody have a query which helps to pull out tables which are used in the Workbook or folders, without opening the workbook or a folder ? Your earliest help is Appreciated. Thanks, Ashok