Solved

Core Dumped with TKPROF

Posted on 1998-10-26
8
2,740 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
ID: 1082251
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
ID: 1082252
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
ID: 1082253
Sorry, by the way, this is on SCO UNIX.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Accepted Solution

by:
poncejua earned 50 total points
ID: 1082254
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
 
LVL 3

Expert Comment

by:poncejua
ID: 1082255
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
ID: 1082256
Great stuff! Thanks muchly.


0
 

Expert Comment

by:javiergrandat
ID: 37487531
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
ID: 37487547
I searched for occurances of ",og=0", but the trace doesn't have that string.  Thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

Suggested Solutions

Title # Comments Views Activity
Oracle SQL Select unique values from two columns 4 78
PL SQL Search Across Columns 4 60
Loading flat file data in tables 2 58
Oracle SQL Developer - SubString 2 23
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to recover a database from a user managed backup
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

685 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