备份,还原的SQL语句 ===================== 好像只有备份表空间的 sql 语句 alter tablespace tsp_name begin backup; -- copy the data file alter tablespace tsp_name end backup;
exp/imp不能算是sql语句吧?外部工具者也。 SQL要这样写: 备份:select BackUp from dual; 还原:select Recover from dual; 哈哈,开个玩笑。 oracle的备份和还原还是方法比较多的。 不如楼上提到的客户端imp/exp 再比如server端的impdp/expdp 还有通过rman进行系统备份等等。 如果楼主想要学习,可以看看这方面的资料。
语法:
备份/恢复数据库中的表
exp user/password@odbc tables=table_name file=.\**.dmp
imp user/password@odbc file=.\**.dmp fromuser=user touser=user
备份/恢复数据库中所有对象数据
exp user/password@odbc file=.\**.dmp
imp user/password@odbc file=.\**.dmp fromuser=user touser=user
=====================
好像只有备份表空间的 sql 语句
alter tablespace tsp_name begin backup;
-- copy the data file
alter tablespace tsp_name end backup;
SQL要这样写:
备份:select BackUp from dual;
还原:select Recover from dual;
哈哈,开个玩笑。
oracle的备份和还原还是方法比较多的。
不如楼上提到的客户端imp/exp
再比如server端的impdp/expdp
还有通过rman进行系统备份等等。
如果楼主想要学习,可以看看这方面的资料。