Use notes for spfile and pfile in Oracle

Source: Internet
Author: User

Check whether the system is started with pfile or spfile.
Select isspecified, count (*) from v $ spparameter group by isspecified;
If true exists in isspecified, the specified configuration is performed with spfile.
If all values are false, pfile is enabled.

Benefits of using SPfile
Spfile corrected the confusion of pfile management. In a multi-node environment, pfile has multiple images.
The latest image needs to be tracked during startup. This is a cumbersome process.
After spfile is used, all parameter changes are written to spfile (as long as scope = spfile or both is defined). The parameter configuration has an authoritative source.

View spfile location
Show parameter spfile

Get pfile from spfile
Create pfile = 'd: pfileSID. ora 'from spfile;
Create pfile = 'd: pfileSID. ora 'from spfile = 'spfile _ location ';

Get spfile from pfile
Create spfile from pfile = 'your _ pfile_location'
Create spfile = 'spfile _ location' from pfile = 'your _ pfile_location'

Dynamic Parameter Modification
Alter system set parameter = Value scope = spfile | both | memory

When Startup nomount, spfile or pfile needs to be read. The two coexist, and spfile takes precedence.

Force start with pfile
SQL> startup pfile = 'your _ Pfile. ora'
Startup spfile = '/data/Oracle/product/10.2.0/db_1/dbs/spfile_mqq.ora' force

Use pfile to connect to spfile to start
Modify pfile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.