SQL> startup nomount;
ORACLE 例程已经启动。
SQL> declare
2 devtype varchar2(256);
3 done boolean;
4 begin
5 devtype:=sys.dbms_backup_restore.deviceAllocate(type=>',ident=>'T1');
6 sys.dbms_backup_restore.restoresetdatafile;
7 sys.dbms_backup_restore.restorecontrolfileto(cfname=>'c:\oracle\oradata\tes
tdb\control01.ctf');
8 sys.dbms_backup_restore.restorebackuppiece(done=>done,handle=>'d:\databak\A
CT_TESTDB_13G292QT_35',params=>null);
9 sys.dbms_backup_restore.devicedeallocate;
10 end;
11 /
PL/SQL 过程已成功完成。
SQL> alter database mount;
数据库已更改。