Home » RDBMS Server » Server Administration » Urgent Urgent ::: importing in diff tablespace
Urgent Urgent ::: importing in diff tablespace [message #62540] Wed, 28 July 2004 02:44 Go to next message
BhavinShah
Messages: 105
Registered: February 2004
Senior Member
Dear friends,

When I am importing a dump file it is not importing to default tablespace of user.

Scenario:

Database -A Oracle-9i
User:imms -Default Table space for this user is "IMMS"
I have taken export of user imms.
Database-B Oracle-9i
create user new_imms identified by imms default tablespace users;
Tablespace in Database-B
IMMS
USERS
TEMP
SYSTEM.
Now Problem is when I am importing a dump in user new_imms
segment is imported in tablespace "IMMS" Instead of it's default
tablespace "USERS".

I know this is why happen bec's in my export file tablespace is "IMMS".
But I m Unable to find the solution.

so,kindly give solution for this prob.. as early as possible.

Thax In advance...
Re: Urgent Urgent ::: importing in diff tablespace [message #62541 is a reply to message #62540] Wed, 28 July 2004 03:13 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
revoke resource role from the new_user.
grant quotas to specific tablespaces.
resource role allows the user to write to any tablespace available.
Since the IMMS tablespace is defined in the dump file, import will create the tables in IMMS tablespace.
Re: Urgent Urgent ::: importing in diff tablespace [message #62556 is a reply to message #62541] Wed, 28 July 2004 20:24 Go to previous messageGo to next message
BhavinShah
Messages: 105
Registered: February 2004
Senior Member
HI..

I want to import in "USER" tablespace Instead of "IMMS" tablespace.
Re: Urgent Urgent ::: importing in diff tablespace [message #62560 is a reply to message #62540] Thu, 29 July 2004 00:36 Go to previous messageGo to next message
Norvin
Messages: 22
Registered: July 2001
Junior Member
hi,

I'm gonna give my simple idea.

1. create a table and use your target tablespace.
create the table in two ways:
a. manually create the table on oracle prompt. ( i.e. identify every field, datatypes, table parameters )
b. create using imp user/password file=xxx.dmp tables=tableA rows=n. this option create the table in tablespace "imms", so you need to create the table manually using create table new_table .... tablespace <users>... as select * from old_table where 1 = 2;. in this way you eliminate the hassle of identifying all fields and its datatype. choose w/c is best applicable.

2. begin importing data.

since the table has been created, the next time you import you wont be facing this problem again.

Norvin/Philippines
Re:Simple Idea: Urgent Urgent ::: importing in diff tablespace [message #62562 is a reply to message #62560] Thu, 29 July 2004 01:29 Go to previous messageGo to next message
BhavinShah
Messages: 105
Registered: February 2004
Senior Member
hi ..
nice idea.. but i have 500 tables in my schemas..
so it's a lot of time consuming to create 500 tables..
is any other solution??

bye..
bhavin
Re: Urgent Urgent ::: importing in diff tablespace [message #62866 is a reply to message #62540] Fri, 20 August 2004 06:50 Go to previous message
Balaji
Messages: 102
Registered: October 2000
Senior Member
hi bhavin

im late in responding to you. i think by now you must have imported all the objects in the IMMS table space of database_B.

1.
you can moe all the objects from IMMS table space to USERS for example a table like this

alter table
move tablespace users ;

indexes can be rebuilt .

2.
use this imp command .

imp system/manager@database_b file=dumpfile.dmp fromuser=IMMS touser=NEW_IMMS

i think this will work .
if no then
see step 1.

with best wishes

balaji
Previous Topic: what is this error, i never got this before
Next Topic: From System Tablespaces To Users Tablespace
Goto Forum:
  


Current Time: Thu Jan 09 14:52:25 CST 2025