Home » RDBMS Server » Server Utilities » exp/imp problem
exp/imp problem [message #74092] Mon, 06 September 2004 10:50 Go to next message
jack
Messages: 123
Registered: September 2000
Senior Member
I want to change user scott's objects tablespace.  After changed the default tablespace, I found the old talbes still reside in system tablespace. So I export all objects of scott. The command is:

exp scott/tiger@produce file=scott.dmp log=scott.log

 and create a new user scott1, whose default tablespace is users. Then I import all objects to user scott1 with command:

imp scott1/tiger@produce file=scott.dmp fromuser=scott

touser=scott1 log=scott.log

But I found some table still reside in system tablespace. Can somebody help me out?

Thanks in advance

Jack
Re: exp/imp problem [message #74095 is a reply to message #74092] Mon, 06 September 2004 18:30 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
u must have granted resource role to the new user.
RESOURCE role grants access to all tablespaces in DB.
revoke RESOURCE and try again.
You may want to grant create trigger / procedure to the user.
Re: exp/imp problem [message #74097 is a reply to message #74095] Tue, 07 September 2004 05:43 Go to previous messageGo to next message
jack
Messages: 123
Registered: September 2000
Senior Member
I gave the new user following roles:
connect, resource

following system privileges:
create trigger, create procedure

The problem still there!
Re: exp/imp problem [message #74098 is a reply to message #74097] Tue, 07 September 2004 05:54 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
>>revoke RESOURCE and try again

I asked you to revoke the RESOURCE ROLE and assign a default tablespace.
Re: exp/imp problem [message #74100 is a reply to message #74098] Tue, 07 September 2004 10:33 Go to previous messageGo to next message
jack
Messages: 123
Registered: September 2000
Senior Member
Hi,Mahesh. Thanks for your help. While I still have problem. After I revoked the resource role, with create trigger, create table and create procedure or not. I met error ora-01950. The import failed. Afterwards, I tried gave the new user unlimited tablespace, I got the old result that tables were imported into old tablespaces instead of a specific tablespace.

Jack
Re: exp/imp problem [message #74101 is a reply to message #74100] Tue, 07 September 2004 10:50 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
UNLIMITED TABLESPACE will not WORK.
You have to grant the unlimited quota on the specific tablespace.

Revoke the "UNLIMITED TABLESPACE" privilege from the user
Revoke the user's quota from the tablespace from where the object was exported. This forces the import utility to create tables in the user's default tablespace.
Make the tablespace to which you want to import the default tablespace for the user
Import the table
Re: exp/imp problem [message #74102 is a reply to message #74101] Tue, 07 September 2004 17:13 Go to previous message
jack
Messages: 123
Registered: September 2000
Senior Member
Hi,Mahesh Rajendran

Thanks you very, very much!

Jack
Previous Topic: need help is using mscomm.ocx
Next Topic: Import partitioned tables whith oracle 9.2.04
Goto Forum:
  


Current Time: Wed Jul 03 10:33:52 CDT 2024