How to Change Archive Log Destination in Oracle 11g


sqlplus / as sysdba

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     13
Next log sequence to archive   15
Current log sequence           15


 To check current archiving location:

SQL> SHOW PARAMETER DB_RECOVERY_FILE_DEST

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                string      /u01/app/oracle/flash_recovery
                                                 _area

SQL> ALTER SYSTEM SET log_archive_dest ='/u01/arch' scope=both;
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16018: cannot use LOG_ARCHIVE_DEST with LOG_ARCHIVE_DEST_n or
DB_RECOVERY_FILE_DEST

Now If you want to set log_archive_dest first reset DB_RECOVERY_FILE_DEST and then set .

SQL> alter system set DB_RECOVERY_FILE_DEST='';
System altered.

SQL> ALTER SYSTEM SET log_archive_dest ='/u01/arch';
System altered.

SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/arch
Oldest online log sequence     15
Next log sequence to archive   17
Current log sequence           17





12 comments:

  1. EVERYONE BE GUIDED.

    In order to keep my money safe and have access to it anytime I want without having to go to the bank, I choose to invest in bitcoin. While surfing the internet, I unknowingly signed with a dubious investment company and gave them a sizable 274,000 USD of my funds. Several weeks passed while I waited, but nothing transpired. All I noticed was the value of my bitcoin rising daily without my having any control over it. My friend offered to connect me with Mr Morris Gray, after I mentioned it to her. I got in touch with him and explained the deception I had encountered. Mr Morris Gray was able to repay all of my lost money after I informed him that I had invested with the wrong company, doing so anonymously and without the scam artists' knowledge. I wish to appreciate Mr Morris Gray and his team for their wonderful service once more. This is undoubtedly a top-notch service, and I'll let everyone know about it. This is the best online support I've ever experienced. I'm ecstatic. they can be reached through Email. ( MorrisGray830 @ gmail dot Com ) or WhatsApp ( +1 607 698 0239 ).....

    ReplyDelete