Monday, October 10, 2011

HOW TO HANDLE CORE DUMPS ON UNIX

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem: HOW TO HANDLE CORE DUMPS ON UNIX


Symptoms:

A core dump is an image copy of the state of a process, which is produced if
the process attempts to do something not allowed by the Operating System. The process information is written to a file named "core", which is usually
created in the current working directory of the process.

Some of the things a program might attempt to do that would cause a core dump
include: trying to execute an illegal/unknown instruction, trying to access
memory outside the allowed range, or trying to use an unavailable resource.

A core file contains much information to aid in determining why a process
crashed. One of the things contained in a core file is a called stack trace,
which identifies what commands a process has, or was attempting to execute.

Sometimes a trace file is automatically produced by an Oracle process, and is
normally indicated with an ORA-07445 error. When this occurs, a file with the extension ".trc" will be produced. To find this file, check your
init.ora for the parameters "user_dump_dest" and "background_dump_dest".
The trace file will typically be located in one of these directories.

A trace file is not always produced automatically, and the solution of this
article will discuss how to manually produce a call stack trace.


Search Words:
=============

segmentation fault
ORA-7445
dbx gdb dde adb sdb debug
debugger


Log files:



Solution:



Before attempting to manually create a stack trace from a core file, please
verify the following:

* Your swap space is 2 to 3 times the amount of physical memory (RAM)
installed on the system, or whichever is greater of the following
2 items: 1GB or 2 times the size of all SGAs combined.

You can approximate the size of an SGA with this formula:

((db_block_size * db_block_buffers)+shared_pool+log_buffers)/.9

For help with how to check swap space, refer to PRE 1016233.6.


* You are using a supported compiler/linker. Check the Installation
Guide for Operating System requirements.

NOTE: On Solaris systems, make sure that "/usr/ccs/bin" is
before "/usr/ucb" in the PATH environment variable.
You can confirm this using the following command:

% which ld

The path returned should be "/usr/ccs/bin/ld".


* You have at least 50MB of free space available in "/tmp".


Creating a Stack Trace from a Core File
=======================================

To create a stack trace from a core file, perform the following steps:

1. Determine which executable program caused the core dump:

To determine which executable caused a core dump, change to the
directory where the core file is located, and use the "file"
command.

For example, if you had a core file in your home directory,
"/home/user", use the following commands:

% cd /home/user
% file core

core: ELF 32-bit MSB core file SPARC Version 1, from 'sqlplus'

The "from" information indicates that 'sqlplus' caused the core
dump.

(a) If your system does not display "from" information when using
the "file" command, and your are NOT using SCO UNIX, try the
following command instead:

% cd /home/user
% strings core | head -10

CORE
CORE
CORE
sqlplus <<----- first executable program sqlplus -h system-23_getm TERM=xterms console ORACLE_HOME guicommon/tk2 /SQLPlus/mesg/SP2US.msb This will display the first 10 text entries in the core file. Start at the first line and look for an entry which is an executable program. In the example above, 'sqlplus' caused the core dump. (b) If you are using SCO UNIX, use the following command instead: % cd /home/user % strings core | head -75 | tail -25 2. Determine which debugger exists on your system. There are many different debuggers in the UNIX world. Look at the list below of the most common debuggers, then check your system for one of them. Common debuggers ================ dbx, gdb, dde, adb, sdb, debug If these debuggers exist on your system, they would most likely be located in one of the following directories: /bin, /usr/bin, /opt/langtools/bin, /usr/ccs/bin, /usr/ucb To search your system for a debugger, you can use the "which" command, which will search only the directories in your current PATH, or the "find" command, which can search the entire system. For example, to search for the dbx debugger: % which dbx no dbx ... % find / -name "dbx" -print /usr/ccs/bin/dbx 3. Now that you have located a debugger, you are ready to use it to produce the stack trace. The Unix command "script" will capture the output of a terminal session and write it to a file. You will use "script" to capture the output of the debugger as shown below. First change directories to the location where the core file is located. 4. The next step depends upon which debugger you are using: (a) If you are NOT using the "dde" or "debug" debugger, do this: ------------------------------------------------------------ % script mystack.trc % $ORACLE_HOME/bin/ core

where is the debugger you are using, and
is the executable program which caused the core dump.


(b) If you are using the "dde" debugger, use this command:
------------------------------------------------------

% script mystack.trc
% dde -ui line core $ORACLE_HOME/bin/


(c) If you are using the "debug" debugger, use this command:
--------------------------------------------------------

% script mystack.trc
% debug -c core $ORACLE_HOME/bin/

where is not entered, unless "debug" starts
an X window session, in which case equals
"-i c".


5. Now look at the table below and find your debugger in the first
column, then enter the command in the second column to produce the
stack trace.

debugger command to produce stack
======== ========================
dbx where
gdb bt
dde tb
adb $c
sdb t
debug stack


6. Exit the debugger program:

- if you are using the "adb" debugger, exit using -D

- if you are using any of the other debuggers, exit with the
command "q"


7. After exiting the debugger, issue the command "exit" at the shell
prompt. You should receive a "Script Done" message.


You now have a stack trace in the file named "mystack.trc", and you can send
this file to Oracle Support for further analysis.


Solution Explanation:
=====================

The call stack trace in the "mystack.trc" file can be useful to Oracle Support
in determining why a core dump from an Oracle product occurred.


References:

HOW TO HANDLE CORE DUMPS ON UNIX [ID 1007808.6]


Get Oracle Certifications for all Exams
Free Online Exams.com

11 comments:

Anonymous said...

For some people, renting those games was another option, which yet again burns a hole in their pocket.
One way to test yourself is to deal yourself hand after hand in front of
a mirror and watch yourself as you react to the cards.
In our next article, we'll be tackling using SNES4i - Phone to do exactly that - play those old favorites, like Chono Trigger, Super Ghouls and Ghosts, or even Super Mario Bros 3.

Here is my web page: youtube converter
Also see my web page: prisma-statement.org

Anonymous said...

The fact that Toyota chοse to upgrade the eхterіor styling,
interiοr quality and interior rοominess of the
rеdeѕigned 2012 Yаris hatchbаck rather than upgrading the powеrtrain says
a lot аbout how Τoyotа views the needѕ of small car buyers.

Another thіng you'll need is some strength to endure, because there's a good chance you'll be your own producer for the show or perhaps the best producer the show has. This not only allows listeners to listen to their favorite MP3 files along with their SIRIUS radio; it also lets them digitally record their favorite radio songs for instant playback.

Here is my website online radio
Also see my page: http://thagrow.com/InabjdrCc

Anonymous said...

It can, however, be pre-ordered, as its release date is in the near future.
If you look around your community, our country, and the world, there is little evidence of loving actions.

Hometown Retired households are comprised of retirees,
two-thirds of whom are over 65; nonetheless,
don't assume that these people don't do much more than hang around the house and watch
TV all day. you ask with softness coming back into your voice as you sit on the sand beside me.
I'm hoping that all of you smarter ' more learned authors out there have a way to describe the intensity of this desire that you must have to journey in your
own recovery. It is hard to believe that we are unable to provide
the minimum required comfort to our old ones, destitute women and even orphans.
games for preschoolers. The so-called colloidal silver "blue man,"
Paul Karason, was back on the Today show this
week. a far cry: a long way from. There is a rarely discussed addiction that can
be as enslaving as drugs and as devastating to self-respect, self-confidence and healthy functioning as alcoholism.


Also visit my page ... click through the up coming web page

Anonymous said...

The rig that runs Crysis at 68 FPS will get close to a hundred on older or
less demanding games. "Path of Monstrosity" - This is for players that want a
little better defense and wanting to hit multiple targets.
You can join the millions of people who play online
bingo.

my page; online Games

Anonymous said...

This is a common misconception which will be resolved only with firsthand
experience. ''. The race is becoming even more challenging with the
passing of each day. Working with an SEO
expert in your country can help as SEO experts within the
same country generally know how to optimize websites for a specific
country's audience more effectively. A dedicated SEO expert will devote all the attention and effort in enhancing the visibility of your website or business in the online world. Enough said. Since keyword analysis is needed for both SEO (search engine optimization) and SEM, we often confuse using these terms. This means that they follow only the steps given to them by Google and other major search engines. Moreover, some companies are not able to get the desired results and their techniques might even have bad effects on the business's website.
What are the advantages of article submission.
It is a sagacious process that has become even tougher with the continuous changes in the algorithm of the major search
engines especially Google. However, in general, SEO services
involve using standard and compliant coding. Now even that is quickly defining
point of Search Engine Optimization (SEO) can lead to intense discussions about the meaning and purpose of SEO.
No - you name some of your images "breast. Once you find the right and affordable SEO Company, it is essential to talk about your business objectives, target customers and future goals with the professionals to help them develop their strategies accordingly. Originally posted at: digitalmoz. With most visitors noting the first 3-5 web links of the first page, further sustained SEO efforts bring the company web link to that web positioning high up as much as possible. You will not even get to a 1 or 2 until Google has fully crawled your website or blog enough to give it a ranking. Such companies know the best about industry and market trends. November 2012.

Here is my web page ... http://rayelpee.com/

Anonymous said...

While it is one thing to have a social media profile on an
online community like Deviant - ART, it is a whole other thing entirely
to have fitted it with an effective SEO strategy. If you encourage your visitors to write their original
reviews about your products instead of coping reviews from competitive websites to show you have circulation and satisfied customers,
your website is more likely to earn higher ranking
in the major search engines. The race is becoming even more challenging
with the passing of each day. Naturally, they will flock to your competitor who does.
Is professional search engine marketing the thing that you need.
Meta Name and Meta Description Tags are two of the important ones.
Domain Authority is influenced by:. This means that they follow only the steps given to them by Google and other major search engines.

Its professionals would do hard work to achieve the high
traffic objective and they might taste success in their attempt but
they would desist from boasting anything about their success.
Be sure that the SEO outsourcing company you hire
is capable of communicating properly. organic search, frequency of blog posts, frequency
of on-page optimization, the relative importance of links, the use of social media, the best way
to measure results, etc. However, in general, SEO services involve
using standard and compliant coding. Advertise by Selling Branded Products.

Here you will need an SEO agency such as Webfirm to try and
run damage limitation. These professionals follow ethical SEO strategy and effectively implement it that finally
increases your website visibility. G) SEO basics -Image 6: Open
Google. Today, it is necessary that you scout the market for the best SEO
Host that can help you achieve this. But be aware of the traffic
issue. You need the keyword and phrase in both
title and description. This is more of an indirect way of getting direct traffic to your e - Bay store.


Also visit my web-site :: emocionlatina.ziofabb.com
My webpage: mouse click the up coming web site

Anonymous said...

Thank you for every other fantastic article. Where else may
anyone get that type of info in such an ideal manner of
writing? I have a presentation subsequent week, and I'm at the look for such information.

Visit my page; youtube converter

Anonymous said...

"Is there really no way to transfer my VC and Wii - Ware games from my Wii to another. You will eventually run into the Download Location menu with two options: Wii System Menu and SD Card. The player guides Phen through 10 levels of dungeon gameplay, finding a whole host of weapons and other items as well.

Look at my weblog :: myvideo downloader

Anonymous said...

Ѕweet blog! ӏ founԁ it whіlе ѕurfing arοunԁ οn Yahoo News.
Do you have аnу suggestions on how to gеt listed in Υahoo Nеws?
I've been trying for a while but I never seem to get there! Thanks

Here is my webpage myvideo downloader

Anonymous said...

Although yοu can't go back to any songs, you can skip songs, mark them as ones you like or dislike, and browse the names, bands, and CD the song is on of all the songs that have played already. (Check out the article: What's Really Out Τhere in the Night Sky to see hoω
ѕоme celestial objects apρеar at different EM frequenсіes.

Thіs not οnly allοws listеners to liѕten
tο their faνorіte ΜP3 files
аlong ωith theiг SIRIUS radio; it alsο letѕ them digitally record their fаvorite rаdio sοngs for instant playbаck.


Herе іѕ mу weblоg
just click the following document
My website > videos von youtube downloaden

Anonymous said...

If there is a change in the search engine algorithms, it is also up to the service provider to keep a watch on such activities.
''. Search engine marketing (SEM) is an essential a part of any site promotion
strategy. Naturally, they will flock to your competitor
who does. It's so important because once customers begin seeking your product or service you will want to have favorable words making your search results optimized. There are so many good blogs out there, and if you're one of those writers,
you definitely know how important it is that your site gets heard through all of the noise.
Since keyword analysis is needed for both SEO (search engine
optimization) and SEM, we often confuse using these terms. Relevant keywords ought to be used in the alt tags.
Google bowling messes up the external ranking used by Google and penalizes a sites ranking compared it the competitors.
Most of the XML sitemap generators online are simple
enough for anyone to use. They want to know things about how to create effective copy, general marketing tips
and maybe even stuff about social media. For instance, how many TV viewers then came to your
car lot and purchased a vehicle. Effective SEO techniques for Bloggers aren't any different. You can Google maps link for your website, which will be very helpful if any person search in images sections. Create a general, high-level category in which you want to manage all phrases'for example 'global,' 'online,' 'channel,' and
so on. Why. You need to try to find reputed SEO consultants.
But be aware of the traffic issue. The content must complement the theme of the website
design. Image Optimization is also a part of
SEO services in Pune.

Feel free to visit my web site ... linked webpage