zoukankan      html  css  js  c++  java
  • Unable open dabase as spfile parameter incorrect

    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 
  • 相关阅读:
    arcgis新版本增加的功能
    arcgis python 创建 SQLite 数据库
    arcgis python添加几何属性
    点集转线python最优代码
    安装arcgis10.5不能启动服务的解决方案转
    arcgis10.5新功能图形缓冲
    %d format: a number is required, not str。
    MySql中4种批量更新的方法update table2,table1,批量更新用insert into ...on duplicate key update, 慎用replace into.
    开发语言综述
    PHP 工程师技能图谱
  • 原文地址:https://www.cnblogs.com/zhaoyaxing/p/5981071.html
Copyright © 2011-2022 走看看