誰有更好的或者是實際生產中的備份腳本可以貼上來共享。 1,選取所有表空間 select tablespace_name from dba_tablespaces; 2,對于每一個表空間建立數據文件的列表 select file_name from dba_data_files where tablespace_name='tablespace name'; 3,讓表空間處于備份模式下: alter tablespace tablespace_name begin backup; 4,使用操作系統命令備份該表空間下的所有數據文件 5,讓表空間退出備份模式: alter tablespace tablespace_name end backup; 6,生成一個可備份的控制文件: alter database backup control file to backup_file_name reuse; 7,強制日志交換: alter system switch logfile; 8,等待對重做日志進行歸檔 根據重做日志大小及歸檔速度。 9,備份歸檔日志。 使用操作系統命令備份歸檔日志。