oracle中有没有类似 SQL server中的备份,还原的SQL语句?

解决方案 »

  1.   

    因为是自己的程序中实现备份和恢复,所以如果有SQL语句的话,能更好的获得备份和恢复信息。
      

  2.   

    EXP\IMP 这个我常用
    语法:
    备份/恢复数据库中的表
    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
      

  3.   

    备份,还原的SQL语句
    =====================
    好像只有备份表空间的 sql 语句
    alter tablespace tsp_name begin backup;
    -- copy the data file
    alter tablespace tsp_name end backup;
      

  4.   

    exp/imp不能算是sql语句吧?外部工具者也。
    SQL要这样写:
    备份:select BackUp from dual;
    还原:select Recover from dual;
    哈哈,开个玩笑。
    oracle的备份和还原还是方法比较多的。
    不如楼上提到的客户端imp/exp
    再比如server端的impdp/expdp
    还有通过rman进行系统备份等等。
    如果楼主想要学习,可以看看这方面的资料。