6

I need to Generate an export script of entire Oracle Database using using SQL Developer.

How can I do this?

1

2 Answers 2

21

Tools-> Database Export?

Sign up to request clarification or add additional context in comments.

1 Comment

So much simpler than my approach.
3

For backing up the entire database, I'd recommend using expdp/impdp from the command line. If you only need the objects and not the data, you can use the METADATA_ONLY setting, see

http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm

If you really need to generate a SQL script for your complete database and don't want to use a commercial tool like PL/SQL Developer, TOAD etc., you'll probably have to do it yourself - e.g. iterating over all objects and extract their DDL script using dbms_metadata.get_ddl(), something like
foreach user u in all_users
foreach object o in users_u_objects
script += dbms_metadata.get_ddl(u, o)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.