Is there a way to generate the command CREATE DATABASE from the DB?

Version: 11.2.0.3

Is there a way to generate the CREATE DATABASE command from an existing database?

You can empty the CONTROLFILE to trace and you'll get a CREATE CONTROLFILE statement which you can turn into a CREATE DATABASE statement.

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

Sybrand Bakker

Senior Oracle DBA.

Tags: Database

Similar Questions

  • Is there a way to backup the catalog only not listed in the catalog? "CATALOGUE START WITH" generates double entry.

    The version of DB is 11.1.0.7.

    The 'CATALOGUE START WITH' not only added the backup set that are not in the RMAN catalog, but also added a second copy of files that are already in the catalog.
    The files are not a second copy; they are the same file in the same directory.

    Having two copies of the catalogue, by mistake when you explicitly delete the backups.
    We must add the force clause to avoid the error.
    RMAN > delete backup FORCE tag "off site-1';

    The clause of power ignores any IO error.
    The removal is part of our regular off-site backup script, which returns a false positive error when the clause is omitted.
    I don't want the clause, in order to be informed if the backup set that are supposed to be on the disk is not here, for example, if someone had removed the files manually at the level of the BONE without using rman.

    Is there a way to backup the catalog only not listed in the catalog?
    or maybe delete the copy entry #2 of the catalog?

    Find below an example test scenario:

    RMAN > list backup tag summary "off SITE-1';
    Backup list
    ===============
    S LV TY Device Type delay #Pieces compressed #Copies Tag key
    ------- -- -- - ----------- ------------------ ------- ------- ---------- ---
    12. A DISC 11 JUNE 13 09:41:45 1 1 NO OFF SITE-1
    13. A DISC 11 JUNE 13 09:43:31 1 1 NO OFF SITE-1
    14. A DISC 11 JUNE 13 09:43:33 1 1 NO OFF SITE-1
    15. A DISC 11 JUNE 13 09:43:34 1 1 NO OFF SITE-1

    RMAN > CATALOGUE START WITH "C:\backups\offsite_disk\IBISdatabase\scheduled_offsite";
    the search for all files that match the pattern C:\backups\offsite_disk\IBISdatabase\scheduled_offsite
    ...
    cataloging done
    List of cataloged files
    =======================
    File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\06OBTJEP_1_1
    File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\07OBTJI3_1_1
    File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\08OBTJI5_1_1
    File name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\09OBTJI6_1_1

    RMAN > list backup tag summary "off SITE-1';
    Backup list
    ===============
    S LV TY Device Type delay #Pieces compressed #Copies Tag key
    ------- -- -- - ----------- ------------------ ------- ------- ---------- ---
    12. A DISC 11 JUNE 13 09:41:45 1 2 NONE OFF SITE-1
    13. A DISC 11 JUNE 13 09:43:31 1 2 NONE OFF SITE-1
    14. A DISC 11 JUNE 13 09:43:33 1 2 NO OFF SITE-1
    15. A DISC 11 JUNE 13 09:43:34 1 2 NONE OFF SITE-1

    RMAN > DELETE BACKUP TAG "off SITE-1';
    List backup items
    BP key BS Pc # Cp # status Type room nom_peripherique
    ------- ------- --- --- ----------- ----------- ----------
    24 18 1 1 AVAILABLE DISK C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 < <-same file
    30 18 1 2 AVAILABLE DISK C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 < <-same file
    25 19 1 1 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
    31 19 1 2 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
    26 20 1 1 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
    32 20 1 2 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
    27 21 1 1 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1
    33 21 1 2 AVAILABLE ON THE DISC C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1

    remove the item from backup
    = RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 backup piece handle = STAMP 24 = 821470356
    remove the item from backup
    = RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1 backup piece handle = STAMP 25 = 821470356
    remove the item from backup
    = RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1 backup piece handle = STAMP 26 = 821470356
    remove the item from backup
    = RECID C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1 backup piece handle = STAMP 27 = 821470357
    6 objects deleted

    RMAN-06207: WARNING: 4 items could not be removed for DISC due channels
    RMAN-06208: status do not match.  Use the OVERLAP command to set status
    RMAN-06210: list of relevant objects
    RMAN-06211: =.
    RMAN-06212: filename/Type object Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 of backup
    RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1 of backup
    RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1 of backup
    RMAN-06214: part C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1 of backup

    Hello

    List of Files Unknown to the Database
    =====================================
    File Name: /oracle/product/10.2.0/db_2/dbs/hc_db10g.dat
    File Name: /oracle/product/10.2.0/db_2/dbs/initdb10g.ora
    File Name: /oracle/product/10.2.0/db_2/dbs/lkDB10G
    File Name: /oracle/product/10.2.0/db_2/dbs/.initTestDB.ora.swp
    File Name: /oracle/product/10.2.0/db_2/dbs/snapcf_db10g.f  
    
    Do you really want to catalog the above files (enter YES or NO)? no
    

    Here you can see the database says 'Unknown files to the Database list' and then asks to added above files. These files are of no use to the RMAN. So I went no.. But the backup in the directory file is cataloged twice already, but watch copy 1 when asked of RMAN. Probably, it might be a bug and it is advised to increase SR with oracle to resolve the problem.

    Thank you!!

  • is there a way to find the user (lanid) based on the name of the computer.

    is there a way to find the user (lanid) based on the name of the computer. I try nbtstat - has, but it don't did me not what I needed.

    is there a way to find the user (lanid) based on the name of the computer. I try nbtstat - has, but it don't did me not what I needed.

    Do you mean the name of a Windows of a remote computer logon account? There is more than one because Windows 7 allows multiple concurrent interactive sessions. In any case, this could point you in the right direction:

    PsExec \\NameOfPC cmd.exe / user: YourUserName
    PsLoggedOn
    The first command will not work unless you have an account admin on the remote machine.
    You can download the PS tools from here.
  • Is there a way to force the router to re-enroll with to take down the tunnel?

    Hi all

    I have the following configuration:

    Crypto pki trustpoint mycompany.com
    number of registration attempts 5
    retry registration period 3

    Enrollment url http://x.x.x.x:80
    Serial number no
    domain name full routername.mycompany.com
    IP address no
    password
    name of the object l = Denver, c = US
    revocation checking no
    automatic registration of the 70s

    Scenario of

    If the certificate has already reached 70 percent of his time of life and the router has already tried 5 times to get a new failure.

    1. is there a way to know how many times the router tried to re-enroll?

    2. is there a way to force the router to re-register without down tunnels?

    3. If the router has already tried, I can increase auto-enrollment to 90 - would this work?

    Thank you very much in advance for your answers.

    See you soon!

    mguzman4158:

    Question 1

    The following command output may indicate failures of re-registration after that as they occur.

    HQ-edg01 #sh crypto pki timers

    PKI timers
    |  1:59:35.732 2D
    |  2D 1:59:35.732 CRL cannot display the COP
    | 353d 8:31:22.880 SURVIVOR CA.domain.null

    Question 2

    This chapter: setting up registration of certificate for a public key infrastructure

    http://www.Cisco.com/en/us/docs/iOS/sec_secure_connectivity/configuration/guide/sec_cert_enroll_pki.PDF

    ... and this chapter: set up and manage a server of Cisco IOS for the deployment of public key infrastructure certificates

    http://www.Cisco.com/en/us/docs/iOS/sec_secure_connectivity/configuration/guide/sec_cfg_mng_cert_serv.PDF

    ... from this Book: Guide of the Cisco IOS Security Configuration: connectivity secure, release 12.4 T

    http://www.Cisco.com/en/us/docs/iOS/sec_secure_connectivity/configuration/guide/12_4t/sec_secure_connectivity_12_4t_book.PDF

    .. could help.

    Question 3

    In my opinion, I think that you would be able to revive the reinstatement at a later date by incrementing the percentage argument.

    Best regards
    Mike

  • I put 240 photos in an InDesign document using mini bridge.  Is there a way to hide the photos I used after I have put in my document?

    I put 240 photos in an InDesign document using mini bridge.  Is there a way to hide the photos I used after I have put in my document?

    I think Willi, and I even read your question differently. I thought you wanted to hide the images in Mini Bridge once they have been placed in InDesign so that you could keep track of those who you have (if you put twice the same image). If you want to hide in InDesign (as Willi read the question), his suggestion is very good. Another alternative is to use the shortcut to hide (command 3 on Mac OS), after putting the images, but before you click next to deselect them.

    I do not use Mini Bridge, so I can't help you there. If you want to use the full version of the bridge, you can use a Move command to move the selected items to another folder (temp), where they will not appear in your current folder. You can move after that that they all were placed. A bit of a hack, but it could work.

  • Is there a way to color the correct main items that allows me to export/save the results as a mp4?

    Is there a way to color the correct main items that allows me to export/save the results as a mp4?  I shot images that I need to spend on another editor for editing, but I want to fix the images colors before putting to sea.  I know you can color correct elements, but is it possible to export the clips to the original position of the source for mp4?  I tried to export a clip using H.264 corresponds to the source, but the result is a half the size of the original file. Your help is appreciated!

    You realize that what you do is a generational loss.  Compression of the images already well compressed!... as well as many other works that used saw the final cut.

    Increase the flow of your export to preserve quality as much as possible.

  • Some visible tables such as Pantone Farbtaffeln, levels, characters must according to one of the programs that Hang be re-selected and defined. It's very annoying. Is there a way to secure the parameters desired permanently?

    The visible tables such as Pantone Farbtaffeln, levels, characters
    According to one of the programs crash must re-selected and defined.
    It's very annoying. Is there a way to secure the parameters desired permanently?

    My guess is you want: Windows > workspace > new workspace to establish a personal arrangement of panels and other elements.

    After you set up the workspace with the panels you want in the setting you want, use the command above.

    You can restore this workspace if, at some point you rearrange panels, etc.

  • Is there a way to increase the size of the virtual hard disk? in the VM? ESXI 4.1

    HelloW to all.

    I created VM with the size of the hard drive of 80 GB and now I want to increase the size of the 80 GB to 150 GB drive does not add whit extra 70 GB partition but to increase the patitionn of 80 GB.

    Is there a way to increase the size of 150 GB of the virtual hard disk? in the VM? ESXI 4.1

    Thanks in advance.

    If the guest operating system is windows, then follow below process-

    Scenario-1 his drive is not the boot partition.

    1. click on the settings of the virtual machine

    2. Select the hard drive to increase and give the size you want (don't forget that you should have a free space available on the data store).

    3. go to disk to the virtual machine management, and then rescan disk (you will see the unused space)

    4. open the cmd/command prompt, then run diskpart by using the diskpart command

    5 then... the drive... After this list give the command "select disk 1" (1 is the disk you want to expand)

    6. After selecting the disk, type extend (extend order will extend the drive)

    7. exit diskpart.

    Scenario-2 If the drive is the boot partition.

    1. power of the virtual machine. (go on change settings of ==> click on the drive you want to extend ==> copy the path of the disc)

    2. go to any other test VM and add disk--> disk existing use ==> give the drive path that you want to extend ==> Assistant to finish.

    3. Select the hard drive to increase and give the size you want (don't forget that you should have a free space available on the data store).

    4. select disk of the virtual machine management, and then rescan disk (you will see the unused space)

    5. open / cmd command prompt, then run diskpart by using the diskpart command

    6. then... the drive... After this list give the command "select disk 1" (1 is the disk you want to expand)

    7. After selecting the disk, type extend (extend order will extend the drive)

    8 exit diskpart.

    9. go to change the setting of this test VM and select the hard drive... ==> click on remove virtual machine. (do not drive delete)

  • ___Is there a way to prevent the reopening of Ai CS5 documents after an accident?

    ___Is there a way to prevent the reopening of Ai CS5 documents after an accident?

    In my view, that a specific document is originally have plant, so after that AI crashes, he's trying to re - open the file when I restart There, and then it crashes again - to infinity!

    There is nothing I know which causes Illustrator automatically open a document after a crash. I would like to rebuild preferences (immediately after the start of Illustrator hold SHIFT, Option, command).

    Now, if your operating system crashes and you need to restart your computer, there is something on the mac.

    Also update Illustrator 15.02 If you wish.

  • Is there a way to disable the persistence of application frame?

    First of all, I love the beta release - the combination of the small interface, more instant layer improvements and typographic research make this obvious upgrade for me.

    But with the new awesomeness comes new issues: with CS5, if I single clicked on, say, my office so I had Photoshop (with no open files PSD), the entire application would be bit go further than I can get stuff without having to watch the big old empty shell of the app.

    This is not my experience with CS6. Maybe a beta version problem, or some prefs that I found not yet, or maybe the app is somehow interpret a pref "persist application framework" last I checked somewhere, but can't access (although I can never remember counted something like that). Whatever it is, it seems that I now need to each option-click on the desktop (which is painful, as I do on my other screen), or type the command "Hide Photoshop" to get the app out of my way, so I can do other things (I often switch between multiple applications). So my question: is there a way to make the framework of the non-persistent application?

    Otherwise, great app. I have not been this excited about a Photoshop upgrade over the years.

    Window > [disable] Appframe

    This should give you Your behavior ' e looking for

  • Was there a way to make the keyboard custom default mapping?

    Was there a way to make the keyboard custom default mapping?

    I mean, it is, for example, I want to disable < command > S for the record (so I don't accidentally hit him).

    Thank you!

    Hugh

    Edition > keyboard shortcuts make changes to shortcuts and save under a new name. In the drop-down list at the top choose your new set and firm. Exit and restart to seal the deal.

  • Is there a way to change the returning to the previous lock screen "click on" sound?  In the last update, the sound has changed.

    In the last update, lock/nattering screen changed, is there a way to change the click / sound, so that it is similar to the sound of the previous version?

    # Which is integrated into the iOS and there is no user input that can change.

  • Is there a way to change the default options when receiving the Images on parachuting on a mac?

    Is there a way to change the default options when png or JPEG received on a mac? I can choose between backup to the downloads folder, or open photos. I would like to open in preview instead. Any ideas?

    Problem solved. No apparent reason, the two choices (save downloads and open in photos) presented disappeared and now I have the only option I get is to open the image in preview. No idea how this happened, but my problem is solved.

  • Is there a way to disable the function where firefox opens a new tab when you scroll a click in the header bar?

    Is there a way to disable the function where firefox opens a new tab when you scroll a click in the header bar? This feature in conflict with my program of multiple monitors (display fusion) since this program allows you to change your current active window the monitor 1 monitor 2 and vice versa BY clicking the header of BAR SCROLLING (or whatever you call the highest part of your window). With firefox, I can't easily change my active window between monitors because instead, it opens a new tab.

    If the window is maximized, you can then switch this pref to disable the display of the tabs in the title bar:

    • browser.tabs.drawInTitlebar = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

  • our macbook copy all messages and other activities of the iMac in the office. Is there a way to isolate the macbook?

    our macbook copy all messages and other activities of the Office of the IMac. Is there a way to isolate the macbook

    to be a fully independent computer?

    Your iCloud and any IMAP will be synchronized. You can connect with one another on the MacBook Apple ID, or you can turn off sync iCloud and IMAP account.

    System Preferences > iCloud

    Uncheck the items you don't want not synchronized.

    Mail > accounts

    Uncheck all of the accounts that you don't want not synchronized.

Maybe you are looking for