Unable open dabase as spfile parameter incorrect
2024-10-16 18:50:47
Error desc:
ORA-00821: Specified value of sga_target 16M is too small, needs to be at least 4832M
Solution:
- 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
- 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.
- Watch the file name in ASM storage has been changed, which means we just had a new spfile.
- 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)
- Alter spfileorcl file of the other db instance if database is RAC
- Restart databse
最新文章
- XML(DOM解析)
- jQuery插件---exselect实现联动
- devstack两次以上重装提高成功率的方法
- ELK-Python(二)
- PHP 文件上传服务端及客户端配置参数说明
- libvlc 双击,鼠标事件消息响应
- C# LinkButton 带参数的OnCommand事件的写法
- HashMap是无序的
- BZOJ-1587|前缀和 预处理 dp||叶子合并leaves
- gnuplot画折线图
- MySQL 性能调优之索引
- 自己实现strchr函数与strstr函数
- 同步调用异步方法how-would-i-run-an-async-taskt-method-synchronously
- 重装系统之无法在驱动器0的分区1上安装windows
- 在Android开发中替换资源图片不起作用的解决方法
- oracle上机实验内容
- Redis<;六>; Key通用操作
- UVALIve 5987 素数
- 2018.07.18 [NOI2018]归程(return)(kruskal重构树)
- 声音处理(Cool Edit)