奋战252

上一篇 / 下一篇  2006-12-08 04:08:06

SQL> startup
ORACLE instance started.
Total System Global Area  130023424 bytes
Fixed Size                  1218052 bytes
Variable Size             117443068 bytes
Database Buffers            8388608 bytes
Redo Buffers                2973696 bytes
ORA-00201: control file version 10.2.0.1.0 incompatible with ORACLE version
10.2.0.0.0
ORA-00202: control file: '/opt/oracle/product/oradata/orcl/control01.ctl'
===================================
SQL> alter system set compatible='10.2.0.1.0' scope=spfile;
System altered.
============================
SQL> shutdown immediate
ORA-01507: database not mounted

ORACLE instance shut down.
===========================
SQL> startup
ORACLE instance started.
Total System Global Area  130023424 bytes
Fixed Size                  1218052 bytes
Variable Size             117443068 bytes
Database Buffers            8388608 bytes
Redo Buffers                2973696 bytes
ORA-00221: error on write to control file
ORA-00206: error in writing (block 1, # blocks 1) of control file
ORA-00202: control file: '/opt/oracle/product/oradata/orcl/control01.ctl'
ORA-27041: unable to open file
Linux Error: 13: Permission denied
Additional information: 3
========================
root用户下:
  [root@localhost product]# chown -R oracle.oinstall /opt/oracle
======================
SQL> shutdown immediate
ORA-01507: database not mounted

ORACLE instance shut down.
===================
SQL> startup
ORACLE instance started.
Total System Global Area  130023424 bytes
Fixed Size                  1218052 bytes
Variable Size             117443068 bytes
Database Buffers            8388608 bytes
Redo Buffers                2973696 bytes
ORA-01103: database name 'ORCL' in control file is not 'DEFAULT'
========================

SQL> show parameter db_name
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_name                              string      DEFAULT
==========================
SQL> alter system set db_name=ORCL scope=spfile;
System altered.
========================
SQL> shutdown immediate
ORA-01507: database not mounted

ORACLE instance shut down.
========================
SQL> startup
ORACLE instance started.
Total System Global Area  130023424 bytes
Fixed Size                  1218052 bytes
Variable Size             117443068 bytes
Database Buffers            8388608 bytes
Redo Buffers                2973696 bytes
Database mounted.
Database opened.
==========================
SQL>
 
 
OK! Yeah!


Link URL: http://junqilian.bokee.com/viewdiary.11135223.html

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2009-01-01  
    123
45678910
11121314151617
18192021222324
25262728293031

数据统计

  • 访问量: 7187
  • 日志数: 18
  • 建立时间: 2006-12-05
  • 更新时间: 2007-01-16

RSS订阅

Open Toolbar