Link to home
Start Free TrialLog in
Avatar of joaotelles
joaotellesFlag for United States of America

asked on

Oracle 10g - imp/exp then drop

Hi,

I want to first export a database and then drop it.

I want to do it using the SID but Im sure of the syntax to use.

Could anyone help?
SID: FRO8A

Tks,
Joao
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

What OS?
What is the question?

The syntax for export can be found with: exp help=Y

The easiest is: exp username/password@FRO8A full=Y file=FRO8A.dmp
Avatar of joaotelles

ASKER

Sorry.  OS: Solaris 10.

After the exp I want to drop the tables of FRO8A. Just not sure of the syntax.

Is FRO8A a schema, a database or both?

Drop just the tables or the entire schema and all objects?
SOLUTION
Avatar of Sean Stuber
Sean Stuber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A database.

Drop the tables and the entire schema and all objects.
>>>A database.
>>>Drop the tables and the entire schema and all objects.

That's sort of contraditing.

Do you really want to drop the entire database?

or just a schema (user and associated objects) within the database?
I would probably use dbca (Database Configuration Assistant) to drop the database.
if use are just trying to drop a schema then


drop user THEUSERNAME cascade;


if you do

drop database;

then you will still need to do some extra cleanup  like pfile (but not spfile)
alert logs, trace files, etc.
sdstuber,

Sorry for the lack of information. I want to drop some users and its associated objects. Not the entire database.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Tks for the help