Solved

ORA-06521: PL/SQL: Error mapping function

Posted on 2006-07-14
5
2,539 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
xBase++ 6 83
LDAP find expired users 8 69
Access Database - Manually changing xid value 7 55
Do we need servers??? 5 187
I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
This article describes some very basic things about SQL Server filegroups.
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…

932 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

12 Experts available now in Live!

Get 1:1 Help Now