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
Solved

Log_archive_format

Posted on 2011-03-01
4
1,928 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)
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 76

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Fine Tune your automatic Updates for Ubuntu / Debian
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

808 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