Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Export/Import
Zeyad
If you were doing this to re-arrange your tables across multiple tablespaces, for the purposes of load balancing or using different extent sizes with locally managed tablespaces, you can use the index creation script.
Do an import with indexes =Y, indexfile=filename.sql and rows=N in your import parameter file and the end of this import the filename.sql file will include all the tables that are going to be created.
As this file is intended by Oracle for index creation the table creates are commented out. This requires a little work with an editor to change, remove the index creation statements first and then un-comment the table creation statements. Then by changing the tablespace in the table create statements you will be able to pre-create them split them between multiple tablespaces.
Now run another import without the indexfile parameter set, rows=Y and ignore=Y set and all will be done.
NOTE: You can also extract the table pre-creation statements using a spooled PL/SQL command selecting from the dba_tables and dba_tab_columns. I use the one for the O'Reilly scripts book.
Regards
Fraser McCallum
MVP Oracle
www.BrainBench.com
"Zeyad S" <sweidanz_at_yahoo.com> wrote in message
news:3B5E0711.D848A6FE_at_yahoo.com...
> Thanks Sybrand, that makes it clear.
>
> Thanks all,
> ZS
>
> Sybrand Bakker wrote:
>
> > "Yaroslav Perventsev" <p_yaroslav_at_cnt.ru> wrote in message
> > news:9jjit2$l18$1_at_news247.cnt.ru...
> > > Hello!
> > > See original question!
> > >
> > > Yaroslav.
> > >
> > > andrew_webby at hotmail <spam_at_no.thanks.com> ÓÏÏÂÝÉÌ × ÎÏ×ÏÓÔÑÈ
> > > ÓÌÅÄÕÀÝÅÅ:995968737.8742.0.nnrp-07.c30bdde2_at_news.demon.co.uk...
> > > > But now the table is owned by a different schema.
> > > >
> > > > As Erwin said, all he has to do is create the table layout with the
new
TS
> > > > first, then run the import.
> > > >
> > > > "Yaroslav Perventsev" <p_yaroslav_at_cnt.ru> wrote in message
> > > > news:9jjdja$k45$1_at_news247.cnt.ru...
> > > > > Hello!
> > > > >
> > > > > Erwin Dondorp <erwindon_at_wxs.nl> ñîîáùèë â íîâîñòÿõ
> > > > > ñëåäóþùåå:3B5D33F5.C32D5D35_at_wxs.nl...
> > > > > > Yaroslav Perventsev wrote:
<snip>> > > > >
> > > > > imp user2/test_at_db2 file=user1.dmp fromuser=user1 touser=user2
![]() |
![]() |