Oracle spfile parameter file

Source: Internet
Author: User

Pfile is used for Oracle8i and can also be used in oracle9i. It exists in text form and can be modified in vi editor. For oracle9i and later versions, oracle can use the server parameter file (spfile, system parameter file) to replace the traditional init. ora parameter file.

Spfile is a binary file created by oracle at the operating system level to store database parameters.

When the startup command without the pfile clause is used, oracle reads the initialization parameters from the server parameter file (spfile) in the default location specified by the platform. oracle searches for spfile or the init. the order of ora is: in the default location specified by the platform, oracle first looks for the file named spfile $ oracle_sid.ora. If not, it looks for the spfile. find the init $ oracle_sid.ora file.

Under $ oracle_base \ admin \ db_name \ spfile, you may see an init. ora.192003215317] Name of the file, which is the initialization parameter file, just keeping up with the timestamp. for oracle920, spfile is started by default, but this spfile is not created out of thin air, but created based on this file. You can remove this long suffix, that is, the standard pfile file.

You can create a pfile Based on spfile, edit and modify it, and then create a spfile by pfile to modify the spfile:

Method for creating pfile from spfile:

1. log on to sqlplus with sysdba permission

2. Run: create pfile = 'd: \ a. ora 'from spfile;

In this case, the default spfile is used to export editable text files. Or create pfile = 'd: \ a. ora 'from spfile = 'd: \ spfileXE. ora', and specify the specific path of the spfile file.

You can also create the spfile file: create spfile from pfile = 'd: \ a. ora 'based on the pfile file ';

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.