Oracle database modified sga_max_size and sga_target restart report ORA-00821 error

Source: Internet
Author: User


Failure background:

Operating system restart for the server, due to hardware problems, the server restarts after 128GB memory loss of half, causing the application process data processing slow. The Oracle software version is 10.2.0.5. In particular, a database data file uses a shared volume group of bare devices, and spfile is a bare device on a shared volume group.

An emergency decision to reduce the SGA memory configuration on this server to the historical database is generally reduced.

Unexpected problems:

After modifying Sga_max_size and Sga_target, the database instance is restarted and the error message is ORA-00821.

Emergency treatment:

In the shutdown state, the production of Pfile by SPFile. Edit the Pfile file, and adjust the values of the sga_max_size and Sga_target parameters. Start the database with Pfile, and write the pfile content to SPFile

Operation Steps:

(1) In the open state, modify the SGA memory configuration, the original configuration is reduced to a general

Alter system set sga_max_size=12240m Scope=spfile;

Alter system set sga_target=12240m Scope=spfile;


(2) Start the database report ORA-00821 error

sql> shutdown Immediate

Sql> Startup

Ora-00821:specified value of Sga_target 3072M is too small, needs to being at least 12896M


(3) View SPFile as a bare device file

$ more/home/db/oracle/product/10.2.0/dbs/initwcmdb.ora

Spfile= '/home/db/oracle/oradata/wcmdb/rspfile_01_512m '

$ ls-l rspfileptdb_128m

lrwxrwxrwx 1 Oracle DBA 14:29 rspfileptdb_128m-/DEV/RAW/RAW10


(4) In Shutdown state, produced by SPFile Pfile

sql> create pfile= '/tmp/pfile.0919 ' from spfile= '/home/db/oracle/oradata/wcmdb/rspfile_01_512m ';


(5) Edit Pfile

$ vi/tmp/pfile.0919

Change the sga_max_size and Sga_target parameter values to a smaller


(6) In Shutdown state, start the database with Pfile

sql> startup pfile= '/tmp/pfile.0919 '


(7) In open state, produced by Pfile SPFile

Create spfile= '/home/db/oracle/oradata/wcmdb/rspfile_01_512m ' from pfile= '/tmp/pfile.0919 '

Note: Full path must be written after SPFile


This article is from "Lao li" blog, please be sure to keep this source http://2792530.blog.51cto.com/2782530/1967279

Oracle database modified sga_max_size and sga_target restart report ORA-00821 error

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.