详细讲解Oracle数据库10gRMAN的备份过程Oracle认证考试

文章作者 100test 发表时间 2009:07:08 04:28:50
来源 100Test.Com百考试题网


  1.首先查看一下Oracle的数据文件

  SQL>. 0select 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>. 0select 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 0selected.

  已经发现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 zhiruicatalog 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

  -----------------------------------------------------------------------------


相关文章


循序渐进讲解Oracle数据库管理员的职责Oracle认证考试
详细讲解Oracle数据库后台进程的具体功能Oracle认证考试
Oracle数据库中使用DBMS_PROFILER进行调优Oracle认证考试
Oracle数据库SQL语句性能调整的基本原则Oracle认证考试
详细讲解Oracle数据库10gRMAN的备份过程Oracle认证考试
数据库中判断一个字符串内是否含有中文Oracle认证考试
轻松掌握Oracle数据库Where条件执行顺序Oracle认证考试
Oracle数据库中为什么会产生回滚与前退Oracle认证考试
undo表空间暴长后如何才能取消自动扩展Oracle认证考试
澳大利亚华人论坛
考好网
日本华人论坛
华人移民留学论坛
英国华人论坛