Reorganization of data/ Eliminate database fragmentation (export, drop and re-import tables) [message #199873] |
Thu, 26 October 2006 09:27 |
caraless
Messages: 7 Registered: October 2006 Location: Pomigliano D'arco
|
Junior Member |
|
|
Good Morning,
I have server unix where installed oracle 9i patch 9.2.0.5. I have one schema INFODBA and I have two tablespace. One tablespace for data and one for index. for the tablespace of the data i have 18 datafile. every datafile is 1000 MB. For the tablespace the index i have 15 datafile. every datafile is 1000 MB. Every night i execute one export of the schema infodba and database full. Now i want drop the tablespace and reimport all for eliminate database fragmentation.
I want know :
is better create one datafile for data of 18 GB or is equal if i execute an import also on 18 datafile of 1000 MB?
when i execute an import on 18 datafile,or import on datafile of 18GB, I eliminate database fragmentation or exist another procedure?
thank you
|
|
|
Re: Reorganization of data/ Eliminate database fragmentation (export, drop and re-import tables) [message #199875 is a reply to message #199873] |
Thu, 26 October 2006 09:33 |
caraless
Messages: 7 Registered: October 2006 Location: Pomigliano D'arco
|
Junior Member |
|
|
I forget that when i import the index i change the default tablespace and i insert the tablespace of the index.
My script are :
imp expimp/orasrv9 file=export_infodba.dmp log=imp_1.log fromuser=infodba touser=infodba indexes=n
and after when i change the defaul tablespace for the index the script is:
imp expimp/orasrv9 file=export_infodba.dmp log=imp_2.log fromuser=infodba touser=infodba rows=n grants=n constraints=n indexes=y ignore=y
Is correct??
thank you
Alessandro
|
|
|
|
Re: Reorganization of data/ Eliminate database fragmentation (export, drop and re-import tables) [message #199886 is a reply to message #199878] |
Thu, 26 October 2006 10:06 |
caraless
Messages: 7 Registered: October 2006 Location: Pomigliano D'arco
|
Junior Member |
|
|
thank you Mahesh,
My RDBMS is 9i 9.2.0.5 but i don't know if i'm using LMT with uniform extent sizes and if is fragmentation .
When i created the tablespace i had this script :
CREATE TABLESPACE "OIMANLC9_DATA" LOGGING
DATAFILE '/oradata9/iman_lc/tsp1/oimanlc9_tcaed0112.dbf' SIZE 1000M
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
SEGMENT SPACE MANAGEMENT AUTO;
and after i add other datafile.
For me is important drop two tablespaces (Data and index) and recreate this.
so in the first import :
imp expimp/orasrv9 file=export_infodba.dmp log=imp_1.log fromuser=infodba touser=infodba indexes=n
will create some indexes (created by constraints) in the tablespace for data?
and if i execute this script two times :
imp expimp/orasrv9 file=export_infodba.dmp log=imp_2.log fromuser=infodba touser=infodba rows=n grants=n constraints=n indexes=y ignore=y
and the second time i change the default tablespace for the index?
"Extract ddl and recrate constraints/indexes (in parallel)." ???
Excuse me
i wait your info
thank you
Alessandro
|
|
|
|
|
|
|
|
|
|