Solved

Log_archive_format

Posted on 2011-03-01
4
1,713 Views
Last Modified: 2012-05-11
I need to change "Log_archive_format=%t_%s_%r.dbf" to Log_archive_format="dbname_%t_%s_%r.arc" on linux servers for oracle 11g database. How can I do this change. Please let me know. I really appreciate your help.
0
Comment
Question by:hussainkhan22
  • 2
4 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
It's an init paramter.

The docs.  When are you going to go to the docs first:
http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams124.htm#REFRN10089
0
 

Author Comment

by:hussainkhan22
Comment Utility
where shall we chnage "Log_archive_format=%t_%s_%r.dbf" to Log_archive_format="dbname_%t_%s_%r.arc" on linux servers for oracle 11g database, I mean in pfile or we can use
SQL> alter system set Log_archive_format="dbname_%t_%s_%r.arc";

If I am wrong please correct me. I really appreciate your help.
0
 
LVL 34

Expert Comment

by:Mark Geerlings
Comment Utility
For most init parameters you can use either option:
1. Change the value in the pfile (if you use a pfile)
2. Use the "alter system" command to change the current value in memory and/or change the value in the spfile.

If you use the pfile option, those changes will not take effect until you stop and restart the database.  If you use the "alter system" option (this assumes you use an spfile, not the older-style pfil), the change will take effect immediately (if this is a parameter that supports dynamic changes).  

But, this particular parameter: log_archive_format cannot be changed dynamically.  So, if you use a pfile, you can make the change there, then stop and restart the database.  If you use an spfile, you can use an "alter system" command, but you must include "scope=spfile", since the change can only take effect the next time the database is restarted.
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
Comment Utility
>>SQL> alter system set Log_archive_format="dbname_%t_%s_%r.arc";


If that is the format you want, this should work.  If that parmater is not 'modifiable' you might need to add 'scope=spfile' then bounce the database.

Again, refer to the docs.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to recover a database from a user managed backup

728 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

11 Experts available now in Live!

Get 1:1 Help Now