Linux TOP command with bash

Hai all,,
We've oracle EBS runnin on oracle RHEL ES 4..
command bash consumes 100% of CPU....
is this normal ? ..
[oraprod@alioracle bdump]$ top
top - 10:16:57 up 7 days, 1:29, 4 users, load average: 1.01, 1.10, 1.09
Tasks: 453 total, 2 running, 451 sleeping, 0 stopped, 0 zombie
Cpu(s): 13.1% us, 0.4% sy, 0.0% ni, 85.5% id, 0.9% wa, 0.0% hi, 0.0% si
Mem: 4148304k total, 4127872k used, 20432k free, 12788k buffers
Swap: 8217236k total, 161224k used, 8056012k free, 2832452k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24420 root 25 0 13732 9568 1212 R 100 0.2 3995:21 bash1383 oraprod 16 0 2260 1184 756 R 1 0.0 0:00.34 top
18284 applprod 16 0 11428 8128 2644 S 1 0.2 1:33.43 FNDLIBR
16801 applprod 16 0 779m 205m 13m S 0 5.1 6:23.68 java
16803 applprod 16 0 749m 57m 8448 S 0 1.4 1:43.99 java
18331 oraprod 16 0 614m 275m 274m S 0 6.8 15:47.31 oracle
18587 oraprod 16 0 614m 182m 179m S 0 4.5 0:14.18 oracle
1 root 16 0 1876 592 504 S 0 0.0 0:06.31 init
2 root RT 0 0 0 0 S 0 0.0 0:00.48 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.19 migration/1
output of sar :
Linux 2.6.9-42.ELsmp (alioracle.ali.com.kw) 11/11/2007
10:16:07 AM CPU %user %nice %system %iowait %idle
10:16:08 AM all 12.59 0.00 0.12 0.00 87.28
10:16:09 AM all 12.62 0.00 0.00 0.00 87.38
10:16:10 AM all 13.09 0.00 0.25 0.50 86.16
10:16:11 AM all 12.75 0.00 0.12 0.00 87.12
10:16:12 AM all 12.62 0.00 0.00 0.00 87.38
Average: all 12.74 0.00 0.10 0.10 87.06
[oraprod@alioracle bdump]$ ps -ef | grep bash
root 27225 27223 0 Nov08 pts/2 00:00:00 bash
root 24420 27223 98 Nov08 pts/4 3-18:58:18 bash
oraprod 27943 27942 0 08:42 pts/1 00:00:00 -bash
support 5186 5159 0 10:24 pts/5 00:00:00 -bash
root 5233 5219 0 10:24 pts/5 00:00:00 -bash
oraprod 6771 27943 0 10:39 pts/1 00:00:00 grep bash
if abnormal, can u let me know how to solve this issue ?
Thanks
Yusuf

It looks like this process (24420) run for a long time...
I'm not sure it's related to EBS running on this machine.
Try to shutdown all EBS components on this machine and check if this process still exist.
Aviad

Similar Messages

  • Query on Linux 'top' command in Linux for oracle user

    This is the output of 'top' command in one of my linux server hosting One Oracle instance with 600MB SGA and 400MB PGA. One one instance is up in this server.
    top - 14:36:37 up 4:26, 3 users, load average: 0.05, 0.11, 0.28
    Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie
    Cpu(s): 0.2% us, 0.1% sy, 0.0% ni, 66.6% id, 33.1% wa, 0.0% hi, 0.0% si
    Mem: 12299332k total, *2569836k* used, 9729496k free, 61288k buffers
    Swap: 20972816k total, 0k used, 20972816k free, 2274852k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    6345 oracle 16 0 37132 1752 1172 S 0.0 0.0 0:00.08 sshd
    6346 oracle 16 0 54004 1536 1208 S 0.0 0.0 0:00.02 bash
    6423 oracle 16 0 45376 10m 6228 S 0.0 0.1 0:00.25 tnslsnr
    6471 oracle 16 0 740m 17m 13m S 0.0 0.1 0:00.02 oracle
    6473 oracle 16 0 739m 15m 12m S 0.0 0.1 0:00.01 oracle
    6475 oracle 16 0 739m 32m 29m S 0.0 0.3 0:00.07 oracle
    6477 oracle 16 0 742m 50m 44m S 0.0 0.4 0:00.27 oracle
    6479 oracle 16 0 754m 23m 19m S 0.0 0.2 0:00.43 oracle
    6481 oracle 16 0 739m 24m 20m S 0.0 0.2 0:00.61 oracle
    6483 oracle 16 0 740m 88m 83m S 0.0 0.7 0:00.71 oracle
    6485 oracle 16 0 739m 22m 19m S 0.0 0.2 0:00.01 oracle
    6487 oracle 16 0 740m 30m 25m S 0.0 0.3 0:00.15 oracle
    6489 oracle 16 0 741m 55m 48m S 0.0 0.5 0:00.29 oracle
    6491 oracle 16 0 739m 24m 20m S 0.0 0.2 0:00.01 oracle
    6493 oracle 16 0 739m 15m 11m S 0.0 0.1 0:00.01 oracle
    6495 oracle 16 0 739m 14m 11m S 0.0 0.1 0:00.00 oracle
    6622 oracle 16 0 739m 16m 13m S 0.0 0.1 0:00.00 oracle
    6626 oracle 16 0 740m 79m 74m S 0.0 0.7 0:01.95 oracle
    6636 oracle 16 0 740m 28m 23m S 0.0 0.2 0:00.06 oracle
    6638 oracle 16 0 739m 16m 12m S 0.0 0.1 0:00.01 oracle
    6846 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    6848 oracle 16 0 739m 24m 21m S 0.0 0.2 0:00.04 oracle
    6850 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    6852 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.01 oracle
    6854 oracle 16 0 739m 30m 26m S 0.0 0.3 0:00.12 oracle
    6856 oracle 15 0 739m 28m 24m S 0.0 0.2 0:00.18 oracle
    6858 oracle 15 0 740m 40m 35m S 0.0 0.3 0:06.39 oracle
    6862 oracle 16 0 739m 32m 28m S 0.0 0.3 0:02.25 oracle
    6864 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    6866 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.03 oracle
    6868 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    7480 oracle 15 0 37264 1668 1092 S 0.0 0.0 0:00.15 sshd
    7481 oracle 15 0 54004 1528 1196 S 0.0 0.0 0:00.05 bash
    10333 oracle 16 0 739m 20m 16m S 0.0 0.2 0:00.00 oracle
    10337 oracle 15 0 6168 1080 768 R 0.0 0.0 0:00.00 top
    Total RAM as seen from top command is 12G.
    *2569836* - Total RAM which is being used currently .
    How can I see the total RAM used by all Oracle Processes running in this server. The server is Linux X86 64 Bit. Can I sum up the values under 'VIRT' column of 'top' command to see the total RAM used ?
    Is there a way to see the total RAM and CPU used by Oracle from top ?
    'VIRT' is the virtual memory - In what way is this related to the figure above, which is the physical memory (RAM) ?
    Thanks in Advance
    SSN
    Edited by: SSNair on Oct 21, 2010 2:39 AM

    Oracle used shared memory to implement the SGA, which constituted the largest memory consumption of the Oracle instance. The problem is that in many modern OS, including linux, it is hard to define the actual memory usage fo a software. This is because the memory used by a process is actually composed of shared (e.g., shared memory, shared library, executable code) and private (e.g., the heap, the stack) components. Utilities like top, ps, etc reports all memory visible by a process, disregarding whether it is shared or not. As a result, the total of VIRT etc will be inflated by the shared components. For a more accurate figure of memory usage, shared memory / library / code should be counted once.
    Before 11g, Oracle used System V ipc, and the amount of memory allocated can be checked using ipcs. In 11g, Oracle switched to /dev/shm, use df to check the memory allocation. (Thanks user11150436)
    The "Mem used" figure in top is the actual usage of the memory: shared memory and library are not multi-counted. However, Linux will always cache (read before actually requested) and buffer (write after signalling completion) disk I/O. Therefore, "Mem used" is almost always very close to the amount of physical memory. "Mem used" - "buffers" - "cached" reflects the memory actually used by the OS and all programs more accuately.
    And you can use the pmap utility to check the memory map. Then you classify the sharable and unsharable memory usage to calculate a more accurate result suiting your need. You need OS knowledge to understand the output.

  • Executing the top command through Java in linux

    I am trying to execute the top command in Java as
    Runtime.getRuntime().exec("top -n 1 >a.log");
    But the command is not working in linux only through java.When i run the same command through the prompt it is working fine.Also all other commands are working fine.Is there any issue with top in linux?

    flounder wrote:
    Try reading [this article|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]. If it does not answer your problem then try seaching for other similar articles.
    The cited article does provide an answer to the problem since it explains how the shell meta character '>' must be interpretted by a shell. The code as presented does not invoke a shell.

  • How do I run a snmpwalk/any bash command as a Linux/Unix command (2 state monitor) on a Isilon storage device

    Is there a way that I can run a snmpwalk / isi devices (to find the status of the disk drives in islon) / any Linux bash command using a 2 state monitor Unix/Linux shell command and target a storage device (Isilon in my case) and not target a Unix/Linux
    machine. I tried creating one and it complained saying,
    Is there a way I could run a bash command in my isilon storage and use the ouput to determine the state of the monitor? Please let me know
    Hari V

    For Unix/Linux shell command in Operation Manager to monitor 2 state, you can refer to below link
    http://contoso.se/blog/?p=2680
    http://stefanroth.net/2012/10/21/scom-2012-linux-two-state-monitor-with-script-in-script/
    http://operatingquadrant.com/2012/02/01/opsmgr-2012-unixlinux-authoring-templates-more-information-on-the-shell-command-templates/#more-746
    Please remember, if you see a post that helped you please click (Vote As Helpful" and if it answered your question, please click (Mark As Answer).

  • Stopping OC4J with a Linux kill command -- is it OK?

    Hello All,
    Has anyone had any problems with stopping OC4J using the Linux kill command?
    Is this the appropriate way to stop OC4J in Linux?
    We've had a problem several times where OC4J did not seem to stop completely, and, subsequently, wouldn't start.
    I decided to try and avoid using the kill command and instead use the "stop" command employed by MS Windows installations.
    But in Linux it produced errors in the oc4j log file.
    The stop command I am testing right now in Linux is identical to its counterpart in Windows. It looks like this:
    java -jar $ORACLEBI_HOME/oc4j_bi/j2ee/home/admin.jar ormi://localhost:23791 oc4jadmin `~/.ops/.ex oc4jadmin` -shutdown
    The `~/.ops/.ex oc4jadmin` part is just a crafty Linux way of hiding the password.
    The errors generated in OracleBIData/web/log/javahost.out.log are as follows:
    <br>
    <br>
    <br>
    <br>
    Mon Apr 27 18:24:14 PDT 2009
    Stopping Java Host...
    Apr 27, 2009 6:24:14 PM MessageProcessorImpl processMessage
    WARNING: Unexpected exception. Connection will be closed
    java.io.EOFException
    at com.siebel.analytics.web.sawconnect.sawprotocol.SAWProtocol.readInt(SAWProtocol.java:167)
    at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:133)
    at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
    at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
    at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
    at java.lang.Thread.run(Thread.java:619)
    Apr 27, 2009 6:24:15 PM MessageProcessorImpl processMessage
    WARNING: Unexpected exception. Connection will be closed
    java.io.EOFException
    at com.siebel.analytics.web.sawconnect.sawprotocol.SAWProtocol.readInt(SAWProtocol.java:167)
    at com.siebel.analytics.javahost.MessageProcessorImpl.processMessage(MessageProcessorImpl.java:133)
    at com.siebel.analytics.javahost.Listener$Job.run(Listener.java:223)
    at com.siebel.analytics.javahost.standalone.SAJobManagerImpl.threadMain(SAJobManagerImpl.java:205)
    at com.siebel.analytics.javahost.standalone.SAJobManagerImpl$1.run(SAJobManagerImpl.java:153)
    at java.lang.Thread.run(Thread.java:619)
    waiting for javahost process to complete (pid:28305)
    ./shutdown.sh: line 51: wait: pid 28305 is not a child of this shell
    Apr 27, 2009 6:24:16 PM Startup shutdown
    INFO: Server shutdown request received.
    Apr 27, 2009 6:24:16 PM Acceptor listen
    SEVERE: Server socket was closed.
    java.nio.channels.AsynchronousCloseException
    at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:185)
    at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:152)
    at com.siebel.analytics.javahost.Acceptor.listen(Acceptor.java:92)
    at com.siebel.analytics.javahost.ApplicationImpl.listen(ApplicationImpl.java:41)
    at com.siebel.analytics.javahost.standalone.Main.listen(Main.java:33)
    at com.siebel.analytics.javahost.standalone.Main.main(Main.java:28)
    Apr 27, 2009 6:24:16 PM Application listen
    INFO: Stopped listening socket port
    Apr 27, 2009 6:24:16 PM Application listen
    INFO: Closed open sockets
    Apr 27, 2009 6:24:16 PM Main listen
    INFO: Canceled pending jobs. Exiting
    <br>
    <br>
    <br>
    <br>
    I have absolutely no idea what these error messages mean.
    I saw that there is an option to do a "-shutdown force" as opposed to just "-shutdown". Should I use that?
    Or should I revert back to using the Linux kill command?
    Thank you very much for any help or insight.
    -sb

    Hello All,
    The start and stop scripts that I posted earlier in this discussion thread are outdated. In fact, the stop script is wrong.
    The ones I am posting below are actually what I am using right now. These are still work in progress, though.
    Just wanted to post the correct stuff in case someone is interested.
    obistart.sh
    <br>
    <br>
    # Start the BI server.
    echo "$(basename "$0"): Now initiating the BI server startup..."
    $ORACLEBI_HOME/setup/run-sa.sh start
    success=
    while \[ ! $success \]
    do
    status=`tail -1 $ORACLEBI_HOME/server/Log/NQServer.log 2>/dev/null`
    \[\[ $status =~ "Oracle BI Server started" \]\] && success=yes
    done
    echo $status
    echo
    # Start the presentation server.
    echo "$(basename "$0"): Now initiating the presentation server startup..."
    $ORACLEBI_HOME/setup/run-saw.sh start
    sleep 3
    echo
    # Start the OC4J server.
    echo "$(basename "$0"): Now initiating the OC4J server startup..."
    nohup $ORACLEBI_HOME/setup/oc4j -start > $ORACLEBI_HOME/setup/nohup_oc4j_start.out &
    echo $! > $ORACLEBI_HOME/setup/nohup_oc4j_start.pid
    <br>
    <br>
    obistop.sh
    <br>
    <br>
    # Stop OBIEE BI server.
    echo "$(basename "$0"): Now initiating the BI server shutdown..."
    $ORACLEBI_HOME/setup/run-sa.sh stop
    sleep 3
    echo
    # Stop OBIEE Presentation server.
    echo "$(basename "$0"): Now initiating the presentation server shutdown..."
    $ORACLEBI_HOME/setup/run-saw.sh stop
    sleep 3
    echo
    # Stop OBIEE oc4j application server.
    echo "$(basename "$0"): Now initiating the OC4J server shutdown..."
    \[\[ -e $ORACLEBI_HOME/setup/nohup_oc4j_stop.out \]\] && rm -f $ORACLEBI_HOME/setup/nohup_oc4j_stop.out
    $ORACLEBI_HOME/setup/oc4j -shutdown -port 23791 -password `~/.ops/.ex oc4jadmin` 2>$ORACLEBI_HOME/setup/nohup_oc4j_stop.out
    if \[ `grep Error nohup_oc4j_stop.out` \]
    then
    echo "$(basename "$0"): OC4J shutdown error. The server might be already down. Look in $ORACLEBI_HOME/setup/nohup_oc4j_stop.out for info."
    exit 1
    fi
    oc4j_pid=`cat $ORACLEBI_HOME/setup/nohup_oc4j_start.pid`
    cpid=`ps no-headers ppid $oc4j_pid | head -n1 | awk '{print $1}'`
    \[\[ -n $cpid \]\] && kill $cpid
    \[\[ -n $oc4j_pid \]\] && kill $oc4j_pid
    <br>
    <br>
    Thank you.
    -sb

  • Does "top" command work in Solaris?

    Does "top" command work in solaris?
    # uname -a
    SunOS rac1 5.10 Generic_120012-14 i86pc i386 i86pc
    # top
    top: not found
    Edited by: user11936985 on Aug 29, 2011 8:44 AM

    Top has two sections, the summary information at the top of the screen which gives load averages, process counts, etc. and a bottom section which lists the "top processes". The prstat command standard report is similar to the bottom section of top. So if that is what you need, then prstat is an adequate substitute. It doesn't report the information in top's summary section. On the other hand, prstat is actually a much more powerful tool than top, especially is you use some of the other options. For example, "prstat -a" gives you the "top process" report plus a summary report of usage by user. If you use "prstat -J" you get a top process report with a summary by project and "prstat -Z" gives a top process report with a summary by zone. You can use options like -v or -m to get more information on each process in the "top process" section. There are other options mentioned in the manual page.
    Top works and works well on Solaris. You can get a copy form sunfreeware and probably other sources as well. It doesn't come from Oracle with Solaris 10 (but does come with Solaris 11). If you're a Linux shop you might want it because it is familiar. However, you may want to look at prstat as well because it can provide some useful information that top does not.

  • TOP COMMAND FOR MEMORY AVALABILITY

    Hi
    My database is 10g.
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I want to check the resource availability i got the info from top command
    Memory: 128G real, 6595M free, 67G swap in use, 275G swap free
    PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
    20745 oracle 2 44 0 0K 0K sleep 70:21 0.65% oracle
    25404 oracle 1 55 0 0K 0K sleep 2:30 0.60% oracle
    12551 oracle 2 59 0 0K 0K sleep 10:31 0.33% oracle
    16841 odiuser 1 59 0 11M 3408K cpu/51 0:02 0.06% top
    22475 oracle 1 53 2 0K 0K sleep 18:12 0.03% oracle
    13007 oracle 2 59 0 0K 0K sleep 12:30 0.03% oracle
    14879 oracle 2 59 0 0K 0K sleep 2:38 0.02% oracle
    13035 oracle 1 59 0 0K 0K sleep 6:46 0.02% oracle
    22471 oracle 2 53 2 0K 0K sleep 16:28 0.02% oracle
    13029 oracle 2 59 0 0K 0K sleep 5:30 0.02% oracle
    13000 oracle 1 59 0 0K 0K sleep 3:47 0.02% oracle
    2770 oracle 27 29 10 259M 162M sleep 2:09 0.01% java
    28056 odiuser 26 47 4 333M 189M sleep 286:00 0.01% java
    11218 oracle 2 54 0 0K 0K sleep 4:22 0.01% oracle
    17757 oracle 1 59 0 0K 0K sleep 0:00 0.01% oracle
    how to analyze the with above inforamtion whether it has enough memory or not.
    load averages: 0.79, 1.12, 1.33 06:25:09
    181 processes: 180 sleeping, 1 on cpu
    CPU states: 97.7% idle, 1.6% user, 0.7% kernel, 0.0% iowait, 0.0% swap
    can anyone analyze help me to analyze the following
    load averages
    processes
    cpu states
    Please advice.

    Your system was sitting idle for 97.7%
    NO swaaping is gioin on, for more info you can corsscheck the same with VMSTAT,IOSTAT
    for more info about top command utility
    http://linux.about.com/od/commands/l/blcmdl1top.htm_

  • How to execute linux sh command from inside CF

    I am using CFMX 7,0,0,91690 Enterprise on Redhat Enterprise Linux 4.9 with Apache webserver 2.0.52.  I have a coldfusion template that queries from a Postgresql 8.0 database, copies the data from the queries into a set of files in one folder on the linux server, and then has a CFEXECUTE tag at the very end that calls a bash shell script on the same server. The shell script takes the files from the one folder, merges some of their content together, moves them to another folder, adds header and footer, and sets ownership and permissions.  These 2 scripts have been in place and working perfectly for several years now. No changes were made to content, permissions, or ownershop of scripts.  Suddenly last Friday the coldfusion script seems to have lost its ability to execute the shell script properly.  It does execute it and the shell script attempts to do some of the steps, but the resulting files are missing the content and have the linux environmental variables and their values displayed instead.  Clearly its getting an error but that is not being reported back to me. After the CF script ends, if I manually execute the shell script from the linux command line, it works perfectly. I tried giving it more permissions but that did not help.  Redhat support suggests I run the script with "sh -x" to get more detailed output for debugging, but I would need to do that from inside the CF script since that is where the problem is.  Is it possible to execute a shell script from inside a CF script using a linux "sh" command in some way (instead of the cfexecute, just so I can see debugging info)? Thanks in advance for any suggestions. Julie

    Thanks for the suggestion, tried that too:
    <cfexecute name="/bin/sh" arguments="-x /bin/siscopy" outputfile="/home/coldfusion/sh_output.txt" timeout="600" />
    still didn't work.  Script ends with this coldfusion error:  Timeout period expired without completion of /bin/sh
    It does not complete the task of making the files, and the sh_output.txt file which is supposed to capture the -x output, is empty.
    Thanks,
    Julie

  • Run os commands with sql

    dear all,
    is it possible to run os commands with sql commands as follows :
    SQL> ALTER system kill session '1764,60569'; ! kill -9 12151
    2 /
    ALTER system kill session '1764,60569'; ! kill -9 12151
    ERROR at line 1:
    ORA-00911: invalid character
    kai
    os version : solaris 5.10.. db : 10.2.0.4.0

    Kais,
    What exact error are you getting running this script and what's OS (is it linux RH?? If you can post errors on running this script, that will be helpful. I tested on both cygwin (my desktop) and liunx box but you can change as needed) and to kill process from script you can use
    echo `kill -9 pid`
    Hope this helps
    #!/bin/bash
    typeset username=$1
    function readSqlstmt {
    typeset stmt=$1
    echo "
    set feedback off
    set verify off
    set heading off
    set pagesize 0
    whenever sqlerror exit 1
    whenever oserror exit 2
    $stmt;
    exit
    " | sqlplus -S '/as sysdba >> test.log
    function killpid {
    killpidsql=killpid.sql
    sqlplus -s '/as sysdba' << ENDOFSQL >> test.log
    whenever sqlerror exit 1
    whenever oserror exit 2
    SET pagesize 0
    SET verify off
    SET feedback off
    SPOOL ${killpidsql}
    SELECT 'ALTER system kill session ''' || s.sid || ',' || s.serial# || ''';'
    FROM v\$session s, v\$process p
    WHERE s.paddr = p.addr AND s.status = 'INACTIVE';
    SPOOL OFF
    @${killpidsql}
    ENDOFSQL
    killpid
    readSqlstmt "SELECT p.spid FROM v\$session s, v\$process p WHERE s.paddr = p.addr AND s.status = 'INACTIVE'" | while read u
    do
         #echo "kill -9" $u >> test.log
         echo "Killing inactive oracle process..."
    echo `kill -9 $u`
    done

  • How to find the contents of proc from top command

    I had a doubt related to how to find the contents of a procedure or the statements from the PID displayed in top command if it can be done from TOAD or
    sqlplus. If we can find out the details from top like:-
    21211 oracle 16 0 3228 1012 764 R 0 0.0 0:07.68 top
    1 root 16 0 1732 552 472 S 0 0.0 0:01.29 init
    say, what is the process with PID 21211 and 1 are doing?
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    Join v$process, v$session, and v$sql
    SQL> ed
    Zapisano file afiedt.buf
      1  SELECT p.pid, s.sid, s.serial#, sq.sql_text
      2    FROM v$session s,
      3      v$process p,
      4      v$sql sq
      5    WHERE s.paddr = p.addr
      6*   AND sq.address = s.sql_address
    SQL> /
           PID        SID    SERIAL# SQL_TEXT
            37        128          2 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :
                                     2, :3); END;
            19        149       4566 SELECT p.pid, s.sid, s.serial#, sq.sql_t
                                     ext   FROM v$session s,     v$process p,
                                          v$sql sq   WHERE s.paddr = p.addr
                                      AND sq.address = s.sql_address
    SQL>Edited by: Łukasz Mastalerz on Feb 12, 2009 1:27 PM

  • Running Top command in Java

    hi friends,
    when i run Top command in Linux from java by using Runtime.getRuntime.exec(), it is giving the following error---
    top: tcgetattr() failed : Invalid Argument
    While this command is working properly from shell.

    when i run Top command in Linux from java by using
    Runtime.getRuntime.exec(), it is giving the following
    error---
    top: tcgetattr() failed : Invalid Argument
    command is working properly from shell.top needs a terminal to run; it's a silly and ugly little program. When you
    fire up a process using the exec() method you don't have a terminal
    environment for the process. Try to run 'ps' instead.
    kind regards,
    Jos

  • User Defined Activity: Run OS Command with OS parameters

    OS: OELR5 U3 x64
    DB: 11.1.0.7
    OWB: 11R1
    I would like to be able to run an os command from a user defined activity within a process flow. I am trying to make use of VMWare's vmrun to control a virtual machine. From the OS command line I enter:
    /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    How many I duplicate this OS command from within a user defined activity in a process flow?
    I create a user defined activity:
    COMMAND: /usr/bin/vmrun
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    The process runs without error in the log, but the os command is not being run.
    I tried again with:
    COMMAND: /usr/bin/vmrun
    PARAMETER_LIST: ?-T?server?-h?https://server:port/sdk?-u?user?-p userpassword?-gu?guest?-gp guestpassword?runProgramInGuest "[standard] VM/Virtual Machine.vmx"?-activeWindow?-interactive?"c:\path_to_program\program.exe"?/switch?
    RESULT_CODE:
    SCRIPT:
    SUCCESS_THRESHOLD: 0
    with the same result.
    And I also tried calling sh:
    COMMAND: bin/sh
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "[standard] VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    also with the same result.
    The process runs in each case, and ends with: "Log file is available", but when I look in the log, I don't see errors or any information that might help me adjust the user defined activity.

    This method works:
    COMMAND: bin/bash
    PARAMETER_LIST:
    RESULT_CODE:
    SCRIPT: /usr/bin/vmrun -T server -h https://server:port/sdk -u user -p userpassword -gu guest -gp guestpassword runProgramInGuest "standard VM/Virtual Machine.vmx" -activeWindow -interactive "c:\path_to_program\program.exe" /switch
    SUCCESS_THRESHOLD: 0
    The issue seems to be caused on an upgrade to OWB 11R2. Our installation does not always update the VALUE entry when a user types in a value, meaning that our entry changes were not reflected into the deployed process package.

  • I lost my top bar with all the settings bookmarks and stuff on

    my top bar with the bookmarks settings help and other stuff has gone how can i get it back?

    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(Linux & OSX see: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
    <u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    <u>'''''Other Issues''''': to correct security/stability issues</u>
    <u>'''Install/Update Adobe Flash Player for Firefox'''</u>: your ver. 10.0 r32; current ver. 10.0 r45
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
    *<u>'''Also see'''</u>: http://kb.mozillazine.org/Flash '''''~~red:and~~''''' [[How do I edit options to add Adobe to the list of allowed sites]]

  • How to find memory taken by a process using top command

    I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
    Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
    Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    16514 applmgr 25 0 2197m 1.7g 10m S 0.3 13.0 15:20.67 java
    30692 crestelo 22 0 2901m 1.4g 9284 S 0.0 11.0 3:03.68 java
    30431 crestelo 25 0 2043m 1.4g 161m S 50.9 11.0 79:02.73 java
    30869 crestelo 25 0 2860m 1.2g 9292 S 0.0 9.6 7:11.18 java
    16655 applmgr 23 0 1934m 1.1g 10m S 0.3 8.9 2:17.49 java
    16319 crestelo 19 0 1541m 299m 44m S 0.0 2.3 2:52.11 java
    I hope, my question is clear as to how to find the memory taken by a process using top command.
    Please revert with the reply to my query.
    Regards

    Have you tried "man top" to see the documentation for the top command?
    How about the following: http://lmgtfy.com/?q=show+memory+with+top+command
    The 5th column (VIRT) shows the amount of RAM + swap
    The 6th column (RES) shows RAM
    The 7th column (SHR) shows memory shared between processes

  • How to find memory taken by Oracle processes using top command

    I wanted to know how to find the memory taken by Oracle processes using top command. The output of the top command is as follows as an example:
    Mem: 16436072k total, 16215708k used, 220364k free, 395128k buffers
    Swap: 25165816k total, 1168288k used, 23997528k free, 13366520k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    27281 oraprod 15 0 6705m 1.3g 1.3g S 0.0 8.6 61:44.71 oracle
    27383 oraprod 15 0 6702m 1.2g 1.2g S 0.0 7.7 2:22.75 oracle
    5199 oraprod 16 0 6745m 1.1g 1.0g S 0.0 6.8 2:51.23 oracle
    The different Oracle processes could be Oracle database, Oracle listener, Oracle enterprise manager etc.
    I hope, my question is clear as to how to find the memory taken by a process using top command.
    Please revert with the reply to my query.
    Regards

    a short and correct answer would be: you can't.
    As oracle uses a fair amount of shared memory, and that shared memory is attached to most of the oracle processes, the same memory appears a number of times.
    you should rephrase your question / what is it you want to achieve?
    you can ask oracle how much memory is assigned to it, v$sga, v$sgastat, v$process (for PGA). moreover, you as DBA are the one who configured that.
    you can look at major an minor faults per process to see what is causing the paging (if you have any).
    you can also look at the /proc/pid/statm pseudofilesystem for your oracle pids.

Maybe you are looking for

  • How to re-download songs?

    Here is the problem, I bought a song (Starlight by Muse) and about in the middle of the song it switches to the end of the song and after that it plays the rest of the beginning of the song at the end. So parts of the songs are switched around. Would

  • Attachment issue with mail    SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi Guys, I used the Standard function 'SO_NEW_DOCUMENT_ATT_SEND_API1 for sending the mail to lotus notes server.but it is delivering the mail as an inline attachment instead of notepad attachment .pl guide me how to get the proper output . My code is

  • Getting contacts added on phone into address book.

    I just got my iPhone yesterday and after importing my contacts from my old phone from a .csv file I had over 200 duplicate "no name" contacts. I followed the instructions here: http://support.apple.com/kb/ts2481 and was able to get rid of the duplica

  • How to use local variables to pass an image mask correctly

    I'm kind of new to labview but i'll try to explain the problem as best as i can: I'm trying to pass an image mask (basically an image) to the next iteration of a while loop using local variables. I think the image passes through the loop with the loc

  • Editing a saved selection

    Experts, I have a quick question. I have my saved selection out there on a page. Now, if I want to change that saved selection to add sorting on one column, how do I do that? Do I need to create another saved selection or is there a way to edit the e