Solved

Core Dumped with TKPROF

Posted on 1998-10-26
8
2,772 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

617 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