How do I delete the database and backup of the ASM

Hi all

Oracle 11.2.0.3 database
OEL 5.7

We have a host for restore purposes.
Run us monthly or quarterly operations to verify that I am able to restore a subset data in the given duration or for other purposes of restoration.
I have an automated script to clone the database, but the database Clone to remove former base ASM before starting this process. I want to delete only the database files and keep the configuration (for example oratab/network/ocr and so on).

Question: There is an easy way to delete these files without logging on ASM or using DBCA?

Appreciate any help.

user12028775 wrote:
Hi all

Oracle 11.2.0.3 database
OEL 5.7

We have a host for restore purposes.
Run us monthly or quarterly operations to verify that I am able to restore a subset data in the given duration or for other purposes of restoration.
I have an automated script to clone the database, but the database Clone to remove former base ASM before starting this process. I want to delete only the database files and keep the configuration (for example oratab/network/ocr and so on).

Question: There is an easy way to delete these files without logging on ASM or using DBCA?

Yes, there is a simple way. Use the DROP DATABASE command.

Use the DROP DATABASE command to remove the database target and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all the data files, online redo logs and control belonging to the target database files. By default, RMAN prompts.

Put this command in your script before clone your database:

RMAN> CONNECT TARGET SYS@test1

RMAN> STARTUP FORCE MOUNT
RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;

Kind regards
Levi Pereira

Tags: Database

Similar Questions

  • How this code deletes the record from the database company?

    Hello, I'm at the beginner level and I would like to learn more about this code of a book. I have several questions below, I hope I can get any help
    Thank you

    · How this code deletes the record from the database company?
    · Where is the connection to the db?

    · What part or command is that deletes the record?
    · What does that mean?
    < link rel = "stylesheet" href = "styles.css" >

    < html >
    < head >
    < /title > < title > test code
    < link rel = "stylesheet" href = "styles.css" >
    < / head >

    < body >

    < h1 > delete a record from the company < / h1 >

    < table >
    < action = "CompanyDeleteForm.cfm cfform" method = "POST" > "
    < b >
    < td > < table > C_ID
    < td >
    < cfinput type = "Text".
    name = "C_ID".
    message = 'Please enter the C_ID '.
    validate = "integer".
    required = "Yes".
    size = "22".
    MaxLength = "20" >
    < table >
    < /tr >
    < b >
    < td > < table >
    < td >
    < input type = "submit" value = "Delete a rec of the company" >
    < table >
    < /tr >
    < / cfform >
    < /table >

    < / body >
    < / html >
    -----------------------------------------------

    This isn't. He sends the value of C_ID in a form variable to an action (CompanyDeleteForm.cfm) page that would delete code.

    Phil

  • Hello, how can I delete the photos in "open a recently modified and if possible do more not write in it? Thank you

    Hello, how can I delete the photos in "open a recently modified and if possible do more not write in it? Thank you

    olivierm85470095 wrote:

    Hello, how can I delete the photos in "open a recently modified and if possible do more not write in it? Thank you

    In the editor, go to the Edition/Preferences menu, select the second line (Enregist.desFichiers); to zero the last option: "the list of recent files Contains...". »

  • How can I delete the 'distributed' and 'response' to my form?

    I created a form for my clients to fill out.  I want to be able to post the form on my site, then the customer can download, edit, save, print if they like and send it to me manually.  I don't want the form to have a button "submit", nor do I wish to have answers about caterpillars.

    Currently, I have a form that is set up like that.  How can I delete the criteria in the form who is in charge of emailing me as well as the response followed file?  I want the form to be devoid of any link to my email, but also any file response on my end.

    Would be very happy if someone can help...

    Thank you
    Vincent

    For some strange reason, Acrobat Standard does not allow you to edit JavaScripts at the level of the document, use a different approach.

    The first thing to do is to find the hidden button and to be visible. To do this, select the tool select an object, which is a black arrow pointing upward to the left. When the tool is active, you should see the previously hidden on the first page button:

    Double-click the button and go to the general tab and set the drop-down list in the area of common properties visible form field. Then go to Actions tab and remove the "execute a JavaScript script' the mouse to the top of trigger action.» Add a new action of the trigger JavaScript mouse up, and then enter the following two lines of code in the Editor:

    getAnnot (0, "adhocFormState") .destroy ();

    addScript ("FormsWorkflowScript", "/ /");

    Then close the dialog box, select the hand tool and click the button. This will effectively get rid of the JavaScript to the document level and the annotation of text hidden. You can now remove the button by selecting it with the tool select a new object and press DELETE or right-click > delete

    That should do it.

  • How can I delete the history tabs?

    How can I delete the history tabs?

    You can use the privacy settings. See this article for more information:

    Clear your browsing history and other data of a personal nature on Firefox for Android

    Please note that you can only delete 'Browsing history' and not other types of data.

    Does it work?

  • Equium L350 - 11 d - how do I delete the second partition on the HARD drive

    How can I delete the second partition that came with the laptop, so I can use the full capacity of computers HARD drive?

    I feel that this partition is their because I have not created a DVD of recovery he would remove the partition once I created the recovery DVDs.

    The score contains a folder of HARD disk RECOVERY and in the folder says do not delete or change this folder or files.

    I have a Toshiba Equium L350 - 11 d

    As you have already said that the second partition contains the HDD Recovery folder if you would remove this partition you will not be able to create the recovery DVD and would not be able to recover the laptop HARD drive.

    Therefore, you must create the DVD before recovery would remove anything from the second partition on the HARD drive.

    After you create the DVD recovery successfully, you could remove the partition and could add the free space on the HARD disk on the first partition.
    This can be done on disk management!

    This is a useful page for Microsoft:
    [Using Windows and procedures: Vista HARD disk partition | http://windowshelp.microsoft.com/windows/en-us/help/d9a4d35e-efdf-406c-a049-0860180129a71033.mspx]

    Good bye

  • How can I delete the emails saved is more necessary in my HP Officejet Pro

    How can I delete the emails saved is more necessary in my HP Officejet Pro storage

    Hello @Robstan,

    Welcome to the HP Forums!

    I understand that you want to delete your saved emails. I will do my best to help you! First of all, I need to know what kind of printer you have? Click here to read: model number.

    Once you check this information and I will help you. Have a good night!

  • How can I delete my documents and get rid of my thinkpad with windows 95?

    How can I delete my documents and get rid of my thinkpad with windows 95?

    If there is anything physically wrong with your computer, you can use Darik Boot and Nuke (DBAN aka) to make a scrub of the security of your HARD drive. Glance to download here.

    This will leave Nothing on the HARD drive. You can take the time to reinstall an operating system, but at the very least, the new operating system should be Win 98SE or higher.

  • How can I delete the Favorites menu in the menu drop down address bar in IE8?

    How can I delete the Favorites menu in the menu drop down address bar in IE8?

    Hello

    Because you used the nickname 'DaddyJeff' do you need to remove the access of all to Favorites? Otherwise, please
    describe in more detail what you need to do.

    I think that you should use the Parental control or group policies (GPedit if you have professional, company,
    (or Ultimate).

    See this and the 'related links '.

    How to install and use Parental controls in Vista
    http://www.Vistax64.com/tutorials/95139-parental-controls-Setup-use.html

    and these:

    Setting up Windows Vista's Parental control
    http://www.bleepingcomputer.com/tutorials/tutorial139.html

    Set up Parental controls
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to remove (delete) the last blank page of the script?

    Is anyone of you know how to remove (delete) the last white page that appears in the script? My story is 126 pages long, but in the scenario (the document) 127 pages appear because the last is a blank page, how to erase this page? Thank you.

    You can try the following:

    -by pressing the delete key at the end of the text to page 126

    -Check if you have the ability to 'Unlock the Pages' in the Menu 'Production '.

    If you still face this problem, can you please save the document to disk (file > save to disk) and send us an email to DL-AdobeStory-supportadobecom, so that we can offer you a fix?

  • Adobe Reader 9.5.3 1635 error code.  How can I delet the error?

    I have Adobe Reader 9.5.3 giving me an error code of 1635.  This error occurred after you download an adobe upgrade and then remove the upgrade.  Before upgrading feeling ok other wer of functions.  How can I delete the error?

    Run the cleaner tool http://labs.adobe.com/downloads/acrobatcleaner.html then download and run the latest installer from http://get.adobe.com/reader/enterprise/

  • I have music in a cd rw. How can I delete the music file.

    I have music in a cd rw. How can I delete the music file.

    Open the disk, click with the button straight on delete?

  • How can I delete my account and profile

    How can I delete my account and profile?

    Please contact customer service to address this problem.

  • How can I delete the icons of my Cyber Shot camera viewing area?

    How can I delete the icons of my camera Cyber Shop viewing area?

    Thanks for the model #. Press the DISP button repeatedly until disappear indicators. Detailed information on changing the display of the screen are mentioned on page 18 of the manual.

    http://www.docs.Sony.com/release/DSCS750_handbook.PDF

    If my post answered your question, please mark it as "acceptable Solution".

  • How can I delete the themes that comes with the Win7? They are ugly and I do not take my place. The theme of characters for example.

    It's pretty simple, at least for me; I want to delete the themes that came with my new computer. The theme of character for example, I'll never use it, I think it's ugly and I'd like to remove it from my system. I downloaded other packs of themes of Microsoft, I removed the themes saved myself without problem. Help?

    These themes take up a space infintesimal amount.  When new computers are shipped with 500 GB to 2 TB hard drives today, it's a waste of time and a risk of causing problems to fuss with these things.  20 years ago, we had to worry about these things, but that time is long gone.  Do you realize that 1 TB is 1,000,000,000,000 bytes?  If you had 1 billion dolloars and divided into piles of dollar, pious million how do you you?  You would have 1 million piles each with 1 million dollars in it.  So why worry a few megabytes?

Maybe you are looking for

  • How can I pay for upgrade to icloud without credit card storage

    I wanted to update my icloud storage to back up my ipad air. Going through the menu, but never was able to exceed the payment. It is not possible to pay by card credit. I don't have a credit card and don't want to ask one only for the payment of my s

  • HP Pavilion 15-n038sa: second monitor

    Hello I was just wondering, I was able to connect the Asus-PG27AQ to my HP Pavilion n038sa 15 monitor? I only have AMD Radeon HD 7620 G + double graphics HD 8670 M here... If it is impossible, what would be the best Matt IPS monitor that works with m

  • HP laptop: Hp laptop screen on the side

    This morning I turned on my laptop mode 'sleep' and that's on the side, I don't know why it happened, but it happened once, but my son pressed a few letters on the keyboard and it happened

  • Acer Aspire 603

    I have searched online & was unable to find an answer to my problem.  I bought my 'renovated' Walmart Acer & ended up having to buy the USB key to reinstall the operating system.  Not a big deal considering what I paid for this & had an Acer before &

  • WAG160n measure of adsl line?

    I recently bought a WAG160N adsl2 router to replace my ISP router. It works like a charm, but the router provided by my ISP has a capacity to make a measure of the line. View upstream/downstream db noise margin. It's a great diagnostic tool. Is it po