DATABASE IMPORT IN THE DEFAULT TABLESPACE OF USER [message #58571] |
Thu, 18 September 2003 01:42 |
VISHNU
Messages: 14 Registered: November 2001
|
Junior Member |
|
|
Hi,
I have exported database into a dump file ,the exported database was using the system table space.
Now i am trying to import database from the above dump file into the new user which has default table space specified, but its the import is happening in system table space rather then the default tablespace.
On the command prompt command i am running this command to import:
imp user/password@netservicename file=filename fromuser=x1 touser=xyz ignore=y
thanks and regards,
vishnu
|
|
|
|
|
Re: DATABASE IMPORT IN THE DEFAULT TABLESPACE OF USER [message #58581 is a reply to message #58571] |
Thu, 18 September 2003 14:52 |
Sanjay
Messages: 236 Registered: July 2000
|
Senior Member |
|
|
The user doing the import may have had 'resource' which give quota unlimited to all tablespaces (as mentioned by Mahesh)
Best bet would be to give the user 'connect' and 'resource'. Then revoke the 'unlimited tablespace'
create user user_a
default tablespace ts_a
temporary tablespace temp
quota unlimited on ts_a
quota unlimited on temp;
grant resource to user_a;
grant connect to user_a;
revoke unlimited tablespace from user_a;
NOTE: To make sure that user_a DOES NOT have any access to SYSTEM tablespace, create a table in that tablespace. If you get an error, you do not have any access.
This way you are making sure that no objects go to tablespace SYSTEM.
|
|
|