How to remove Database Files and Backup from ASM

Hi All,
Oracle Database 11.2.0.3
OEL 5.7
We have a host for restore purposes.
We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
Appreciate any helps.

user12028775 wrote:
Hi All,
Oracle Database 11.2.0.3
OEL 5.7
We have a host for restore purposes.
We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
Yes... there is a easy way. Use command DROP DATABASE.
Use the DROP DATABASE command to delete the target database and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all datafiles, online redo logs, and control files belonging to the target database. By default, RMAN prompts for confirmation.
Put this command on 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;Regards,
Levi Pereira

Similar Messages

  • How do I transfer files and data from my Samsung Galaxy tab 2 to my Macbook Air?

    How do I transfer files and data from my Samsung Galaxy tab 2 to my Macbook Air? The Macbook does not even recognize the device. I get an error message. I follow the instructions on the message, which tells me to install "Kies" and Android file transfer. This does not help. What do I do?

    See:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How do I transfer files and pictures from my blackberry to my mac

    how do I transfer files and pictures from my blackberry to my mac. My mac does not seem to recognize my blackberry as a devise

    Sounds like a question for Blackberry.
    Check your manual or the Blackberry support site, or Google.

  • How do I transfer files and apps from my 3rd generation iPod touch to my 5th generation iPod Touch?

    How do I transfer files and apps from my 3rd generation iPod touch to my 5th generation iPod Touch?

    See:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How to remove AM extension and substitution from server

    Hi,
    Can somebody please tell me how to remove existing subsitution and extension of AM from server.
    Regards
    Swati

    Swati,
    You can delete the substitution by using an API jdr_utils.deletedocument('<path>').
    The path will be like 'oracle/apps/ap/xx/customizations/0/server/...'
    Regards,
    Gyan
    Edited by: Gyan on Jun 3, 2011 7:28 PM

  • How can I transfer files and settings from a PC to a mac

    How can I transfer data and settings from PC to mac via cable as the method via the network seems excessively slow. What cables do I need Ethernet USB?

    This Apple Article may help.

  • How to remove the Options and Task from the toolbar

    In the FLM portal initially we can see 'Options' in the menu bar after we log in. Below it there is 'Tasks' and 'Reports'. on clicking 'Tasks' and new menu bar 'Tasks' can be seen, under which 'New Tasks' option is there. When we click on 'New Forms' it shows the list of forms and when we select the desired form it opens the interactive form.
    My problem is when this form is opened on the header the 'Options' and 'Tasks' bar can be seen, under which the adobe menu bar comes (Print, Save, Zoom etc.) . This 'Options' and 'Tasks'  how to remove from the interactive forms page.
    Edited by: NIKHILKUMAR POOJARI on Feb 13, 2009 4:24 PM

    Dear Mano,
    By using Authorizations you can remove the Drag and Relate Menu
    Goto Administration ---> System Initialization -
    > Authorization -
    > General Authorization
    General -
    > Drag & Relate -
    > No authorization
    Regarding Authorizations, click the below link to get details
    [Define Authorizations|https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_HIER_KEY=701100035871000437965&_OBJECT=011000358700000481572006E&_SCENARIO=01100035870000000183&]
    Regards,
    Bala

  • How do I transfer files and documents from one user account to another?

    How do I transfer documents and files from one user account to another?

    You haven't understood me. Follow these steps:
    1. Log in the user where are the files you want to transfer, and open a Finder window.
    2. In Finder, select Go menu (on the menu bar) > Go to Folder, and type /Users/Shared. Now you're on Shared folder, so leave that window.
    3. Open a new Finder window without closing the old one, go to the folder with the files you want to transfer, and copy them to Shared folder.
    4. After copying the files to Shared folder, go to  > Log Out, and log in the other user.
    5. Repeat the step 2, and you will get access to the transferred files. Now, you can open them directly from this folder, or you can copy them to a folder on your user folder

  • How to recover hidden files and folders from memor...

    When you connect your memory card to a PC or connect your phone as a mass storage device to a PC which is infected by a virus, the virus may hide all your files and folders.
    The virus also changes their attributes to "hidden" and "read only" and may move all memory card content to another hidden folder, though the size of the disk looks unchanged, files are still invisible.
    Steps to recover hidden files and folders:
    First, change the settings in "folder options" so that we can see all hidden files and folders,
    Open any folder > select organise > folder and search options, select view tab and under hidden files and folders setting, select "show hidden files, folders and drives", and uncheck the option "Hide protected operating system files" and click ok, click yes if a prompt appears for confirmation, now you should be able to see all hidden files and folders.
    Second, connect your memory card to PC using a card reader or you can connect your phone as a mass storage device and note down its drive letter. (L) is the drive in my case as shown
    1. If you have autorun.info file, you can manually delete it or use tools like autorun eater(or any other you like).
    If all the folders are moved inside a hidden folder, select all the items inside that folder, cut them and paste them to root directory of your memory card.
    If you select properties of any folder on your memory card, the hidden attribute might be locked as shown:
    To solve these issues, type cmd in the start menu, right click on it and click run as administrator.
    2. In the command prompt window, type the following:
    L: [Press Enter]
    Here, I assume L as your drive letter.
    3. Type the following code to reset the attributes of all the files and folders to their default:
    Attrib *.* -r -h -s /s /d   [Press Enter]
    After few seconds, all the files and folders will be reset to their normal attributes settings.
    Hope you enjoyed reading the post and was helpful.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------

    Check the formatting of the external hard drive. To do that, right click on the drive icon and select Get Info. (Or click once on the drive and type command +i ) The pane includes information about the drive format.
    The drive should be formatted as Mac OS Extended. If it is not, run Disk Utility (App;ications / Utilities) and format the drive.

  • How can i transfer files and applications from an old windows 98SE OS?

    Recently, i was surprised with a brand spanking new 15.4" 2.2 GHZ intel core 2 macbook pro. before this awesome new notebook, i was using a very old, arthritic windows 98SE OS and everything in my whole computing life is stored on that old win98SE antique! i would like to know how i can transfer all my music, movies, pictures and applications, including windows 98se itself so i can possibly run them using parallels or bootcamp (ie: my paintshop pro 7 & 9, animation shop, icewindale games, plus other windows based programs i already have.) i have a male to b male usb cable, if that might help me transfer, i do not know. i also have many many cd-r's, if is this the only way to transfer my files, i am going to be burning disks forever & ever! :P can anyone help me out and suggest a way i can have all my stuff on this awesome new macbook pro? Thanks so much! ^_^

    Since its running 98se, i'd say it would have USB 1.1.. which is slow. so if you have a spare ethernet cable which i think is a lot faster than USB, you can set up a network via ethernet and send to the mac that way. If you turn all your sharing preferences on windows 98 (i forgot how to, because its such a long time since i used it) you can access every folder from your mac. But yeah there isnt a lot of ways to transfer quickly on something that old.

  • How to access database file on CDROM from Java Programe??

    Hello friends,
    I am making online exam application.
    I want my question database to be reside on CDROM.
    but i am not getting any idea how to make DSN or static path that resolute the path that i have mentioned for CDROM.
    basically i want to know how to access CDROM from Java Programe????
    Thanks in advance
    Navik Pathak

    Once you mounted the CDROM (something maybe as /media/cdrom) as a file system (or assigned a drive letter to it like D: or F: or whatever), the files are accessible normally.

  • How to remove exclusive menus and programs from responsibilities

    I have a batch of exclusive menus and programs original defined in responsibilities. Right now, need to remove them from around 300 responsibilities. How? thanks

    The menu exclusions for responsibilities are stored in table fnd_resp_functions. A dirty way is to delete it from this table. But test this for one record whether it works. Else there should be an API which you can use in a program to remove.
    Programs are in request groups assigned to that particular responsibility. So you have to manually edit the request group to include the programs

  • How to Remove Embedded Movies and Audio From Package?

    I made a presentation with many quicktime movies that has gotten too large to save efficently. I had the "copy audio and movie files into package" box clicked in preferences.
    Does anyone know the best way to remove them from the package but still continue to have the presentation locate them in their own storage place?

    I would send it to Audition and use the noise reduction tools there.

  • How do i copy files and folders from one external harddrive to another on the iMac?

    For some reason when i drag the folder or file that i want to transfer or copy from one external harddrive to another, nothing happens when i drop it on the destination folder or drive. however, when i drag and drop to the desktop or any location on the Imac internal hardrive it works without any issue. The only problem is that i dont want to transfer or copy stuff to the computer. i want to copy it to an external harddrive. please help if your have answers to my question.
    Thanks!

    Check the formatting of the external hard drive. To do that, right click on the drive icon and select Get Info. (Or click once on the drive and type command +i ) The pane includes information about the drive format.
    The drive should be formatted as Mac OS Extended. If it is not, run Disk Utility (App;ications / Utilities) and format the drive.

  • How to extract html file and folder from jar file

    Hi all ,
    I should to submit my project tomorrow . plz help me .
    In my project jar file I have html page that should run when I use the program, I can't extract it . Also it have folder that contain some files that My program should use it . I dont know how to use it from jar file or how to extract it . plz help me.
    If you could I need java could for that.
    Thanks alot.

    Hi all ,
    I should to submit my project tomorrow . plz help me .
    In my project jar file I have html page that should run when I use the program, I can't extract it . Also it have folder that contain some files that My program should use it . I dont know how to use it from jar file or how to extract it . plz help me.
    If you could I need java could for that.
    Thanks alot.

Maybe you are looking for