首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
中国IT实验室Oracle频道
中国IT教育
Google
首页 入门基础 安装配置 体系架构 PLSQL 备份恢复 性能调优 开发技术 资讯动态 考试认证 下载 专题 讨论
您现在的位置: 中国IT实验室 >> Oracle >> 备份恢复 >> 正文

Oracle数据库10g RMAN的备份过程

    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

[1] [2] [3] [4] 下一页

【责编:Ken】

中国IT教育

相关产品和培训
文章评论
 友情推荐链接
 认证培训
 专题推荐

 ·关于Java框架技术专题
 ·XML全攻略技术专题
 ·JAVA开源技术介绍专题
 ·Java嵌入式开发之J2ME技术专题
 ·超前体验 Oracle 11g的5个新特性…
 ·揭密使用VB.NET的五个实用技巧
 ·Oracle和SQL Server常用函数对比专题…
 ·展现C#世界 C#程序设计专题…
 ·Java入门 Tomcat的配置技巧精华专题…
 ·Oracle RMAN物理备份技术详解…
 今日更新
 社区讨论
 博客论点
 频道精选
 Oracle频道相关导航