ORA-27046: file size is not a multiple of logical block size
来源:互联网 发布:中国中车 知乎 编辑:程序博客网 时间:2024/04/29 22:45
修改了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 生成SPFIEL
使用startup命令启动数据库,,Oralce将会按照以下顺序在缺省目录中(9i,10i在oracle_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 命令生成SPFIEL
以后如果要修改SPFILE中的参数绝对不能在手工修改SPFILE文件了,用下面命令:alter system set parameter=Value scope=spfile|both|memory 例如:alter system set db_cache_size=24M scope=both;来修改
0 0
- ORA-27046: file size is not a multiple of logical block size
- ORA-01200: actual file size of 1199 is smaller than correct size of 1280 blocks
- ORA-01200: actual file size of 533 is smaller than correct size of 640 blocks
- Multiple Block Size Support
- Calculating The Logical Height and Point Size of a Font
- Calculating The Logical Height and Point Size of a Font
- ORA-19502: write error on file "", block number (block size
- ora-03206 maximum file size of blocks in autoextend clause is out of range
- ...find the size of a file?
- error:unable to get logical block size for spfile '+DATAC1/orcl/spfileorcl.ora'
- HDFS 的 file size 和 block size
- size of control file
- [ERROR] InnoDB: Data file /data/mysql/3310/data/ibdata1 is of a different size 1536 pages
- InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 640 pages
- ORA-01144: File size (4224000 blocks) exceeds maximum of 4194303
- ORA-01144: File size (4224000 blocks) exceeds maximum of 4194303
- ORA-19502: write error on file "", block number (block size=)
- Why is the size of an empty class not zero?
- 为人处事说话技巧思维
- NSString的各种用法总结(创建、截取、判断比较、转化数据类型、拼接、替换、添加、追加、读取、写入、删去、...
- Android中自定义Preference的使用
- Android开发之使用ViewPager做引导页面
- UVA 11806 - Cheerleaders(数论+容斥原理)
- ORA-27046: file size is not a multiple of logical block size
- Sort Colors
- xml 学习笔记 3.xml Schema
- 初学Java,调用父类方法(十一)
- Asp.Net MVC 常用开发方式之EF Code First
- WTL 学习笔记 -- CSplitterWindow
- 区域数据结构
- Linux入门
- RocketMq上路篇(1)