Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > tableaspace change

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-23-03, 06:09
jeyagowri jeyagowri is offline
Registered User
 
Join Date: Mar 2003
Posts: 11
tableaspace change

Hi,
I created a user as below
create user paymaster identified by paymaster
default tablespace users
temporary tablespace temp

this created user paymaster.
however when i queried
select owner,tablespace_name from dba_tables
the output was as below:-

OWNER TABLESPACE_NAME
PAYMASTER SYSTEM

the paymaster should be in tablespace 'PAYDATA'
this tablespace is already created.
How do i create user PAYMASTER to use PAYDATA?

i had earlier dropped user paymtr from the database as the client wants paymtr to be changed to paymaster.
I created as above and granted the roles.
however when i tried to import from *.dmp file that was exported from paymaster in another machine(which was in system tablespace) and i queried from dba_tables to find all tables are in system tablespace.
How can i retify this?

please advise.

thanks.
Reply With Quote
  #2 (permalink)  
Old 04-24-03, 00:19
Hings Hings is offline
Oracle/UNIX
 
Join Date: Apr 2003
Location: Minneapolis, MN
Posts: 273
Dear jeyagowri,

If the tables to be exported are stored in SYSTEM tablespace in Source DB and if you import them in Targed db, these tables will be stored in the SYSTEM tablespace of the target DB, no matter which tablespace the target DB user is assigned to.

If you want to move tables to Users default tablespace or whereever you want, You can use ALTER TABLE...MOVE command to perform these task.

Thanks,

Hings

=======

Still Learning...
Reply With Quote
  #3 (permalink)  
Old 04-24-03, 00:23
Hings Hings is offline
Oracle/UNIX
 
Join Date: Apr 2003
Location: Minneapolis, MN
Posts: 273
Dear jeyagowri,

One more thing,

If you want to change users default tablespace to PAYDATA,

you can user following statement..

ALTER USER paymaster DEFAULT TABLESPACE PAYDATA;

Thanks,

Hings

===========

Still Learning...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On