使用rman备份oracle数据库时出错

时间:2012-04-18 10:57:51

标签: oracle rman

这就是我在没有登录oracle 10g数据库的情况下尝试备份数据库的方法。任何人都可以告诉我为什么我会收到此错误,我应该如何解决?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\sunanda>cd C:\oraclexe

C:\oraclexe>cd app

C:\oraclexe\app>cd oracle

C:\oraclexe\app\oracle>cd product

C:\oraclexe\app\oracle\product>cd 10.2.0

C:\oraclexe\app\oracle\product\10.2.0>cd server

C:\oraclexe\app\oracle\product\10.2.0\server>cd bin

C:\oraclexe\app\oracle\product\10.2.0\server\BIN>dir rman.exe
Volume in drive C has no label.
Volume Serial Number is 40EF-0556

Directory of C:\oraclexe\app\oracle\product\10.2.0\server\BIN

02/02/2006  12:43 AM         1,552,384 rman.exe
           1 File(s)      1,552,384 bytes
           0 Dir(s)  14,177,832,960 bytes free

C:\oraclexe\app\oracle\product\10.2.0\server\BIN>set ORACLE_SID=demo

C:\oraclexe\app\oracle\product\10.2.0\server\BIN>echo %ORACLE_SID%
demo

C:\oraclexe\app\oracle\product\10.2.0\server\BIN>rman target / 

执行此操作后,我收到如下错误:

    Recovery Manager: Release 10.2.0.1.0 - Production on Wed Apr 18 14:46:35 2012

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

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12560: TNS:protocol adapter error

C:\oraclexe\app\oracle\product\10.2.0\server\BIN>

我尝试搜索此错误,但无法准确理解如何解决此问题。 http://www.youtube.com/watch?v=8dA6BYxF_YE&feature=related。这是我在这样做时提到的视频。

2 个答案:

答案 0 :(得分:2)

您已将ORACLE_SID设置为demo - 但没有此类SID。检查安装数据库时配置的SID是什么?相应地设定。

如果您需要找到SID,请打开服务列表( Win + R )类型services.msc。搜索OracleServiceXYZ123之类的内容。 OracleService之后的字符将是SID

答案 1 :(得分:0)

刷新共享池;它肯定会奏效。 试试这个:

SQL> alter system flush shared_pool;

系统改变了。

相关问题