I have a big problem When i take a dump of database the empty tables are truncated
How i can export the all tables in oracle 10g
exp SYSTEM/password FILE=expdat.dmp
I have a big problem When i take a dump of database the empty tables are truncated
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.
Use the below script to alter all tables they do not have extent allocated.
Copy the output and execute it.
I found another solution here.
Oracle has an option called DEFERRED_SEGMENT_CREATION, default true.
from the docs:
I'll sum up the solution from the above link:
Run the output of the following statement:
This made my exp export empty tables as well.
You might consider expdp (data pump) instead. There's a parameter
CONTENT=METADATA_ONLY
that might get you what you want.