?
Solved

ORA-06521: PL/SQL: Error mapping function

Posted on 2006-07-14
5
Medium Priority
?
2,929 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 750 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

777 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