joaotelles
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
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
ASKER
Sorry. OS: Solaris 10.
After the exp I want to drop the tables of FRO8A. Just not sure of the syntax.
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?
Drop just the tables or the entire schema and all objects?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
A database.
Drop the tables and the entire schema and all objects.
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?
>>>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.
There is also a drop database sql command if you prefer:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/recoscen.htm#CACFJHED
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/recoscen.htm#CACFJHED
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.
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.
ASKER
sdstuber,
Sorry for the lack of information. I want to drop some users and its associated objects. Not the entire database.
Sorry for the lack of information. I want to drop some users and its associated objects. Not the entire database.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tks for the help
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