天天看點

Oracle expdp 優化,cursor_sharing參數對于expdp的性能影響

cursor_sharing參數對于expdp的性能影響

Oracle expdp 優化,cursor_sharing參數對于expdp的性能影響

[[email protected] backup]$ expdp smg/smg directory=backup dumpfile=sms2.dmp schemas=SMGSTAT

Export: Release 10.2.0.2.0 - Production on Wednesday, 29 December, 2010 15:14:30

Copyright (c) 2003, 2005, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production

With the Partitioning, OLAP and Data Mining options

Starting "SMGSTAT"."SYS_EXPORT_SCHEMA_02":  smg/******** directory=backup dumpfile=sms2.dmp schemas=SMG

Estimate in progress using BLOCKS method...

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 22.57 GB

Processing object type SCHEMA_EXPORT/USER

Processing object type SCHEMA_EXPORT/SYSTEM_GRANT

Processing object type SCHEMA_EXPORT/ROLE_GRANT

Processing object type SCHEMA_EXPORT/DEFAULT_ROLE

Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

Processing object type SCHEMA_EXPORT/DB_LINK

Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE

Processing object type SCHEMA_EXPORT/TABLE/TABLE

Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT

Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX

Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT

Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS

Processing object type SCHEMA_EXPORT/TABLE/COMMENT

Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE

Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE

Processing object type SCHEMA_EXPORT/VIEW/VIEW

Processing object type SCHEMA_EXPORT/TABLE/TRIGGER

Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

Processing object type SCHEMA_EXPORT/JOB

. . exported "SMGSTAT"."MM_HIS"                          3.238 GB 15465541 rows

. . exported "SMGSTAT"."MM_HIS"                          1.317 GB 16579390 rows

.......

. . exported "SMGSTAT"."TEMP_SMSSTAT_MOMT_HOUR"              0 KB       0 rows

. . exported "SMGSTAT"."T_BMS_U2R"                           0 KB       0 rows

Master table "SMGSTAT"."SYS_EXPORT_SCHEMA_02" successfully loaded/unloaded

******************************************************************************

Dump file set for SMGSTAT.SYS_EXPORT_SCHEMA_02 is:

/data3/backup/sms2.dmp

Job "SMGSTAT"."SYS_EXPORT_SCHEMA_02" successfully completed at 16:17:55由于cursor_sharing是一個動态參數,是以可以在執行expdp之前進行修改,然後執行導出:

SQL> show parameter cursor

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

cursor_sharing                       string      EXACT

cursor_space_for_time                boolean     FALSE

open_cursors                         integer     300

session_cached_cursors               integer     20

SQL> alter system set cursor_sharing=similar scope=memory;

System altered.這是最近遇到的cursor_sharing的又一重要不利影響。

By eygle on 2011-01-01 08:16 |

Comments (1) |

Backup&Recovery | 2691 |

1 Comment

元旦,就開始調試!

加油,預祝新年生意紅火