频道直达 - 专题 - 新闻 - 技巧 - 组网 - 开发 - 安全 - web编程 - 图像 - 操作系统 - 数据库 - 教育 - 旅游 - 健康 - 时尚 - 驱动 - 软件 - 游戏 - 多媒体 - ERP - 讨论组

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

来源:中国IT实验室 作者:佚名 出处:巧巧读书 2008-05-07 进入讨论组
下一页 1 2 3 4 

    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 
收藏此文】【 】【打印】【关闭
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
巧巧读书宗旨
相关专题
讨论组问题推荐
站内各频道最新更新文档
站内最新制作专题
热门关键字导读
Photoshop教 程照片处理 照片制作 PS快捷键 抠图
计 算 机 故 障XP系统修复
艺 术 与 设 计设计 流媒体 设计欣赏 边框
计 算 机 安 全ARP
站内频道文章精选
巧巧电脑频道编辑信箱  告诉我们您想看的专题或文章