Duplicating a user to another in the same db

I have read plenty of posts about this, but no matter how I try with datapump or simply exp/imp I cant seem to get this right.
I a devel 11gR2 server with one database and a user, USERA that an application uses.
I need to duplicate that application server and point it to a duplicate copy of the database that it uses for its internal configuration. In MSSQL this is trivial to clone a "db" and re-assign a new login and user to it.
In my scenario I want to simply create a new user, UserB and clone the schema from UserA entirely into UserB seems to be a problem.
Using exp, after resolving some NLS_LANG env vars I got a successful export w/o conversion:
exp USERA/password file=USERA_EXPORT.dmp log=USERA_EXPORT.log
Using imp:
imp.exe USERB/password file=USERA_EXPORT.dmp log=USERA_IMPORT.log fromuser=USERA touser=USERB ignore=y
I get OID errors and all sorts of compilation errors. Is this possible with different technique or is each scenario case specific?
Thanks!

exp is the older way to export, it is not recommended for use in the latest versions as it does not support everything. With imp, some things give error on import, but compile properly at runtime as everything gets resolved in the new environment. Then again, some don't.
You want to use expdp/impdp, see [url http://download.oracle.com/docs/cd/E11882_01/server.112/e22490/dp_import.htm#SUTIL927]remap_schema. Also, you can use the NETWORK_LINK option to avoid creating files.
Edit:
Here's part of a korn shell script that I use to migrate certain users from a schema expdp, hopefully the environment variables are self-explanatory:
impdp directory=dump_dir dumpfile=${EXP_FILE} schemas=${FROM_USER} remap_schema=${TO_USER} TABLE_EXISTS_ACTION=REPLACE logfile=${EXP_FLIE}imp.log << EOF
system/mysystempassword
EOF
Edited by: jgarry on Nov 3, 2011 1:31 PM

Similar Messages

  • Can I move applications from one user to another on the same computer?

    If I have two users on one mac, can I move applications from one user to another on the same computer?
    Thanks

    By default, apps are installed for all the users in /Applications

  • How to move iTunes from one user to another on the same Windows 7  computer

    How to move iTunes from one user to another on the same Windows 7 computer? Thanks, Bob

    Move the iTunes library to a shared area and then into the desired location. If this isn’t the default one, launch iTunes with the Shift key held down and choose that library.
    (122379)

  • HT4878 How do i share my pictures, music and videos from one user to another on the same computer?

    How do i share my pictures, music and videos from one user to another on the same computer?

    lots of ways... you could use a thumb drive, you could drag files to the users public folder drop box, you could send it through email, you could use the internet servic called drop box (not to be confused with Apple's user public foldelr drop box).

  • How do I move imove content from one user to another on the same computer?

    We bought our Macbook pro about six months ago. We made the mistake of creating two users for it (my husband and myslef) but bow we only log in under my user name. The problem is we originally imported all of our video camera content to his "log in" and now it is in his imovie folder, and not mine. I want to make a movie on my log in with the fottage that we imported to his. So, how do I get video content from one users login on the SAME computer to the other log in users? I cannot seem to move it for the life of me. I did not expect this to be so difficult.

    Hi,
    You need to log into his account and look, under the Movies folder, for iMovie Events. Inside, you'll find folders with the events names and still further will be the movie itself. Copy each to an external media or use the Shared folder so both accounts can reference them.
    Another option would be to attach an external HD and via iMovie (Events Library pane) move them to the new disk. You would preserve the thumbnails and analysis already performed on the videos.
    Good luck!

  • I NEED TO TRANSFER THE BOOKMARKS FROM ONE USER TO ANOTHER IN THE SAME COMPUTER??

    I have created the recommended second user site on my computer.
    Also I have Administrator user site on the same computer that I do not wish to use sometimes.
    Both users are having the same Mozilla browser (win7) but the second user does not have bookmarks that the first user is having.
    I am struggling already almost half a day by using all printed articles but WITH NO SUCCESS.
    Please advise ma how to do it. I feel it should not be a big problem.
    Thank you.
    Norman

    It can be tricky knowing how to locate and navigate between the different settings folders used by your different installations of Firefox.
    To start, I suggest creating a folder that serves as a neutral location that Windows doesn't try to secure between users. For example:
    C:\bmks
    You can create a backup from the fully loaded copy of Firefox to that folder, then restore it into the empty Firefox. You've probably already found the procedures, but just in case, the following article describes both the manual backup procedure and the restore procedure:
    [[Restore bookmarks from backup or move them to another computer]]
    If you have bookmarks in the newer profile that you do not want to lose, you can use an alternate export/import procedure using an HTML file. This doesn't carry over all the same information (e.g., tags). These articles have the details, and again I suggest using a "neutral" folder:
    * [[Export Firefox bookmarks to an HTML file to back up or transfer bookmarks]]
    * [[Import Bookmarks from an HTML file]]
    Any luck?
    When you're done, you can delete the contents of the neutral folder for privacy.

  • How can I migrate from one user to another within the same computer?

    My main user account in my desktop is becoming buggy after to many migrations from different computers and long time usage. I would like to migrate from one user to another user within the same computer to see if this improves my current problems.
    How can I do it in a reasonably safe and quick way?
    Thank you very much, cheers, Rui
    iMAC, OS 10.6.8... and yes, I love Snow Leopard light and handy... and all my programs work on it...

    Move small groups of files to the /Users/Shared/ folder or another location and see if the problems disappear. Moving everything to a new user account will in all probability transfer the problems.
    (119885)

  • How can I transfer iPhoto files from one admin user to another on the same Mac?

    i created a new admin user on my computer, so now my husband has one and so do i. how can i transfer our iphoto files from his admin user to mine as a shared file? i was able to do this with itunes easily but i am not able to do it with iphoto.

    You want to share the Library?
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • How can I transfer or make readable files from one user to another on the same iMac

    I have migrated files from a windows PC to my Imac. The transferred files have been saved successfully against a new user (which I can access). How can I make those files available to the all users of my Imac?

    In FINDER, drag and drop the files into the Public Folder.  All Users can then access those files.
    Hope this helps

  • How do I transfer fonts on my notebook from one user to another on the same notebook (macbook air)?

    Hi can someone please help me in simple terms...
    Here is what I am trying to do.
    I have 2 users on my notebook (macbook air)  Tracey Brock (administrator)  Little Munchkins (second user)
    The templates that I have moved from my origingal user (Tracey Brock) to (Little Munchkins) all look different and has different font format. eg: I used Baby boston in original template on Tracey Brocks User and when I open it in Little Munchkins it has Arial as the font. I want it to be Baby Boston. I realised that this is because I have used fonts that were not originally in my fontbook on Tracey Brock and need to install these fonts in Little Munchkins but not sure how to do this.
    I copies the fontbook from Tracey Brock user to Little Munchkins user and placed it on the desktop but not sure how to get these into my Little Munchkins fontbook in applications.
    Can anyone help me with simple easy to follow instructions? No good with termonoligy.
    Any help would be greaty appreciated.
    P.S I am using OS X Mountain Lion if that helps.
    Thakyou in advace
    Tracey

    Open two Finder windows. In the first, choose Go to Folder from the Finder's Go menu and provide ~/Library/Fonts/ as the path. Repeat the process with the second, but delete the ~ in the path. Drag the fonts from the first window to the second.
    (69673)

  • Transfer music from one user account to another on the SAME mac?

    My family (wife, son, daughter, and me) share an imac but we all have our own user accounts. Our entire itunes music library is in one user account and is getting to the point of being unmanageable.
    Can I move some of my itunes library (e.g., my son's music) to another user account on the same iMac? Some songs were imported from CD and others were purchased from my Apple ID number.
    It's my understanding that an ipod can only be synced with one itunes library at a time, but I thought Apple also restricted the usage of music bought from itunes to a finite number of computers. If this is true, I think I would be able to transfer a group of songs from one user account to another so long as the user accounts were on the same computer.
    I was told that I could just drag the songs into a shared folder and then log into his account and drop them in iTunes.
    Some specific questions:
    1) Can I move all music files (CD and purchased) to the shared folder for dropping into his account?
    2)The purchased ones were purchased under MY apple ID which I do not want to give him access to. Should I create one for him or just have him use mine and wait for my password. I would like to put an allowance on his new ID number and keep it separate from mine. Would that make a difference in the future if I wanted to use one of his songs on my iPod or in an iMovie project?
    I just reinstalled my Lepoard OS X and put all my data back. I did not deauthorize anything before I did this. Did I need to? Or is even a clean install on the SAME machine ok and seen as the same authorization?
    Thanks in advance!!

    You can give him copies of song files, either by using a shared folder, or by putting the copies on a USB flash drive from which he can copy them to his own iTunes library.
    Any DRM-protected tracks that you have purchased from Apple can only be played if the user has authorization to the account(s) from which the tracks were purchased. Authorization requires physical access to the computer and knowledge of the password, and you can figure it from there!
    Message was edited by: ed2345

  • I only have one iTunes account.  The other day I made the mistake of downloading purchased songs and movies logged on another user account (Administrator) on the same computer.  How do I consolidate all my purchases in my preferred user account?

    I only have one iTunes account.  The other day I made the mistake of downloading purchased songs and movies logged on another user account (Administrator) on the same computer.  How do I consolidate all my purchases in my preferred user account?

    copy the songs that you downloaded as admin and put it somewhere you can access it from you're preferred account (usb stick / cd / shared folder / external hard drive) log into with you preferred user account and drag and drop the files on top of the itunes icon and they will be imported.
    if you have a second computer you could use home sharing to move the music from admin itunes to the second computer and from the second computer to the preferred itununes
    ps you can only connect 5 computers to you're itunes account so don't forget to de-autorise when you no-longer wand it.

  • Moving Events and Projects from one location to another on the same hard drive.

    Hello.
    I've searched in the FCP X User Manual, on this forum and in Google, but have found no explanation of how to do this, so I'm posting this here in hopes that someone in our community will be able to help.
    I've previously stored my FCP X Events and Projects folders on an external 3TB hard drive, because there is more room on it than on the internal 1TB hard drive, but, since then, I've worked with other media apps, for video, photography and audio, the files for which are also stored on the external hard drive, and this has created a bit of clutter with no folder structure to keep it tidy.
    I like an organised file structure on my system, to keep it uncluttered, easy to navigate and efficient to use, so I put all the files for my photography, video and audio apps into their own folders, which are, in turn, stored in their appropriate folders for Audio, Photography and Video, and those three folders are stored in a folder called Media, and then I directed each app to its own files.
    The only app with which this has been a problem is FCP X. While there is a way of relocating projects and events from within FCP X, it allows the user to move them from one hard drive to another, and not, as I want, from one place to another on the same hard drive.
    I'm not sure if it matters, but perhaps it's relevant to mention before the next paragraph that the files that had previously been imported as events are, to save hard-drive space, stored in the events folder as shortcuts to the original files, which are stored elsewhere on the drive, rather than as duplicates of those files.
    In Finder, I copied the Events and Projects folders to their intended new locations and tried in the app to link the events and projects to their new Finder location. It seemed to have worked, until I moved the original folders to the Trash. On re-opening FCP X, it was clear that the linking hadn't worked. I returned the original folders from the Trash to their original location, but that didn't entirely reverse the problem. I noticed also that, in the original and duplicated Events folders, the shortcuts had lost their links to the original files stored elswehere on the drive.
    Fortunately I had run a backup before starting, so I restored the original folders and the app from the backup, and all was back to normal.
    I'd be grateful if anyone could advise me on whether or not it's possible to move FCP X events and projects from one place to another on the same hard drive with the app's compliance.
    Thank you.

    Ludio wrote:
    I'd be grateful if anyone could advise me on whether or not it's possible to move FCP X events and projects from one place to another on the same hard drive with the app's compliance.
    I
    Message was edited by: Russ H Apparently mis-read the questions.

  • F110-Enhancement: User want to reran the same proposal after delete

    Hi guys
    It would be great if ane one having answers.
    User want to rerun the same proposal  when he likes to update the exchage rate after the payment proposal made   .For this, he will delete the proposal and reran the same proposal.
    This is for only Customers and not for Vendors as F110 itself taking care of vendors.
    Here the requirment is when he reran the same proposal he checks  new proposal documents with the documents  existed in ZTABLE earlier(needs to be crated z table for entries RUN DATE,IDENTIFICATIN,ALL DOCUMENTS belongs to each proposal ). if all documents are same then no issue ..payment ran takes place and then delete those documents from ZTABLE.if not same, for those documents payment should  be blocked(
    i.e any new  documents created  first propal and reran  proposal  those new documents shold be blocked) and then delete those documents from ZTABLE too.
    I found one BADI:   FI_F110_SCHEDULE_JOB which is triggering before proposal made.
    its having one structure  F110V having only contains one vendor(lower limit of vendors) and only one customer ( lower limit of customers) so here i could not get all the vendors and all customers but i can get all open doucments from table BSID and BSIK .
    it can be used to some extent but anyway useless.
    BTE: 1860.
    this can be used but user has to click the line item of the proposal run.if suppose there are more documents , it is also useless.
    Another BTE:2040,2060
    I can use these BTEs to delete those documents stoed in ZTABLE after payment made.
    kindly suggest me if anybody have any idea on this enhancement.
    Thanks
    Babu

    Hi,
    When delete event is fired, in PFR capture the selected tab details
    tabBean.getSelectedIndex(pageContext);
    store it in session
    then
    forward it to warning/dialog page
    post the warning page results to calling page
    in the process form request of calling page capture the event
    use
    tabBean.setSelectedIndex(pageContext,value)
    value get it from session
    pageContext.getSessionValue() API
    Regards
    ivar

  • Is there a way I can move movies from one itunes library to another on the same computer?

    Is there a way I can move movies from one itunes library to another on the same computer?

    Locate them in the Windows Explorer, move or copy those files as you would any other, and drag them into the open iTunes window when the second library is loaded. If you're using two iTunes libraries on one user account, you only need to locate the files; otherwise, they need to be put in a shared area.
    (63747)

Maybe you are looking for