Oracle memory exceeds 2 GB

Source: Internet
Author: User

In. Retained for future studies. I hereby declare that the results of others do not belong to me.

Server: hpdl 580 GB 2 (Dual CPU 6g Memory) win2003 Enterprise Edition + Oracle 9i 2.0.3 . 0

1. Add the startup parameter to boot.int. 3G And PAE

Multi (0) disk (0) RDISK (0) Partition (1)/winnt = "Microsoft Windows 2003 Enterprise Edition"

/ 3G /PAE/fastdetect

2. Add a string value in the registry [HKEY_LOCAL_MACHINE/software/Oracle/home0:

Awe_window_memory, set 1g 1024000000

3. Back up the currently used spfile: run the following command in cmd:

Sqlplus/nolog

Conn /As sysdba

Create pfile = 'd:/BK. ora 'from spfile;

4. Modify the spfile value of Oracle. When the database is opened, run the following command under sqlplus:

Alter system set use_indirect_data_buffers = true scope = spfile;

Alter system set pre_page_sga = true scope = spfile;

Alter system set db_block_buffers' = 262144 scope = spfile;

(After modification, the SGA size is db_block_size * db_block_buffers = 8 K * 256 k = 2G )

5. After modifying the spfile, comment out the db_cache_size parameter in the spfile.

Pilot spfile:

Create pfile = 'd:/modify. ora 'from spfile;

Then open the modify. ora file under drive D in notepad, find db_cache_size and comment it out (add the # At the beginning of the line), and import the modified pfile back to spfile;

Close the database in sqlplus and import it back to spfile:

Shutdown immediate;

Create spfile from pfile = 'd:/modify. ora ';

Exit;

6. Restart the operating system to complete the operation.

 

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.