Solved

ORA-06521: PL/SQL: Error mapping function

Posted on 2006-07-14
5
2,482 Views
Last Modified: 2012-06-21
Can someone please help with this.

SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>'RFAPP7',TABNAME=>'CTN_INV')
BEGIN DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>'RFAPP7',TABNAME=>'CTN_INV'); END;
 
*
ERROR at line 1:
ORA-06521: PL/SQL: Error mapping function
ORA-06512: at "SYS.DBMS_STATS", line 10301
ORA-06512: at "SYS.DBMS_STATS", line 10315
ORA-06512: at line 1

 

0
Comment
Question by:jkopoku
5 Comments
 
LVL 14

Expert Comment

by:sathyagiri
ID: 17112143
DOES THE USER RUNNING THE ABOVE HAVE ANALYZE ANY PRIVILEGE?


Also check your trace file for any further info


ORA-06521 PL/SQL: Error mapping function

Cause: An error was detected by PL/SQL trying to map the mentioned function dynamically.

Action: Check the stacked error (if any) for more details.


0
 

Author Comment

by:jkopoku
ID: 17112711
Yes, the user has a the required privilege to execute the sql command.
0
 
LVL 16

Expert Comment

by:MohanKNair
ID: 17114726
The problem is Oracle isn't be able to link a dynamic library.
Does  alert log file show any message?
Is LD_LIBRARY_PATH set?
0
 

Author Comment

by:jkopoku
ID: 17115634
Yes it is set.
oracle920[RFCARE]/users/home/oracle$ echo $LD_LIBRARY_PATH
/ora/product/9.2.0/lib:/usr/openv/netbackup/bin
0
 
LVL 9

Accepted Solution

by:
arioh earned 250 total points
ID: 17127480
have you tried this ?

  dbms_utility.analyze_schema( 'RFAPP7', 'DELETE' );
  dbms_utility.analyze_schema( 'RFAPP7', 'COMPUTE' );

but it's gathering statistics for entire schema
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now