Error desc:
ORA-00821: Specified value of sga_target 16M is too small, needs to be at least 4832M
 
Solution:
  1.  Find spfile location and copy it to /tmp
[oracle@slce37vmf0003 ~/env]$ asmcmd
ASMCMD> ls
DATA/
ASMCMD> cd data
ASMCMD> ls
ASM/
DB_UNKNOWN/
OIDDB/
slce37v-cls/
ASMCMD> cd oiddb
ASMCMD> ls
ARCHIVELOG/
CONTROLFILE/
DATAFILE/
ONLINELOG/
TEMPFILE/
spfileOIDDB.ora_bk_edong
spfileoiddb.ora
ASMCMD> cp spfileoiddb.ora /tmp/spfileoiddbtest.ora
copying +data/oiddb/spfileoiddb.ora -> /tmp/spfileoiddbtest.ora
ASMCMD> exit
  1. What we need to do is creating a pfile from spfile then modify parameter back to valid value, then start db from pfile
1). With db not up, we can create pfile from spfile:
SQL> create pfile='/tmp/pfileoiddbtest.ora' from spfile=’/tmp/spfileoiddbtest.ora ';
2). modify the value in pfile (for example)
$ vi initorcl.ora
*.memory_max_target=1583349760
3). startup db with pfile= '/tmp/pfileoiddbtest.ora';
SQL>startup mount –now it will use the pfile  
 
     3.  Create the new spfile to ASM storage from “good” pfile
             SQL> create spfile=’+DATA/ORCL/spfileorcl.ora’from pfile= '/tmp/pfileoiddbtest.ora';
                           File created.
  1. Watch the file name in ASM storage has been changed, which means we just had a new spfile.
  2. Update spfile location in initorcl.ora (usually in $ORACLE_HOME/sdb/)
             spfile=’+DATA/ORCL/spfileorcl.ora’  //(At the most times, spfile location has been atomically updated in initorcl.ora, however need to be check for caution)
  1. Alter spfileorcl file of the other db instance  if database is RAC
  2. Restart databse

最新文章

  1. XML(DOM解析)
  2. jQuery插件---exselect实现联动
  3. devstack两次以上重装提高成功率的方法
  4. ELK-Python(二)
  5. PHP 文件上传服务端及客户端配置参数说明
  6. libvlc 双击,鼠标事件消息响应
  7. C# LinkButton 带参数的OnCommand事件的写法
  8. HashMap是无序的
  9. BZOJ-1587|前缀和 预处理 dp||叶子合并leaves
  10. gnuplot画折线图
  11. MySQL 性能调优之索引
  12. 自己实现strchr函数与strstr函数
  13. 同步调用异步方法how-would-i-run-an-async-taskt-method-synchronously
  14. 重装系统之无法在驱动器0的分区1上安装windows
  15. 在Android开发中替换资源图片不起作用的解决方法
  16. oracle上机实验内容
  17. Redis<六> Key通用操作
  18. UVALIve 5987 素数
  19. 2018.07.18 [NOI2018]归程(return)(kruskal重构树)
  20. 声音处理(Cool Edit)

热门文章

  1. SQL Server 给表和字段添加说明
  2. 第4章Zabbix监控实践
  3. cloud-init 典型应用 - 每天5分钟玩转 OpenStack(174)
  4. jQuery animate()动画效果
  5. JS window对象的top、parent、opener含义介绍 以及防止网页被嵌入框架的代码
  6. html 选择器之基础选择器
  7. 回到顶端的jquery
  8. 玩转Eclipse--如何使用eclipse可以更好的提高我们的工作效率
  9. python自动化测试应用-番外篇--接口测试1
  10. [转]Installing Memcached on Windows