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
Solved

Core Dumped with TKPROF

Posted on 1998-10-26
8
2,730 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
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

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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
Performance issue with case statement in oracle 11G 7 80
Oracle Public Synonyms and Privileges 2 73
Oracle - Query link database loop 8 40
Row_number in SQL 6 33
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
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.  …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
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

808 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