RMAN 创建catalog 数据库创建笔记

简介:

==========================

--RMAN 创建catalog 数据库

==========================

[oracle@L-DB-128-36 bin]$ sqlplus / as sysdba
 
SQL*Plus: Release 10.2.0.4.0 - Production on 星期三 3月 9 15:32:00 2011
 
Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
 
 
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
--创建表空间
SQL> create tablespace rman_catalog;
 
Tablespace created.

--创建用户并授权
SQL> create user rman identified by rman default tablespace rman_catalog temporary tablespace temp; 
grant connect,resource,create session,recovery_catalog_owner to rman;
User created.
SQL> 
Grant succeeded.
SQL> 
SQL> 
SQL> 
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

--注册数据库
[oracle@L-DB-128-36 bin]$ rman
 
Recovery Manager: Release 10.2.0.4.0 - Production on 星期三 3月 9 15:35:18 2011
 
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
 
RMAN> connect catalog 
rman/rman@zjport;
 
connected to recovery catalog database
 
RMAN> register database; 
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 03/09/2011 15:35:48
RMAN-06428: recovery catalog is not installed
 
RMAN> create catalog tablespace rman_catalog;
 
recovery catalog created
 
RMAN> register database; 
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 03/09/2011 15:36:44
RMAN-06171: not connected to target database
 
RMAN> connect catalog 
rman/rman@zjport;
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06167: already connected
 
RMAN> connect target 
sys/oracle@zjport;
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
ORA-01017: invalid username/password; logon denied
 
RMAN> connect target 
sys/zjport@zjport;
 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20001: target database not found in recovery catalog
 
RMAN> register database; 
 
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
 
RMAN> exit



本文转自zylhsy 51CTO博客,原文链接:http://blog.51cto.com/yunlongzheng/511440,如需转载请自行联系原作者

相关文章
|
2月前
|
SQL NoSQL 数据库
Cassandra数据库与Cql实战笔记
Cassandra数据库与Cql实战笔记
32 1
Cassandra数据库与Cql实战笔记
|
3月前
|
SQL 关系型数据库 MySQL
学成在线笔记+踩坑(3)——【内容模块】课程分类查询、课程增改删、课程计划增删改查,统一异常处理+JSR303校验
课程分类查询、课程新增、统一异常处理、统一封装结果类、JSR303校验、修改课程、查询课程计划、新增/修改课程计划
学成在线笔记+踩坑(3)——【内容模块】课程分类查询、课程增改删、课程计划增删改查,统一异常处理+JSR303校验
|
3月前
|
前端开发 应用服务中间件 API
|
5月前
|
Oracle 安全 关系型数据库
|
5月前
|
存储 Oracle 关系型数据库
|
5月前
|
存储 Oracle 关系型数据库
关系型数据库Oracle运行RMAN脚本
【7月更文挑战第23天】
54 4
|
5月前
|
SQL Oracle 关系型数据库
关系型数据库Oracle设置 RMAN 环境:
【7月更文挑战第25天】
76 2
|
5月前
|
监控 Oracle 算法
|
5月前
|
SQL Oracle 关系型数据库
关系型数据库Oracle结束 RMAN 会话:
【7月更文挑战第25天】
108 1
|
11天前
|
关系型数据库 MySQL 数据库
Python处理数据库:MySQL与SQLite详解 | python小知识
本文详细介绍了如何使用Python操作MySQL和SQLite数据库,包括安装必要的库、连接数据库、执行增删改查等基本操作,适合初学者快速上手。
81 15
下一篇
DataWorks