Solved

Core Dumped with TKPROF

Posted on 1998-10-26
8
2,689 Views
Last Modified: 2012-01-24
I get a Memory Fault - core dumped when I try running tkprof on a .trc file.  Is there a problem with my istallation of the product or are there set up parameters that can be adjusted to fix this problem?
0
Comment
Question by:rderidder
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 3

Expert Comment

by:junfeb
Comment Utility
This sometimes happens when your trace file has been truncated for some reason. A good reason why the trace file might get truncated is because of your dump file size parameter. Increase your max_dump_file_size init.ora parameter.

On solaris there was an oracle bug with earlier versions of 7. Please call oracle.

also check the oracle_sid is set properly.
0
 

Author Comment

by:rderidder
Comment Utility
My trc file is only 2k and despite the fact that I set the max_dump_file_size variable to a value substantially larger than 2k, I still received the same error.
0
 

Author Comment

by:rderidder
Comment Utility
Sorry, by the way, this is on SCO UNIX.
0
 
LVL 3

Accepted Solution

by:
poncejua earned 50 total points
Comment Utility
If you checked the ORACLE_SID perhaps you're experimenting 263736 and 243801 bugs.

You have to upgrade to Oracle RDBMS version 7.2.3.  (These bugs are fixed in this release) or try the following workaround:  

Edit the .trc file to be fed to TKPROF.  
Change all occurances of:              
",og=0"       to             ",og=4"  

Solution Explanation:
=====================  
The Optimizer goal (og) is '0' in the trace file.  TKPROF is not expecting a zero value.  By changing that value to '4', the execute will occur.  
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 3

Expert Comment

by:poncejua
Comment Utility
Other tip to check out:

This article gives details on a problem reported in <Bug:376851>.
<Bug:376851> TKPROF utility segmentation fault (core dumps) on some platforms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Versions Affected  
~~~~~~~~~~~~~~~~~
    This problem was introduced in Oracle7 release:  7.3.2.1
    This problem is fixed in Oracle7 release:        7.3.3  
Description
~~~~~~~~~~~
    In Oracle 7.3, on some platforms, running the tkprof utility against SQL trace files generated from SQLPLUS will result in a segmentation fault.


Platforms affected  
~~~~~~~~~~~~~~~~~~    
Include the following:
        Digital Unix        IBM RS/6000 AIX        IBM SP AIX
        Sequent DYNIX/ptx        Windows NT  

Workaround/s  
~~~~~~~~~~~~
    To avoid this problem remove the APPNAME line from the trace file, which can be done as follows on Unix platforms:
        grep -v APPNAME file.trc > newfile.trc
then use the tkprof utility on the newfile.trc in the usual way.
There are no patches available for this problem, the workaround described here should be used.
Please contact Oracle Worldwide Support to find out if 7.3.3 or higher is available for your platform.
0
 

Author Comment

by:rderidder
Comment Utility
Great stuff! Thanks muchly.


0
 

Expert Comment

by:javiergrandat
Comment Utility
Good Morning!!  I have Oracle 9 and i'm getting Memory fault when I try running tkprof on a .trc file.  It's weird because before, I could generate the tkprof without any problem, but later the error started to appear and we don't know the reason.  Thanks.
0
 

Expert Comment

by:javiergrandat
Comment Utility
I searched for occurances of ",og=0", but the trace doesn't have that string.  Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and theā€¦
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

772 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

14 Experts available now in Live!

Get 1:1 Help Now