Home > Database > Mysql Tutorial > body text

Oracle 11g导出空表方法

WBOY
Release: 2016-06-07 17:26:50
Original
1195 people have browsed it

一、 打开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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!