Export Table Script & all other db scripts to recreate the db

Hi,
I used TOAD to get all the DBScripts to recreate db. Unfortunately it does not get everything and does not get everything in dependency order. I have very limited knowledge of TOAD and unfortunately I couldn't acheive what I wanted to.
My Requirement
I should be able to export all DB Scripps from Oracle 9i and using those scripts I should be able to recreate DB.
Your help shall be very much appreciated.
Many Thanks,

858407 wrote:
Thanks very much. I think this might be a solution to my requirement. But I have not used this before and do not know how to use it. I am novice to database.
I have a schema called vmlizard
I need to be able to recreate vmlizard in vm2lizard using db scripts.
Please tell me the steps and I shall do it accordingly.
ThanksCheck the following code:
SQL> grant dba to user1 identified by user1;
Grant succeeded.
SQL> conn user1/user1
Connected.
SQL> create table tbl_user1 (id number);
Table created.
SQL> create table tbl_user2 (id number);
Table created.
SQL> insert into tbl_user1 values(1);
1 row created.
SQL> insert into tbl_user2 values(1);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from dba_directories;
SQL> col directory_path format a20
SQL> col directory_name format a10
SQL> /
OWNER                          DIRECTORY_ DIRECTORY_PATH
SYS                            AUDIT_DIR  /tmp/
SQL> exit
[oracle@localhost ~]$ expdp user1/user1 dumpfile=audit_dir:user1_exp.dmp logfile=audit_dir:user1_exp.log schemas=user1 content=metadata_only
FLASHBACK automatically enabled to preserve database integrity.
Starting "USER1"."SYS_EXPORT_SCHEMA_01":  user1/******** dumpfile=audit_dir:user1_exp.dmp logfile=audit_dir:user1_exp.log schemas=user1 content=metadata_only
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Master table "USER1"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for USER1.SYS_EXPORT_SCHEMA_01 is:
  /tmp/user1_exp.dmp
Job "USER1"."SYS_EXPORT_SCHEMA_01" successfully completed at 15:23Now I create the second user to import the data in it:
SQL> grant dba to user2 identified by user2;    
Grant succeeded.
[oracle@localhost ~]$ impdp user1/user1 dumpfile=audit_dir:user1_exp.dmp logfile=audit_dir:user1_exp.log schemas=user1 content=metadata_only remap_schema=user1:user2
Import: Release 10.1.0.4.0 - 64bit Production on Wednesday, 25 May, 2011 15:24
Copyright (c) 2003, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
Master table "USER1"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "USER1"."SYS_IMPORT_SCHEMA_01":  user1/******** dumpfile=audit_dir:user1_exp.dmp logfile=audit_dir:user1_exp.log schemas=user1 content=metadata_only remap_schema=user1:user2
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"USER2" already exists
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 10.1.0.4.0 - Production on Wed May 25 15:24:57 2011
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL> conn user2/user2
Connected.
SQL> select table_name from user_tables;
TABLE_NAME
TBL_USER1
TBL_USER2
SQL> select * from tbl_user1;
no rows selected
SQL> select * from tbl_user2;     
no rows selected
SQL> As you see I've successfully moved only the structure of two tables to the different schema

Similar Messages

  • I have a page with multiple quicktime players on it, and want to close all other players when any of the players is started.

    I have a page with multiple quicktime players on it, and want to close all other players when any of the players is started.
    <div id="mp3-player" style="display:none;height:15px !important;float:left;margin:0px 0 15px 0px; width:270px !important;">
                           <div style="height:15px !important;width:270px !important;">
                               <embed src='http://209.15.205.3/~cityval2/MP3/352681.mp3' width="270px" height="15px" AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/" />
                            </div>
                        </div>

    One key point.
    1. Migration within  the same forest ; we can say operation is cut & paste (Source account wil be not present)
    2. Migration between the forest ; we can say operation is copy  & paste ( Source account will be present)
    Also find some ADMT cool stuffs.
    ADMT Series – 1. Preparing Active Directory
    ADMT Series – 2. Preparing the ADMT Machine
    ADMT Series – 3. SID History
    ADMT Series – 4. Password Export Server
    ADMT Series – 5. Machine Preparation
    ADMT Series – 6. Service Account Migration Wizard
    ADMT Series – 7. Group Account Migration Wizard
    ADMT Series – 8. User Account Migration Wizard
    ADMT Series – 9. Merging Users with a Different sAMAccountName
    ADMT Series – 10. Security Translation Wizard – Local Profiles
    ADMT Series – 11. Computer Migration Wizard
    Regards,
    Biswajit
    MCTS, MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, Enterprise Admin, ITIL F 2011
    Blog:
      Script Gallary:
    LinkedIn:
    Note: Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights..

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • My ical works ok except when I open the month of March 2013 it crashes/closes. All other month work, even into the future. How can I fix this?

    My ical on ipad 3 works fine except when I open the month of March 2013 it crashes/closes down immediately. All other months work, even into the future. Even Feb and April etc. in 2013. How can I fix?

    I understand it's a glitch. If you have any events on april 1 2012 i believe,t hat's an all day app, delete it or make it for just a period of time, not all day.
    I think it has something to do with daylight savings time (but don't quote me on that) with the conflict betwen 'all day' and the ipad trying to figure out how long 'all day' is with that whole spring forward and lose an hour. removing any 'all day' appointments seem to remove that conflict.

  • My husband has a Mac mini, vintage 2009, running Snow Leopard. All other computers and devices in the house are able to connect to our wireless network, but since I upgraded his computer to Snow Leaopard  it won't connect. What is the problem?

    What am I missing here. I'm sure it is some kind of sitting that is not right.
    Thanks Pat

    Sounds familiar:
    lllaassJan 6, 2015 2:12 PM Re: My husband has a Mac mini, vintage 2009, running Snow Leopard. All other computers and devices in the house are able to connect to our wireless network, but since I upgraded his computer to Snow Leaopard  it won't connect. What is the problem?
    Re: My husband has a Mac mini, vintage 2009, running Snow Leopard. All other computers and devices in the house are able to connect to our wireless network, but since I upgraded his computer to Snow Leaopard  it won't connect. What is the problem?in response to Patricia Isaac1
    Power off and then back on the router
    What happens when you enter the network's PW?
    Try forgetting/deleting the network if necessary. To do that go to System Preferences>Network>wifi>Advanced and select the network and click on the minus sign
    Csound1 wrote:
    Turn off the modem and the router, wait 60 seconds. Turn on the modem, wait 60 seconds, turn on the router.

  • HT4623 My iphone 5 seems to be stuck in the horizontal view when I'm in the message mode.  In all other views I can turn the phone 90 degrees and horizontal to vertical works fine.  Not sure what the problem is.

    My iphone 5 seems to be stuck in the horizontal view when I'm in the message mode.  In all other views I can turn the phone 90 degrees and horizontal to vertical works fine.  Not sure what the problem is.

    I found a solution!
    Perhaps this is just temporary, but I have my display up and working again.
    Although the symptoms are different were a bit different, the solution here worked:
    http://apple.stackexchange.com/questions/120259/grey-screen-after-login-blue-scr een-of-death-from-cmdr
    As I was able to connect to my HD via an external monitor, in the finder, I went to:
    1. Macintosh HD --> System --> Library --> Extensions
    2. From there I moved all of the files that started with ADM and ATI (19 in total for me) to a folder on my desktop. (You will need to enter your admin password for this)
    3. Next was a restart.
    4. Then my display started working again.
    5. After that, I transferred the files back into my Extensions folder.
    6. I then did another restart with my fingers crossed and breath held. It worked.
    Also... During the last few days of trying to find a fix, I restored a Mavericks backup to my computer away from Yosemite.
    I'm very sure this problem occurred when I put my MBP to sleep, disconnected the power in its sleep, while something was connected to a USB port and unplugging the USB device (for me an iPhone charger) while the MBP was closed.
    I hope this helps the next person.

  • When are we going to get infinite scrolling for the S4.  All other carriers have it on the S4 and it is frustrating that it is turned off for Verizon only.

    All other carrier S4 phones have the option to turn infinite scrolling on/off.  However with Verizon there is no option and it is turned off.  Every forum I go to says that you have to root the device to turn it back on.  VERIZON are you going to listen to the myriad of people the would like this option, a basic option advertised for the Samsung S4?  Please PLEASE PLEASE give us the option back.

    See the other threads on this issue/non-issue.
    Search the Community forum box at top right, or look at trending content.

  • UL type lock on a table blocking all other users

    Hi,
    We have a referential integrity constraint on a version enabled table, that refers to a non-version enabled table (highly active table..lots of inserts/updates). An insert into the version enabled table is causing a UL type lock and the non-versioned table is locked (literally the table is inaccessible) and we see blocking locks. How can I avoid this situation? Is there any OWM settings that will help me resolve this issue? I am using workspace manager version 10.2.0.4.2.
    Thanks.

    Hi,
    An insert into a child table requires a lock on the parent table which will block updates and deletes into its parent table(s) until the lock is released. This is done to maintain the validity of the constraint. Otherwise, it would be possible to have child rows without parents, which we obviously need to prevent from happening.
    If possible, you could commit/rollback the transaction involving the child table more frequently, so that the locks are released and dmls can proceed on the parent table.
    You can also take a look at the following thread.
    RIC in OWM - ORA-20171 deadlock detected ...
    It is specifically referring to deadlock situations, but it also explains our locking behavior for RIC tables.
    Regards,
    Ben

  • My lightroom 5.5 will not export jpg or any other type of photo from the original RAW/NEF uncompressed file.  I get a message saying there is a Win 32 "file missing."  I unistalled 5.5 and reinstalled 5.4 and it works fine.  What to do?  Anyone else have

    LRoom 5.5 does not export files under any circumstances.  I've chosen different locations; putting it in Lightroom NEF to JPG, putting it in another program, same conversion. 
    I get a "win 32 file missing.....".  I did not copy that message as it was not complete.  I uninstalled 5.5 and reinstalled 5.4 and it works just fine.  I didn't notice any difference to begin with.  Minor fixes for a few cameras and lenses.
    Not being able to export is a SERIOUS problem and its not with my computer.  If it worked for the last 3 years, it must be with 5.5.
    Any ideas?  Thanks for you input and help.  Also, how does one get Adobe to interact directly with its customers rather than having the blind leading the blind??
    Thanks

    99.9% (estimated) of Lr5.5 users are not having the problem you are (can't export).
    That said, for this type of problem, you may want to consider Adobe technical support instead of the forum - I prefer chatting..
    If you want some advice from a fellow blind user: try renaming your preferences file (and all other Lr data files if preference file doesn't make a difference, try a new catalog if still no luck). If still the same error, consider posting the rest of that error message - it could be you just need another "win 32" file not being installed by Lr installer, but without knowing the filename, it's kinda hard to say.........
    Preference and other file locations in Lightroom 5
    PS - the logic: "no problem til Lr5.5, so Lr5.5 code at fault" sounds good on the surface, but is surprisingly flawed - perhaps you should consider yourself lucky the other versions worked despite the potential for problem, rather than considering yourself unlucky that you got nailed when upgrading to Lr5.5 .
    Don't shoot the messenger ,
    Rob

  • My iPad first gen (iOS5.1.1) won't connect to my home WiFi suddenly. It's worked fine for years but just stopped. All other devices do connect to the WiFi. Now, the iPad does connect to the WiFi at my workplace. Ideas on this?

    My iPad (first generation iOS5.1.1.1) quit connecting to my home WiFi recently after years of being able to. All other devices in my home connect fine. I have taken every step I can find to try and remedy things including restoring my iPad to factory settings. Still nothing - when it tries to connect to my network it just spins. I took my iPad to work and it connected to the WiFi there just fine. Came back home, no good. After talking with my local Mac supplier they've suggested that maybe my router is the cause. I've unplugged it several times for lengths of up to an hour but that still isn't getting things working again. Any ideas?

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I'm am on a wireless network and I can access the itunes store from my ipod, my notebbok, but not my desk top. all other function on itunes on the desk top works fine. can you help? I have re-downloaded itunes on the desk top.

    Has my question been received?

    Try this on your Destop:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    Now launch your iTunes and see if it is working now.

  • I have just brought my new mac book air home from the store and cannot get onto the internet even although correct password entered for wifi and signal strong and it says it is connected to network , all other devices are working in the house

    Hi
    I have just brought my mac book air home from apple store and it won't connect to internet although correct wifi password entered and all other devices are connecting ok and signal strengh strong and it says it is connected !

    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Call AppleCare.
    Best.

  • I am trying to access tax forms from the IRS.  I download them to my comuter and they read fine (version XI).  However, when iItry to open them on another computer (version 4) they will not open.  Version 4 opens all other documents fine, just no the ones

    I am trying to access tax forms from the IRS.  I download them to my comuter and they read fine (version XI).  However, when iItry to open them on another computer (version 4) they will not open.  Version 4 opens all other pdf documents fine, just not the ones from the IRS.  Any ideas?

    Version 4 is oh so old.
    The IRS and many other providers of forms are using products like LIveCycle which require at least version 7.05.
    Saving, Filling, and Printing PDF Files
    We use Adobe Acrobat PDF files as a means to electronically provide forms & publications. You will need to have the Adobe Reader software installed to access them (available FREE from the Adobe Reader download page on Adobe's Web site). We recommend using the most recent version of Adobe Reader.

  • Dbms_metadata.get_ddl returns text of table script but not the view

    Hi all
    I am using a DDL trigger like
    CREATE OR REPLACE TRIGGER SYS.log_ddl AFTER DDL
    ON DATABASE
    declare
    n_text varchar2(2000);
    begin
    if ora_sysevent='CREATE' and ora_dict_obj_type='VIEW' then
    select dbms_metadata.get_ddl
    (ora_dict_obj_type ,ora_dict_obj_name,ora_dict_obj_owner)
    into n_text from dual;
    elsif ora_sysevent='CREATE' and ora_dict_obj_type='TABLE' then
    select dbms_metadata.get_ddl
    (ora_dict_obj_type ,ora_dict_obj_name,ora_dict_obj_owner) into n_text from dual
    end if;
    end;
    on execution
    the first condition produces an error if the view does not already exists
    ORA-31603: object "TEST" of type VIEW not found in schema "SHAI"
    but the second condition of table creation executs successfuly and return the script of the table
    what can be the main theory behind this.

    I think some of the bug fixes were targeted for 9.2.0.5, but I can't tell you for certain.
    One of the things I really don't like about DBMS_METADATA is that it returns an error if a specified object does not exist. For example, I created a sql script that would accept a schema name as the input parameter and would generate all the ddl for the schema. If the schema did not have a particular object, for example a sequence, the call to DBMS_METADATA to generate the sequence ddl would return an error instead of returning nothing. I had error checking in the script, so this caused problems. (Oracle's response is that this is expected behaviour).
    This might be what is happening with your call.
    Dan

  • TS1702 I tried to send a text message earlier, but when I touched the button it wouldn't open. I closed all other apps running and reset the phone. Now it keeps turning on and off over and over again. so I went to ATT and bought a new one. its doing the s

    Help! I have tried to restore both phones to no avail. I can't even turn them off to make them stop blinking. I ket the old one die, then plugged it in and that didn't even work

    Restart your computer while holding down left mouse key. That will eject the CD and your Mac will start as normal.
    Lupunus

Maybe you are looking for

  • Can you sync two 4S iPhones to one PC and iTunes account?

    Can you sync two 4S iPhones to one PC and iTunes account?

  • Translation from CS5 to Cloud doesn't  work correct, navi and linked images are broken.

    Translation from CS5 to Cloud doesn't  work correct, <navi> and linked images are broken. The data of CS5 was created at another PC. I installed Cloud version into two different PC. One has had the site data since dreamweaver CS5 and it works correct

  • Second Site-to-Site VPN on 881 router

    Having issues with a router that I took over management of from another tech who liked to use SDM to make his config files. Here is what I am trying to accomplish: The VPN parameters are as follows: Peer IP: 174.XXX.XXX.1 Remote Network: 174.XXX.XXX.

  • Picking the last purchase price of the material

    Hi For the purpose of estimating the cost of material presently we are taking the cost of the material from the moving avg. price maintained in the material master. But now the client requirement has come to take the last purchase price and the curre

  • Displaying a Big Picture on Flash CS4

    Hello folks.......... It is possible to create a flash picture that the user can drag around ? In another words, this will be a big picture on a small area or screen and the person with scrollbars or mouse can drag / pan the picture. Thanks Gesy