Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Core Dumped with TKPROF

Posted on 1998-10-26
8
Medium Priority
?
2,795 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
[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
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 3

Accepted Solution

by:
poncejua earned 200 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

722 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