Delete data file groups from a database

Hello,
My bi table partitioned by a column and each partition has data file and filegroup.
I want delete oldest partitions and data files from the server.
How to do it?

Hi Tugsuu224,
According to your description, you want to delete oldest partition from the table, remove the data files and filegroups.
To achieve this requirement, please refer to the following blog post by Patrick Keisler:
http://www.patrickkeisler.com/2013/01/how-to-remove-undo-table-partitioning.html
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Error while reading file entries from the database

    Hi there,
    We are running a instance of xmii 12 in a VM (VMware) and after somebody shutdown the host machine without shutting down the VM (great idea isn't it?) we keep getting this message when trying to access xMII:
    "Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: Error while reading file entries from the database."
    Any clue? Any suggestion on how we can recover from that?
    Thanks a whole lot,
    Dom
    Server log:
    #1.5 #000C29A3B1F20002000000C400000F2800044829A35270F8#1205243578005#/System/Server##com.sap.engine.services.dbpool.deploy.ContainerImpl####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.dbpool.deploy.ContainerImpl#Plain###DataSources or DataSource aliases of 'sap.com/tcmonitoringsysteminfo' application started successfully.#
    #1.5 #000C29A3B1F20002000000C500000F2800044829A3527A6C#1205243578005#/System/Server##com.sap.engine.services.servlets_jsp.server.container.WebContainer####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.servlets_jsp.server.container.WebContainer#Plain###application [] Start of application [sap.com/tcmonitoringsysteminfo] finished successfully on Web Container.#
    #1.5 #000C29A3B1F20002000000C600000F2800044829A3527DB5#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp over application sap.com/tcmonitoringsysteminfo finished successfully on server 305221750#
    #1.5 #000C29A3B1F20002000000C700000F2800044829A3527E03#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp on application sap.com/tcmonitoringsysteminfo finished on current cluster node for 221 ms.#
    #1.5 #000C29A3B1F20002000000C800000F2800044829A3528B49#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Error#1#com.sap.engine.services.deploy#Plain###Error occurred while initially starting application sap.com/xappsxmiiear:Error while reading file entries from the database.#
    #1.5 #000C29A3B1F20002000000CA00000F2800044829A352922B#1205243578015#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###The synchronization of applications with DB completed for 39304 ms.#
    #1.5 #000C29A3B1F200040000000200000F2800044829B290A4F8#1205243834341#/System/Server/SLDService##com.sap.sldserv.DataCollector####n/a##0da42150ef7311dcb908000c29a3b1f2#SAPEngine_System_Thread[impl:5]_7##0#0#Warning#1#com.sap.sldserv.DataCollector#Plain###Communication configuration is incomplete. No data transfer possible until corrected.#

    Well thanks for the hint. Actually, the DB was up but corrupted. I managed to solve the bug by re-deploying xMII (using the SDM tool) which kept all my data but redeployed both the config db of (x)mii and the class files.

  • Windows Phone 8.1 Universal: VS 2013 deploys app to device but does not delete data file in roamingfolder and roaming is not activated.

    I am using VS 2013 to develop a Windows Phone 8.1 Universal app.  When I deploy to the device (my phone), the old data file that I had stored in the roamingfolder previously continues to be used.  I have uninstalled the app after being deployed,
    I put code in the app to delete the files individually from the roamingfolder and used ClearAsync(). That worked until I deployed the app again and then the old files came back.  I have not associated these apps with the store yet so roaming should
    not be working. The desktop app does not have this problem, when I uninstall it the files are deleted.
    In the phone app properties debug tab, I have the Uninstall and the reinstall my package checked for all configurations.  I have looked everywhere I can think of for these old files: laptop c:, phone tempfolder, localfolder, etc. thinking VS is reinstalling
    them from somewhere when deploying the app but I cannot find them.  If I change the phone app to use the localfolder, the old files are not used.
    Is this just the way it is if I use the roamingfolder or is there a way to delete these old files?
    Any help would be greatly appreciated.  Thanks.

    Hi MV12,
    >>When I deploy to the device (my phone), the old data file that I had stored in the roamingfolder previously continues to be used
    Yes, it is designed to work like that, please refer to this document for details:
    #Accessing app data with the Windows Runtime (Windows Runtime apps)
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh464917.aspx#roaming_app_data
    Roaming data for an app is available in the cloud as long as it is accessed by the user from some device within the required time interval.
    If the user does not run an app for longer than this time interval, its roaming data is removed from the cloud.
    If a user uninstalls an app, its roaming data isn't automatically removed from the cloud, it's preserved. If the user reinstalls the app within the time interval, the roaming data is synchronized from the cloud. The current policy specifies
    that this time interval is 30 days. Location is available via the roamingFolder property.
    >>Is this just the way it is if I use the roamingfolder or is there a way to delete these old files?
    No, you will have to wait.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode

    Hi All,
    Need help from the gurus.
    Currently we are in state unable to do anything.
    Was using a database and all of a sudden it crashed. Tried to mount the database, open it, it failed. Also tried the recover and alter database open, even that failed. Errors are as follows.
    Errors in file e:\oracle\product\10.2.0 \admin\devrevdb\bdump\devrevdb_p000_2620.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-00449: background process 'DBW0' unexpectedly terminated with error 1242
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    In my spfile, the administrator has set only two control files and there is no mirroring and hence do not have another control file that will help me boot the db.
    Please let me know how I should go about it. I am only a timebeing person trying to carryout a db activity. Any help would be of great help.

    Hemant,
    thanks for the reply.
    I tried the way you suggested and it threw an error.
    ORA-01145: offline immediate disallowed unless media recovery enabled
    I searched and found that an additional tag of drop needs to be added to the command which you suggested.
    ALTER DATABASE DATAFILE '<filename>' OFFLINE DROP.
    i don't know what will the drop command have an effect ?
    i have copied the data file to another location. Since i don't know much, i just want to be sure of what im doing.
    if the above command is successfull, will it drop the datafile or the tablespace and i can no more use it. How can i use the copied datafile.
    Thanks,
    Sachin
    I

  • How do I delete a contact group from my iphone

    How do I delete a contact group from my iphone?

    Download Easy Group. It is totally free. Lauch it. Click on Edit. Click on red-cross next to your unwanted group. That's all. http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: As I am Easy Group developper, I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • TS1503 How can I delete data like movies from my main Toshiba HD in my MacMini?

    How can I delete data like movies from my main Toshiba HD in my MacMini?

    What does this have to do with the iPhone?

  • How to store and retrieve blob data type in/from oracle database using JSP

    how to store and retrieve blob data type in/from oracle database using JSP and not using servlet
    thanks

    JSP? Why?
    start here: [http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html]

  • Deleting contacts or groups from address book impossible

    How can I delete contacts or groups from my address book? The corresponding menu items "delete contact" or "delete group" are greyed. Pressing the "delete" buttom only works for contacts. But the deleted contact isn't really erased. There remains an untitled contact at the end of the list that I cannot delete. Not very nice :-(
    Does anybody knows some help?

    I can't recreate that on my Mac, so I suspect something got corrupted in your preferences.
    Quit Contacts.
    Go to your Finder "Go" menu hold the option key to choose "Library".
    Then go to yor Preferences folder and and drag com.apple.AddressBook.plist to your Desktop.
    Relaunch Contacts and test.

  • How to get Deleted File details from Content DataBase?

    Hi,
    I have uploaded one pdf document in to SharePoint Document Library. After some days i have removed it.
    File has removed from Site.
    Does record available in Content Data Base for the deleted file? Which table should i refer?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    According to your description, my understanding is that you want to get the deleted file record in sql database table.
    If you have backed up the Content Data Base, then you can find the deleted file information in AllDocs andAllDocStreams  table. You need to use "inner join" to get the whole information.
    More information:
    How to recover SharePoint document once deleted from recycle bin
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Unable to delete data files from my Ipod if used as data storage...

    Hello everybody
    I bought months ago an Ipod Nano 8GB. I've got an issue when i use it as disk storage i'm not able to sort out. I've checked all the topics but i cannot find any solution.
    Example: I use the Ipod with the option "Manually manage music and videos". I put audio and video files on my Ipod through Itunes, then i put also some files on my Ipod as normal data files through my Mac Finder (Easy, i drag VLC, JPG files etc. from folders to my Ipod). The Ipod/Itunes summary page shows (Correctly) the capacity column colored in blue (Audio), video (Purple) and orange (Data). No probs when i transfer data files to another computer.
    Problem: when i delete the data files from my Ipod (Through finder) the orange column doesn't disappear (I have no problems if i delete audio/video files via Itunes) and although i've actually deleted all the files if i try to add some other data or videos/music files to my Ipod, Itunes says that there is no space available in my device. It's very strange, i check and double check all the options but eventually i have to restore my Ipod all the times and (Pretty annoying) add all my files again.
    It seems that although i sent my files to the trash bin, Itunes (Fully updated) doesn't recognize the change.
    It'd be great if someone can help me out as it's very important for me to be able to use my Ipod as disk storage, thanks a lot!

    It seems that although i sent my files to the trash bin, Itunes (Fully updated) doesn't recognize the change.
    Empty it from the Finder menu or by control-clicking it in the Dock.
    (44613)

  • Delete standby redo log from primary database

    Hi all,
    I'm trying to drop standby logfiles on primary database (other database that I'm configuring the DG).
    The members of the standby log groups don't exists on file system.
    Somebody have deleted these files. Its old configuration where the files were in file system. Now they are in ASM.
    When I try to drop the standby logfiles I got the following error:
    SQL> alter database clear logfile group 7;
    alter database clear logfile group 7
    ERROR at line 1:
    ORA-19528: redo logs being cleared may need access to files
    SQL> select * from v$logfile order by 1;
        GROUP# STATUS  TYPE    MEMBER                                                                           IS_
             1         ONLINE  +REDO1/proj/onlinelog/group_1.256.340558657                                     NO
             1         ONLINE  +REDO2/proj/onlinelog/group_1.256.340558659                                     NO
             2         ONLINE  +REDO1/proj/onlinelog/group_2.257.340558879                                     NO
             2         ONLINE  +REDO2/proj/onlinelog/group_2.259.340558879                                     NO
             3         ONLINE  +REDO1/proj/onlinelog/group_3.258.340558707                                     NO
             3         ONLINE  +REDO2/proj/onlinelog/group_3.257.340558709                                     NO
             4         ONLINE  +REDO2/proj/onlinelog/group_4.258.340558713                                     NO
             4         ONLINE  +REDO1/proj/onlinelog/group_4.259.340558711                                     NO
             5         ONLINE  +REDO2/proj/onlinelog/group_5.260.340558965                                     NO
             5         ONLINE  +REDO1/proj/onlinelog/group_5.260.340558963                                     NO
             6         ONLINE  +REDO1/proj/onlinelog/group_6.261.340558967                                     NO
             6         ONLINE  +REDO2/proj/onlinelog/group_6.261.340558967                                     NO
             7         STANDBY /oracle/proj/onlinelog2/redo_702.log                                            NO
             7         STANDBY /oracle/proj/onlinelog1/redo_701.log                                            NO
             8         STANDBY /oracle/proj/onlinelog2/redo_802.log                                            NO
             8         STANDBY /oracle/proj/onlinelog1/redo_801.log                                            NO
             9         STANDBY /oracle/proj/onlinelog2/redo_902.log                                            NO
             9         STANDBY /oracle/proj/onlinelog1/redo_901.log                                            NO
            10         STANDBY /oracle/proj/onlinelog1/redo_1001.log                                           NO
            10         STANDBY /oracle/proj/onlinelog2/redo_1002.log                                           NO
    20 rows selected.
    SQL> select * from v$standby_log order by 1;
        GROUP# DBID            THREAD#  SEQUENCE#      BYTES       USED ARC STATUS     FIRST_CHANGE# FIRST_TIM LAST_CHANGE# LAST_TIME
             7 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0
             8 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0
             9 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0
            10 UNASSIGNED            0          0  104854601        512 YES UNASSIGNED             0                      0What can I do to drop these reference?
    Any other solution instead of edit the controlfile and stop/start tghe database?
    thank you!!!!

    Hello;
    Well Oracle thinks the files are there, but I remember a bug on metalink where the controlfile still had them, but they were not on the file system. Can you confirm they exist?
    Meanwhile I check my notes for the Oracle doc nunber.
    Bug 6128242: TRYING TO DROP STANDBY LOG FAILS WITH ORA-19528
    So if you are Oracle 10 this might be the issue.
    workaround is to re-create the controlfile without the incorrect logfile. ( Yuk!! )
    ORA-01156 When Adding Or Dropping Redo Logs [ID 452152.1]
    Best Regards
    mseberg
    Edited by: mseberg on Oct 31, 2011 5:09 PM

  • Data file recovery from Windows 7

    A Macbook that was running OS X with data files and pictures was taken by someone without their permission.
    That person then wiped the hard drive and installed Windows 7.
    The Laptop has since been returned to the original owner and to her dismay realizes all her files have been deleted.
    Is there any chance of recovering any of her previous OS X data files and pictures before she reinstalls OS X.

    Kappy and Limnos are both correct, depending on what was done to the hard drive.
    It's most likely that the person who put Windows 7 on the Mac did a quick erase, which would leave all but the first few cylinders of data on the drive untouched.
    After changing the partition scheme to NTFS and and installing Win 7, then the data that will be difficult to impossible to recover will be those areas that were written over with the Windows OS files, the swap file it creates, and any other areas of the drive that were written over during that person's use of the Mac.
    The first thing you will need to do before you can use either FileSalvage or Data Rescue 3, is boot to the disks the Mac came with, run Disk Utility from the DVD and change the partition back to Mac OS Extended. Neither of these recovery programs will read anything but a Mac drive. As in changing the drive to NTFS, you would only be overwriting the first few cylinders of the drive to do this. Just make sure not to install OS X. Only use the DVD to get the drive back to Mac OS Extended.
    Since the drive will have no bootable system on it at this point, you will need to purchase one recovery program or the other on a bootable CD/DVD. The only other option is a bootable external drive so you can try the demo versions before purchasing. The external drive will also need to have enough free space to recover files to.
    Now run either recovery program. As mentioned a few times now, getting any data back that was sitting on the areas overwritten with Win 7 are slim to none. But any data on the drive that was never written to during that time can be. What you recover all depends on what was sitting where.

  • How to load a huge data file (export from mysql) to an oracle table?

    I have a data file which contains 1.3G bytes table data from mysql. It's format is csv.
    How can i load these data to an oracle table in java way?
    I thought about using sqlldr. But it requires a oracle client which may not be permitted in my environment.
    If i generate "insert " statement and use batch update the batch update will stop if it comes across an exception when executing the insert one by one. I find no "insert ingore" statement in oracle like mysql.
    Is there anyone can give me a solution with high performance? It's urgent and Thanks!

    hsy541 wrote:
    I have a data file which contains 1.3G bytes table data from mysql. It's format is csv.
    How can i load these data to an oracle table in java way?
    Why must it be a Java way? The point is just to move the data.
    I thought about using sqlldr. But it requires a oracle client which may not be permitted in my environment.
    Why not just import the .csv file into Oracle? I'm sure there's a script or utility that will do it.
    If i generate "insert " statement and use batch update the batch update will stop if it comes across an exception when executing the insert one by one. I find no "insert ingore" statement in oracle like mysql.
    You want to turn off transactions? I'm not an Oracle expert, but I'd be shocked if there was something you could do in MySQL that didn't have an analog in Oracle. Find a better resource, like somebody that actually knows Oracle. Who set up that database for you? Consult with them.
    Is there anyone can give me a solution with high performance? It's urgent and Thanks!Urgent to you....
    %

  • ORA-01157: cannot identify/lock data file error in standby database.

    Hi,
    i have a primary database and standby database (11.2.0.1.0) running in ASM with different diskgroup names. I applied an incremental backup on standby database to resolve archive log gap and generated a controlfile for standby in primary database and restored the controlfile in standby database.But when i started the MRP process its not starting and thows error in alert log ORA-01157: cannot identify/lock data file. When i queried the standby database file it shows the location on primary database datafiles names not the standby database.
    PRIMARY DATABASE
    SQL> select name from v$datafile;
    NAME
    +DATA/oradb/datafile/system.256.788911005
    +DATA/oradb/datafile/sysaux.257.788911005
    +DATA/oradb/datafile/undotbs1.258.788911005
    +DATA/oradb/datafile/users.259.788911005
    STANDBY DATABASE
    SQL> select name from v$datafile;
    NAME
    +STDBY/oradb/datafile/system.256.788911005
    +STDBY/oradb/datafile/sysaux.257.788911005
    +STDBY/oradb/datafile/undotbs1.258.788911005
    +STDBY/oradb/datafile/users.259.788911005
    The Actual physical location of standby database files in ASM in standby server is shown below
    ASMCMD> pwd
    +STDBY/11gdb/DATAFILE
    ASMCMD>
    ASMCMD> ls
    SYSAUX.259.805921967
    SYSTEM.258.805921881
    UNDOTBS1.260.805922023
    USERS.261.805922029
    ASMCMD>
    ASMCMD> pwd
    +STDBY/11gdb/DATAFILE
    i even tried to rename the datafiles in standby database but it throws error
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01275: Operation RENAME is not allowed if standby file management is
    automatic.
    Regards,
    007

    Hi saurabh,
    I tried to rename the datafiles in standby database after restoring it throws the below error
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01275: Operation RENAME is not allowed if standby file management is
    automatic.
    Also in my pfile i have mentioned the below parameters
    *.db_create_file_dest='+STDBY'
    *.db_domain=''
    *.db_file_name_convert='+DATA','+STDBY'
    *.db_name='ORADB'
    *.db_unique_name='11GDB'
    Regards,
    007

  • After renaming data file it failes during database open

    Hi,
    I took RMAN full back.
    Then i renamed datafile then restored and recovered. It goes fine.
    But during the daabase open it fails with
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
    Any specific reason for that?
    =======================================================
    Recovery Manager: Release 11.2.0.1.0 - Production on Thu Jul 22 01:19:30 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN> backup database;
    connected to target database: QA112ASM (DBID=3746246770)
    RMAN>
    Starting backup at 22-JUL-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=145 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00001 name=+OBTDG1/qa112asm/datafile/system01.dbf
    input datafile file number=00003 name=+OBTDG1/qa112asm/datafile/rbs01.dbf
    input datafile file number=00002 name=+OBTDG1/qa112asm/datafile/sysaux01.dbf
    input datafile file number=00004 name=+OBTDG1/qa112asm/datafile/temp01.dbf
    input datafile file number=00005 name=+OBTDG1/qa112asm/datafile/tools01.dbf
    input datafile file number=00006 name=+OBTDG1/qa112asm/datafile/users01.dbf
    input datafile file number=00007 name=+OBTDG1/qa112asm/datafile/vindx.dbf
    channel ORA_DISK_1: starting piece 1 at 22-JUL-10
    channel ORA_DISK_1: finished piece 1 at 22-JUL-10
    piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=TAG20100722T011934 co
    mment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel ORA_DISK_1: starting piece 1 at 22-JUL-10
    channel ORA_DISK_1: finished piece 1 at 22-JUL-10
    piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back09ljcra0_1_1 tag=TAG20100722T011934 co
    mment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 22-JUL-10
    RMAN> shutdown immediate
    Oracle instance shut down
    RMAN> startup mount
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area 275615744 bytes
    Fixed Size 2168944 bytes
    Variable Size 184551312 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 5009408 bytes
    RMAN>run(
    *run {*
    set newname for datafile '+OBTDG1/QA112ASM/users01.dbf' to '+OBTDG1/QA112ASM/users02.dbf' ;
    restore datafile '+OBTDG1/QA112ASM/users01.dbf';
    recover datafile '+OBTDG1/QA112ASM/users01.dbf' noredo;
    switch datafile '+OBTDG1/QA112ASM/users02.dbf' ;
    RMAN>
    2> 3> 4> 5> 6>
    executing command: SET NEWNAME
    Starting restore at 22-JUL-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=137 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00006 to +OBTDG1/QA112ASM/datafile/users02.dbf
    channel ORA_DISK_1: reading from backup piece /qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljc
    r97_1_1
    channel ORA_DISK_1: piece handle=/qa/obj/oracle/obt/output/QA112ASM/obt_standby_03_protection_tui/dttmp/back08ljcr97_1_1 tag=T
    AG20100722T011934
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 22-JUL-10
    Starting recover at 22-JUL-10
    using channel ORA_DISK_1
    Finished recover at 22-JUL-10
    datafile 6 switched to datafile copy
    input datafile copy RECID=2 STAMP=724987222 file name=+OBTDG1/qa112asm/datafile/users02.dbf
    RMAN> alter database open;
    RMAN>
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 07/22/2010 01:20:23
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '+OBTDG1/qa112asm/datafile/users02.dbf'
    =======================================================
    Edited by: user13310502 on Jul 23, 2010 4:49 AM

    as you can see..
    RMAN> sql "alter tablespace andreas offline";
    sql statement: alter tablespace andreas offline
    RMAN> run
    2> {
    3> set newname for datafile 8 to '+FRA';
    4> restore datafile 8;
    5> recover datafile 8;
    6> switch datafile 8;
    7> }
    executing command: SET NEWNAME
    Starting restore at 23-JUL-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00008 to +FRA
    channel ORA_DISK_1: reading from backup piece +FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763
    channel ORA_DISK_1: restored backup piece 1
    piece handle=+FRA/remtest/backupset/2010_07_23/nnndf0_tag20100723t135242_0.3112.725118763 tag=TAG20100723T135242
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 23-JUL-10
    Starting recover at 23-JUL-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:00
    Finished recover at 23-JUL-10
    datafile 8 switched to datafile copy
    input datafile copy recid=7 stamp=725118807 filename=+FRA/remtest/datafile/andreas.3113.725118805
    RMAN> sql "alter tablespace andreas online";
    sql statement: alter tablespace andreas online
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 07/23/2010 13:53:33
    RMAN-11003: failure during parse/execution of SQL statement: alter tablespace andreas online
    ORA-01113: file 8 needs media recovery
    ORA-01110: data file 8: '+FRA/remtest/datafile/andreas.3113.725118805'
    RMAN> run
    2> {
    3> set newname for datafile 8 to '+FRA';
    4> restore datafile 8;
    5> switch datafile 8;
    6> recover datafile 8;
    7> }
    executing command: SET NEWNAME
    Starting restore at 23-JUL-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring datafile 00008
    input datafile copy recid=8 stamp=725118807 filename=+DATA/remtest/datafile/andreas.349.725036143
    destination for restore of datafile 00008: +FRA
    channel ORA_DISK_1: copied datafile copy of datafile 00008
    output filename=+FRA/remtest/datafile/andreas.3114.725118849 recid=9 stamp=725118849
    Finished restore at 23-JUL-10
    datafile 8 switched to datafile copy
    input datafile copy recid=10 stamp=725118850 filename=+FRA/remtest/datafile/andreas.3114.725118849
    Starting recover at 23-JUL-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 23-JUL-10
    RMAN> sql "alter tablespace andreas online";
    sql statement: alter tablespace andreas online

Maybe you are looking for

  • Windows 7 installation - missing cd/dvd driver

    Hello! First of all i wanted to greet everyone here, as this is my first post on this forum Now to the problem. I am happy owner of HP Pavilion dv7-1150ew laptop. It's a good computer, i really like it, but the OS it came with (Vista Home Premium) wa

  • Function Module to obtain date

    Hi all Can anyone suggest me the function module which satisfies below scenario: Suppose i enter FROM date as :18.07.2006 and TO date as :20.07.2006 I should get number of days between these two dates as 1 and value :19.07.2006. Thanks in advance Reg

  • Planning application is in German, not in English

    Hi, When I enter transaction RSPLAN in sap bw it opens in Internet Explorer8 with German language, I want it in English.  I even checked in SU01 all options n tried for my user id, it is not working; and browser end also checked in Tools->Internet Op

  • Unable to edit OOAC (T77S0) entries to activate entries

    Hello Folks,                     I've been trying to teach myself SAP HR Authorizations. Running through the material, i tried to activate extened check on HR Master data (p_origxx). To do this i need to modify the value in table T77S0 (through trans

  • MIGO Actual Cost

    Hi, Friends, In PO i maintained Rs 100 and given 20/- discount and my price also appearing as 80 as net value is showing in PO . But when i do MIGO it is posting as 100/- to Inventory why it is happening ? My doubt is there is one setting in sub tota