必须:
使用exp/imp命令(plsql导入不行)
准备工作
select ‘alter table ‘||table_name||‘ allocate extent;‘ from user_tables;
查询的sql拷贝执行 ,不丢表
exp:
===========================
@echo off
echo ================================================
echo Windows环境下Oracle数据库的自动备份脚本
echo 1. 使用当前日期命名备份文件。
echo ================================================
::设置用户名、密码和要备份的数据库。
::set USER=detection1
::set PASSWORD=detection1
::set DATABASE=orcl
::以“YYYYMMDD”格式取出当前时间。
set year=