I would like to drop all objects within a given schema. But when I try I get the ORA-02449 error messages. I tried to disable constraints first but didn't work. Could you please shed some light on this for me?
If you really want to get rid of everything in a given schema, why not just drop the user? That way you don't have to worry about constraints being violated when trying to drop objects individually. If you want to keep the user after the objects are gone, still drop the user and then re-create them. That's the simplest thing to do in my opinion.
DROP USER user_name CASCADE ;
Dig Deeper on Oracle error messages
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.