ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-27046: file size is not a multiple of logical block size

ORA-27046: file size is not a multiple of logical block size

原创 Linux操作系统 作者:湖湘文化 时间:2013-11-18 17:49:44 0 删除 编辑
 

ORA-27046: file size is not a multiple of logical block size

刚修改了本机测试库oracle10g里面的SPFILE***.ORA文件,数据库就起不来了,报错ORA-27046: file size is not a multiple of logical block size

原因是动态服务器参数文件(SPFILE)是一个二进制文件,是不可以手工修改的,如果手工改了,该文件就成为了无效文件。

此时可以通过以下方法解决:

1。将SPFILE中的参数拷贝到init***.ora文件中

2。删除DATABASE目录下的SPFILE***.ORA文件。

3。启动数据库 (现在应该可以成功启动)

4.SQL> create spfile from pfile

使用startup命令启动数据库,,Oralce将会按照以下顺序在缺省目录中(9i,10ioracle_home/database目录下)搜索参数文件:(1)spfile***.ora文件(2)如果没有spfile***.ora文件就用spfile.ora文件(3)如果没有spfile.ora文件就用init***.ora(4)如果没有init***.ora文件就用 pfile.ora

所以上面我们采取的解决方法是将破坏的SPFILE中的参数复制到init***.ora中,然后删除SPFILE文件,这样启动时就会用init***.ora文件启动,然后用create spfile from pfile 命令生成SPFILE

以后如果要修改SPFILE中的参数绝对不能在手工修改SPFILE文件了,用下面命令:alter system set parameter=Value scope=spfile|both|memory 例如:alter system set db_cache_size=24M scope=both;来修改

以下两篇文章摘自oracle metlink

FILE SIZE IS NOT A MULTIPLE OF LOGICAL BLOCK SIZE ORA-00202 ORA-27046 OSD-04012 [ID 356867.1]

修改时间 29-JUL-2010 类型 PROBLEM 状态 MODERATED

In this Document
Symptoms
Cause
Solution

Platforms: 1-914CU;

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

Applies to:

Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 11.1.0.8 - Release: 8.1.7 to 11.1
z*OBSOLETE: Microsoft Windows 2000
***Checked for relevance on 29-Jul-2010***

Microsoft Windows 2000

Symptoms

Unable to open the database due to the next errors:

==================================================================

ORA-00202: controlfile: 'E:\ORACLE\10gEMR2\database\emrep.ctl'

ORA-27046: file size is not a multiple of logical block size

OSD-04012: file size mismatch (OS 1284)

==================================================================

Cause

The control files were corrupted.


Solution

1) Drop the existing control files.

2) Recreate the control file:

Example:
==================================================================
STARTUP NOMOUNT

CREATE CONTROLFILE REUSE DATABASE TEST NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 8
MAXLOGHISTORY 800
LOGFILE
GROUP 1 'F:\u01\oracle\10.1\dbs\log1p.dbf' SIZE 500K,
GROUP 2 ' F:\u01\oracle\10.1\dbs\log2p.dbf' SIZE 500K,
GROUP 3 ' F:\u01\oracle\10.1\dbs\log3p.dbf' SIZE 500K
DATAFILE
' F:\u01\oracle\10.1\dbs\systp.dbf' SIZE 40M,
' F:\u01\oracle\10.1\dbs\tempp.dbf' SIZE 550K,
' F:\u01\oracle\10.1\dbs\toolp.dbf' SIZE 15M;

RECOVER DATABASE
ALTER DATABASE OPEN;
==================================================================

错误

ORA-202; ORA-27046

OERR: ORA-27046 file size is not a multiple of logical block size [ID 49922.1]

修改时间 22-OCT-2010 类型 REFERENCE 状态 PUBLISHED

Error: ORA-27046

Text: file size is not a multiple of logical block size

---------------------------------------------------------------------------

Cause: file size as indicated by stat is not correct, additional information

indicates which function encountered the error

Action: verify that the file has not been overwritten or truncated

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21256317/viewspace-776885/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-05-31

  • 博文量
    108
  • 访问量
    1521837