Create a script that can create entire schema with data when run

Hi,
I need to create a script that creates the entire schema on a database when the script is run. the need is that the script should be capable of creating all schema objects with grants and all, including the table data.
The same objective can be achived through export / import.But we don't want to deliver the dump files instead a script which will be executed on a database created with same database stucture of tablespaces etc.
I have serched the net but yet to achive the goal.
Is there any oracle utility / script file that can do this for me ?
Can Oracle import be used to create the same, the way it is used to create index File ?
Please suggest !!
Regards

You should look at the package dbms_metadata to be able to extract all ddl to recreate a schema. To load the data, you could write scripts that will generate insert statements and spool these to a file (sql generating sql), or you could write scripts that generates a delimited file and use sql loader to load the data into the target system. There are lots of little gotchas in either of these 2 solutions. The biggest 2 right away. 1 - picking a delimiter, 2 - dealing with carriage returns in text data. SQL Developer is able to do some extraction, so before you go writing this stuff yourself, I would check it out to see if it does what you are looking for before you reinvent the wheel.

Similar Messages

  • How can I synch iCal with iPhone when running Snow Leopard?

    I'm running Snow Leopard (10.6.8), and I cannot upgrade to Lion or Mountain Lion because I have an Intel Core Duo iMac.
    I absolutely MUST be able to synch my desktop calendar with my iPhone. This is an essential function for my life - I cannot believe that Apple would make me buy an entirely new computer, just so that my desktop calendar sychs with my iPhone.
    Can some please help me figure this out?
    Thank you!!
    -Paul

    Maybe you might get more response in the MobileMe forum as it sounds like an issue with that to me and I don't use it so am unable to help in that area.
    Hope you get it sorted out soon.

  • I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    I want to know how to create a new script that can be run in batch proces in Photoshop Element 11 ?

    Have a look at the menu file/process multiple files. You can choose to add your signature (or the caption) to the image and export the new files.
    If that solution is not flexible enough, consider using the very affordable (12$)  Elements+ add-on which offers a 'meta stamp' script :
    http://elementsplus.net/v5/en/meta-stamp.htm
    Otherwise, have a look at other free and good solutions like Faststone Photoresizer, Xnview...

  • Is it possible to create a script that does this?

    Hey there,
    I can work my way around a Mac pretty well, but as for coding, I'm not as good. Hopefully someone will know how to do what I'm looking for:
    I do a lot of school assignments on my computer, and I've recently utilized an online service that allows me to sync up my files on my computer with their servers (like MobileMe, but not). Anyway, this is great and all, but this service is virtually useless if I'm trying to access a Pages publication via my school's computers which run Windows and, consequently, Microsoft Word 2007. However, they ALSO run Adobe Reader. Is it possible to create a script that, every time I save a Pages publication, automatically creates a PDF export of that same file in the directory where I'm working? Also, when I update the Pages file, it'll automatically update the PDF file?

    Saving a script as a Script, an Application or an Application bundle requires the use of the Script Editor as explained in the System (Finder) help.
    step 1:
    open the script in the Script Editor
    step 2:
    compile it clicking the "Compile" button
    step 3:
    Save the script from the "File > Save" menu:
    To save as "script" select the "script" menu item
    To save as "Application" select the "Application" menu item
    To save as _"Application Bundle"_ select the _"Application Bundle"_ menu item
    The files which I post are saved thru the "Text" menu item which attache the extension name ".applescript" telling that it's an _Applescript's text file._
    All these infos are given in resources pointed by my late messages !
    Now are infos which maybe you will not find in the Apple's resources
    I use the text (.applescript" format because it embeds nothing related to my machine.
    To work from the Scripts menu, my best choice is "Script" which appears to be the fastest one.
    "Application" is slower and sometimes gives odd results on MacIntels.
    "Application Bundle" behaves well on every machines but is slower than "Script".
    Yvan KOENIG (from FRANCE vendredi 29 mai 2009 09:53:21)

  • I need a BAPI or function that can create a PO without the purchase req.

    I need a BAPI or function that can create a PO without the reference to a purchase requisition. We are creating "direct POs" (with no reference to PR) manually. And we have a large amount of documents to create. I can't figure out if BAPI_PO_CREATE and BAPI_PO_CREATE1 can help us by doing this, because I've understood this BAPIs creates POs only with the reference to a purchase requisition.
    Thanks in advance!!
    Sebastian

    Sorry I'm late guys, I couldn't replay your posts because I was busy.
    Charlie,
    ...just because we have the data already in the SAP system.
    My client doesn't want purchase requisitions to be created from the PM orders. Instead he asked us to create the purchase workflow by generating direct purchase orders from the PM orders, basically taking the information from the purchase agreement within the order's tasks. Maybe you don't understand a bit what I'm saying, but let me get this straight: we can't use LSMW because data doesn't come from a legacy.
    Ian,
    ...after all, and like you've said, we're gonna use BAPI_PO_CREATE1 for creating the POs. Today I finally realized that, purchase requisitions aren't mandatory for the bapi to perform the process. If something goes wrong, I'll let you know.
    Thanks anyway for your attention.
    Sebastian

  • How to create a user that can login the LDAP?

    I want to create a user that can login the OID/LDAP. I know how to create a user, it is allowed to login OIDDAS, but I also want the user to grant access to ldap directly. How do i do that?
    And how can I give it read rights and or update/delete rights on a specific tree?
    Regards
    Eelco

    Eelco,
    did you see the OiD developers guide? Here you find some examples how to create users in OiD using pl/sql or java.
    http://download-west.oracle.com/docs/cd/A97329_03/manage.902/a95193/smplcode.htm#637294
    how to use directory access control can be found in
    http://download-west.oracle.com/docs/cd/A97329_03/manage.902/a95192/access.htm#1054232
    --Olaf

  • Whats the best software for photo editing and creating product catalogues that can be saved as PDF's

    Whats the best software for photo editing and creating product catalogues that can be saved as PDF's

    You are asking two different questiions:
    1. What's a good photo editor? Answer to that here is probably obvious.
    2. What's a good desktop publishing/page layout program for creating PDF files for production? Answer, not PSE. It's a photo editor, not a page layout program.

  • Is there any BAPI that can create assignment in workforce planning (CMP2)

    Hello,
    I want to implement a batch input program in order to create assignment in workforce planning. But the screen is not actually proper for batch input. Is there any Bapi that can create assignment for a given network, Operation/Activity, suboperation/Subactivity, personel Number and work hours.
    Thanks in advance.

    Hi Aselsan,
    Please have a look into the below link
    [Link 1|Re: BAPI to create network (T-code CJ21)]
    [Link 2|Example code for BAPI_NETWORK_MAINTAIN]
    [Link 3|BAPI_NETWORK_COMP_ADD]
    Hope they are useful,
    Thanks
    kalyan

  • I want to create fillable PDF that can be used by many people running on both MAC and PC.  What Adobe product should I use?

    want to create fillable PDF that can be used by many people running on both MAC and PC.  What Adobe product should I use?

    Hans-Gunter
    Thanks so much.  I downloaded Acrobat XI.  It's been "extracting" for the past 30 minutes (even with a fast wi-fi).  Hope this is not a problem.
    Anne

  • Is There Any Tool in Java That Can Create Reports?

    Is there any tool in Java that can create reports? What is the tool?

    Google is your friend
    http://www.google.com/search?q=java+reporting+tools&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8
    I've heard good things about JasperReports (theres a link on the first results page from the above Google search) but I haven't used it myself.

  • How to create a vi that can be connected to any type of array

    I would enjoy to create a vi that can perform an operation (like resizing) on any type of array (array of string, of cluster, of num,...): Which type of control or indicator could I use for this purpose? Any Idea?
    Thank's for your help

    Olivier,
    to do this you have to use a variant input. You can wire any type of data to a variant input. Inside the VI you flatten the variant to a string. The flattened string of an array contains both data and length of the array. You reshape the array manipulating the string. When done, you unflatten the data to a variant and output it from the VI. The caller has to convert the variant input to the source array type. OpenG.org provides a quite extensive toolkit to manipulate variant data. Some VIs specifically manipulates arrays. To see a description of VIs go to : http://opengtoolkit.sourceforge.net/lvdata/index.html
    LabVIEW Data Tools can be downloaded from http://sourceforge.net/projects/opengtoolkit/
    You need both packages lvdata AND error.
    LabVIEW, C'est LabVIEW

  • Can I create order forms that calculate the exact total with taxes?

    Can I create order forms that calculate the exact total with taxes?
    The customer needs to know exactly how much everything will cost before submitting. I can handle the actual payment portion manually.

    thanks for the info;
    I'll inform the admin dude that they need an upgraded acrobat to do forms.

  • How do i create a stensil that can be added into diffrent files of adobe reader?

    I want to create a stencil that can be used in multiple adobe files for quality check purpose. Will be helpfull if somebody helps me out on this.

    why are you saying
    Pat Willener wrote:
    Please stay in your own topic, and answer the questions asked!

  • How do you create a part that has two through holes with a single net connecting to both.

    I attempted to create a part that contained 2 through holes with a copper strip between them so they would connect to a single net, but one of the holes (pin 2) gets rejected by Ultiboard as an unconnected entitiy. Is there a way to define the second hole (pin 2) in such a way as to mitigate the problem?
    Thanks, Tod
    Solved!
    Go to Solution.

     Hi
    It is quite simple to do so:
    when making the footprint, you just put your two TH pins where you need them. name them 1 and 2.
    Then in Multisim, when making a new component with the component wizzard,in step 2 make a 1-pin component, and select your desired footprint(which has two pins).
    thenin step 3, make/choose your 1-pin symbol.
    In step 5 you can map the footprint to the symbol , just use both footprint pins for the same symbol pin.
    When using it in your schematic, you'll see one pin, in the layout, there will be two pins connected together..
    Good luck
    stressed user..

  • Request - Perl script that can parse an ACE config from a VIP

    Has anyone ever written a Perl script that can take the VIP from an ACE config and parse it out into the component parts of the config, ACLs, NATs, Class-map, policy-map, etc. ?
    This seems like something someone must have written already.
    Thanks in advance!

    Any reason you dont want to use XML instead of doing just PERL ?  Its lot easier to do with XML scripts as ACE has a XML interface to query whatever is needed. So that said, you can use a perl to interface ACE via XML. Here's a simple Perl that uses LibCurl:
    #!/usr/bin/perl
    use WWW::Curl::Easy;
    my $numArgs = $#ARGV + 1;
    if ($numArgs<4)
    die("Usage: shusers.pl ip_address username password command\n");
    my $ip = @ARGV[0];
    my $uname = @ARGV[1];
    my $pwd = @ARGV[2];
    my $cmd = @ARGV[3];
    my $curl = new WWW::Curl::Easy;
    my $posturl = "http://$ip/bin/xml_agent/";
    my $xml_cmd = "xml_cmd=<$cmd/>";
    $curl->setopt(CURLOPT_HEADER, 0);
    $curl->setopt(CURLOPT_FRESH_CONNECT, 1);
    $curl->setopt(CURLOPT_URL, $posturl);
    $curl->setopt(CURLOPT_RETURNTRANSFER,1);
    $curl->setopt(CURLOPT_USERPWD,"$uname:$pwd");
    $curl->setopt(CURLOPT_POST,1);
    $curl->setopt(CURLOPT_POSTFIELDS, $xml_cmd);
    $curl->perform;
    my $info = $curl->getinfo(CURLINFO_RESPONSE_CODE);
    print $info;
    Hope this helps.
    Cheers
    V.K

Maybe you are looking for

  • How many times can i call the start()

    Hi All: I would like to know how many time you can actually call the start(), cuz my app is doing some really strange things, here is a fragament of my code: private void spawnThreads() ListIterator it = _vWorker.listIterator(); while ( it.hasNext()

  • How to disable the print "ALL" feature for users?

    Is there a way to limit the user from printing an entire Adobe Acrobat  document by accident.  We have many documents that are 50 pages and more  and often times, the user only needs to print several pages but because  of CCS (Continual Clicking Synd

  • Is it safe to use equals on BC entities?

    Hello, I have an entity with two accessors to another entity. I need to check whether both accessors "point" to the same entity. Is it safe to use:   // in employee entity   if (getDept1().equals(getDept2()) {   }Will accessors always point to the sa

  • Excise register report

    Hi all, I want to get the report for RG1, RG23A Part 1 and Part 2, PLA. Can anyone tell me where i can see all the report. If there is any standard T.code, please give me. Thanks in advance, Regards, Babs

  • Price Difference during GR

    Hi, I have a material on Moving Average Price which was extended to a new plant that was configured. During GR, some amount of significant value is posting to the Variance account. This is the first GR for the new plant and also the first material to