Pfile - init.ora file setup
My database 10.2.0.3. OS is Sun Solaris 10. My database SID is test. I have part of my inittest.ora file as following:
test.__db_cache_size=230686720
test.__large_pool_size=4194304
test.__shared_pool_size=200m
test.__streams_pool_size=0
*.pga_aggregate_target=150M
*.shared_pool_size=300m
*.aq_tm_processes=1
*.audit_file_dest='/opt/Oracle/software/10.2.0/admin/test/adump'
*.background_dump_dest='/opt/Oracle/software/10.2.0/admin/test/bdump'
*.compatible='10.2.0.1.0'
My question is what the first 4 lines are used for? I know if we are going to setup the parameter, we have to start with *. , right?
Thanks a lot!
If you remove those lines, oracle has to again recalculate the optimal/efficient values for the dynamic memory segments managed by ASMM feature of Oracle10g. If you keep it as it is, oracle will have a starting point to rework or start from where it left off when the instance is restarted.
HTH
Thanks
Chandra Pabba
Similar Messages
-
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 -
CHANGING THE DIRECTORY OF INIT.ORA FILE
Hi,
I have a database in 8i. Can I change the diredtory of init.ora file ? If yes how ?
it is in d:\oracle\ora8
and I want tu put it in d:\anothrfolder
Many thanks before.That's what I did , but :
SQL> SHUTDOWN IMMEDIATE
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
C:\Documents and Settings\user>oradim -delete -sid DB1
C:\Documents and Settings\user>oradim -EDIT -SID DB1 -PFILE C:\oracle\admin\db1\exp\initdb1.ora
DIM-00010: SYSTEM\CurrentControlSet\Services\OracleService key does not exist
O/S-Error: (OS 2) Le fichier spÚcifiÚ est introuvable.
DIM-00010: SYSTEM\CurrentControlSet\Services\OracleService key does not exist
O/S-Error: (OS 2) Le fichier spÚcifiÚ est introuvable.
C:\Documents and Settings\user>oradim -EDIT -SID DB1 -PFILE C:\oracle\admin\db1\exp\initdb1.ora -startmode auto
DIM-00010: SYSTEM\CurrentControlSet\Services\OracleService key does not exist
O/S-Error: (OS 2) Le fichier spÚcifiÚ est introuvable.
DIM-00010: SYSTEM\CurrentControlSet\Services\OracleService key does not exist
O/S-Error: (OS 2) Le fichier spÚcifiÚ est introuvable.
C:\Documents and Settings\user>oradim -NEW -SID DB1 -PFILE C:\oracle\admin\db1\exp\initdb1.ora -startmode auto
C:\Documents and Settings\user>sqlplus "/ as sysdba"
SQL*Plus: Release 8.1.7.0.0 - Production on Me Mai 16 12:22:25 2007
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
With the Partitioning option
JServer Release 8.1.7.4.1 - Production
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
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 -
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 -
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 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.... -
Init.ora file???
Hi
I have a database "Xdb" running on winNT.
My "ora_home\database" folder contains the following files:
oradba.exe
OraDim.exe
PWDXdb.ora
SNCFAXDB.ORA
SPFILEXDB.ORA
and, ora_home\admin\xdb\pfile\init.ora_242323.
Well, as far as my knowledge is concerned, to start a database, we need a "init.ora" file. But I don't see any init.ora file in the above said folders, and how come the databas is getting started automatically and from where it reads the "init.ora" file when it is not present?
Explain me pls.
TIA
Aqueel.Hi,
If u want to create a init.ora file u can do the following:
create pfile='path' from
spfile;
This will generate a pfile(init.ora) which can be read.
If you want to make any changes, u can do that and you can replace the spfile in the same way. Just change the order in the above statement. Generally, the parameters can be changed with the alter system command. This explaination is just to kill your curiosity!! -
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 -
Hi,
I changed the init.ora file for some reason and I have applied some patches in OS(microsoft windows 2003 server) and i noticed in the init.ora file that all changes in the init.ora file gone !!
Can someone explain me, what was the reason behind that ?
Thanks in advance.Hi,
<humor>You have to check urgently for the green little pfile changer halfling!</humor>
Seriously.. did you do both at the same time? If so... are you sure you save the init file? Cause there's no way such changes are rolled back except if you did not saved the file... or restored an old version of your pfile!
Regards,
Yoann ;-) -
Missing "init.ora" file
I search lots of website to find out how to create batabase by manual without using OBCA. Almost of the website said that I need to find the "init.ora" file,
then copy and edit some of the parameters. But the problem is I couldn't find
"init.ora" file in Windows XP Pro. Is thers someone can tell me the exactly path for this file or help me to create a New "init.ora" file ?
One more question. Does this file exist before I create new SID or after ?
Thank you.Hi,
go to start menu and click search option then find init.ora or *.ora, see results ? anyways the location of the init.ora file is d:\oracle\0ra90\admin\sample\pfile if you replace ora_home with d:\oracle and your db must be oracle 9.0.1.you can do one more thing use dbca to create a sampme file.use it and at the very last step uncheck create database and check create script sort of option.save it and use it accroding to your requirement.
thanks
Alok. -
Init.ora file at standby side
Oracle version: 11.2
Platform : Solaris 11
Both Primary and Physical standby DBs are Standalone DBs.
DB_NAME of Primary = PRIMDB
DB_UNIQUE_NAME of Primary = PRIMDB
DB_NAME of Stanby = PRIMDB
DB_UNIQUE_NAME of Stanby = STDBY_DB
I am going to create a physical standby DB for my primary DB.
After taking the backup of primary and FTPing to standby server I am going to run RMAN DUPLICATE . Before that I need to STARTUP NOMOUNT the auxiliary instance
export ORACLE_SID=STDBY_DB
sqlplus '/as sysdba'
startup nomount pfile=initXXXX.ora
rman target sys/mypasswd@PRIMDBTNS auxiliary /
run
allocate channel d1 device type disk;
duplicate target database for standby dorecover;
release channel d1;
I want to know how the init.ora file of standby DB should be named.
Should it be
initPRIMDB.ora
or
initSTDBY_DB.oraThe init.ora would be named as per the db_name parameter which in your case will be initPRIMDB.ora.
A couple of thoughts:
1) With 11gR2 you can do an active duplicate which does the duplicate on the fly so you don't need to copy files over.
2) With your naming convention if your standby becomes your primary then the naming convention of STDBY would not make sense.
Edit - Having seen msebergs's response. When you start your standby it will by default look for the pfile in $ORACLE_HOME/dbs with the namiing convention init${ORACLE_SID}.ora. However, mseberg is correct as in his link you explicitly supply the init.ora name in which case it can be anything....ie startup nomount pfile='/xyz'; -
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?... -
Can we determine path of my INIT.ORA file from data dictionary views.
Hello Guru’s
I am new to oracle, My question is for the sake of my knowledge: I work on oracle 10G.
Is there any data dictionary view from where I can get the path of my INIT.ORA file.
Regards,NewDay wrote:
Hello Guru’s
I am new to oracle, My question is for the sake of my knowledge: I work on oracle 10G.
Is there any data dictionary view from where I can get the path of my INIT.ORA file.
AFAIK , its no. You can check the path from the show parameter command like following,
SQL> show parameter spfile
NAME TYPE
VALUE
spfile string
/u01/app/oracle/product/10.2.0
/db_1/dbs/spfileorcl.ora
SQL>HTH
Aman.... -
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. -
How to set 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.post this in database forum
Maybe you are looking for
-
Set Default Printer based on user setting using Powershell script
Hi I would like to create a script that runs on user log off and captures the default printer (set manually by the user) and then another script to reapply the settings (saved upon log off) when the user logs back in. This is because local printers
-
ITunes 11.1 wont download onto my computer (Windows 7)
Why wont iTunes download onto my computer? I've deleted that past one, checked all of the solutions, did the things, but didn't work. I try to download iTunes through the website, but it comes up with error messages and saying I can't download it.
-
we are having large data nearly about 10k so it is very tedious to create relationships in data manager. can anyone please tell us the proper way of importing relationships through data manger and also specify the changes we are suppose to make in th
-
Reply ONLY to sender and not ALL in text MMS
I'm sure this answer is somewhere, but apparently I am the world's worst searcher on here, Crackberry and any other "help" forum I can find. I received an MMS from a friend who included a picture of his newborn. He sent the text to multiple people.
-
Error:subsequent adjustment in subcontracting
While posting subsequent adjustment for a subcontracting P.O,getting the error "The system could not copy the sub-items in this line".The quantity field for the main item is having a default value 0 and it was disabled for input. I have maintained a