`
firecym
  • 浏览: 47159 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论
阅读更多

 今天在启动oracle的时候,提示归档路径出了问题,因为之前归档是在h:\oracle\arc,不知道什么时候,我把这个文件夹删掉了。

启动的时候报错:

C:\>sqlplus /nolog

SQL*Plus: Release 11.1.0.6.0 - Production on 星期三 10月 12 16:08:48 2011

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

SQL> conn / as sysdba
已连接到空闲例程。
SQL> startup
ORA-16032: parameter LOG_ARCHIVE_DEST_1 destination string cannot be translated
ORA-09291: sksachk: invalid device specified for archive destination
OSD-04018: ??????????????????????????
O/S-Error: (OS 2) ??????????????????????

 我一看,应该是由于h:\oracle\arc目录不存在造成的,但是又不想再新建这个目录,就想把归档目录移动到h:\app\arc目录下。

我找到H:\app\Administrator\product\11.1.0\db_1\database\SPFILES62.ORA,打开,将里面的一个参数做了改动:

*.log_archive_dest_1='location=h:\app\arc'

然后重新startup...

SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ???????????????? 'H:\APP\ADMINISTRATOR\PRODUCT\11.1.0\DB_1\DATABASE\INITS62.ORA'

 

心想,哎呀,坏了,spfile应该是二进制文件,我手工改保存过之后肯定把文件给损坏了,但是又没有备份!

想到之前修改spfile的方法,就试一试:

SQL> create pfile from spfile;
create pfile from spfile
*
第 1 行出现错误:
ORA-01565: error in identifying file
'%ORACLE_HOME%\DATABASE\SPFILE%ORACLE_SID%.ORA'
ORA-27046: file size is not a multiple of logical block size
OSD-04012: ?????????????? (OS 3536)

 

发现已经不能读取spfile了,spfile已经坏了...

 

这时,找到了一个解决办法:

1. 在spfile.ora所在文件夹下面建立一个inits62.ora文件(注:s62是我的实例名,如果你的实例名是orcl,那么就是新建initorcl.ora文件)

2. 将现在的spfiles62.ora里面的参数拷贝到inits62.ora中,将乱码删掉。

3. 执行下面命令:

 startup pfile='H:\app\Administrator\product\11.1.0\db_1\database\INITS62.ORA'

启动正常了。

然后执行:

SQL> create spfile from pfile;

文件已创建。

 

OK了,spfile已经修复了。

 

正确的修改spfile方法:

1. create pfile from spfile;

2. 修改pfile,即inits62.ora里面相应的参数

3. create spfile from pfile;

 

或者使用alter system set 参数=新值 scope=spfile;

 

分享到:
评论

相关推荐

    Oracle存储过程、包、方法使用总结(推荐)

    Oracle存储过程是数据库管理系统Oracle中的一种重要特性,用于组织和执行一系列SQL语句和PL/SQL块。在本文中,我们将深入探讨Oracle存储过程、包和方法的使用,以及它们在实际开发中的应用。 首先,存储过程是预...

    Oracle Core Essential Internals

    look at structure x$kcbsw which is a list of all the functions that Oracle might call to visit a block You will find for 11 2 0 2 that there are 1 164 different functions for doing a logical I O do ...

    SSD7 选择题。Multiple-Choice

    The degree of a table is the number of _____ in the table. (a) keys (b) columns (c) rows (d) foreign keys Correct answer is (b) Your score on this question is: 10.00 Feedback: (b) ...

    Multiagent systems:algorithmic, game-theoretic, and logical foundations

    Multiagent systems:algorithmic, game-theoretic, and logical foundations

    Oracle Database 10g: OCM Exam Preparation

    《Oracle Database 10g: OCM Exam Preparation》是一份专为准备Oracle Certified Master (OCM)考试的考生量身定制的学习资料。OCM是Oracle认证的最高级别,旨在证明数据库管理员在Oracle Database 10g环境中的高级...

    Fstream: Managing Flash Sreams in the File System PPT

    In the context of file systems, the transition from HDDs to SSDs requires a Flash Translation Layer (FTL) that allows SSDs to maintain a traditional block interface for compatibility with existing ...

    ORACLE-DataGuard系列:逻辑standby搭建.doc

    Oracle Data Guard是一种全面的解决方案,用于提供最高级别的数据保护、数据可用性和灾难恢复。它通过在远程位置创建并维护一个或多个完整副本(Standby数据库)来保护生产数据库(Primary数据库),从而实现了对...

    Oracle Concepts中英文对照版

    An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information 数据库服务器是解决信息管理问题的核心组件。大体上说,数据库服务器 的...

    Embedding Logical Queries on Knowledge Graphs.pdf

    Learning low-dimensional embeddings of knowledge graphs is a powerful approach used to predict unobserved or missing edges between entities. However, an open challenge in this area is developing ...

    A Logical Calculus of Ideas Immanent in Nervous Activity

    McCulloch 和 Walter Pitts 合著的经典论文《A Logical Calculus of Ideas Immanent in Nervous Activity》(一种内在神经活动中思想的逻辑计算)。该论文标志着现代神经网络理论的基础,并对后续的人工智能研究...

    running rac on oracle vm server for sparc 2.0

    CoolThreads technology is a key component of Oracle Solaris that enables the creation of lightweight processes, or threads, which can run independently and concurrently within a single operating ...

    BURNINTEST--硬件检测工具

    Here is a summary of all changes that have been made in each version of BurnInTest. Release 5.3 build 1035 revision 4 WIN32 release 10 November 2008 - Lenovo China specific build. Lenovo system ...

    S7A驱动720版本

    logical name of the driver device, which is requested, must be entered . Example: "!switch:D11" delivers the state of the driver device with the name "D11". This function is also available via ...

    计算机网络第六版答案

    (This is a little bit of a white lie, as modern routers sometimes act as firewalls or caching components, and process Transport layer as well.) Link layer switches process link and physical layers ...

    运用logical standby技术实现Oracle数据库的读写分离

    Oracle 数据库的读写分离是一种优化数据库性能的策略,它将数据的写操作集中在一台服务器(主库),而读操作则分散到多个只读服务器(备库)上,以减轻主库的压力,提高系统响应速度和服务能力。在 MySQL 中,这通常...

    基于dijkstra的低耗路由matlab仿真

    E3 is a Px3 matrix containing a list of edge connections in the first two columns and edge weights in the third column NOTE: only valid with V as the first input [SID] (optional) 1xL vector of ...

    多主体系统:算法,博弈论和逻辑基础Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations

    全面介绍了多智能体系统,这本教科书是从计算机科学的角度从运筹学,博弈论,经济学,逻辑,甚至哲学和语言学写的,而思想汇集。

    在UNIX祼设备和文件系统之间移动oracle

    因为 Oracle 在创建 DATAFILE 时,在命令中指定的大小之外,还会在文件头部添加一个额外的 BLOCK,即“Oracle OS Header Block”,用来存储该文件的逻辑块大小和文件块数等信息。 ##### 2.2 在文件系统和裸设备之间...

    微软内部资料-SQL性能优化5

     If the table is a heap (in other words, it has no clustered index), the bookmark is a RID, which is an actual row locator in the form File#:Page#:Slot#. Finding Rows with a NC Index on a Heap ...

Global site tag (gtag.js) - Google Analytics