ORA-06520 ORA-06522
I am trying to execute external procedure placed in shell.so. I created lib and procedur ein oracle:
SQL> CREATE OR REPLACE LIBRARY shell_lib is '/opt/oracle/product/9.2.0/lib/shell.so';
2 /
Library created.
SQL> create or replace procedure shellas(cmd IN char) as external name "sh" library shell_lib language C parameters (cmd string);
2 /
Procedure created.
When I am executing this procedure I get:
SQL> exec shellas('ls');
BEGIN shellas('ls'); END;
*
ERROR at line 1:
ORA-06520: PL/SQL: Error loading external library
ORA-06522: /opt/oracle/product/9.2.0/lib/shell.so: ELF file's phentsize not the
expected size
ORA-06512: at "NSO.SHELLAS", line 0
ORA-06512: at line 1
Where is the problem? What I can do about this?