Enabling archive log using init.ora file
Hi
I want to convert my database in archive mode using init.ora file.
so what entries i need to do in it.
Plz send me some samples .
thanks
Please review the contents below;
When the communication between the client and the server goes awry, this can
result in ORA-1041 and ORA-3113 errors.
Oracle Metalink Document: What Does ORA-1041 Mean? :Doc ID: Note:1011305.102
https://metalink.oracle.com/metalink/plsql/f?p=130:14:1180317337103985812::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,1011305.102,1,1,1,helvetica
Oracle Metalink Document: ORA-1041 When Trying to Connect as Sysdba to
Startup Database: Doc ID: Note:552218.1
https://metalink.oracle.com/metalink/plsql/f?p=130:14:1180317337103985812::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,552218.1,1,1,1,helvetica
Hope this is useful.
Adith
Similar Messages
-
How to find current init.ora file
I have 2 issues:
Issue 1:--
I have some 4-5 init.ora file which are created by some other user and facing difficulties to find exact init.ora which is used by my oracle 9.2 database. same thing for spfile.
Is there any way so that i can find the currently use init.ora file?
Issue 2:
I want to change init.ora file parameters for the oracle9.2(siebel).
Presently default it is showing optimizer_mode=CHOOSE
I have tried to change to RULE but not refelecting after database restart.
at session level i can modify but i want permanent change and for thius i tried with
user SYS as SYSDBA with
ALTER SYSTEM SET optimizer_mode=RULE;
but getting following Oracle erroe message
ORA-02096 specified initialization parameter is not modifiable with this option
Cause: Though the initialization parameter is modifiable, it cannot be modified using the specified command.
Action: Check the Oracle9i Database Administrator's Guide for information about under what scope the parameter may be modified
How we can make changes in init.ora file?
Regards
JunuAs far as I know, there's no possible way to find out which parameter file was used to start instance. And, even if it was, I don't really see much sense in it because parameter file is a client-side file, and usually it required to start up Oracle instance remotely.
In principle, parameter files are obsolete beasts, consider using server parameter file (SPFILE) instead. And, for SPFILE, it's pretty easy to find out its location:
SQL> show parameter pfile
NAME TYPE VALUE
spfile string %ORACLE_HOME%\DATABASE\SPFILE%
ORACLE_SID%.ORAAs for your ORA-02096 error, you have two opportunities to resolve it.
If you decided to use SPFILE, create one (for example, using CREATE SPFILE FROM PFILE command), start your instance with SPFILE then issue:
ALTER SYSTEM SET optimizer_mode=RULE SCOPE = SPFILE;and bounce your instance.
If you still wish to use old-style parameter file, you have to add corresponding setting into that file manually (it's a plain text file in fact) and restart instance.
Regards.
P.S.: Why do you want to enforce rule-based optimizer by the way?... -
How to create database using modified INIT.ORA file
anybody know anything about the creating a
database using modified init.ora file?
ThanksIf you take a look at the "Getting Started" guides, there's a section on creating databases and init.ora files.
Look for the document
Oracle8i Enterprise Edition for Windows NT Getting Started
Justin
null -
Which init.ora file in use?
I found init.ora in a couple places.
How do I determine which init.ora file my oracle is using?
Is there a sqlplus command to fine the init.ora in use?
So far, I found them here:
c:\oracle11g\dbs\init.ora
c:\oracle11g\admin\mydb1\pfile\init.ora.8172009222712
Which one is active?
Any suggestions are greatly appreciated.The one that's there in the DBS folder is the first one that is going to be looked upon by Oracle when it will try to start the instance. The one in the $OH/dbs/ is going to be active. The other location would not have the pfile all the time. Also, spfile should be used if you are in 11g. Why you areusing pfile instead of it?
Here is what I have for 11g system,
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining
and Real Application Testing options
SQL> show parameter spfile
NAME TYPE VALUE
spfile string /u01/app/oracle/product/11.1.0
/db_1/dbs/spfileorcl.ora
SQL>You can see the path is $OH/dbs.
HTH
Aman.... -
How to establish a single init.ora file for 3 node RAC under ASM
All,
Our environment is a combination of several different memory sized SUN machines (V880, V490 & 250R).
Setting up a single init.ora file that encompasses each of the nodes memory into the SGA sizing is our desired setup.
Though we have established the file, the question is getting each NODE on the RAC to use that single parameter
file to start its database instead of taking the default init.ora file in the default (asm/dbs) directory.
As we have performed fail-over testing, upon the restart of instances they have restarted with wrong memory
definitions that have hung the nodes when it took more memory then what was available and swap space began
to grow.
Steps to configure and enable this process is what I am looking for.
Thanks
GerryGerry,
Here's what we do. Not sure if it is relevant to your situation ...
(on each node)
$ cat $ORACLE_HOME/dbs/initrac11d1.ora
SPFILE='+DATA/rac11d/spfilerac11d.ora'
(in ASM)
$ asmcmd
ASMCMD> ls -la +data/rac11d
Type Redund Striped Time Sys Name
Y CONTROLFILE/
Y DATAFILE/
Y ONLINELOG/
Y PARAMETERFILE/
Y TEMPFILE/
N spfilerac11d.ora => +DATA/RAC11D/PARAMETERFILE/spfile.267.685170285
The spfile has all parameters, qualified by node where applicable. For example :
$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Wed May 6 19:00:45 2009
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
With the Real Application Clusters option
SQL> create pfile='/tmp/sb.ora' from spfile;
File created.
SQL> Disconnected from Oracle Database 11g Release 11.1.0.7.0 - 64bit Production
With the Real Application Clusters option
$ cat /tmp/sb.ora
*.archive_lag_target=1800
*.audit_file_dest='/var/oracle/admin/rac11d/adump'
rac11d1.dispatchers='(address=(protocol=tcp)(host=msdbc11-vip)(port=64000))'
rac11d2.dispatchers='(address=(protocol=tcp)(host=msdbc12-vip)(port=64000))'
*.global_names=TRUE
rac11d1.instance_number=1
rac11d2.instance_number=2
rac11d1.undo_tablespace='UNDOTBS1'
rac11d2.undo_tablespace='UNDOTBS2'
Hope this helps,
Steve -
Hi,
I'm in 8i on WinXP. By doing following I move init.ora file :
SQLPLUS>shutdown immediate
user>oradim -EDIT -SID DB1 -PFILE C:\oracle\admin\db1\exp\initdb1.ora -startmode auto
Now if I start the service, it is OK and DB would be open. but if I issu startup I have errors :
SQL> startup
LRM-00109: could not open parameter file 'C:\oracle\admin\db1\pfile\initdb1.ora'
LRM-00113: error when processing file 'C:\oracle\admin\db1\pfile\initdb1.ora'
ORA-01078: failure in processing system parameters
Even if registry fir pfile key is changed, it is with new position of init.ora file, but startup command line look for ancient init.ora file, Why ?
I should use :
SQL> startup pfile='C:\oracle\admin\db1\exp\initdb1.ora'
Any solution ?
Many thanks.we are in 8i :
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0
ID REG_SZ 0
ORACLE_GROUP_NAME REG_SZ Oracle - OraHome81
ORACLE_HOME_NAME REG_SZ OraHome81
ORACLE_HOME REG_SZ C:\oracle\ora81
ORA_REPRMAN_AUTOSTART REG_EXPAND_SZ TRUE
ORA_REPRMAN_PFILE REG_EXPAND_SZ C:\oracle\admin\reprman\pfile\init.ora
ORA_REPRMAN_SHUTDOWN REG_EXPAND_SZ TRUE
ORA_REPRMAN_SHUTDOWNTYPE REG_EXPAND_SZ i
ORA_REPRMAN_SHUTDOWN_TIMEOUT REG_EXPAND_SZ 30
NLS_LANG REG_SZ FRENCH_FRANCE.WE8ISO8859P1
ORACLE_HOME_KEY REG_SZ Software\ORACLE\HOME0
SQLPATH REG_SZ C:\oracle\ora81\dbs
ORACLE_BASE REG_SZ C:\oracle
MSHELP_TOOLS REG_SZ C:\oracle\ora81\MSHELP
RDBMS_CONTROL REG_SZ C:\oracle\ora81\DATABASE
RDBMS_ARCHIVE REG_SZ C:\oracle\ora81\DATABASE\ARCHIVE
ORACLE_SID REG_SZ reprman
ORA_DB1_AUTOSTART REG_EXPAND_SZ TRUE
ORA_DB1_PFILE REG_EXPAND_SZ C:\oracle\admin\db1\exp\initdb1.ora
ORA_DB1_SHUTDOWN REG_EXPAND_SZ TRUE
ORA_DB1_SHUTDOWNTYPE REG_EXPAND_SZ i
ORA_DB1_SHUTDOWN_TIMEOUT REG_EXPAND_SZ 30 -
Which process reads the spfile/init.ora file
Hi,
When we start the Oracle DB using "STARTUP" command, which background process reads the spfile/init.ora file?
Also on startup, which process reads the control file?Hi,
I think the oracle executable.. In the alert log file below you can see that spfile is read first. After that the oracle background processes are initialized.
Starting ORACLE instance (normal)
****************** Large Pages Information *****************
Total Shared Global Region in Large Pages = 0 KB (0%)
Large Pages used by this instance: 0 (0 KB)
Large Pages unused system wide = 0 (0 KB) (alloc incr 4096 KB)
Large Pages configured system wide = 0 (0 KB)
Large Page size = 2048 KB
Using parameter settings in server-side spfile /u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfileDB01.ora
System parameters with non-default values:
PMON started with pid=2, OS id=30425
Tue Aug 13 10:45:51 2013
PSP0 started with pid=3, OS id=30427
Tue Aug 13 10:45:52 2013
VKTM started with pid=4, OS id=30429 at elevated priority
VKTM running at (1)millisec precision with DBRM quantum (100)ms
Tue Aug 13 10:45:52 2013
GEN0 started with pid=5, OS id=30433
Tue Aug 13 10:45:52 2013
DIAG started with pid=6, OS id=30435
Tue Aug 13 10:45:52 2013
DBRM started with pid=7, OS id=30437
Tue Aug 13 10:45:52 2013
DIA0 started with pid=8, OS id=30439
Tue Aug 13 10:45:52 2013
MMAN started with pid=9, OS id=30441
Tue Aug 13 10:45:52 2013
DBW0 started with pid=10, OS id=30443
Tue Aug 13 10:45:52 2013
LGWR started with pid=11, OS id=30445
Tue Aug 13 10:45:52 2013
CKPT started with pid=12, OS id=30447
Tue Aug 13 10:45:52 2013
SMON started with pid=13, OS id=30449
Tue Aug 13 10:45:52 2013
RECO started with pid=14, OS id=30451
Tue Aug 13 10:45:52 2013
MMON started with pid=15, OS id=30453
Tue Aug 13 10:45:52 2013
MMNL started with pid=16, OS id=30455
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
starting up 1 shared server(s) ...
ORACLE_BASE from environment = /u01/app/oracle
Tue Aug 13 10:45:52 2013
ALTER DATABASE MOUNT
Cheers
Legatti -
Questions on init.ora file
Hi,
I have some questions on init.ora file. While checking the init file in my system i found that it defines a spfile in a non default location.
The parameter names are like
1) db1.__db_cache_size
2) *._kgl_large_heap_warning_threshold
3) *.sga_target
what do they indicate? I mean what does 'db1.__' , '*._' and '*.' indicate? There are multiple database in the Windows 2003 server and the db version is 10g R1
Regards,
SID
Edited by: SID3 on Jun 29, 2010 5:55 AM
Edited by: SID3 on Jun 29, 2010 5:56 AMSID3 wrote:
From the discussion i guess the following points
1) db1._ means they are specific to databases.
2) *._ and * means they are used accross databases and chaging it in any of the initfile might affect all? I seriously doubt this.You are mistaken when speaking about database. Bear in mind, a database is not an instance.
* here means this parameter will apply to any instance of that database (if it is in RAC), or to the only one instance of that database (if it is in non-RAC).
Find out more :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_2013.htm#i2146449
Nicolas. -
Oracle 11g init.ora file
1) I am a bit confused with init.ora file format in oracle 11g. In addition=
to the usual entries that are prefixed with *.<parameter>, it also has ent=
ries prefixed with <sid>.__<parameter>. I am not able to find an explanatio=
n of these <sid>__ entries from oracle 11g documentation. I am told by a co=
lleague that they are for instance, to cater for multiple-instances databa=
ses. Is that correct?
2) The presence of the <sid>.__ entries confuse me since some parameters ap=
pear in both <sid>__ and *. sections. What if the values for the same param=
eter are different, which one is used by oracle? I guess it's the <sid>.__ =
one?=20
3) In my case the database has only 1 instance, so I guess I can remove all=
<sid>.__ entries and only work with *. entries?
Thanks
LongHi,
the entries with double underscore in the spfile that you mention are not new in 11g but also show up in 10g.
They are caused by the background process MMAN (Memory Manager), that is active if you set SGA_TARGET>0 (in 10g) rsp. MEMORY_TARGET>0 (in 11g).
This MMAN modifies the Oracle Memory components like the shared pool and the buffer cache, using performance statistics captured by the MMON (Manageability Monitor) and storing the new size of the component in the spfile in order to make that size persistent through instance restarts.
The prefix of the SID is meaningless in case of a non-RAC database.
Kind regards
Uwe
http://uhesse.wordpress.com -
Hi,
I need to add the utl_file_dir parameter to the init.ora file. Do I need to restart the database for the changes to be effective?
My oracle version is
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - ProductionAkhil N K wrote:
Does the below two statements means the same?No.
1) creating an oracle directory using create or replace directory command This is referring to create a directory object in the database using the create directory command which should be mapping to a valid o/s level directory path.
http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_58a.htm#SQLRF01207
2) adding utl_file_dir parameterThis is referring to the edition of the init file and adding the parameter there .
HTH
Aman.... -
Archivelog Mode / init.ora file
Hi,
Maybe someone can help me out. I am presently trying to set up a dev server that has 3 or 4 databases on it. The first database is installed by the Oracle installation kit. The 2nd one that I am now trying to configure is giving me the following error: Ora-01126: database must be mounted EXCLUSIVE and not open for this operation. I am also setting it up for archiving.
When I do a SELECT * from V$database; the answer comes back that it is in noarchivelog mode. I even edited the init.ora file in both the pfile folder and the ora81/database folder and yet the answer is still the same. I even rebooted it with the same results. I understand that the database is in exclusive mode by default. Does this have anything to do with Parrelizm (spelling). I tried altering the database to archivelog mode but with no results.
Any ideas? Im at a loss.
Thanks for your time.
AlHi Al,
try to startup the db with startup mount or startup read only and try
the alter command again.
Normally it should work then!
Tobias -
Regarding UTL_FILE parameter in the INIT.ORA file
Dear all,
How can i set UTL_FILE parameter in the INIT.ORA file.
Also let me know how to create a directory over there.I am new to this area.
Where exactly i can locate these details and create directory.
Regards,
Bala.Dear all,
How can i set UTL_FILE parameter in the INIT.ORA
file.
Also let me know how to create a directory over
there.I am new to this area.
Where exactly i can locate these details and create
directory.
Regards,
Bala.Taken note of yingkuan's comments about directory objects - which don't need a utl_file_dir entry - if you really still need to know (on e-business suite or some other product that needs them) then UTL_FILE_DIR is an initialisation parameter which takes a comma separated list of directories on the database server and to which the oracle software owner (usually oracle on *nix systems and system on windows) has read/write access. To set it therefore you'll need to identify or create your directory and then either
a) add the line UTL_FILE_DIR=/path/to/dir1, /path/to/dir2
to your init.ora if you are using one or use
b) ALTER SYSTEM SET UTL_FILE_DIR=/path/to/dir1, /path/to/dir2 SCOPE=SPFILE;
if you are using a server parameter file.
You should be able to find this and more information in the documentation for your version of Oracle.
Niall Litchfield
http://www.orawin.info/ -
Hi,
Is there any query by which i can find out the location of init.ora file. We are using unix server.
Thanks in advance.The location of the init.ora file was not stored in the database because with Oracle8 it was possible to start the db remotely using a local init.ora file ( I never did it myself but I did read about it, proberbly on asktom). So a '/tmp/init.ora' would have been meaningless because you would not know which machine it refered to.
If you have lost your init.ora file it is possible to recreate it by quering v$parameter, if your on 9i or above you can do
'create pfile from spfile' to get a new copy if you are using an spfile that is! A 'find' on the unix might be the quickest!!
Regards
Wayne
Edited by: waynemac910 on 11-Dec-2008 06:44 -
Init.ora file missing (Oracle 10g)
Hi guys,
My database is down and when I try to startup it's complaining about the init.ora file that is missing. Is there a way of recreating this file and how?
Thanx.Kamran Agayev A. wrote:
NPD wrote:
Hi guys,
My database is down and when I try to startup it's complaining about the init.ora file that is missing. Is there a way of recreating this file and how?
Thanx.Show the output and verify for any initialization paramtere file in $ORACLE_HOME/dbs directoryIf it really is missing (so far we only have your word, and I trust Oracle more ... show us the actual error message) and you have no backup, you can recreate it by referencing your alert log. At every startup, the alert log will record all non-default initialization parms. -
Steps to Enable Archive log - RAC 10gR2(10.2.04)
Hi
Can anyone help on steps to enable archive log in RAC + ASM environment.
db version- 10.2.0.4 , filesystem - ASM, Two nodes(db1,db2)
Regards & Thanksyou can follow below steps to configure your RAC database archive/noarchive log mode
Putting the database into archive/noarchivelog mode in RAC environment:
========================================================================
1. Set cluster_database=false for the instance.
alter system set cluster_database=false scope=spfile sid='PROD1';
2. Shutdown all the instances accessing the database.
srvctl stop database -d prod
3. Mount the database using the local instance.
startup mount
4. Enabling archiving / noarchiving
alter database archivelog;
OR
alter database noarchivelog;
5. Change the parameter cluster_database=true for the instance prod1.
alter system set cluster_database=true scope=spfile sid='PROD1';
6. Shutdown the local database.
shutdown
7. Bring up all the instances.
srvctl start database -d prod
Maybe you are looking for
-
Creating a Disk Image from Compressor Fails
Hpefully some one can help me out here. Here's whats going on and I've tried this on 2 different systems (iMac 24 inch OSX 10.9.4,Nvidia GeForce GT750M 1 GB, 3.1 Ghz i7 Processor 1 TB Fusion Drive, 16 gigs of ram & a iMac 27 Inch OSX 10.9.4 Nvid
-
24" iMac Video Problem on Window XP
I brought 2 units of 24" iMac last month and using boot camp to install windows xp. Both iMac are completed the installation of window xp and one of the iMac run normally but video problem found on second iMac. After running in window xp about 5 – 10
-
I have been receiving the error "We could not complete your iTunes Store request. An unknown error occurred (11111). There was an error in the iTunes Store. Please try again later." This has been happening for 3 days. I cannot find mention of the (11
-
What is the best way to transfer home videos from one mac to another?
What is the best way to transfer home videos from one mac to another?
-
Can I download Photoshop on a Mac or apple device?
It's pretty self explanatory... When I first tried to download Adobe said it wasn't supporting my device which is a mac so I'm confused.