recreate the database from an existing database script

Hi Experts,

I need script to re-create the database from an existing database. I tried to find in Web sites, im not able to get it.

Please help me do this,

Thanks in advance.

concerning
Sundar

Loo in the metalink Doc ID: Note: 211905.1

Tags: Database

Similar Questions

  • Recreate the database with backup to a different server

    Dear friends,

    I'm backup with RMAN

    Level 0 backup on Sunday and level 1 in week

    Now, I want to recreate this database on another server.

    Is this possible? I don't want to duplicate or cloning.

    Any suggestions?

    What we call this kind of recovery?

    Should I do something like that?
    Make a full backup all of current your database files instead of using the Level 0 or Level 1 backups.
    Place all database files to same directories.
    Create the Windows service if removed.
    C:\> oradim.exe -new -sid <ORACLE_SID> -startmode -manual
    
    Startup instance.
    C:\> net start OracleService<ORACLE_SID>
    C:\> sqlplus /nolog
    SQL> connect / as sysdba
    Thank you!

    Salvation;

    What is the version of DB?

    pelase see:
    How do I move/restore DB to new host and filesystem using RMAN [1338193.1 ID]

    Respect of
    HELIOS

  • How to create the schema of the database from an existing TimesTen database?

    Hello everyone,

    I am a newbie to TimesTen database. Before making the complex sql queries, I would get the DB TimesTen database schema. I'm looking for a way extract the database schema (tables, keys, links between tables...). When I was working on another db such as postgreSQL, I could get the sql script of the database (for example, in order to recreate the database in another server). Some software like PowerDesigner has managed to build the model of database of these scripts.

    You know a way to get the same thing with the TimesTen database? Or with another way?

    Concerning

    Hello

    Take a look in the docs at ttSchema, this could do the trick.

    http://download.Oracle.com/docs/CD/E13085_01/doc/TimesTen.1121/e13069/util.htm#autoId27

    Tim

  • Updating of the database of db A db B and by changing the name from B to a.

    We have two databases A and B, both running on HP - UX environment on different servers. the two 10.2.0.1.0 version.

    Now, the A database's production with 75.5 GB of data. database B is just skeloton with any user of tablespaces.

    1. our requirement is to update / clone of database A to b. we are beautiful to recreate the database B as in the case of cloning. but we don't want to recreate the database B quite possible.
    2. after updating/clone, database B should be renamed_ to A database.

    All please can you the various methods available both by shutting down / without closing the database A and the approximate time needed on each case.

    A method is cloning the database.

    Shutdown method

    http://DB-Oracl.blogspot.com/2008/09/Superfast-cloning.html

    Using DBCA
    http://www.Oracle-base.com/articles/10G/ServerConfiguration10g.php#dbca_clone_database

    Clone of RMAN
    http://www.shutdownabort.com/QuickGuides/clone_rman.php

    HTH
    SS

  • problem reconfigure everything. in the replication after the database crash recovery

    Dear friends, I have little problem in replication,.
    I have 2 databases DB1 and DB2 configured as Multimaster replication and My DB1 is master def. Now my master got DB2 database crashed and replication topology displayed in red color.
    So I again created DB2 database. So I tried to bring this new DB2 replication again some of the operations being on my site of master def.
    So the problem is that I couldnot stop replication
    Can anyone suggest me how can I reconfigure again back in replication without removing the current group of rep

    I tried suspend replication by Lee. intervention but couldnot

    Start
    () dbms_repcat.suspend_master_activity
    gname = > 'REPMG');
    end;

    can someone solution
    Note:
    my database got crashed and I recreated the database and made available in the position while he was just before the crash

    Even if 'create you' repadmin and links from the database, there is no information about the configuration of replication (repgroup (s), repobjects etc.) in the database. Also, of course, the deferred transaction queue has no entry.

    You must configure replication scratch 'from '.

  • Error: "this action cannot be completed because the file is open in another program" when trying to remove the Windows Media Player folder to rebuild the database

    Original title: can't rebuild WMP database

    I tried to delete the folder 'Media Play' in App\Data but still received this message "the action cannot be completed because the file is open in another program '. '"

    I need to remove this folder in order to correct the problem with my playlists :(

    Hi Unpreghini,

    1. What is the problem you are having with playlists?

    Start the computer in safe mode and then try to recreate the database of Windows Media Player. To do this, try this step.
    Step 1: Start the computer in safe mode
    a. see start your computer in safe mode: http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode
    b. connection to the problem user account.

    Step 2: Rebuild the media player database
    a. Click Start, type run, click Run, type % LOCALAPPDATA%\Microsoft, and then click OK.
    b. Select the Media Player folder, and then click on Delete on the file menu.
    c. restart Windows Media Player.
    d. check if the problem persists.

    Note: Windows Media Player will automatically rebuild the database.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Delete the database with lost initdb.ora

    Hi guys. How can I remove database with file init lost? I just want to recreate the database (with recovery or restoration of the process)

    1. I can't start because I do not have init.
    2. I can't delete the database because I can't start.
    3. I can't recreate database using dbca as the same name somewhere is:)

    Published by: America on January 18, 2009 12:03

    When you run "dbca" you can select "delete the database" and find the old name of the database?
    If find... You can select and delete... dbca will ask... But you and click on remove in any case.

  • Script to fetch the script from an existing view in the database

    Hello

    How to extract information from the existing view (SCRIPT) dynamically from the database.
    Thanks in advance

    Kind regards
    Orbitalis

    Try to SET LONG 10000

  • Failed to load existing records from the database on SD card during initialization of the application

    When the Simulator is launched upward, not able to load existing records from the database in the Inbox, so no records appear in the Inbox even though they exist in the database. It seems to be a problem with the SD card in the Simulator - the file system for the SD card is not correctly initialized when the application starts first to the top. During initialization of the application tries to access the SD card by using the following code.

    Boolean

    sdCardPresent = false;

    Enumeration e = FileSystemRegistry.listRoots ();

    If

    (e! = null) { }

    While (e.hasMoreElements ()) {}

    root = (String) e.nextElement ();

    If

    (root.equalsIgnoreCase("SDCard/")) {

    sdCardPresent =

    true;

    }

    }

    }

    sdCardPresent is always set to false and was not able to access existing records from the database. Once the application is initialized and try to create the database, the database is created successfully on the SD card.  The code is the same as above when creating the database and was able to do sdCardPresent = true.

    Is there anyway to register or add the SD card during initialization of the application or any property as System.setProperty overide the path of the default directory value?

    I use BlackBerry 9550 Simulator. I checked the "file system using PC for files from the SD card" and I use "C:\bb\SDCard" for the file system of thr.

    Also tested on the BlackBerry and found the same thing, if the device is hard reset, then it not reading the SD card as well.

    Mark the thread as solved then.

  • Is it possible to synchronize an existing database with the database CRM from Adobe?

    I have a database that is hosted locally customers, and I would like to sync it with the database hosted on Business Catalyst without manually having to import/export a list of customers. Is there currently a way to do this?

    Hello

    Look in the API as a possible solution to this...

    "This system has a broad framework of the API (application programming interface) that allows you to communicate, synchronize or take action with your own external application." For example if you are an online store and you want to adjust the inventory levels in real time as shoppers buy from you, then you can simply use this API. Other uses of the API include the ability to synchronize your entire customer database on this system with the one on your desktop. The scope of the API will give you indeed freedom to undertake all kinds of specific tasks to the success of your business"

    - http://kb.worldsecuresystems.com/635/bc_635.html

    Kind regards

    -Sidney

  • How to re-create the database from the Complutense University of MADRID

    «I was able to change the connection DB from one to the other by changing the settings through the ' system properties '.» However, there are a few objects (tables) database created during installation of the Complutense University of MADRID. is there anyway that I can go to the new database and database get UCM objects re-created without re-installation of the UCM? It seems some sql scripts in the database directory, but I don't know how to operate, the order and setting are not clear for me.

    Thank you

    Hello

    One thing you can do to recreate the default tables and columns is to run the script all.sql on the DB that is specific for your db. If you want to just recreate a replica of the image then extract the ddl from your current database instructions and put it in a sql script that run directly on the another instance of db. In this case make sure you change instance specifc details in the extracted ddl script and replace with the instance details latest as the table space name, the user name will execute it and like wise.

    Another way would be to use archiver to create the batch file export for tables and then imported to the target instance. The way out for this is to go to Archiver Applet - create new Archive - Export - Tables and here and include any tables that are there in the content server.

    Hope this helps

    Thank you
    Srinath

  • How export/import the database from the Tools menu in sql developer.

    Hello

    I need to export the database to a server and import it on another server db using the export function of database under the Tools menu in SQL developer. How to import it? This is for Oracle database 10g.

    Thank you

    Hello

    You can do it, but I do not recommend because sqldeveloper could eat all the memory of the system to analyze the script. Now the question is do you have also opted for storage option when you export, if yes make sure that similar tablespace exists or available in env b. Also if you want to use the generated sqldeveloper file you can run this file from sqlplus session

    sqlplus newuser/password
    sqlplus > @myexport.sql

    But my advice or suggestion or recommendation to be, you should consider using export/import or datapump but the decision is yours. Hope this helps

    Concerning

  • error in creating a shell script to the status of the database

    Hello

    I'm working on a script that made the extraction of information from the database server and gives output on the instance state.

    but I'm stuck. I get an error that I can't sort out.

    Here is the script

    {code}

    ORATAB = / var/opt/oracle/oratab

    echo "'date" ".

    echo "status of databases Oracle"hostname": \n".

    "DB ='egrep-i ': Y | ': N ' $ORATAB | "cut d": "-f1 | grep - v "-#" | "grep - v ' \ *"

    PsList = "'ps - ef |" "grep pmon'."

    for I in $db; do

    echo "$pslist" | grep ' ora_pmon_$ I "> / dev/null 2 > $ 1

    if (( $? )); then

    echo "Instance Oracle - $i: down.

    on the other

    echo "Instance Oracle - $i: upward.

    FI

    fact

    {/ code}

    and here is the result

    Oracle@mdcxuatdb05:~$ sh checkdb.sh

    Tuesday, September 1, 2015 18:13:45 IST

    Mdcxuatdb05 status of Oracle databases:

    CHECKDB.sh [7]: cannot open

    Oracle instance - egrep: down

    CHECKDB.sh [7]: cannot open

    Oracle instance - i: down

    CHECKDB.sh [7]: cannot open

    Oracle instance - ': Y |: N ': down

    CHECKDB.sh [7]: cannot open

    Oracle instance - $ORATAB: down

    CHECKDB.sh [7]: cannot open

    Oracle instance | : down

    CHECKDB.sh [7]: cannot open

    Oracle instance - cut: down

    CHECKDB.sh [7]: cannot open

    "" Oracle instance - d ': ': down

    CHECKDB.sh [7]: cannot open

    Oracle instance - f1: down

    CHECKDB.sh [7]: cannot open

    Oracle instance | : down

    CHECKDB.sh [7]: cannot open

    Oracle instance - grep: down

    CHECKDB.sh [7]: cannot open

    Oracle instance - v: down

    CHECKDB.sh [7]: cannot open

    Oracle instance - "-#": down

    CHECKDB.sh [7]: cannot open

    Oracle instance | : down

    CHECKDB.sh [7]: cannot open

    Oracle instance - grep: down

    CHECKDB.sh [7]: cannot open

    Oracle instance - v: down

    CHECKDB.sh [7]: cannot open

    Oracle instance - '-* ': down

    can someone help me please in this matter.

    I am running this script in solaris.

    echo "$pslist" | grep ' ora_pmon_$ I "> / dev/null 2 >$ 1

    change the line above to

    echo $pslist | grep ' ora_pmon_$ I ">/dev/null 2 > & 1... updated the last of them, I just kept 1 to test

  • Download file from the database server, through application server.

    Nice day

    I use Jdeveloper 11.1.2.3.0.

    I have a requirement to download a file that already exists on the database server Directory. Now my current scenario is that user is connected to the application server, and the user has no direct access to the database server.  I drew a diagram of my requirement as:


    DownloadFile.png


    I get a way to do this. Please suggest.


    Best regards,

    Julien

    The session does not expire if you are streaming data from the application to the client. However, you will need to manage the data sent over the network, because it can make the very slow network if you send this amount of data at high speeds on the network and then to the customer. This connection between client and server is the biggest problem, because bandwidth is usually small. Think about downloading software by one side oracle (for example 1 GB), this takes time and is prone to errors.

    We did something similar by transferring the data from the database (in our case, it has been stored in a BLOB) on a dedicated server with a server web apache on it. Then, we send a link to the client, which then uses the link to get the special file server data.

    The advantage is that you don't have to code the transfer of huge files in the application of the adf but can already use ready to use of software (balancing bandwidth and the recovery of a broken download).

    Timo

  • How to check if a table exists in the database or not?

    People,

    Hello. I use the server of Oracle 11 GR 1 material with Oracle Linux 5 database.

    My instance of database is named HRCS90, which the user access Id is MyName, and his identification of user SYS system.

    I have a few questions about user ID to access the PSRECDEL and PSROLEDEFN table in the HRCS90 database as below:

    SQL > select * from PSRECDEL;

    His output under the SYS user: table or view does not exist.

    His output under user myName: no selected lines. This means that the table THAT PSRECDEL exists, and myName user can access.

    SQL > select * from PSROLEDEFN;

    His output under SYS and MyName: table or view does not exist.

    My questions are:

    How to check if a table really exists in the instance of database HRCS90 or not?

    Thanks in advance.


    If a table is present in the database, it must be present in DBA_OBJECTS. If he fell, he would be present in the TRASH. If he fell purged, it is not available in the database, Cant it confirm you this object is not in the database? See a little test here

    SQL > CREATE TABLE TESTTAB (ID);

    Table created.

    SQL >

    SQL > SELECT MASTER, OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_NAME = 'TESTTAB.

    OBJECT_NAME OWNER

    ------------------------------ ---------------------------------------------

    SCOTT TESTTAB

    SQL >

    -Drop table (without purging. So now, it will be in the recyclebin)

    SQL > DROP TABLE TESTTAB;

    Deleted table.

    SQL >

    SQL > SELECT * FROM DBA_RECYCLEBIN WHERE ORIGINAL_NAME = "TESTTAB;

    OBJECT_NAME ORIGINAL_NAME OWNER

    ------------------------------ ------------------------------ --------------

    SCOTT BIN$ 8LKloIv3SYWA0WJ33GS + Aw == $0 TESTTAB

    Now see this case when you use PURGE. If it won't move the table to the trash. First of all I am clear the existing dba_recyclebin to the user entries. Then I'm falling table using purge.

    SQL > PURGE TABLESPACE USERS USER SCOTT.

    Purged tablespace.

    SQL >

    SQL > SELECT * FROM DBA_RECYCLEBIN WHERE ORIGINAL_NAME = "TESTTAB;

    no selected line

    SQL > CREATE TABLE TESTTAB (ID);

    Table created.

    SQL >

    SQL > SELECT MASTER, OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_NAME = 'TESTTAB;

    OBJECT_NAME OWNER

    ------   ----------

    SYS TESTTAB

    SQL > DROP TABLE TESTTAB PURGE;

    Deleted table.

    SQL > SELECT * FROM DBA_RECYCLEBIN WHERE ORIGINAL_NAME = "TESTTAB;

    no selected line

    SQL > SELECT MASTER, OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_NAME = 'TESTTAB;

    no selected line

    Since there is no entry to both DBA_OBJECTS and DBA_RECYCLEBIN. So that means that the particular object is not in the database.

Maybe you are looking for