eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« Oracle创建实例的最少参数需求 | Blog首页 | 体验Google的免费邮局及邮件服务 »

使用RMAN启动Oracle默认实例
modb.pro

昨天在Oracle创建实例的最少参数需求中,我提到,启动一个实例需要的最少参数仅为db_name.

实际上,我们可以通过rman,在不存在参数文件的情况下,启动一个默认DUMMY实例.

请看如下测试:

[oracle@jumper dbs]$ rman target /

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.

connected to target database (not started)

RMAN> startup nomount;

startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/opt/oracle/product/9.2.0/dbs/initconner.ora'

trying to start the Oracle instance without parameter files ...
Oracle instance started

Total System Global Area 97588504 bytes

Fixed Size 451864 bytes
Variable Size 46137344 bytes
Database Buffers 50331648 bytes
Redo Buffers 667648 bytes

此时Oracle使用的db_name为DUMMY:

SQL> show parameter db_name

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string DUMMY

如果我们丢失了所有的参数文件,那么用这种方法可以对自动备份的spfile进行恢复:

[oracle@jumper log]$ rman target /

Recovery Manager: Release 9.2.0.4.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.

connected to target database: DUMMY (not mounted)

RMAN> restore spfile to '/tmp/spfile.ora' from 'c-3152029224-20060509-00';

Starting restore at 09-MAY-06

using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=9 devtype=DISK
channel ORA_DISK_1: autobackup found: c-3152029224-20060509-00
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 09-MAY-06

RMAN>


历史上的今天...
    >> 2020-05-09文章:
    >> 2011-05-09文章:
           五一见闻 - 2011 ·东北
    >> 2008-05-09文章:
    >> 2007-05-09文章:
    >> 2005-05-09文章:
           What's mean ORA-25191?

By eygle on 2006-05-09 10:26 | Comments (3) | FAQ | 766 |

3 Comments

window下面如何进行这样的测试?
(数据库的原实例是ora9)
(测试过程没有设置任何环境变量)

C:\Documents and Settings\vista>rman target /

恢复管理器: 版本9.2.0.1.0 - Production

Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.

已连接到目标数据库 (未启动)

RMAN> startup nomount

Oracle 例程已启动

系统全局区域总计 135338868 字节

Fixed Size 453492 字节
Variable Size 109051904 字节
Database Buffers 25165824 字节
Redo Buffers 667648 字节

RMAN>

在sqlplus下面查询:
C:\Documents and Settings\vista>sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 11月 14 17:20:11 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> select status from v$instance;

STATUS
------------
STARTED

SQL> show parameter db_name

NAME TYPE VALUE
----------- ----------- ------
db_name string ora9
SQL>

实例名是ora9而不是dummy
启动的服务是OracleServiceORA9(ora9实例对应的服务)
我怀疑是服务的原因
难道这个服务导致实例启动的时候必须读他所指向的默认spfile?
不启动服务,oracle.exe进程起不来,rman也无法连接

是因为Windows问题,这个实验在Windows上应该无法再现...

在Windows上应该无法再现 是什么意思
我测试过了是dummy


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com