Analysis of Oracle parameter files and server parameter files

Source: Internet
Author: User

The following articles describe the actual operations of the Oracle parameter file and the server parameter file. In the Oracle database, we create the server parameter file through the actual Oracle parameter file, the following describes the specific content of the article. I hope you will find some gains.

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> the user with the conn username/password as sysdba logon must have sysdba or sysoper permissions.

 
 
  1. 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

 
 
  1. 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:\Oracle xe\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:\Oracle xe\app\Oracle \product\10.2.0\server\dbs\SPFILEXE1.
    ORA'from pfile='E:\Oracle xe\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.