Since you don't give a lot of information here, I am going to GUESS that you are tring to write the scripts to recreate the instance objects. I have used DBA Studio, right click on the object, and then choose SHOW OBJECT DDL. This shows the code used to create that object. I cut and paste this into an SQL text file. The only pain is that you have to do this for each object in your DB.
Remember to get the tablespaces, rollback segments, users, tables, indexes, everything... Also remember, some objects (database links) could be under PUBLIC.
Hope that helps, if not, please provide more information. Terry
**************************
* General Disclaimor - Please read *
**************************
Please make sure your post is in the CORRECT forum, has a descriptive title, gives as much detail to the problem as possible, and has examples of expected results. This will enable me and others to help you faster...