Oracle 修改 MEMORY_TARGET

php中文网
发布: 2016-06-07 17:22:10
原创
1379人浏览过

Oracle 修改 MEMORY_TARGET,内存减小导致ORACLE启动不了,扩展内存后,按pfile启动,但sfile修改不了。

1.内存减小导致oracle启动不了
 
last login: sun nov  4 15:09:06 2012 from 192.168.5.222
[oracle@h1 ~]$ sqlplus "/as sysdba"
 
sql*plus: release 11.2.0.1.0 production on sun nov 4 15:26:59 2012
 
copyright (c) 1982, 2009, oracle.  all rights reserved.
 
connected to an idle instance.
 
sql> startup pfile=/app/oracle/admin/orcl/pfile/init.ora.103201271612
ora-00845: memory_target not supported on this system
sql> shutdown abort     
oracle instance shut down.
sql> startup pfile=/app/oracle/admin/orcl/pfile/init.ora.103201271612 force
ora-00845: memory_target not supported on this system
sql> exit
disconnected
 
#---------解决:扩展内存
 
#--------pfile位置:$oracle_base/admin/[$oracle_sid]/pfile/init.ora.*
 

2.扩展内存后,按pfile启动,,但sfile修改不了
 
SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 4 16:00:25 2012
 
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
 
Connected to an idle instance.
 
SQL> startup pfile=/app/oracle/admin/orcl/pfile/init.ora.103201271612 force
ORACLE instance started.
 
#----------按ORACLE PFILE 启动
 
Total System Global Area 1219260416 bytes
Fixed Size                  2212856 bytes
Variable Size            738200584 bytes
Database Buffers          469762048 bytes
Redo Buffers                9084928 bytes
Database mounted.
Database opened.
SQL> alter system set memory_max_target=1258200M scope=both;
alter system set memory_max_target=1258200M scope=both
                *
ERROR at line 1:
ORA-02095: specified initialization parameter cannot be modified
 

SQL> alter system set memory_max_target=1258200M scope=spfile;
alter system set memory_max_target=1258200M scope=spfile
*
ERROR at line 1:
ORA-32001: write to SPFILE requested but no SPFILE is in use//spfile文件可能不存在
 
#-------------/app/oracle/product/11.2.0/dbhome_2/dbs/----------------存放spfile

linux

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号