Flashback database steps

SQL> select name from v$datafile;
NAME
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SYSTEM01.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\UNDOTBS01.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SYSAUX01.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\USERS01.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\EXAMPLE01.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\TEST.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SVSS.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SVSS01.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\RMAN.DBF
E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\FLASH.DBF
10 rows selected.
SQL> create tablespace prod datafile 'e:\oracle\product\10.2.0\oradata\agile2\prod.dbf' size 50 m;
Tablespace created.
SQL> alter user flash1 default tablespace prod;
User altered.
SQL> connect flash1
Enter password: ******
Connected.
SQL> select * from tab;
no rows selected
SQL> create table flash(id number(23));
Table created.
SQL> insert into flash values(32);
1 row created.
SQL> commit
2 ;
Commit complete.
SQL> set time on;
14:20:54 SQL> connect /as sysdba
Connected.
14:21:03 SQL> select name from v$datafile;
14:21:11 SQL> drop tablespace prod including contents;
Tablespace dropped.
14:21:47 SQL> shu immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
14:22:22 SQL> startup mount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1296332 bytes
Variable Size 104859700 bytes
Database Buffers 180355072 bytes
Redo Buffers 7090176 bytes
Database mounted.
14:23:29 SQL> flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss');
flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss')
ERROR at line 1:
ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
below
ORA-01245: offline file 11 will be lost if RESETLOGS is done
ORA-01111: name for data file 11 is unknown - rename to correct file
ORA-01110: data file 11: 'E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00011'
14:23:47 SQL> alter database rename file 'E:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00011' to 'e:\oracle\product\10.2.0\oradata\agile2\prod.dbf';
Database altered.
14:24:40 SQL> flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss');
flashback database to timestamp to_timestamp('2012-05-16 14:21:11','yyyy-mm-dd hh24:mi:ss')
ERROR at line 1:
ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
below
ORA-01245: offline file 11 will be lost if RESETLOGS is done
ORA-01110: data file 11: 'E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\PROD.DBF'
14:25:05 SQL>
iam not able to recover the dropped tablespace using flashback database,,,iam tried this many times some time iam able to recover ,most of time iam getting above error only.
anyone help me,,
pl share ideas.
Thanks in advance;

See flashback limitation
You cannot use Flashback Database alone to retrieve a dropped data file. If you flash back a database to a time when a dropped data file existed in the database, only the data file entry is added to the control file. You can only recover the dropped data file by using RMAN to fully restore and recover the data file.
so after dropping tablespace,you can't perform flashback.
http://docs.oracle.com/cd/E11882_01/backup.112/e10642/flashdb.htm#CFHFIBGH
What Do All 10g Flashback Features Rely on and what are their Limitations ? [ID 435998.1]
Edited by: Kuljeet Pal Singh on May 16, 2012 2:57 PM

Similar Messages

  • Can I use flashback database to flashback a pluggable database?

    Hi All,
    I created a container database and then created a pluggable database.
    In the pluggable 12.1 datbase, I loaded the user data.
    I performed the below
    sqlplus / as sysdba;
    create restore point CLEAN_DB guarantee flashback database;
    And I performed the transactions on the pdb.
    Now my intention is to restore to the restore point CLEAN_DB as created from the above step.
    If I perform the below, will it restore my pdb to the initial state?
    flashback database to restore point CLEAN_DB;
    Regards,
    Kamal.

    Hi,
    You cannot use FLASHBACK DATABASE for pluggable database.
    Flashback query/versions queryis UNDO based and work in PDB’s
    Flashback transaction query/flashback transactionis UNDO and REDO based and work in PDB’s
    Flashback data archiveUNDO gernerated archives
    Flashback table
    before drop –> Rename segment name of recylebin, which is based on UNDO, work in PDB’s
    flashback table to –> is UNDO based, work in PDB’s
    Flashback databasedoesn’t work in PDB’s:
    RMAN> flashback pluggable database prmdb01 to time "to_date('23:00 20-11-2013','hh24:mi dd-mm-yyyy')";
    Starting flashback at 25-NOV-13
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of flashback command at 11/20/2013 23:00:00
    RMAN-05108: Command is not supported for pluggable database
    Regards
    Mahir M. Quluzade
    p.s. Command exists but not supporting, may be next release come support.

  • Flashback database in Dataguard environment

    On primary if i flashback database to a restore point, do I need to rebuild standby environment. Is there any other option. Can I flashback standby to restore point also. Can you please detail me the steps.
    These I think are the steps.
    1) Create Flashback database Guarantee restore point on Standby.
    2) Create Flashback database Guarantee restore point on primary.
    Backout
    1) Flashback Database to restore point on primary.
    2) Flashback Database to restore point on standby
    Is it possible if we follow the above steps we dont need to rebuild the standby after flashing back the primary database.

    If I flashback database to a restore point, do I need to rebuild standby environment?
    No, since the standby database should be synchronized to the primary (assumes no delay) it should come along for the ride.
    Can I flashback standby to restore point also?
    Yes, but the retention period must be greater or equal than the Primary database retention period.
    There are very few cases where you would want to do this on the standby.
    For example you might use it if a RESETLOGS was used on the Primary.
    Setup
    Guaranteed restore points provide a complementary capability to Flashback Database.
    You might set them up during an upgrade.
    Ex.
    CREATE RESTORE POINT before_upgrade GUARANTEE FLASHBACK DATABASE;
    FLASHBACK DATABASE TO RESTORE POINT before_upgrade;
    Section 5 of B14192-03 has some good information on this.
    This is worth a look too:
    www.oracle.com/us/solutions/sap/wp-ora4sap-flashback11g-1-303814.pdf
    Queries
    SELECT
      NAME,
      SCN,
      TIME,
      DATABASE_INCARNATION#,
      GUARANTEE_FLASHBACK_DATABASE,
      STORAGE_SIZE
    FROM
      V$RESTORE_POINT;
    SELECT
      NAME,
      SCN,
      STORAGE_SIZE
    FROM
      V$RESTORE_POINT
    WHERE
      GUARANTEE_FLASHBACK_DATABASE = 'YES';Best Regards
    mseberg

  • Use of Flashback Database in Data guard environments

    11.2.0.3/RHEL 5.8
    I've come across several docs which talk about configuring FLASHBACK DATABASE in dataguard environments. We have several
    Physical standby DBs (Single Instance & RAC) running in our shop.I would like to know two or three major(common) use of FLASHBACK DATABASE in data guard environments.
    I understood one use mentioned in the below URL ie. recovering from a logical mistake
    http://uhesse.com/2010/08/06/using-flashback-in-a-data-guard-environment/
    I would like to know what are the other major/common use of Flashback Database feauture in DataGuard environment

    A couple of other uses:
    1) You can use flashback to test your DR. So you can activate your standby. Test application/network connectivity and functionality on your DR site and when done revert this database back to a physical standby. You do however have to ensure that this is allowed in your environment. In some places I have worked this would be a big no no as there were zero data loss requirements. However some companies will allow this as long as the standby is back in place within a certain time period.
    2) In the case that you have to do a failover for whatever reason, but then what was the primary site becomes available, you can flashback what was your primary to make it the standby rather than re-instatiating the database from scratch.
    Eg. You have a power outage at your primary site so you perform a failover and your standby becomes the primary. Once what was your primary site is back online, you can convert your previous primary into a standby by doing a full back/restore (or whatever method you choose) to recreate your standby again. However you also have the option of using flashback on this database and then convert it into a standby as this would potentially be quicker than re-instantiating the standby.

  • Can I use flashback database to recover it?-----QNo.115

    I have dropped a tablespace through RESETLOGS.
    Can I use flashback database to recover it?-----

    5.3.1 Limitations of Flashback Database
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/rpfbdb003.htm

  • The 'Third Party Connections' drop down box on the 'Source Database' step in the Migration Wizard is empty.

    Here are the environmental details:  
    SQLDeveloper 32-bit Version 3.2.20.09 (Build MAIN-09.87)
    Oracle Database:  12C single instance (no RAC)
    Oracle client:  12C 32 bit
    Windows 64 bit desktop
    I am attempting to migrate an MS Access application to Oracle.  I pick the ‘Migrate’ selection from the ‘Tools’ Menu SQL Developer.  This puts me into the Migration Wizard.  When I get to the ‘Source Database’ step of the migration wizard, the ‘Choose the Third Party database from which you are migrating’  drop-down box is not being populated with the current available connections. It is empty.  If I type a valid connection name into the box, SQL Developer takes it on this screen but does not keep it for the next screen/step.  It has no persistence.  I even tried to make sure that each connection was open/connected before beginning the migration process.
    Due to the fact that I am attempting to migrate an MSAccess application, I am mixing 32-bit and 64 bit software.  This may be the issue as to why the drop down is losing addressability.  I have not applied any patches to this version of SQL Developer.

    Hi,
    If you need easy way to migrate Microsoft Access to Oracle probably it is more reasonable to review some tools specially designed to this purpose. For example:
    Access to Oracle converter by Intelligent Converters
    Access to Oracle converter by SpectralCore
    Access to Oracle converter by Interface Computers
    Hope, this will help.
    Sincerely,
    Vlad

  • Enabling flashback database adds unsupported spfile parameter

    After enabling the flashback database I saw a new policy violation upon restart.
    awrflush_threshold_metrics was set to true and added to the spfile. When I look that up, I get various dire warnings about using it.
    If it's not supported, why does Oracle do this by default upon enabling the flashback database? And, is it necessary for the flashback database to work, or can I remove it?

    What's your OS and DB versions?
    Since 10g R2 this parameter Enables/Disables Flushing AWR Workload Metrics.
    You should not set this hidden parameter unless directed by Oracle Support. All parameters that start with underscore (_) are considered internal and unsupported, which means that only Oracle is authorized to set them.
    ~ Madrid

  • Flashback Database on Data Guard setup

    Hello!
    Win 2003 server - 64 bit
    Oracle 10.2.0.4
    As i have noticed Flashback Database is popular in Data Guard setups for the reinstate reason; you dont need to rebuild.
    However, im looking at Flashback for 'flashback database' reasons. Some developers has asked for a method to rollback if an release has gone bad, so my questions is;
    If i flashback database primary database, will standby also change due to redo log shipment?
    Thank u!

    After flashing primary database check CURRENT_SCN in Standby. If flashback scn is greater then current_scn, then do nothing. Otherwise, on standby:
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    FLASHBACK STANDBY DATABASE TO SCN "flashback_scn_number -1";
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;

  • After Flashback database can I use my backups?

    I performed a flashback database and then opened the database with
    alter database open resetlogs;
    Now when I try the following command in rman I get this message:
    RMAN> list backup
    2> ;
    new incarnation of database registered in recovery catalog
    starting full resync of recovery catalog
    full resync complete
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    435 Incr 1 9.36M DISK 00:00:11 30-AUG-09
    BP Key: 440 Status: AVAILABLE Compressed: NO Tag: TAG20090830T170015
    All the backups are still there but it tells me a new incarnation of the database has been registered in the recovery catalog.
    My question is: Do I need to do anything different from now on? Also can my existing backups still be used if needed?
    thanks in advance,
    Richard

    For u question ist take a rman backup.
    RMAN> backup database;
    Starting backup at 31-AUG-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=140 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    input datafile fno=00003 name=F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    input datafile fno=00005 name=F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    input datafile fno=00002 name=F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile fno=00004 name=F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 31-AUG-09
    channel ORA_DISK_1: finished piece 1 at 31-AUG-09
    piece handle=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_08_31\O1_MF_NNNDF_TAG20090831T131520_59PY48QX_.BKP tag=TAG20090831T131520 comment=
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 31-AUG-09
    channel ORA_DISK_1: finished piece 1 at 31-AUG-09
    piece handle=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_08_31\O1_MF_NCSNF_TAG20090831T131520_59PY5R4D_.BKP tag=TAG20090831T131520 comment=
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
    Finished backup at 31-AUG-09
    After that …..
    SQL> create table y (id number);
    Table created.
    SQL> select to_char(sysdate,'dd-mm-yy hh24:mi:ss') from dual;
    TO_CHAR(SYSDATE,'
    31-08-09 13:23:03
    SQL> drop table y
    2 ;
    Table dropped.
    SQL> shutdown abort
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1250428 bytes
    Variable Size 226495364 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 7135232 bytes
    Database mounted.
    SQL> flashback database to timestamp to_timestamp('31-08-09 13:23:03','dd-mm-yy hh24:mi:ss');
    Flashback complete.
    SQL> alter database open resetlogs;
    Database altered.
    SQL> desc y
    Name Null? Type
    ID NUMBER
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1250428 bytes
    Variable Size 226495364 bytes
    Database Buffers 377487360 bytes
    Redo Buffers 7135232 bytes
    Database mounted.
    SQL> select name from v$datafile;
    NAME
    F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    SQL> host del F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
    ORA-01110: data file 4: 'F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF'
    Then I restore old backup from rman
    RMAN> restore database;
    Starting restore at 31-AUG-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=154 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    restoring datafile 00002 to F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    restoring datafile 00003 to F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    restoring datafile 00004 to F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    restoring datafile 00005 to F:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    channel ORA_DISK_1: reading from backup piece F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_08_31\O1_MF_NNNDF_TAG20090831T131520_59PY48QX_.BK
    channel ORA_DISK_1: restored backup piece 1
    piece handle=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_08_31\O1_MF_NNNDF_TAG20090831T131520_59PY48QX_.BKP tag=TAG20090831T131520
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:46
    Finished restore at 31-AUG-09
    RMAN> recover database;
    Starting recover at 31-AUG-09
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 22 is already on disk as file F:\ORACLE\PRODUCT\10.2.0\ARC\ARC00022_0693947048.001
    archive log thread 1 sequence 23 is already on disk as file F:\ORACLE\PRODUCT\10.2.0\ARC\ARC00023_0693947048.001
    archive log filename=F:\ORACLE\PRODUCT\10.2.0\ARC\ARC00022_0693947048.001 thread=1 sequence=22
    archive log filename=F:\ORACLE\PRODUCT\10.2.0\ARC\ARC00023_0693947048.001 thread=1 sequence=23
    media recovery complete, elapsed time: 00:00:06
    Finished recover at 31-AUG-09
    Then I back sqlplus
    SQL> alter database open;
    Database altered.
    SQL> desc y
    Name Null? Type
    ID NUMBER
    So answer your question is , YES you can restore from you old backup , not need to do anything else.
    Regards
    Liakat hossain

  • Alternatives to FLASHBACK database

    We're getting ready to upgrade to 11gR2, and so I thought I'd ask the question just in case there was something new ...
    Are there alternatives to FLASHBACK DATABASE in order to rollback DDL? I was hoping that there was a new feature that I'm just not aware of, which allows for the same functionality at a smaller level, like at the schema level. I'm assuming we're not there yet based on the searches I've been performing this morning, but I thought I'd ask.
    Thanks,
    --=Chuck

    Chuck, since you asked this question in relation to an upgrade I will mention that Oracle does provide a downgrade procedure; however 11.2 is a well tested environment and any problems you encounter you should be able either tune, patch, or otherwise workaround.
    I have never consider flashback database a useful feature.  There is no way we could ever flash back production because the DML often reflects real world actions such as shipping material out of the plant.  If it was shipped we need to bill for it.  If someone messes up that area of the applicaiton has to be fixed and the data corrected without any direct changes being made to the data in the uneffected portions of the system.  Someone might mention flashing the database back, extracting what you need, flashing back forward but if the database is up there are users and data is being changed.  We could never do it and I do not know too many other DBA's who could realistically use the feature except in test.
    HTH -- Mark D Powell --

  • A new question on how to Enable Flashback Database on the standby database?

    Best Practice document said:
    Enable Flashback Database on the standby database to minimize downtime for logical corruptions.
    I would like to know where to find document or anybody already had experience for this topic?
    Also I would like to know what is the best practice for backup/recovery of the Physcial standby database?
    Thanks in advance.

    Hello;
    Just an opinion but I like the book "Oracle Data Guard 11g Handbook" as both the document and the answers to the second question.
    Chapter 12 covers the A to Z of RMAN with Data Guard.
    This book sold me on Flashback since Flashback allows a former Primary database to be reinstated after a failover operation with being restored ( provided sufficient flashback logs are available)
    My own experience is I tried a failover test without it and trash my test Primary.
    I did a simple failover test a few weeks ago, here are my notes.
    http://www.visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.pdf
    Best Regards
    mseberg

  • Teststand open database step type modification using DotNet

    Dear all,
    I am currently looking at ways to change the default means by which TestStand manages database connections and operations to a SQL database. By default, TestStand uses Oledb to connect to any database. However, I would like to use .Net class sqlconnection to open/close and manage connections because of its performance advantage over Oledb. 
    I have been looking at the provided source code for the database step types (written in CVI) and also researching on how to appropriately call managed code/methods (.Net C#) into unmanaged code (CVI). I would like to (ideally) be able to open a connection via Class Sqlconnection(from .Net), somehow maintain the instance of the class created, and close the connection when the appropriate operations are complete. Marshalling the required object is not possible between managed and unmanaged codes (CVI is not object oriented?) so i would like to find an alternative means of maybe creating a handle for the class and keeping it alive in memory until i manually free it. 
    Should i be looking also at the DotNet wrappers that come with test stand? any suggestion on a better way of doing this? 
    I may be totally heading in the wrong direction so any guidance would be most appreciated.
    Thank you 

    Dear John,
    Thank you very much for your prompt and helpful reply.
    Our company is a custom automation solutions provider and we are tailoring a medical test application for a client in the medical field. We are integrating biometrics identification and authentication into our solution in order to be 21 CFR Part 11 compliant. Part of the compliance means that there cannot be any clear text username/password used in any part of our solution.
    So what we hope to do is to change the default process model of test stand to restrict what it can and cannot do. We would like to prevent the test stand sequence writers (our client will write their own test sequences) to have any means of bypassing biometric authentication (i.e via username/password). This means we would either need to completely remove test stand's current open/close connection step types (and rewrite our own in .Net), or, modify the current implementation of test stand database step types (as per my previous post description).
    .Net sqlconnection class provides the necessary option of using windows identification to open a sql connection. It also (by my understanding) executes 2.5 times faster compared to Oledb connections.  
    We are an Alliance member and our Alliance coordinator is Jeremy Taylor. I am posting on this developer forum to gain input from anyone who might have experience in this area and for whoever who will be doing similar projects to ours in the future. 
    Thank you for your time.

  • How to use Flash recovery area only for flashback database feature

    I would like to use flash recovery area only for flashback database feature, which means, flash recovery area will store only flashback logs.
    I dont want to use that file system for any other files, like archive log files, database backups, control file copies, multiplex redo log, etc
    is it possible? I want to use this feature only for flashback database option and hence i dont want to disturb any existing configuration in my database
    including backup jobs. Is it required to store archive redo log files also in flash recovery area to use the flashback database feature?
    I certainly can't afford to have a copy of entire database in this file system as size of my DB is more than the flash recovery area file system I have.
    Thanks
    Sarayu

    user13312943 wrote:
    Aman,
    I think i was not clear in my question. Let me try again
    My only requirement is to use flashback database feature (or be prepared to use if required). I dont want to create a large file system to use this FRA to store all these files. Out of all the files being stored here copy of data files seems to be consuming more space. I see these files are classified as transient and permanent files. I am okay with permanent files. I fear that this file system may consume more space if i store backup files on disk. I want database backups to go to tapes, not to the FRA disk. Is it possible?
    Thanks for your reply
    Okay, well in that case you can use RMAN and push the backups to the tape drives. FLB logs would be stored on the FRA.
    Aman....

  • Can we rollback catcpu.sql using flashback database?

    Hello all,
    Can we use FLASHBACK DATABASE to roll back the changes made by the catcpu.sql/catpatch.sql used for upgradation/patching? [ I am aware that oracle provides rollback sql's but just curious. ]
    TIA,
    JJ

    Keep in mind, catpatch is only the second part of the patching process, before that you already patched the software. If you want to have a complete rollback, follow the instructions in the readme file.
    Werner

  • FLASHBACK Database : rman vs sql command differnces

    I am new to Oracle and want understand the difference and which is the correct way of flashing back the database?
    RMAN command vs SQL Command on using FLASHBACK DATABASE
    SQL> FLASHBACK DATABASE TO RESTORE POINT BEFORE_ONLINE_TEST;  {CODE} Vs rman> run{
         flashback database to restore point BEFORE_TEST_320130313;
         sql "alter database open resetlogs"; }
    Referring this article on http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmflash.htm#BGBDCAFA it says we can use both RMAN and SQL command for database flashback.
    Questions:
    1. Difference between using RMAN and SQL command on database flashback?
    2. When to use RMAN or SQL on the  database flashback?
    3. Which is the Oracle recommended or best way ?
    Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:26 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:27 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:28 PM
    Edited by: Sivaprasad S on Mar 15, 2013 7:29 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    When I issue the SQL Plus command of
    SQL> flashback database to restore point BEFORE_TEST_20130313 ;
    flashback database to restore point BEFORE_TEST_20130313
    ERROR at line 1:
    ORA-38754: FLASHBACK DATABASE not started; required redo log is not available
    ORA-38762: redo logs needed for SCN 87612483975 to SCN 87612485856
    ORA-38761: redo log sequence 1 in thread 1, incarnation 3 could not be accessedHowever on running this on RMAN
    RMAN>
    list backup of archivelog scn between 87612483975 and 87612485856
    RMAN> ;
    starting full resync of recovery catalog
    full resync complete
    List of Backup Sets
    ===================
    BS Key  Size       Device Type Elapsed Time Completion Time
    5212758 19.75M     SBT_TAPE    00:00:04     13-MAR-2013 16:36:17
            BP Key: 5212765   Status: AVAILABLE  Compressed: NO  Tag: TAG20130313T163611
            Handle: <TestDB_60:809973373:1>.al   Media: 945c30b6:506c6cd2:3a14:0001
      List of Archived Logs in backup set 5212758
      Thrd Seq     Low SCN    Low Time             Next SCN   Next Time
      1    1       87612468290 13-MAR-2013 13:28:19 87612484321 13-MAR-2013 16:36:06
      1    2       87612484321 13-MAR-2013 16:36:06 87612484339 13-MAR-2013 16:36:09
    BS Key  Size       Device Type Elapsed Time Completion Time
    5212759 896.50M    SBT_TAPE    00:00:17     13-MAR-2013 16:36:30
            BP Key: 5212766   Status: AVAILABLE  Compressed: NO  Tag: TAG20130313T163611
            Handle: <TestDB_59:809973373:1>.al   Media: 945c30b6:506c6cbd:39f5:0001
      List of Archived Logs in backup set 5212759
      Thrd Seq     Low SCN    Low Time             Next SCN   Next Time
      1    5       87612363812 12-MAR-2013 14:22:26 87612659040 13-MAR-2013 03:04:08
    run {
    allocate CHANNEL dev_2  TYPE 'SBT_TAPE' format '%U' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8)';
    allocate CHANNEL dev_3  TYPE 'SBT_TAPE' format '%U' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8)';
    allocate CHANNEL dev_4  TYPE 'SBT_TAPE' format '%U' PARMS  'SBT_LIBRARY=/opt/omni/lib/libob2oracle8_64bit.so,ENV=(OB2BARTYPE=Oracle8)';
    flashback database to restore point BEFORE_TEST_20130313;
    sql "alter database open resetlogs";
    release channel dev_2;
    release channel dev_3;
    release channel dev_4;
    starting media recovery
    archived log for thread 1 with sequence 2 is already on disk as file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_2.3612.810054205
    archived log for thread 1 with sequence 3 is already on disk as file +DG_PERF_FLASH_02/TestDB/archivelog/2013_03_14/thread_1_seq_3.1588.810054205
    channel dev_2: starting archived log restore to default destination
    channel dev_2: restoring archived log
    archived log thread=1 sequence=1
    channel dev_2: reading from backup piece <TestDB_60:809973373:1>.al
    channel dev_2: piece handle=<TestDB_60:809973373:1>.al tag=TAG20130313T163611
    channel dev_2: restored backup piece 1
    channel dev_2: restore complete, elapsed time: 00:00:46
    channel dev_2: deleting archived log(s)
    archived log file name=+DG_PERF_FLASH_02/TestDB/archivelog/2013_03_15/thread_1_seq_1.2969.810106317 RECID=49 STAMP=810106318
    media recovery complete, elapsed time: 00:00:05
    Finished flashback at 10-MAR-2013 05:32:07
    database reset to incarnation 5215723
    When we issue the SQL Plus command, if there is  need of old database backup of archive log, how does that SQL Plus communicate with rman recovery catalog and retrieve?

Maybe you are looking for