Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ora-1659 error,urgent!

Status
Not open for further replies.

mkey

Programmer
Joined
Oct 3, 2001
Messages
288
Location
CA
hi all,
i created a user lets call user_b and i have a dump file from user_a. this i how i exported the user.

exp user_a/user_a@hotstring file = c:\user_a.dmp


Now i have created a tablespace for the user_b approximately 2.5 giges. The problem is when I do an import i'm getting this 1659 error. which i guess that oracle trying to use the user_a's tablespace. how can i fix this error.
Thank you so much!
 
What is the imp command you are using to import? Are you including FROMUSER and TOUSER?
 
my import command is:

imp user_b/user_b@hoststring c:\user_a.dmp full = y
 
my import command is:

imp user_b/user_b@hoststring file = c:\user_a.dmp full = y
 
I think the way Oracle handles import is to put the tables in user b's default tablespace unless user b has a quota to create object's in user a's tablespace. If so, then the tables are imported to their original tablespace.

You should be able to force Oracle to put the objects in user b's default tablespace by making sure that user b doesn't have the following

1. any quota on user a's tablespace
2. the DBA role
3. the RESOURCE role
 
Add to the list

4. the UNLIMITED TABLESPACE system privilege
 
hi,
i will try what karluk suggested. but my question how should i create my dump export file so that the user_b doesn't need the dba privileges.

thanks you all for your guidance.
 
sorry guys,
karluk i'm not sure of your step one though. what do you mean my any quota? anyways i have added all the other priviledges that you mentioned. but i'm still getting the same ora-1659 error.

this is so frustrating.
 
Actually I was trying to say that user b shouldn't have any of those privileges. If those privileges have been granted, they need to be revoked. If necessary, you can restore the grants after the import.

The idea is to clamp down on user b's permissions so that he has no authority to do anything in user a's tablespace.

If user b has these privileges, they can be revoked with the following commands. (If user b doesn't have any of these permissions, then I may be misdiagnosing the situation.)

alter user user_b quota 0 k on user_a_ts;
revoke dba from user_b;
revoke resource from user_b;
revoke unlimited tablespace from user_b;

However, your point about dba privileges is well taken. As I recall only an id with dba privileges can import from an export done by a dba. I would try doing the export as user b. You may need to grant exp_full_database to user b in order to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top