ORA-6522 ORA-06520 Reported on Starting the MGW Agent (Doc ID 344786.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 9.X to 10.X
HP-UX PA-RISC (64-bit)

Symptoms

Trying to setup MGW on HP-UX platform, but agent cannot be started

exec dbms_mgwadm.startup fails with the following errors

SELECT AGENT_STATUS, AGENT_PING, LAST_ERROR_MSG FROM MGW_GATEWAY;

NOT_STARTED
ORA-06520 : PL/SQL: Error loading external library
ORA-06552 : Exec format error

Environment is set correctly:

Listener. ora

 Listener =
(ADDRESS_LIST =
(ADDRESS= (PROTOCOL= IPC)(KEY= EXTPROC))
(ADDRESS= (PROTOCOL= TCP)(Host=hostname  )(Port= 1526))
)

SID_LIST_Listener =
(SID_DESC =
(SID_NAME = mgwextproc)
(ENVS="(ENVS=
EXTPROC_DLLS=[ORACLE_HOME]/lib32/libmgwagent.sl,LD_PRELOAD=[ORACLE_HOME]/jdk/jre/lib/PA-RISC/server/libjvm.sl, SHLIB_PATH=[ORACLE_HOME]/jdk/jre/lib/PA_RISC:[ORACLE_HOME]/jdk /jre/lib/PA_RISC/server:[ORACLE_HOME]/lib32)"
(ORACLE_HOME =[ORACLE_HOME])
(PROGRAM = extproc32)
)

Mgw.ora

set
SHLIB_PATH=[ORACLE_HOME]/jdk/jre/lib/PA_RISC:[ORACLE_HOME]/jdk/jre/lib/PA_RISC/server:[ORACLE_HOME]/lib32

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms