Home » RDBMS Server » Server Administration » Slow DataPump with broken DB Links
Slow DataPump with broken DB Links [message #690279] Fri, 14 February 2025 03:47 Go to next message
Frank Naude
Messages: 4593
Registered: April 1998
Senior Member
Second time I run into this issue. The database has several old and broken DB links, or the firewalls have not been opened for the MViews.

The impdp will import the data in record time, even across the network with NETWORK_LINK, especially if PARALLEL is set to a high value. However, it then grinds to a halt on "Processing object type DATABASE_EXPORT/SCHEMA/MATERIALIZED_VIEW."

At this stage, you can see that work is performed serially (so much for the PARALLEL option!), and it takes several minutes to (attempt to) create a single MView. It's so bad that you quickly realize it would be faster to redo the entire import without the MViews. I suppose that reducing the TNS timeout parameters might also help.

Alert.log is flooded with:
Fatal NI connect error 12170, connecting to:
 (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=xxx)(PROTOCOL=TCP)(Host=xxx)(Port=1521))(ADDRESS=(COMMUNITY=xxx)(PROTOCOL=TCP)(Host=xxx)(Port=1526))(ADDRESS=(COMMUNITY=xxx)(PROTOCOL=TCP)(Host=xxx)(Port=1643)))(CONNECT_DATA=(SID=xxx)(SERVER=DEDICATED)(GLOBAL_NAME=xxx)(CID=(PROGRAM=oracle)(HOST=xxx)(USER=oracle))))

  VERSION INFORMATION:
        TNS for Linux: Version 19.0.0.0.0 - Production
        Oracle Bequeath NT Protocol Adapter for Linux: Version 19.0.0.0.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 19.0.0.0.0 - Production
  Version 19.26.0.0.0
  Time: 14-FEB-2025 11:26:09
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535

TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505

TNS-00505: Operation timed out
    nt secondary err code: 0
    nt OS err code: 0
Any other ideas would be greatly appreciated.

[Updated on: Fri, 14 February 2025 03:57]

Report message to a moderator

Re: Slow DataPump with broken DB Links [message #690280 is a reply to message #690279] Fri, 14 February 2025 06:01 Go to previous messageGo to next message
cookiemonster
Messages: 13965
Registered: September 2008
Location: Rainy Manchester
Senior Member
I take it the broken DB links are referenced in the materialized view definitions?
Re: Slow DataPump with broken DB Links [message #690281 is a reply to message #690279] Fri, 14 February 2025 06:50 Go to previous messageGo to next message
John Watson
Messages: 8965
Registered: January 2010
Location: Global Village
Senior Member
If you set
tcp.connect_timeout=1
in your server's sqlnet.ora then any attempt to use a dud link should fail really quickly:
orclz>
orclz> create database link bad using '1.2.3.4:1521/bad';

Database link created.

orclz> set timing on
orclz> select * from dual@bad;
select * from dual@bad
                   *
ERROR at line 1:
ORA-12170: TNS:Connect timeout occurred


Elapsed: 00:00:01.12
orclz>

Re: Slow DataPump with broken DB Links [message #690282 is a reply to message #690281] Fri, 14 February 2025 07:13 Go to previous messageGo to next message
Frank Naude
Messages: 4593
Registered: April 1998
Senior Member
That's good advice - thank you, John!

Making it 1 second will probably cause problems, as we still need to maintain the NETWORK_LINK connection, but the default of 60 is certainly way too high.

Re: Slow DataPump with broken DB Links [message #690283 is a reply to message #690282] Fri, 14 February 2025 07:26 Go to previous message
Frank Naude
Messages: 4593
Registered: April 1998
Senior Member
Here's a blog post describing the same issue:
https://dbtricks.com/?p=475
Previous Topic: How To Calculate/Compute Space Size To Increase for the Undo Tabspace
Goto Forum:
  


Current Time: Sat Feb 22 17:14:23 CST 2025