RE: how to improve impdp

From: Allen, Brandon <Brandon.Allen_at_OneNeck.com>
Date: Tue, 16 Jul 2013 22:03:35 +0000
Message-ID: <A250F0C68C23514CA9F3DF63D60EE10E1D07DA61_at_onews31>



I agree with David and Prabhu - the LOB segments should be dropped automatically with the table and what you're seeing is probably either objects in the recyclebin, or possibly LOB segments for some tables that weren't dropped because they're in a different schema or something like that so you might want to double check those things and if you are certain neither of those apply, then it sounds like it might be a bug and you might want to open an SR.

-----Original Message-----

From: Hsieh, Joan [mailto:Joan.Hsieh_at_tufts.edu] Sent: Tuesday, July 16, 2013 1:39 PM
To: Hsieh, Joan; Allen, Brandon; oracle-l_at_freelists.org Subject: RE: how to improve impdp

Hi Brandon,

I have managed to drop all the tables and all views, it is much faster than drop user cascade. However, there are a lot of SYS_LOB%$$ LOBSEGMENT left. I couldn't find any drop statement to drop all these LOB objects. Does anyone know how?

Thanks,

joan

-----Original Message-----

From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Hsieh, Joan Sent: Wednesday, July 10, 2013 1:14 PM
To: Allen, Brandon; oracle-l_at_freelists.org Subject: RE: how to improve impdp

Thanks, Allen.
I'll try it later. My database is 11.2.0.3. Your information is very valuable. ORACLE SR had asked me to generate a trace file for them to review.

Thank you again.

Joan

From: Allen, Brandon [mailto:Brandon.Allen_at_OneNeck.com] Sent: Wednesday, July 10, 2013 12:48 PM
To: Hsieh, Joan; oracle-l_at_freelists.org Subject: RE: how to improve impdp

Hi Joan,

Regarding the slowness of your "drop user cascade" statement - you may be encountering bug 6915130 if you're on Oracle 10.2, or maybe a similar bug in different versions. The work around is to drop all the user's objects first (use SQL* to create a script for doing this quickly) and then drop the user.

Regards,
Brandon

*Something like this should work:

set term off
spool drop_tables.sql
set pages 0
set lines 150
set head off
set feed off
select 'drop table ' || owner || '.' || table_name || ' cascade constraints;' from dba_tables where owner = '<USERNAME>' order by table_name; spool off set head on set feed on set pages 1000 set term on

From: "Hsieh, Joan" <Joan.Hsieh_at_tufts.edu<mailto:Joan.Hsieh_at_tufts.edu>>

Subject: RE: how to improve impdp

Date: Tue, 9 Jul 2013 18:31:50 +0000

Hi David,

The database is dataguard environment, so it has to be in archive mode. In cutover time windows, I don't want to break the standby database and have to recreate it later. Our cutover time is combined the AIX database move to LINUX and one peopletools upgrade. So there are two projects going on in the same open window. Peoplesoft tech team it is ok just import data only without the statistics and indexes since both can be taken care in the peoplesoft upgrade. I'm trying to do another test without statistics and indexes.

"Drop user sysadm cascase" on the new LINUX server take almost the whole day to finish. That's another issue.

Joan


Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

--

http://www.freelists.org/webpage/oracle-l


Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.
--

http://www.freelists.org/webpage/oracle-l Received on Wed Jul 17 2013 - 00:03:35 CEST

Original text of this message