遭遇ORA-01078,LRM-00109,ORA-27046 SPFILE文件损坏

今天在启动数据库时遭遇到

$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jul 16 21:28:03 2013

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to an idle instance.

SQL> startup nomount;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/rdcrmap/oracrm/rdcrm/10.2.0/dbs/initrdcrm.ora'

试着用SPFILE 创建PFILE

SQL> create pfile from spfile;
create pfile from spfile
*
ERROR at line 1:
ORA-27046: file size is not a multiple of logical block size
Additional information: 1

遭了,SPFILE 文件损坏了,还好之前备份了PFILE,

$ cp initrdcrm.ora0914 initrdcrm.ora

$ sqlplus /nolog

SQL*Plus: Release 10.2.0.4.0 - Production on Tue Jul 16 21:30:37 2013

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

SQL> conn /as sysdba
Connected to an idle instance.

SQL> create spfile from pfile;

File created.

SQL> startup nomount
ORACLE instance started.

Total System Global Area 3221225472 bytes
Fixed Size                  2044032 bytes
Variable Size            1107300224 bytes
Database Buffers         2097152000 bytes
Redo Buffers               14729216 bytes
SQL> alter database mount;

Database altered.
SQL> alter database open;

Database altered.

所以备份很重要

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值