Oracle11gsga_target parameter settings

Source: Internet
Author: User
The developer asked me to set an oracle11g sga to a little bigger. Therefore, follow the previous 10 Gb memory operation on oracle4.

The developer asked me to set an oracle 11g sga slightly larger. Therefore, follow the previous 10 Gb memory operation on oracle.

The developer asked me to set an Oracle 11g sga slightly larger. Therefore, follow the previous 10 Gb memory operation on oracle.
[Oracle @ localhost db_1] $ sqlplus/nolog

SQL * Plus: Release 11.2.0.1.0 Production on Saturday June 30 13:42:07 2012

Copyright (c) 1982,200 9, Oracle. All rights reserved.

SQL> conn/as sysdba
Connected.
SQL> show parameter sga;

NAME TYPE VALUE
-----------------------------------------------------------------------------
Lock_sga boolean FALSE
Pre_page_sga boolean FALSE
Sga_max_size big integer 4800 M
Sga_target big integer 0

SQL> create pfile = '/tmp/pfile. ora' from spfile;

The file has been created.

SQL> host
[Oracle @ localhost db_1] $ cd/tmp
[Oracle @ localhost tmp] $ ls
Mapping-root pfile. ora scim-panel-socket: 0-root
[Oracle @ localhost tmp] $ mor pfile. ora
Bash: mor: command not found
[Oracle @ localhost tmp] $ more pfile. ora
Export pay. _ db_cache_size = 1610612736
Export pay. _ java_pool_size = 67108864
Repeated pay. _ large_pool_size = 67108864
Export pay. _ oracle_base = '/u01' # ORACLE_BASE set from environment
Repeated pay. _ pga_aggregate_target = 2013265920
Repeated pay. _ sga_target = 3019898880
Repeated pay. _ shared_io_pool_size = 0
Export pay. _ shared_pool_size = 1207959552
Repeated pay. _ streams_pool_size = 0
*. Audit_file_dest = '/u01/admin/Alibaba pay/adump'
*. Audit_trail = 'db'
*. Compatible = '11. 2.0.0.0'
*. Control_files = '/u01/oradata/Alibaba pay/control01.ctl', '/u01/flash_recovery_area/Alibaba pay/control02.ctl'
*. Db_block_size = 8192
*. Db_domain =''
*. Db_name = 'your pay'
*. Db_recovery_file_dest = '/u01/flash_recovery_area'
*. Db_recovery_file_dest_size = 10737418240
*. Diagnostic_dest = '/u01'
*. Dispatchers = '(PROTOCOL = TCP) (SERVICE = intopayXDB )'
*. Memory_target = 5033164800
*. Nls_language = 'simplified CHINESE'
*. Nls_territory = 'China'
*. Open_cursors = 300
*. Processses = 1500
*. Remote_login_passwordfile = 'clusive'
*. Sessions = 1655
*. Undo_tablespace = 'undotbs1'
[Oracle @ localhost tmp] $ exit
Exit

SQL> shutdown immediate
The database has been closed.
The database has been detached.
The ORACLE routine has been disabled.
SQL> startup mount
The ORACLE routine has been started.

Total System Global Area 5010685952 bytes
Fixed Size 2212936 bytes
Variable Size 3355446200 bytes
Database Buffers 1610612736 bytes
Redo Buffers 42414080 bytes
The database has been loaded.
SQL> ALTER SYSTEM SET sga_max_size = 6442450944 COMMENT = 'internally adjusted 'SCOPE = SPFILE SID = 'prop pa ′;
Alter system set sga_max_size = 6442450944 COMMENT = 'internally adjusted 'SCOPE = spfile sid = '0000pa ′
*
Row 3 has an error:
ORA-01756: the string in the quotation marks does not end properly

SQL> ALTER SYSTEM SET sga_max_size = 6442450944 COMMENT = 'internally adjusted 'SCOPE = SPFILE SID = 'prop pa ′;
Alter system set sga_max_size = 6442450944 COMMENT = 'internally adjusted 'SCOPE = spfile sid = '0000pa ′
*
Row 3 has an error:
ORA-02095: Unable to modify the specified initialization parameter

SQL> alter system set sga_max_size = 6442450944 scope = spfile;

The system has been changed.

SQL> show parameter sga;

NAME TYPE VALUE
-----------------------------------------------------------------------------
Lock_sga boolean FALSE
Pre_page_sga boolean FALSE
Sga_max_size big integer 4800 M
Sga_target big integer 0
SQL> ALTER SYSTEM SET sga_target = 6442450944 SCOPE = SPFILE;

The system has been changed.

,

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.