Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-06520 ORA-06522

196727May 15 2004
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?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 12 2004
Added on May 15 2004
0 comments
343 views