ORA-27102: out of memory解決辦法
資料庫執行一定時間後,效能調優就顯得很重要了,其中一項就是調整SGA區域。
一個朋友在測試機上練習增大SGA動作。發出如下命令:
更改系統的sga大小
alter system set sga_max_size=4g scope=spfile;
alter system set pga_aggregate_target=2G;
alter system set sga_target=4g scope=spfile;
shutdown immediate
startup
系統直接報錯:SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup
ORA-27102: out of memory
程式測試人員要用資料庫,如何恢復?
解決辦法如下:
[hqmss@topup dbs]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jul 1 10:45:58 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected to an idle instance.
SQL> create pfile from spfile;
在當前系統下生產pfile檔案,修改引數檔案的記憶體資訊。
[hqmss@topup dbs]$ vi initHQMSS.ora
HQMSS.__db_cache_size=1660944384
HQMSS.__java_pool_size=33554432
HQMSS.__large_pool_size=16777216
HQMSS.__shared_pool_size=419430400
HQMSS.__streams_pool_size=0
*.audit_file_dest='/opt/oracle/admin/HQMSS/adump'
*.background_dump_dest='/opt/oracle/admin/HQMSS/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/opt/oracle/oradata/HQMSS/control01.ctl','/opt/oracle/oradata/HQMSS/control02.ctl','/opt/oracle/oradata/HQMSS/control03.ctl'
*.core_dump_dest='/opt/oracle/admin/HQMSS/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=8
*.db_name='HQMSS'
*.DB_UNIQUE_NAME='stanDB'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=HQMSSXDB)'
*.FAL_CLIENT='primDB'
*.FAL_SERVER='stanDB'
*.job_queue_processes=10
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(primDB,stanDB)'
*.LOG_ARCHIVE_DEST_1='LOCATION=/opt/oracle/flash_recovery_area/HQMSS/onlinelog/
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stanDB'
*.LOG_ARCHIVE_DEST_2='SERVICE=primDB LGWR ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primDB'
*.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
*.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
*.open_cursors=300
*.pga_aggregate_target=2147483648
*.processes=750
*.REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
*.sessions=830
*.sga_max_size=4294967296
*.sga_target=4294967296
*.STANDBY_FILE_MANAGEMENT='AUTO'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/opt/oracle/admin/HQMSS/udump'
~
修改後的檔案如下:
[hqmss@topup dbs]$ vi initHQMSS.ora
HQMSS.__db_cache_size=1660944384
HQMSS.__java_pool_size=33554432
HQMSS.__large_pool_size=16777216
HQMSS.__shared_pool_size=419430400
HQMSS.__streams_pool_size=0
*.audit_file_dest='/opt/oracle/admin/HQMSS/adump'
*.background_dump_dest='/opt/oracle/admin/HQMSS/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/opt/oracle/oradata/HQMSS/control01.ctl','/opt/oracle/oradata/HQMSS/control02.ctl','/opt/oracle/oradata/HQMSS/control03.ctl'
*.core_dump_dest='/opt/oracle/admin/HQMSS/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=8
*.db_name='HQMSS'
*.DB_UNIQUE_NAME='stanDB'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=HQMSSXDB)'
*.FAL_CLIENT='primDB'
*.FAL_SERVER='stanDB'
*.job_queue_processes=10
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(primDB,stanDB)'
*.LOG_ARCHIVE_DEST_1='LOCATION=/opt/oracle/flash_recovery_area/HQMSS/onlinelog/
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stanDB'
*.LOG_ARCHIVE_DEST_2='SERVICE=primDB LGWR ASYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primDB'
*.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
*.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
*.open_cursors=300
*.pga_aggregate_target=343597384
*.processes=750
*.REMOTE_LOGIN_PASSWORDFILE='EXCLUSIVE'
*.sessions=830
*.sga_max_size=2147483648
*.sga_target=2147483648
*.STANDBY_FILE_MANAGEMENT='AUTO'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/opt/oracle/admin/HQMSS/udump'
啟動資料庫:
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup pfile='/opt/oracle/product/10.2.0/db/dbs/initHQMSS.ora';
ORACLE instance started.
Total System Global Area 2147483648 bytes
Fixed Size 1220460 bytes
Variable Size 469762196 bytes
Database Buffers 1660944384 bytes
Redo Buffers 15556608 bytes
Database mounted.
Database opened.
SQL> create spfile from pfile;
File created.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31444259/viewspace-2137447/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-27102: out of memory故障解決
- 【ERROR】ORA-27102: out of memory 解決方法Error
- ORA-27102: out of memory 問題解決方法
- note the ORA-27102: out of memory errorError
- oracle啟動遭遇ORA-27102: out of memoryOracle
- ORA-27102 Out of Memory問題處理
- windows 32位ORA-27102: out of memory錯誤Windows
- ORA-27102:out of memory Linux-X86_64 .Linux
- 【ORACLE】ORA-27102: out of memory報錯的處理Oracle
- 解決MYSQL工具mysqldump 遇到 Out of memory 方法MySql
- ORA-27102: out of memory以及相關係統引數
- ORA-27102: out of memory Linux Error: 28: No space left on deviceLinuxErrordev
- oracle使用記憶體的錯誤,ORA-27102: out of memoryOracle記憶體
- Myeclipse:resource is out of sync with the file system的解決辦法Eclipse
- 資料庫增加SGA,導致ORA-27102: out of memory錯誤資料庫
- ORA-27102:out of memory Linux-x86_64 Error: 12: Cannot allocate memory的處理LinuxError
- Ora-27102: Out Of Memory: Linux Error: 12: [ID 401077.1]LinuxError
- 解決辦法:ORA-00845: MEMORY_TARGET not supported on thi
- OOM(Out Of Memory)OOM
- java out of memoryJava
- dbca -silent -responsefile 建庫由於tmpfs太小報錯ORA-27102: out of memory
- ORA-27102: out of memory Linux-X86_64 Error: 28: No space left on deviceLinuxErrordev
- 帝國CMSr的Fatal error:Allowed memory size of的解決辦法Error
- 由node的批量requests引起的”heap out of memory”解決方案
- adb server is out of date.killing的解決辦法Server
- startup ORA-27102: out of memory Linux-x86_64 Error: 28: No space left on deviceLinuxErrordev
- OOM--OUT OF MEMORYOOM
- io.lettuce.core.RedisCommandTimeoutException: Command timed out 解決辦法RedisException
- Composer 記憶體不足解決方案 PHP Fatal error: Out of memory記憶體PHPError
- Win10系統玩cf出現out of memory的解決方法Win10
- Java Out Of Memory解決之JAVA_OPTS引數說明與配置Java
- ORA-04030: out of process memory ...(initSubHeap:qk...)的錯誤解決
- 啟動Oracle報錯ORA-27102: out of memory、Linux-x86_64 Error: 28: No space leftOracleLinuxError
- An out of memory error has occurred.Error
- OOM(Out Of Memory)是什麼?OOM
- 【python】pip安裝庫時出現Read timed out.解決辦法Python
- github慢解決辦法Github
- Grub Rescue解決辦法