如何在Oracle中导出空表 [英] How to export empty tables in oracle

查看:84
本文介绍了如何在Oracle中导出空表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大问题,当我转储数据库时,空表被截断了

I have a big problem When i take a dump of database the empty tables are truncated

我如何导出oracle 10g中的所有表

How i can export the all tables in oracle 10g

exp SYSTEM/password FILE=expdat.dmp

推荐答案

这可能是因为可能未对这些表进行扩展分配.进行备份之前,您需要确定所有没有数据的表.然后更改这些表以分配范围.

This might be because of these tables may not be extent allocated. Before taking backup you need to identify all the tables that do not have data. Then alter these tables to allocate extent.

ALTER TABLE <table_name> ALLOCATE EXTENT;

使用以下脚本更改未分配扩展区的所有表.

Use the below script to alter all tables they do not have extent allocated.

SELECT 'ALTER TABLE '||table_name||' ALLOCATE EXTENT;' FROM user_tables WHERE segment_created = 'NO';

复制输出并执行.

这篇关于如何在Oracle中导出空表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆