   |  | | Unable to create SPFILE. | Unable to create SPFILE. 2005-10-12 - By Chirag DBA
I put my audit_trail=os. wanted to change to DB, but unable to do that on the fly. SQL> alter system set audit_trail=DB; alter system set audit_trail=DB * ERROR at line 1: ORA-02095 (See ORA-02095.ora-code.com): specified initialization parameter cannot be modified SQL> ALTER SYSTEM SET audit_trail=DB SCOPE=SPFILE; ALTER SYSTEM SET audit_trail=DB SCOPE=SPFILE * ERROR at line 1: ORA-32001 (See ORA-32001.ora-code.com): write to SPFILE requested but no SPFILE specified at startup
Now is it like, I startup my db with spfile and then do alter system set audit_trail=DB scope=pfile; create pfile from spfile; hope this should work. regards - chirag On 10/12/05, Hallas, John, Tech Dev <John.Hallas@(protected)> wrote: > > After restarting the database with the spfile if you do a show parameter > spfile does it show that it is using the file in the location you specified? > > If it is then alter system set audit_trail = DB scope =spfile; and > reboot. Ensure that your initSID.ora file piles to the spfile > > If that does not solve your problem then I am afraid I do not fully > understand the issue > > John > > -- ---- ---- ---- ---- ---- -- > > *From:* oracle-l-bounce@(protected) [mailto: > oracle-l-bounce@(protected)] *On Behalf Of *Chirag DBA > *Sent:* 12 October 2005 14:45 > *To:* Oracle-L Freelists > *Subject:* Unable to create SPFILE. > > I have started my Database with pfile and now want to create spfile. > > I am using create spfile='location' from pfile; > > When I see the audit parameters in pfile, it is AUDIT_TRAIL=DB, > > but in SPFILE it is showing as AUDIT_TRAIL=OS, set previously but changed > now. > > same with few other parameters. > > I changed my init file, bounce DB with pfile and now creating spfile. > > This is 9i with Solaris. > > regards - chirag > >
<div>I put my audit_trail=os. wanted to change to DB, but unable to do that on the fly.<br> </div> <div>SQL> alter system set audit_trail=DB;<br>alter system set audit_trail =DB<br> *<br>ERROR at line 1:<br>ORA-02095 (See ORA-02095.ora-code.com): specified initialization parameter cannot be modified<br> </div> <div>SQL> ALTER SYSTEM SET audit_trail=DB SCOPE=SPFILE;<br>ALTER SYSTEM SET audit_trail=DB SCOPE=SPFILE<br>*<br>ERROR at line 1:<br>ORA-32001 (See ORA-32001.ora-code.com): write to SPFILE requested but no SPFILE specified at startup<br><br>Now is it like, I startup my db with spfile and then do </div> <div>alter system set audit_trail=DB scope=pfile;</div> <div>create pfile from spfile;</div> <div> </div> <div>hope this should work.</div> <div> </div> <div>regards - chirag</div> <div> </div> <div><span class="gmail_quote">On 10/12/05, <b class="gmail_sendername">Hallas, John, Tech Dev</b> <<a href="mailto:John.Hallas@(protected)">John .Hallas@(protected)</a>> wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0 .8ex; BORDER-LEFT: #ccc 1px solid"> <div> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue">After restarting the database with the spfile if you do a show parameter spfile does it show that it is using the file in the location you specified? </span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue"> </span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue">If it is then alter system set audit_trail = DB scope =spfile; and reboot. Ensure that your initSID.ora file piles to the spfile </span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue"> </span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue">If that does not solve your problem then I am afraid I do not fully understand the issue</span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue"> </span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue">John</span></font></p> <p><font face="Comic Sans MS" color="blue" size="2"><span style="FONT-SIZE: 10pt; COLOR: blue"> </span></font></p> <div> <div style="TEXT-ALIGN: center" align="center"><font face="Times New Roman" size="3"><span lang="EN-US" style="FONT-SIZE: 12pt"> <hr align="center" width="100%" size="2"> </span></font></div> <p><b><font face="Tahoma" size="2"><span lang="EN-US" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</span></font></b><font face="Tahoma " size="2"><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:oracle -l-bounce@(protected)" target="_blank">oracle-l-bounce@(protected)</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto :oracle-l-bounce@(protected)" target="_blank"> oracle-l-bounce@(protected)</a>] <b><span style="FONT-WEIGHT: bold">On Behalf Of </span></b>Chirag DBA<br><b><span style="FONT-WEIGHT: bold">Sent:</span></b> 12 October 2005 14:45<br><b><span style="FONT-WEIGHT: bold">To: </span></b> Oracle-L Freelists<br><b><span style="FONT-WEIGHT: bold">Subject:< /span></b> Unable to create SPFILE.</span></font><span lang="EN-US"></span></p>< /div> <div><span class="e" id="q_106e52480854a3ea_1"> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I have started my Database with pfile and now want to create spfile.</span></font></p> </div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I am using create spfile='location' from pfile;</span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">When I see the audit parameters in pfile, it is AUDIT_TRAIL=DB,</span></font></p></div > <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">but in SPFILE it is showing as AUDIT_TRAIL=OS, set previously but changed now.</span>< /font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">same with few other parameters.</span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">I changed my init file, bounce DB with pfile and now creating spfile.</span>< /font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">This is 9i with Solaris.</span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt">regards - chirag </span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div> <div> <p><font face="Times New Roman" size="3"><span style="FONT-SIZE: 12pt"> < /span></font></p></div></span></div></div></blockquote></div><br>
|
|
 |