script to install the entire database from scratch?

I have Oracle database 10g and Java code to connect to the database and the system is running.
This database have been created over the years, incementally adding some objects, patterns, roles and so on.
How can I create a script now that settles the entire database from scratch?
I mean what can I create the file called "set_up_database.sql", which creates the database clone/copy of my current Production database now?

CharlesRoos wrote:
I intend to use ' expdp/impdp' to create the binary export file and then import it into the new instance of the database.
These tools of import-export will create me all schemas and the rights and roles of database and created patterns will have the same password?

Yes it is possible. But it depends on the options that you set when you use expdp/impdp.

You can export the entire database or only some users, or even just a few tables.
You can choose to include or exclude data during export.
When you import, you can choose again to import with or without data. With data are possible cause only if the dmp files have included data.

You can also rename a schema during import.
Best way to start would be to do some exercises to imp/exp using a simple 'play' database.

Tags: Database

Similar Questions

  • SQL script to query the entire database?

    Hello

    I have column names, I need to figure out what array these column names in the database.

    In dev and prod table names are different. I need to understand what is the name of the table with some columns in prod that exsits in dev. Any help is appreciated.

    I use

    Oracle Database 11 g Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    Thank you.

    Hello

    You can query the data dictionary view dba_tab_columns.

    For example, if you want to find who files an EMPNO and DEPTNO column:

    SELECT master, table_name

    FROM dba_tab_columns

    WHERE nom_de_colonne IN ('EMPNO', 'DEPTNO')

    GROUP BY master, table_name

    HAVING COUNT (*) = 2

    ORDER BY owner, table_name

    ;

  • Failed to install the new flashplayer from adobe

    Original title:

    Adobe flash player

    I'm still not able to install the new flashplayer from adobe, message reads, close glplayer and try again, Please HELP ME

    Flash Player

    First of all, try to enable Active Scripting in the areas of Sites Internet Options, security settings, trust.

    You should also add a corrupted on.

    Click Start, type: Internet Options

    Press enter

    Select the "Advanced" tab

    Under reset Internet Explorer settings, click "reset".

    This should restore the Internet Explorer default settings.

    Then reinstall Flash Player

    http://get.Adobe.com/flashplayer/

    ----------

    Flash Player

    Troubleshoot installation of Flash Player for Windows

    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Troubleshooting player stability and performance

    http://blogs.Adobe.com/JD/2010/02/troubleshooting_player_stabili.html

    Uninstaller

    http://kb2.Adobe.com/CPS/141/tn_14157.html

    Flash Player Support Forum

    http://forums.Adobe.com/community/webplayers/flash_player

  • I want to upgrade Lightroom 4.3 to 6.4 Lightroom on a new PC. Is it possible to install LR 6 'own from scratch? And if so, how? (no text)

    I want to upgrade Lightroom 4.3 to 6.4 Lightroom on a new PC. Is it possible to install LR 6 'own from scratch? And if so, how?

    Hi adlerw,

    Yes, you can purchase the upgrade to Lightroom 6.

    To buy Lighroom 6 appointments on:

    https://www.Adobe.com/products/catalog/software._sl_id-contentfilter_sl_catalog_sl_softwar e_sl_mostpopular.html

    • Select Photoshop Lightroom upgrade of 'I want to buy '.
    • Select the version that you currently own
    • Select the platform and language
    • Click on add to cart

    Download link for Lightroom 6:-Install Photoshop Lightroom

    See also, keeping up to date of Lightroom

    Let us know if that helps.

  • A SCN for the entire database and the different SNA for the data files?

    DB Version: 11 g

    I always thought that there is a unique SCN for the database as a whole.
    A quote from the link below as
    When a control point is completed, Oracle stores the RCS individually in the control for each data file file
    http://www.dbapool.com/articles/1029200701.html


    What does that mean? There is a SNA for the entire database, and there are individual SCN for each data files?

    Well, unfortunately, the article says more bad than good things. Or if I can't call them wrong, they are rather confusing and rather than clear things for the reader, its making them appear to look more confused.

    First things, YVERT is used for read consistency (CR) mechanism and the backbone of the notion of Multiversioning. The control point is the mechanism to help that recovery is decided. Contrary to what said article, not any kind of checkpoints update both the data file and the control file, and also, there is not a type of them as well. In addition, the article says that the LAST_CHECKPOOINT is set to NULL, while its actually set to the infinity since it is not possible to detect the moment when the database is opened, that the last issue of control over the file would be. In the case of complete control point, this number is saved and is also associated with the toa Controlfile own database leader at the next startup. If this is not the case, there is an inconsistency in the stop_checkpoint of the data file and the stop_checkpoint reocrded in the control file, leading to a recovery of the instance.

    There are several types of control points. Similarly, there are several types of SNA as well. Without going into the details of these, IMO, the article simply means that when the control point write over a file passes, oracle updates the file checkpoint on it and this is recorded in the Controlifle. as well.

    HTH
    Aman...

  • This page requires a version more recent Silverlight.Would you want to install the latest version from the Silverlight Web site?

    ---------------------------
    Microsoft Silverlight Update
    ---------------------------
    This page requires a newer version of Silverlight. You want to install the latest version from the Silverlight Web site?
    ---------------------------
    Yes No
    ---------------------------

    using Visual Studio RC 2012 and try to create a Silverlight application and the following error message occurs.

    ---------------------------
    Microsoft Visual Studio
    ---------------------------
    Mixture cannot continue because a compatible version of Silverlight is not found.
    ---------------------------
    Ok
    ---------------------------

    Silverlight forums: http://forums.silverlight.net/

    Visual Studio forums: http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio

    -steve

  • I can't open videos or change with Movie Maker. Is it because I have a Sony Handycam? He said that there is a lack of "codec". Where can I install the missing codec from?

    original title: help with Movie Maker...

    I can't open videos or change with Movie Maker.

    Is it because I have a Sony Handycam?

    He said that there is a lack of "codec". Where can I install the missing codec from?

    Very frustrating because I've used it before - maybe because I have SP3? But I don't want to uninstall SP3... :-(

    Help, please!

    Thank you!!

    Thanks for the info.

    MPEG files are problematic in all versions of Movie Maker.
    Best bet would be to convert the files to the. WMV format
    before you import into Movie Maker.

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup280.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup280.exe out of the folder
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • How to start the inventory collector from scratch

    Hello

    I would like to completely redo the inventory collector from scratch by removing all current devices in collector DB and inject a new list.

    How should I proceed?

    Thank you

    NIC

    Hi Nic,

    If you mean the discovery process, you'd by unmanaging all devices by accessing «Management» :-> "Unmanage Devices" and discovery. Hope that answers the question

    Thank you

    -Séverine

  • I am a member creative cloud. I want to install the same applications from my laptop to my new desktop computer. I need to purchase another license? otherwise how do the same thing for my new desktop computer

    I am a member creative cloud. I want to install the same applications from my laptop to my new desktop computer. I need to purchase another license? otherwise how do the same thing for my new desktop computer

    I have it! Thank you

  • problems to install the latest plugin from vcenter server 5.0.0.149 on the vco 4.1.1 build 733.

    I have problems to install the latest plugin from vcenter server 5.0.0.149 on the generation of vco 4.1.1 733.

    If I go to the plugins tab I see vCenter Server 5.0.0.149 Installation OK

    I configured a host esx to vCenter Server tab, but as soon as I click on 'Apply' it starts to load forever.

    I tried to restart the server vco and vco configuration services, but the problem remains unchanged. In the server.log I couldn't find anything relevant, but it is still attatched

    Hello!

    Try increasing the memory for the configurator web-tool, as described in the release notes:

    http://www.VMware.com/support/Orchestrator/doc/vCenter-server-plugin-50-release-notes.html

    See you soon,.

    Joerg

  • HP Pavilion 15 t, #J2N76AV_1: to install Win7 (64 bit) from scratch on the SSD.

    Order a flag 15 t with processor I7-4510U and NVIDIA graphics 840M.  This config mobile are equipped with only 8.1 OS Win, I don't like to use.  Factory install Win 7 Home Premium from scratch on an SSD.  I thought, I have driver problems.  If true, are there solutions for drivers.  Am I facing some other problems?  Product #J2N76AV_1 (taken from the HP site).

    At any time.

    Glad to be of assistance.

  • How to create the file controlf from scratch when there is no backup rman, catalog, or trace.

    Hello

    I am a beginner, I know that we can restore with RMAN control file configure automatic backup feature or by connecting the catalog

    charge the Alter database backup controlfile to trace.

    But suppose that there is no backup. You have the database running in nomount. I came across a blog which was responsible for creating the control file manually and when there is no planned block number error came, the blogger has used the forumale something as expected number of block * 1024 / something. Lost the link to this blog

    was wondering is it possible to create a controlfile from scratch. with little information as the location of the data file, repeat the log size / location.

    Please can someone let me know it in detail or shoot me this link!

    Thank you

    2638616 wrote:

    Hello

    I am a beginner, I know that we can restore with RMAN control file configure automatic backup feature or by connecting the catalog

    charge the Alter database backup controlfile to trace.

    But suppose that there is no backup. You have the database running in nomount. I came across a blog which was responsible for creating the control file manually and when there is no planned block number error came, the blogger has used the forumale something as expected number of block * 1024 / something. Lost the link to this blog

    was wondering is it possible to create a controlfile from scratch. with little information as the location of the data file, repeat the log size / location.

    Please can someone let me know it in detail or shoot me this link!

    Thank you

    1. Yes, you can do this

    2 Controlfile script is standard... link doc oracle: http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm

    3. prepare with the location of the data files and of redologs online then create it.

    Note - If you have placed the name of the different database, then, it will check with datafile and it give error (if you need correct the name of the database)

    As you have not indicated whether or not the last stop of database is compatible (we assume that there are his uniform and mandatory ORL and archives)

    -Pavan Kumar N

  • Install the El captain of scratch hungs

    Hello

    I install el captain from scratch on a macbook pro (2011). The installation starts but it hungs showing the progress bar and the Apple on 80%

    anyone knows hot to 'unlock '?

    Command start + r keys and run disk utility > first aid

  • Impossible to install the graphics driver from Intel on Satellite R630

    Hi, I downloaded the latest graphics driver from intel, but it won't install it? is there any solution for this?

    You must use the driver from Toshiba's European driver page.
    If you want to install the driver from the Intel page then you can do it at your own risk.
    This driver can be installed in Device Manager. There, you have to point to the files in the driver downloaded from Intel page by using the Advanced installation procedure and have to force the operating system select this driver.

  • Can not install the latest driver from NVIDIA on my Satellite A100 - 999 (PSAARE)

    Hello

    I have a problem with the nvidia geforce go 7300 card controllers in my laptop, there is an update of the website of toshiba for this laptop and version 156.16, one coming from him makes it so that is 97,46

    When you install the new controller, this leaves me the following message: the program from nvidia cannot locate any controller compatible with current hardware.

    Not you if it's better to remove the old controller to accept it or the problem is due to something else.

    Can someone help me

    Thank you

    Post edited by: [email protected]_ES

    Hello

    Did you remove the old driver first? Try to manually remove and install a new one after the reboot.

Maybe you are looking for