Home » RDBMS Server » Server Utilities » Statistics gathered during import (Oracle 10.2.0.1)
Statistics gathered during import [message #392198] Tue, 17 March 2009 00:19 Go to next message
ora_2007
Messages: 430
Registered: July 2007
Location: Mumbai
Senior Member
Does after IMP import the tables are analyzed automatically?

When i done import process of TEST user

imp system/manager file=/home/oracle/test.dmp FROMUSER=TEST TOUSER=TEST


and when i execute following query

SELECT table_name,last_analyzed FROM DBA_TABLES WHERE owner=TEST'


I find that table/indexes are analyzed automatically.
Does it means statistics are gathered automatically during import?


Oracle 10.2.0.1
Re: Statistics gathered during import [message #392201 is a reply to message #392198] Tue, 17 March 2009 00:36 Go to previous messageGo to next message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
C:\>imp help=y

Import: Release 10.2.0.4.0 - Production on Mar. Mars 17 06:35:18 2009

Copyright (c) 1982, 2007, Oracle.  All rights reserved.



You can let Import prompt you for parameters by entering the IMP
command followed by your username/password:

     Example: IMP SCOTT/TIGER

Or, you can control how Import runs by entering the IMP command followed
by various arguments. To specify parameters, you use keywords:

     Format:  IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
     Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
               or TABLES=(T1:P1,T1:P2), if T1 is partitioned table

USERID must be the first parameter on the command line.

Keyword  Description (Default)       Keyword      Description (Default)
--------------------------------------------------------------------------
USERID   username/password           FULL         import entire file (N)
BUFFER   size of data buffer         FROMUSER     list of owner usernames
FILE     input files (EXPDAT.DMP)    TOUSER       list of usernames
SHOW     just list file contents (N) TABLES       list of table names
IGNORE   ignore create errors (N)    RECORDLENGTH length of IO record
GRANTS   import grants (Y)           INCTYPE      incremental import type
INDEXES  import indexes (Y)          COMMIT       commit array insert (N)
ROWS     import data rows (Y)        PARFILE      parameter filename
LOG      log file of screen output   CONSTRAINTS  import constraints (Y)
DESTROY                overwrite tablespace data file (N)
INDEXFILE              write table/index info to specified file
SKIP_UNUSABLE_INDEXES  skip maintenance of unusable indexes (N)
FEEDBACK               display progress every x rows(0)
TOID_NOVALIDATE        skip validation of specified type ids
FILESIZE               maximum size of each dump file
STATISTICS             import precomputed statistics (always)
RESUMABLE              suspend when a space related error is encountered(N)
RESUMABLE_NAME         text string used to identify resumable statement
RESUMABLE_TIMEOUT      wait time for RESUMABLE
COMPILE                compile procedures, packages, and functions (Y)
STREAMS_CONFIGURATION  import streams general metadata (Y)
STREAMS_INSTANTIATION  import streams instantiation metadata (N)

The following keywords only apply to transportable tablespaces
TRANSPORT_TABLESPACE import transportable tablespace metadata (N)
TABLESPACES tablespaces to be transported into database
DATAFILES datafiles to be transported into database
TTS_OWNERS users that own data in the transportable tablespace set

Import terminated successfully without warnings.

What is the "statistics" parameter default value?

Regards
Michel
Re: Statistics gathered during import [message #392206 is a reply to message #392198] Tue, 17 March 2009 00:44 Go to previous messageGo to next message
ora_2007
Messages: 430
Registered: July 2007
Location: Mumbai
Senior Member
Thanks for reply.

The thing is i used STATISTIC=NONE during EXPORT.

So if i will not used STATISTIC=NONE in IMPORT command will it calculate statistics automatically?

Please confirm?

Thanks,
Re: Statistics gathered during import [message #392225 is a reply to message #392206] Tue, 17 March 2009 01:40 Go to previous messageGo to next message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
I don't know; at your place I will verify in the documentation and don't trust in a forum for this.
Did you check in the documentation?

Regards
Michel
Re: Statistics gathered during import [message #392229 is a reply to message #392198] Tue, 17 March 2009 01:56 Go to previous messageGo to next message
ora_2007
Messages: 430
Registered: July 2007
Location: Mumbai
Senior Member
I can trust on you Smile

Anyhow i need statistics.
Just want to confirm does statistics are colleted?

Can i assure on last_analyzed column only?
Means can i assume statistics are collected.

And afterwards oracle itself calculates statistics?(Oracle 10.2.0.1)?


Please confirm.

Re: Statistics gathered during import [message #392239 is a reply to message #392229] Tue, 17 March 2009 02:21 Go to previous message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
I recommend you to not do it during exp/imp but afterwards using dbms_stats.
This is the best choice.

Regards
Michel
Previous Topic: expdp with network_link
Next Topic: Sql Loader
Goto Forum:
  


Current Time: Mon Dec 23 20:25:39 CST 2024