Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the dbx command?

SOLVED
Go to solution
楊景隆_1
Occasional Visitor

How to use the dbx command?

hi.

I want to capture process call stack.
and i find the process first

# ps -e | grep lm
1254116 ?? R 4:14.74 ora_lmon_au3test2

and


# dbx -pid 1254116
dbx version 5.1
Type 'help' for help.

dbx: fatal error: can't open a.out

how to correct the command ? thanks.

Mashburn
10 REPLIES
Venkatesh BL
Honored Contributor

Re: How to use the dbx command?

Use:
# dbx -pid 1254116

ex:
# dbx -pid 1254116 /usr/tmp/ora_lmon_au3test2
楊景隆_1
Occasional Visitor

Re: How to use the dbx command?

# dbx -pid 1254116 /usr/tmp/ora_lmon_au3test2
dbx version 5.1
Type 'help' for help.

dbx: fatal error: can't open /usr/tmp/ora_lmon_au3test2
# pwd
/var/cluster/members/member2/tmp
# dbx -pid 1254116 test.txt
dbx version 5.1
Type 'help' for help.

dbx: fatal error: can't open test.txt
# touch test.txt
# dbx -pid 1254116 test.txt
dbx version 5.1
Type 'help' for help.

dbx: fatal error: can't open test.txt
Michael Schulte zur Sur
Honored Contributor

Re: How to use the dbx command?

Hi,

I doubt, the executable of ora_lmon_au3test2 is in /usr/tmp.
BL said, you have to specify the complete path to ora_lmon_au3test2. /usr/tmp was only meant as an example.

greetings,

Michael
楊景隆_1
Occasional Visitor

Re: How to use the dbx command?

Dear all:

thanks a lot!
So i need to have the execution file of the process to use DBX ?
But the process are folked by Oracle Database , i can't find them .



Mashburn
Michael Schulte zur Sur
Honored Contributor

Re: How to use the dbx command?

Hi,

what processes do you want to debug?

Michael
楊景隆_2
Occasional Visitor

Re: How to use the dbx command?

hi.

I want to debug the lock monitor ,
lmd , lms process !
Because we have Oracle RAC issue!

# ps -ef | grep lm
oracle 527005 524289 0.2 Jul 24 ?? 37:41.99 ora_lmon_au3prod1
oracle 527007 524289 0.0 Jul 24 ?? 06:50:51 ora_lmd0_au3prod1
oracle 527009 524289 1.1 Jul 24 ?? 09:35:42 ora_lms0_au3prod1
oracle 527011 524289 0.7 Jul 24 ?? 04:53:16 ora_lms1_au3prod1

Thanks Mashburn
Michael Schulte zur Sur
Honored Contributor
Solution

Re: How to use the dbx command?

Mashburn,

try the following:
cd $ORACLE_HOME/bin
/usr/sbin/fuser oracle

compare the pids with the processes you want to debug. I think they use oracle.
Do you have access to metalink?

Michael
楊景隆_2
Occasional Visitor

Re: How to use the dbx command?

hi.

Sorry for late reply!and i do that as below from meta-link ,i will ask Oracle for more details!

thanks Mashburn

From meta-link
-------------------------------
08-AUG-05 07:44:41 GMT

.
UPDATE
=======

Do the following

dbx -pid ${PID_LMS} [Path of Oracle.exe]
Will cross check the same with BDE.

----------------------------------
Michael Schulte zur Sur
Honored Contributor

Re: How to use the dbx command?

Hi Mashburn,

please use the original login.

thanks,

Michael
楊景隆_1
Occasional Visitor

Re: How to use the dbx command?

hi.

ok! sorry about that.

Mashburn