1.首先查看一下Oracle的数据文件
SQL> select name from v$datafile;
NAME
/dev/rora_system
/dev/rora_undo1
/dev/rora_sysaux
/dev/rora_users
/dev/rora_example
2.建立RMAN所需的表空间,这里采用裸设备“/dev/rora_backup”
SQL> create tablespace ora_backup datafile'/dev/rora_backup' size 500M;
Tablespace created.
进行查看确认
SQL> select name from v$datafile;
NAME
/dev/rora_system
/dev/rora_undo1
/dev/rora_sysaux
/dev/rora_users
/dev/rora_example
/dev/rora_backup
6 rows selected.
已经发现ora_backup表空间
3.建立RMAN用户以及设定密码和用户表空间
SQL> create user rman identified by rman default tablespace ora_backup temporay tablespace temp
2 ;
create user rman identified by rman default tablespace ora_backup temporay tablespace temp
*
ERROR at line 1:
ORA-00922: missing or invalid option
在此处出错,原来是temporay打错,继续。
SQL> create user rman identified by rman default tablespace ora_backup temporary tablespace temp;
User created.
呵呵,成功
4.给用户授权
SQL> grant connect,resource,recovery_catalog_owner to rman
2 ;
Grant succeeded.
5.连接到数据库
SQL> rman target 'zhirui' catalog rman/rman
SP2-0734: unknown command beginning "rman targe……" - rest of line ignored.
呵呵,又出错了,没退出SQL.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
$ rman target 'zhirui'catalog rman/rman
这下应该可以了吧
Argument Value Description
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
相关专题
- 系统备份专题 (18084篇文章)
- 数据库专栏 (5325篇文章)
- 数据库处理专题 (9040篇文章)
- 城域网专题 (8040篇文章)
- 数据库安全技术专题 (13559篇文章)
- 数据库安装与卸载 (10834篇文章)
- Oracle 10g基础应用 (4651篇文章)
- Linux数据库宝典 (13876篇文章)
- 数据库相关文章 (5325篇文章)
- 数据库备份与恢复 (344篇文章)
- Oracle数据库中关键字 (67次浏览)
- 深入讲解“database link”的设置和使用 (31次浏览)
- 甲骨文:从手机功能变化看数据库性能扩展 (27次浏览)
- Windows环境中同时安装Oracle9i 10g和11g (25次浏览)
- 测量磁盘I/O (21次浏览)
- 带你深入了解Oracle数据库的进制转换 (17次浏览)
- 教你快速掌握如何使用“Opatch”打补丁 (16次浏览)
- 详细讲解Oracle表分区的相关概念及其优点 (16次浏览)
- 讲解Oracle中JOB与存储过程的接合用法 (15次浏览)
- Oracle 10G 新特性--透明数据加密技术 (15次浏览)



