|
感谢Piner,文章非常好。
我有一个问题需要请教一下。我按照文中的讲述重做了一下(Windows2000+Oracle8.1.7.2),运行coldbak.sql 时报错。
SQL> @F:\xcopy.sql;
Connected.
Database closed.
Database dismounted.
ORACLE instance shut down.
SP2-0734: unknown command beginning "!xcopy C:\..." - rest of line ignored.
SP2-0734: unknown command beginning "!xcopy C:\..." - rest of line ignored.
SP2-0734: unknown command beginning "!xcopy C:\..." - rest of line ignored.
ORACLE instance started.
Total System Global Area 74070044 bytes
Fixed Size 75804 bytes
Variable Size 57139200 bytes
Database Buffers 16777216 bytes
Redo Buffers 77824 bytes
Database mounted.
Database opened.
谁能给解释一下为什么?应该怎样做?谢谢。
附 xcopy.sql
--connect database
connect internal/oracle@test;
--shutdown database
shutdown immediate;
--Copy Data file
!xcopy C:\Oracle\oradata\TEST\*.dbf C:\Oracle\oradata\TEST\BK;
--Copy Control file
!xcopy C:\Oracle\oradata\TEST\*.ctl C:\Oracle\oradata\TEST\BK;
--Copy Log file
!xcopy C:\Oracle\oradata\TEST\*.log C:\Oracle\oradata\TEST\BK;
--startup database
startup; |
|