首页 > Linux操作系统 > Linux操作系统 > rman创建catalog
rman创建catalog
SQL> conn / as sysdba
已连接。
SQL> create tablespace rman_ts datafile 'C:\oracle\product\10.2.0\oradata\sg\rman_ts.dbf' size 20M;
表空间已创建。
SQL> create user rman identified by rman default tablespace rman_ts temporary tablespace temp quota unlimited on rman_ts;
用户已创建。
SQL> grant recovery_catalog_owner to rman;
授权成功。
SQL> grant connect,resource to rman;
授权成功。
Microsoft Windows [版本 5.2.3790]
(C) 版权所有 1985-2003 Microsoft Corp.
H:\Documents and Settings\Administrator>rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 8 09:21:31 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN> quit
恢复管理器完成。
H:\Documents and Settings\Administrator>rman catalog rman/rman
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 8 09:21:55 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到恢复目录数据库
RMAN> create catalog tablespace rman_ts;
恢复目录已创建
RMAN> quit
恢复管理器完成。
H:\Documents and Settings\Administrator>rman catalog rman/rman target /
恢复管理器: Release 10.2.0.1.0 - Production on 星期四 3月 8 09:24:53 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到目标数据库: SG (DBID=2866351489)
连接到恢复目录数据库
RMAN> register database;
注册在恢复目录中的数据库
正在启动全部恢复目录的 resync
完成全部 resync
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8102208/viewspace-566571/ ,如需转载,请注明出处,否则将追究法律责任。