Solved

Log_archive_format

Posted on 2011-03-01
4
2,026 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35006838
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
ID: 35006894
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 35

Expert Comment

by:Mark Geerlings
ID: 35007022
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 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 35007113
>>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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
auto mounter on hp-ux 2 39
oracle collections 2 29
Creating a are-you-sure condition prior to shutdown: what do you think of... 14 43
Loading flat file data in tables 2 66
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

730 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