rman的配置,使用catalog

生產庫名爲:orcl
備份庫各爲:test

I:>set oracle_sid=test

I:>sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on 星期日 10月 14 14:28:13 2007

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


連接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> archive log list
數據庫日誌模式            存檔模式
自動存檔             啓用
存檔終點            USE_DB_RECOVERY_FILE_DEST
最早的聯機日誌序列     3
下一個存檔日誌序列   5
當前日誌序列           5

SQL> create tablespace rman datafile 'E:/ORACLE/PRODUCT/10.2.0/ORADATA/TEST/RMAN.DBF' size 100M extent management local;

表空間已創建。

SQL> create user rman identified by rman default tablespace rman temporary tablespace temp;

用戶已創建。

SQL> grant connect,resource,recovery_catalog_owner to rman;

授權成功。


I:>set oracle_sid=test

I:>rman catalog rman/rman

恢復管理器: Release 10.2.0.1.0 - Production on 星期日 10月 14 14:40:18 2007

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

連接到恢復目錄數據庫

RMAN> create catalog tablespace rman  //在這邊也不知道發生了什麼錯誤
MAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: 分析輸入命令時出錯
RMAN-00558: 分析輸入命令時出錯
RMAN-01009: 語法錯誤: 找到 "rman": 應爲: "double-quoted-string, identifier, single-quoted-string"中
的一個
RMAN-01007: 在第 1 行第 27 列, 文件: standard input
RMAN> create catalog

恢復目錄已創建

RMAN>exit

Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.

I:>set oracle_sid=test

I:>rman target system/hailang@orcl catalog rman/rman

恢復管理器: Release 10.2.0.1.0 - Production on 星期日 10月 14 15:10:04 2007

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

連接到目標數據庫: ORCL (DBID=1162274038)
連接到恢復目錄數據庫

RMAN> register database;

註冊在恢復目錄中的數據庫
正在啓動全部恢復目錄的 resync
完成全部 resync

RMAN>

發佈了139 篇原創文章 · 獲贊 3 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章