after I've created new tablespace and new user:
CREATE TABLESPACE MAX DATAFILE 'c:\MAX01.dbf' SIZE 3800M REUSE DEFAULT STORAGE
(INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 256 PCTINCREASE 0) ONLINE;
CREATE USER MAX IDENTIFIED BY MAX DEFAULT TABLESPACE MAX TEMPORARY TABLESPACE TEMP;
Even though you have created a seperate tablespace for MAX the object will still be created in it's original tablespace if it exists, in this case it will try and create the object in the TOM tablespace.
This is why increasing the size of the MAX tablespace has no effect.
Look at the error
ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
Remove all quotas on TOM tablespace from user MAX or take the tablespace offline
Regards
Jim
Oracle Certified Professional "Build your reputation by helping other people build theirs."
"Sarcasm may be the lowest form of wit but its still funny"
do an import where in the all the DDL would go into a file, edit the file and run the same into the new schema.I know this would be a tedious task, i am just giving you an option...
imp username/password INDEXFILE=
where file in indexfile parameter would contain all the DDL's, edit it to include the new tablespace and execute the same in the new schema
The import is complaining about the TOM tablespace in the new instance, as I said before if the original tablespace exists the import utility will attempt to create the objects there.
Simply remove MAX's quota on the TOM tablespace in the new instance or take the tablespace offline in the new instance.
Jim
Oracle Certified Professional "Build your reputation by helping other people build theirs."
"Sarcasm may be the lowest form of wit but its still funny"
1) I've taken the tablespace TOM offline in the new instance, but when I import fromuser=TOM touser=MAX.............
I get error because not exist tablespace TOM
2)I removed MAX's quota on the TOM tablespace in the new instance.
ALTER USER MAX QUOTA unlimited ON TOM;
but when I import I get alway the same error:
ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
I know That I must encrease tablespace TOM for avoid this error, but I must create 6 new users in 6 different tablespaces and I'd to increase tablespace TOM too much (how many GB?).
how can I import schema to a different tablespace?
Bookmarks