Relationship between Oracle parameter files and server-related parameter files

Source: Internet
Author: User

The following articles mainly introduce Oracle parameter files and server-related parameter files. We all know that in Oracle, server parameter files are created through the parameter files of the relevant Oracle database, the following describes the main content of the article.

Because the spfile. ora file is a binary file, it is possible that Oracle cannot recognize it after spfile. ora is manually modified, and it cannot be started. The solution is as follows:

1. Find the pfile of the corresponding instance: There is an init under the 10.0.2 \ admin \ Instance name \ pfile \ folder. ora. xxxxxxxxxxx file, which is a pfile with a timestamp. Remove the timestamp and convert it to init. ora file.

2. log on to the database through oralce SQL * PLUS

SQL> conn username/password as sysdba-the login user must have sysdba or sysoper Permissions

SQL> startup pfile = '10. 0.2 \ admin \ Instance name \ pfile \ init. ora ';

Start the database with the specified text Oracle parameter file.

Create server parameter files using text parameter files

SQL> create spfile = 'oracle _ HOME/database/spfileSID. ora 'from pfile = '10. 0.2 \ admin \ instance \ pfile \ init. ora ';

3. Copy the generated file spfileSID. ora to the Oracle_HOME/database directory to overwrite the original file (if the initSID. ora file exists, rename it ).

4. Start Oracle.

 
 
  1. SQL>startup; 

For example:

 
 
  1. C:\Documents and Settings\Administrator>sqlplus /nolog  
  2. SQL*Plus: Release 10.2.0.1.0 - Production on Fri Oct 10 11:21:42 2008  
  3. Copyright (c) 1982, 2005, Oracle. All rights reserved.  
  4. SQL> connect / as sysdba  
  5. Connected to an idle instance.  
  6. SQL> startup pfile='E:\Oraclexe\app\Oracle\product\
    10.2.0\server\config\scripts\init.ora';  
  7. Oracle instance started.  
  8. Total System Global Area 285212672 bytes  
  9. Fixed Size 1287016 bytes  
  10. Variable Size 92277912 bytes  
  11. Database Buffers 188743680 bytes  
  12. Redo Buffers 2904064 bytes  
  13. Database mounted.  
  14. Database opened.  
  15. SQL> create spfile='E:\Oraclexe\app\Oracle\product\
    10.2.0\server\dbs\SPFILEXE1.ORA'from pfile=
    'E:\Oraclexe\app\Oracle\product\10.2.0\server\config\scripts\init.ora';  
  16. File created.  
  17. SQL>STARTUP;   

The above content is the description of the Oracle parameter file and the server parameter file, hoping to help you in this regard.

Related Article

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.