rman>restore database;
rman>recover database;

解决方案 »

  1.   

    我在一台機器上裝了幾個數據庫,
    rman>restore database;
    rman>recover database;
    這個是還原到哪個數據庫,而且也沒指定還原的路徑啊?
    我不明白?
      

  2.   

    还原所有数据库同,不用指定还原路径。oracle自已知道
      

  3.   

    你还是先看一书,Oracle的备份与恢复是比较繁杂的。
      

  4.   

    03026:error recovery releasing channel resources
          failure during compilation of command
          command type :restore
          non-retryable error occurred during execution of command:IRESTORE
          unhandled exception during command execution on channel dev1
          exception raised in RPC:ORA-19573:cannot obtain exclusive enqueue for datafile 2
          ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE
      

  5.   

    这里有教授你的课程:
    http://www.askguoyu.com/db/index.htm
      

  6.   

    首先要确定的是你现在的备份是做的哪个数据库的备份,也
    就是你启动rman时的目标数据库。如下列的your_db_name,
    因为rman备份是被记录在你所备份的数据库的当前控制文件
    里,所以不是你备份了A数据库,就可以恢复B数据库,不知是否明白。假如你上面的备份的是A数据库,则可以用下面的脚本进行恢复:
    c:\>rman
    rman>connect target sys@A
    rman>run {
                allocate channel d1 type disk;
                allocate channdl d2 type disk;
                restore database;
                recover database;
                release channdl d1;
                release channdl d2;
              }
    上面的脚本中可以只分配一个通道。但执行两个操作,
    分配两个通道可以提高速度。