Home  >  Article  >  Database  >  Oracle 11g导出空表方法

Oracle 11g导出空表方法

WBOY
WBOYOriginal
2016-06-07 17:26:501195browse

一、 打开pl_sql,使用需要导出数据库的用户登录 二、 新建sql 复制 select

一、 打开pl_sql,使用需要导出数据库的用户登录

二、 新建sql 复制

   select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0  

  查询出结果如下截图:

三、 新建SQL窗口,将复制查询出的所有信息粘贴在空白处

如下图:

四、 执行成功后,在Oracle 11g服务器端,开始—运行,根据实际输入数据库导出语句,(如:exp shemis3/oracle9i@emis file='e:\shemis20121211.dmp'),,即可将数据库所有表导出。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn