Using Flashback Database on 11g
hi everyone,
My 11g db is size 50 GB on a very strong Windows server.
No performance problems whatsoever.
If I enable Flashback Database logging am I likely to notice any performance degradation? The data is not really heaviily changed.
What about disk space - does it use the existing redo/archive logs or does it create different logs for the flashback feature?
Thanks for your opinions.
John
user629010 wrote:
hi everyone,
My 11g db is size 50 GB on a very strong Windows server.
No performance problems whatsoever.
If I enable Flashback Database logging am I likely to notice any performance degradation? The data is not really heaviily changed.Even if the data is not heavily changed, with the internal changes happening, there would be some activity always generating Redo/Undo. You would want to check the working of the RVWR process to see any possible waits over it. In addition to this, if the speed of the writing of RVWR is not good enough to write, you would see the contention on the Undo tablespace as it won't be freed as long as the corresponding writes are not saved by RVWR.
>
What about disk space - does it use the existing redo/archive logs or does it create different logs for the flashback feature?Flashback database uses *.flb* files which , if I remember correctly ,grow in 8mb of chunks. FLasback database does not uses the existing redo logs. Yes, it does uses the archived logs in addition to the FLB logs. So before you think to use this featuture, you do want to check the retention period of the logs , also the disk space required to manage that much retention period.
HTH
Aman....
Thanks for your opinions.
John
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. -
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 -
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,
JJKeep 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 -
Trying to enable flashback database on 11g Linux platform database
Hello,
SQL> ALTER DATABASE FLASHBACK ON;
ALTER DATABASE FLASHBACK ON
ERROR at line 1:
ORA-38759: Database must be mounted by only one instance and not open
Can any one help understand why I am getting this error while I have only one instance open?
Thanks
AlainAs Hemant asked, what's the status of the db, is it mounted or open? Issue,
select status from V$instance This would show the status to you. If it's open , you must bring it to the mount stage with a clean shutdown and then retry.
HTH
Aman.... -
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
Sarayuuser13312943 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.... -
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 PMWhen 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? -
Unable to do flashback database!!
Hi all,
I have enabled flashback database and created a restore point with guaranteed flashback database so that i can do a flashback database. When i do a flashback database, its says it needs archivelogs to do recovery. The flashback log usually will have all modified data in a flashback log files to use it for flashbacking a database. why its asking for archivelogs when all the modified data is present in flashback log itself? kindly clarify me.
Regards,
Pradeep. VHi,
Flashback database required the Archive log files.
"Flashback Database is similar to conventional point-in-time recovery in its effects. It enables you to return a database to its state at a time in the recent past. Flashback Database is much faster than point-in-time recovery because it does not require restoring datafiles from backup and requires applying fewer changes from the archived redo logs."
"No file in the fast recovery area is eligible for deletion if it is required to satisfy a guaranteed restore point. However, archived redo logs required to satisfy a guaranteed restore point may be deleted after they are backed up to disk or tape. When you use the RMAN FLASHBACK DATABASE command, if the archived redo logs required to satisfy a specified guaranteed restore point are not available in the fast recovery area, then they are restored from the backups."
Ref Doc:Using Flashback Database and Restore Points
HTH -
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 -
Flashback database and nologging tablespaces
DB Versions
Oracle 11.2.0.3
2 other DBs at 11.2.0.3 with 10.2.0.3 compatibility mode.
We are using flashback database in our dev/test environments so we can flashback and apply builds again. I am ok if we lose data and can't roll forward. We are running out of archive space. Lately we have been going over a month or more between builds. Is it possible to set tablespaces to nologging and still have flashback work? I dont need the data. I just need to be able to reset to the structure before the last build. I am 100% ok with losing test data. I have no say over when builds get done.
Reason I am asking not just testing (I did do some google searches):
Testing this isn't that simple due to process issues. I have to get a build scheduled which can take a week or more(no extra DB for me to test this) and the build team generally doesn't listen, so if I tell them to wait for me for the test, it generally doesn't happen, then it can be another week before I get a build and so on. Restoring from backup isn't an easy change because that is a process change and I have to go through incredible amounts of 'process' and approval to get any kind of change to a process (think dilbert on steroids). So I have to ask ahead of even running a test.Hi,
Doc Ref:ALTER TABLESPACE
Changing Tablespace Logging Attributes: Example The following example changes the default logging attribute of a tablespace to NOLOGGING:
ALTER TABLESPACE tbs_03 NOLOGGING;
Altering a tablespace logging attribute has no affect on the logging attributes of the existing schema objects within the tablespace. The tablespace-level logging attribute can be overridden by logging specifications at the table, index, and partition levels.
So if you want to Nologging then you have to go at table level.
i'd suggest use the the different location for Archive and Flashback log. and clean the Archive area using some OS job. Flashback database required only the flashback log files during restore.
HTH -
10g flashback database limitations
When are you not able to Flashback Database?
· Media failure, corruption or datafile deletion.
· The control file has been restored or recreated
· A tablespace has been dropped
· A data file has been shrunk
· A RESETLOGS operation is required.
If you dropped a schema and want it back, you can use flashback database to get it back. But if you dropped both schema and tablespace, it is not possible to get the schema back with flashback database.
Is there any other scenarios to use flashback database?
jzcI am trying to evaluate the benefit to turn on this feature. Please drop few lines of your opinion to help me.
-
Basic question about Flashback Database
Hi,
I have a very generic question about using Flashback Database.
On my testing systems, for performance testing and simulation purposes, I want to create a guaranteed restore point so I can test impact on batch when code change releases are done, before deployment in production. My confusion is with respect to redo logs, as summarized in the questions below:
1. Is it possible to change redo log files, when a guaranteed restore point has been configured?
2. If yes, will the Flashback to restore point, also change the size of the redo logs?
I could not find anything in the docs about this....hence my question....
Appreciate your time taken in responding to these questions....
Regards.HI,
donneskold wrote:
Hi,
I have a very generic question about using Flashback Database.
On my testing systems, for performance testing and simulation purposes, I want to create a guaranteed restore point so I can test impact on batch when code change releases are done, before deployment in production. My confusion is with respect to redo logs, as summarized in the questions below:
1. Is it possible to change redo log files, when a guaranteed restore point has been configured?
1) Yes it is possible.
2. If yes, will the Flashback to restore point, also change the size of the redo logs?
2) It will not change the size of redo log file. Cannot resize a redo log file..
I could not find anything in the docs about this....hence my question....
Appreciate your time taken in responding to these questions....
Regards.
Thank you -
Not able to create a database link using the database gateway of oracle 11g
HI,
While trying to create a database link to SQL server from Oracle ,using the database gateway provided with 11g, i am getting the following error while making use of it in selecting columns from tables :
Error starting at line 1 in command:
select * from test1@dblink
Error at Command Line:1 Column:20
Error report:
SQL Error: ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from DBLINK
These are the steps i have followed for setting up:
1.Ran the set up for the Database gateway.and mentioned the SQL server name and database .ALos set up a listener.
2. Added the following in the Listener.ora of Oraclehome 11/NETWORK/ADMIN:
LISTENER_SQL_FCD =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =localhost) (PORT = 1541)
SID_LIST_LISTENER_SQL_FCD =
(SID_LIST =
(SID_DESC =
(SID_NAME=dg4msql)
(ORACLE_HOME= D:\app\20537\product\11.1.0\db_3)
(PROGRAM=dg4msql)
3.Added the following in tnsnames.ora inOracle home/NETWORK/ADMIN:
dg4msql=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1541))
(CONNECT_DATA=(SID=dg4msql))
(HS=OK)
4. Following is the entry in initdg4msql.ora in C:\product\11.1.0\tg_5\dg4msql\admin:
HS_FDS_CONNECT_INFO=10.148.45.242:1433//SalesDemo
HS_FDS_TRACE_LEVEL=DEBUG
HS_FDS_RECOVERY_ACCOUNT=RECOVER
HS_FDS_RECOVERY_PWD=RECOVER
5. Created the database link :
create database link dblink
connect to "sa" identified by "<pswd>"
using 'dg4msql'
On running :select * from test1@dblink i get the following error:
Error starting at line 1 in command:
select * from test1@dblink
Error at Command Line:1 Column:20
Error report:
SQL Error: ORA-28513: internal error in heterogeneous remote agent
ORA-02063: preceding line from DBLINK
Is there any issue with the set or definition that I get the above error?What is the version of the Oracle database in which you have specified/and use the database link?
If it is for example 10.2.0.3.0 you need to apply the mandatory patch for RDBMS bug 5965763 first before being able to use an 11g gateway. Have a look at MetaLink note 457808.1 for details about this patch.
Regards,
Ed -
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 environmentA 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. -
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,
RichardFor 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
Maybe you are looking for
-
I can not get past Terms of Use - No option to agree or accept terms? See Below
Terms of Use Adobe General Terms of Use Last updated May 7, 2012. Replaces April 30, 2010 version in its entirety. 1. Your Agreement With Adobe. 1.1 Choice of Law. If you are a resident of North America, your relationship is with Adobe Systems Incorp
-
Hi All, I have a requirment that: I need to refresh my selection screen at every time i selected back button. Following fields are maintained in selection screen. PARAMETERS pc_chgno TYPE ZTB1 OBLIGATORY MEMORY ID zbc_change_number. PARAMETERS
-
How can I get Data from the Sound cart in Labview? Does a VI exist?
How can I get Data from the Sound cart in Labview? Does a VI exist?
-
Configuration of PostgreSQL in Solaris 10
I really having problems in configuring postgreSQL in my desktop... When i execute the initdb command it display this error: The user must own the server process. thanx
-
Installing/Uninstalling Adobe 11.0.03
1) Whenever I try to open a pdf file, I receive an error message 2) One of the suggestions on the error message was to download the latest version of Adobe Reader 3) Went to the Adobe site...downloaded the latest version...and was told the latest ver