RMAN常用的命令


        单命令

            仅仅在RMAN提示符下执行

            单独被执行

            不能够作为RUN的子命令

            如backup database

            下列命令不能用作批命令来使用

                CONNECT

                CONFIGURE

                CREATE CATALOG, DROP CATALOG, UPGRADE CATALOG

                CREATE SCRIPT, DELETE SCRIPT, REPLACE SCRIPT

                LIST

                REPORT

               

        批命令

            在RUN命令中用括号括起来使用,常用的批命令为allocate channel,set newname for datafile,release channel,switch,set等

            作为一个组被执行

            如:

                RMAN> RUN {

                   2> backup incremental level 0

                   3> format '/u01/app/oracle/bak/%d_%s_%p'

                   4> fileperset 5(database include current controlfile);

                   5> sql 'alter databaes archive log current ';}

                  

        混合的独立和作业命令    

posted @ 2011-07-06 09:04  我的IT世界  阅读(148)  评论(0编辑  收藏  举报