Create spfile='file name from show pram' from pfile='file name that you used for startup'
Shutdown immediate
Startup
Show parameter audit
That should do it
__ ____ ____ ____ ____ ____ ____
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] On Behalf Of Chirag DBA Sent: Wednesday, October 12, 2005 10:19 AM To: Marquez, Chris Cc: Oracle-L Freelists Subject: Re: Unable to create SPFILE.
I have started with pfile, by changing audit_trail=DB.
startup pfile='file name'.
show parameter audit.
audit_trail=DB
create spfile='location' from pfile;
File created..!!
but when see the spfile, *.audit_trail='OS';
I was thinking that while you do the create spfile, it is creating a binary copy of pfile matching exactly with pfile.
but this is something unexpected I am getting.
regards - chirag
On 10/12/05, Marquez, Chris <cmarquez@(protected)> wrote:
Sorry meant to say;
SQL> startup pfile ='/[your changed pfile]'; SQL> show parameter audit SQL> create spfile='.....' from pfile='....'; SQL> shutdown; SQL> startup spfile ='/[your new spfile]'; SQL> show parameter audit
If this is a bug or feature this will show it.
Chris Marquez Oracle DBA
-- --Original Message-- -- From: oracle-l-bounce@(protected) on behalf of Marquez, Chris Sent: Wed 10/12/2005 10:06 AM To: chiragdba@(protected) ; Oracle-L Freelists Subject: RE: Unable to create SPFILE.
You sure you are using the right (default) pfile on startup?
do this; SQL> startup; [as you normaly would] SQL> show parameter audit
???
Something got to be a miss on your end...or this would be a scary (documented) bug?
Chris Marquez Oracle DBA
-- --Original Message-- -- From: oracle-l-bounce@(protected) on behalf of Chirag DBA Sent: Wed 10/12/2005 9:45 AM 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
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size: 10.0pt;font-family:Arial;color:navy'>Create spfile=’file name from show pram’ from pfile=’file name that you used for startup’<o:p>< /o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>I have started with pfile, by changing audit_trail=DB.<o:p></o:p></span ></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>startup pfile='file name'.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>show parameter audit.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>audit_trail=DB<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>create spfile='location' from pfile;<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>File created..!!<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>but when see the spfile, *.audit_trail='OS';<o:p></o:p></span></font>< /p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>I was thinking that while you do the create spfile, it is creating a binary copy of pfile matching exactly with pfile.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>but this is something unexpected I am getting.<o:p></o:p></span></font> </p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> <o:p></o:p></span></font></p>
<p style='margin-bottom:12.0pt'><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Sorry meant to say;<br> <br> SQL> startup pfile ='/[your changed pfile]';<br> SQL> show parameter audit<br> SQL> create spfile='.....' from pfile='....';<br> SQL> shutdown;<br> SQL> startup spfile ='/[your new spfile]'; <br> SQL> show parameter audit<br> <br> If this is a bug or feature this will show it.<br> <br> <br> <span class=q>Chris Marquez</span><br> <span class=q>Oracle DBA</span><br> <br> <br> <br> <span class=q>-- --Original Message-- --</span><br> <span class=q>From: <a href="mailto:oracle-l-bounce@(protected)" target="_blank">oracle-l-bounce@(protected)</a> on behalf of Marquez, Chris< /span><br> <span class=q>Sent: Wed 10/12/2005 10:06 AM</span><br> <span class=q>To: <a href="mailto:chiragdba@(protected)" target="_blank" >chiragdba@(protected) </a>; Oracle-L Freelists</span><br> <span class=q>Subject: RE: Unable to create SPFILE.</span><br> <br> <br> <span class=q>You sure you are using the right (default) pfile on startup?< /span><br> <br> <span class=q>do this;</span><br> <span class=q>SQL> startup; [as you normaly would]</span><br> <span class=q>SQL> show parameter audit </span><br> <br> <span class=q>???</span><br> <br> <span class=q>Something got to be a miss on your end...or this would be a scary (documented) bug?</span><br> <br> <span class=q>Chris Marquez</span><br> <span class=q>Oracle DBA</span><br> <br> <span class=q>-- --Original Message-- --</span><br> <span class=q>From: <a href="mailto:oracle-l-bounce@(protected)" target="_blank">oracle-l-bounce@(protected)</a> on behalf of Chirag DBA</span ><br> <span class=q>Sent: Wed 10/12/2005 9:45 AM</span><br> <span class=q>To: Oracle-L Freelists</span><br> <span class=q>Subject: Unable to create SPFILE.</span><br> <br> <span class=q>I have started my Database with pfile and now want to create spfile. </span><br> <span class=q> I am using create spfile='location' from pfile;</span><br> <span class=q> When I see the audit parameters in pfile, it is AUDIT_TRAIL=DB,</span><br> <span class=q>but in SPFILE it is showing as AUDIT_TRAIL=OS, set previously but changed</span><br> <span class=q>now.</span><br> <span class=q>same with few other parameters. </span><br> <span class=q>I changed my init file, bounce DB with pfile and now creating spfile.</span><br> <span class=q> This is 9i with Solaris.</span><br> <span class=q> regards - chirag</span><br> <br> <br> </span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'><o:p> </o:p></span></font></p>