Solved

db_recovery_dest for flashback

Posted on 2010-11-28
4
2,418 Views
Last Modified: 2012-05-10
in order to flashback database, I used the following steps..
but I could not create the destination..
I already created a file called dest.txt
still shows error. What could be the reason?
SQL> alter system set db_recovery_file_dest=c:\n.txt;
alter system set db_recovery_file_dest=c:\n.txt
                                        *
ERROR at line 1:
ORA-00922: missing or invalid option


SQL> alter system set db_recovery_file_dest= c:\n.txt;
alter system set db_recovery_file_dest= c:\n.txt
                                         *
ERROR at line 1:
ORA-00922: missing or invalid option


SQL> alter system set db_recovery_file_dest='c:\n.txt';
alter system set db_recovery_file_dest='c:\n.txt'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-01261: Parameter db_recovery_file_dest destination string cannot be
translated
ORA-01263: Name given for file destination directory is invalid
OSD-04018: Unable to access the specified directory or device.
O/S-Error: (OS 2) The system cannot find the file specified.


SQL> alter system set db_recovery_file_dest='c:dest.txt';
alter system set db_recovery_file_dest='c:dest.txt'
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-01261: Parameter db_recovery_file_dest destination string cannot be
translated
ORA-01263: Name given for file destination directory is invalid
OSD-04018: Unable to access the specified directory or device.
O/S-Error: (OS 2) The system cannot find the file specified.


0
Comment
Question by:nobleit
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
manzoor_dba earned 500 total points
ID: 34228988
Hi,

By default the db_recovery_file_dest will be configured with the Flashback desination folder. If you want to configure you own desination the proceed as per below..

1) You need to enter the value of the desination folder where you flashback files will be stored. You are not supposed to specify any file name  ( here you have mentioned a file name)..

If database is stared up using pfile:-

1) shutdown the database.
2) Modify the below parameter in the pfile.
   db_recovery_file_dest = 'C:\FLASHBACK'
   
  Here i have give the folder name as flashback which already exists in the c: drive.

3) The startup your database using the modified pfile.

If the database is started using spfile then.

1)
SQL> alter system set db_recovery_file_dest = 'C:\FLASHBACK'  SCOPE=Both;
System altered.


Thanks...

 




0
 
LVL 5

Expert Comment

by:anand_20703
ID: 34282733
manzoor_dba has given the pin pointed answer.
0
 

Author Comment

by:nobleit
ID: 34432593
Sorry for the delay. The issue is solved. Thank you for all your support..
0
 

Author Comment

by:nobleit
ID: 34528745
accept manzoor_dba and give points..
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now