oracle rman 首先要连接到数据库才能继续使用,如下:
C:/Documents and Settings/mahx>set oracle_sid=oratest2
C:/Documents and Settings/mahx>rman target /
恢复管理器: Release 10.2.0.1.0 - Production on 星期一 11月 24 13:49:19 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到目标数据库: ORATEST2 (DBID=3912669252)
RMAN> list backup database;
监听器的启动:
lsnrctl
START
listener_name
监听器的停止:STOP listener_name
RMAN> run{
2> ALLOCATE CHANNEL c1 TYPE disk
3> FORMAT = '/db01/BACKUP/usr081124.bak';
4> BACKUP DATAFILE 'E:/oracle/product/10.2.0/oradata/oratest2/users01.dbf';}
2> ALLOCATE CHANNEL c1 TYPE disk
3> FORMAT = '/db01/BACKUP/usr081124.bak';
4> BACKUP DATAFILE 'E:/oracle/product/10.2.0/oradata/oratest2/users01.dbf';}