Solved

ORA-06521: PL/SQL: Error mapping function

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
.lee file containing data 5 50
subtr returning incorrect value 8 70
user database (login sql or login windows) 3 31
Dump data from mysql to xls php 10 25
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…

730 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