How to monitor the database and listener using grep

Hi all

This may sound simple, but I need to know.

How do you analyze 2 processes and database listener using ps - ef | grep pid.

I tried now
[oradb04@dbserver ~]$ ps -ef|grep lsnr
oradb03   7044     1  0  2009 ?        00:03:53 /oracle/fdqmdb/10.2.0/bin/tnslsnr FDQM -inherit
oradb05  13504     1  0  2009 ?        00:00:15 /oracle/fdqmsitdb/10.2.0/bin/tnslsnr FDQMSIT -inherit
oradb01  21066     1  0 Jan07 ?        00:11:27 /oracle/hypdevdb/10.2.0/bin/tnslsnr HYPDEV -inherit
oradb04  23116     1  0  2009 ?        00:06:56 /oracle/hypsitdb/10.2.0/bin/tnslsnr HYPSIT -inherit
oradb04  25605 24208  0 23:04 pts/0    00:00:00 grep lsnr
[oradb04@dbserver ~]$ ps -ef|grep pmon
oradb01   3589     1  0 03:21 ?        00:00:02 ora_pmon_HYP11DEV
oradb03   4097     1  0  2009 ?        00:00:01 ora_pmon_FDQM
oradb05  12831     1  0  2009 ?        00:00:04 ora_pmon_FDQMSIT
oradb04  22671     1  0  2009 ?        00:00:37 ora_pmon_HYP11SIT
oradb04  27517 24208  0 23:05 pts/0    00:00:00 grep pmon
[oradb04@dbserver ~]$ ps -ef|grep lsnr
oradb03   7044     1  0  2009 ?        00:03:53 /oracle/fdqmdb/10.2.0/bin/tnslsnr FDQM -inherit
oradb05  13504     1  0  2009 ?        00:00:15 /oracle/fdqmsitdb/10.2.0/bin/tnslsnr FDQMSIT -inherit
oradb01  21066     1  0 Jan07 ?        00:11:27 /oracle/hypdevdb/10.2.0/bin/tnslsnr HYPDEV -inherit
oradb04  23116     1  0  2009 ?        00:06:56 /oracle/hypsitdb/10.2.0/bin/tnslsnr HYPSIT -inherit
oradb04  27520 24208  0 23:05 pts/0    00:00:00 grep lsnr
[oradb04@dbserver ~]$ ps -ef|grep 23116
oradb04  23116     1  0  2009 ?        00:06:56 /oracle/hypsitdb/10.2.0/bin/tnslsnr HYPSIT -inherit
oradb04  27661 24208  0 23:06 pts/0    00:00:00 grep 23116
[oradb04@dbserver ~]$ ps -ef|grep 22671
oradb04  22671     1  0  2009 ?        00:00:37 ora_pmon_HYP11SIT
oradb04  28774 24208  0 23:06 pts/0    00:00:00 grep 22671
[oradb04@dbserver ~]$ ps aux|grep 22671
oradb04  22671  0.0  0.0 3295640 23896 ?       Ss    2009   0:37 ora_pmon_HYP11SIT
oradb04  32317  0.0  0.0  61088   700 pts/0    S+   23:09   0:00 grep 22671
[oradb04@dbserver ~]$ ps aux|grep 22671|grep 23116
[oradb04@dbserver ~]$ ps aux|grep HYP|grep 22671|grep 23116
My need is a single command to show the status of pid 22671 and 23116

Kind regards
Sam

If you use Linux, you can try ps - fp :

$ ps -fp 4738 18890
UID        PID  PPID  C STIME TTY      STAT   TIME CMD
oracle    4738     1  0  2009 ?        Ss     0:06 ora_pmon_DB102
oracle   18890     1  0 Jan04 ?        Ssl    0:01 /oracle/app/oracle/product/10.2.0/dbhome_1/bin/tnslsnr LIS

Tags: Database

Similar Questions

  • How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    I have a virtual network adapter that is created with Broadcom.

    This virtual interface named "BASP eCard" visible on the performance monitor in the category 'Rhythm Pipe' but not in the category "Network Interface".

    This is problematic because the Tx and Rx (bytes received/send in second) is available in "Network Interface" that show physical network cards only.

    Someone has an idea?

    Thank you

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to start the database and servers after the installation of the Webcenter JSK Portal

    Hello

    I finally installed the portal WebCenter using JSK, after it turned off the machine, I don't know how to start the database or server, I need to set the environment variables? create the oracletab file? or is it a file .sh to start the database and servers?

    Any help will be great!

    Best regards!

    Thanks Françoise-Oracle for your response

    As you say, I need to go to /WCPortal_JSK_Linux.x 86-64/linux64, I found all the scripts that I needed to start or stop a server or database. But more especially if you run evertything, (I did) you just need to run the de./startup.sh script and wait, he'll run, but take some time.

    Best regards!

  • How to export the database and import the database using sql developer

    Hello

    I need to export the database to a server and import it on another server db using the export function of database under the Tools menu in SQLl developer. How to import it? This is for Oracle database 10g.

    Thank you

    Hello

    I think it generates the file .sql containing all the objects that you are exported. Then you can simply open the target database file and run as a script. Also, there is another forum for sqldeveloper related issues.

    Concerning

  • Control if the database and listener are running or not?

    Hello
    We have about 50 databases we manage. These databases have some alerts that send emails if storage space is less than 80 percent threashold levels.

    However, we have no alert if the database is down or if the earpiece is down. Most of the databases is on sun solaris or AIX running oracle 9i or oracle 10G.

    I'm going to the source code of scripts already in place. can someone direct me
    on how we can control if the database is in place and running and whether or not the given listener is running?

    Thank you.
    Guz

    Guz,

    You have 50 databases to manage, then should consider using the grid control and manage your databae of a centrailized single server.

    Concerning

  • How to monitor the process and Windows activities

    Hello world

    I'm a player who plays full-screen. Some process or app steals focus once every few hours, unpredictable. This me tabs effectively out of my game on the desktop. It is only an annoyance, but yet, it's a real nuisance to do without good reason.

    Anything that flies focus leaves no trace of what it was, as far as I can tell. I'm just at the level of the office. (Exactly how I see what Win7 thinks has focus, if nothing seems?)

    I guess it's a thread that checks the updates, or some other thing, what has been written amateur and does well with games. Some games are also poorly written in terms of, what happens if something else could mess with the office or ask for focus. My guess is that it is a collision of stuff poorly written, but who knows.

    To make a long story short, is there anything I can do to see just how * had * focus (focus on the past), even if it's over now?

    I highly doubt that it is one of the major applications that I am running. I usually only Word and Excel 2013, Chrome and Windows Explorer to the top. I really doubt that this is one of them, but maybe. Who knows.

    It would be very difficult to test for that is happening, because it is very unpredictable. Also real inconvenient to keep my other applications closed for hours. This is why I ask if there is another way to catch the culprit himself, not all turn in everything.

    Thanks if you can help!

    HI Yann,

    Thanks to you, I was able to use the event viewer on Win7 / Windows Logs / request to see that I was being thrown out of my game on the desktop when the so-called SelfServicePlugin.exe "on the road". I checked in the Task Manager / process and saw that it is a Citrix Receiver background utility.

    Citrix Receiver (v. 4.1.0.56461, (c) 2013) is the remote software we use to open a session in our local network of work at home, however, the plugin is something all the time, not just at the point where it is actually using Citrix. I guess that it speeds up the loading time of Citrix, or whatever. (It seems that every piece of software must have a connection online if used or not, these days.) And no, I wasn't playing games when remoting to work, laughing. As I said, the receiver is there all the time; I was spilled on the desk in the evenings, etc.

    If I unload the plugin, I stop unexpectedly, the abandonment of game (and Citrix always starts very well).

    So, apparently, it is just this sloppily written plugin. I guess it is not surprising that something related to work don't care effect on the games, even after hours, laughing.

    Now that I know what it is - and it's not malware - it's so much easier to deal with.

    Thanks for hanging in there and answering the question directly to me! It helped a ton.

    Mike

  • How to delete the duplicate and photos using windows 7 x 64 bit?

    I have a new computer using windows 7 x 64 bit. I noticed a lot of photos and files duplicate on my hard drive. It seems that any device that you plug into the computer it automatically records in the library under documents, music, pictures, etc... When configuring my e-mail or import/export does duplicate the same info, instead of ask or inform it is a duplicate. Help someone. I can't go directly to MS supports without going through many unnecessary changes. I JUST WANT TO KNOW WHAT I CAN DO?

    Hello

    If you look at the odds on these files, you can just about bet that they are safe to use.

    http://download.CNET.com/1770-20_4-0.html?query=duplicate+file+Finder&platformSelect=Windows&tag=srch&SearchType=downloads&FilterName=platform%3DWindows&filter=platform%3DWindows

    Auslogics has 4 stars which is a good rating at Cnet.

    Glary Utility has 4 1/2

    Need3Space - writing is here - 4 stars (not freeware)

    Duplicate File Finder - 4 stars

    Pay attention to the files you want to delete.  You will find a list of formats of files here.

    http://en.Wikipedia.org/wiki/Windows_file_types

    http://en.wikipedia.org/wiki/List_of_file_formats _(alphabetical)

    The digital negatives (RAW files) are safe remove.  These are digital files, camera or scanner, left on the disk, usually after photo/printing has been removed from the folder my pictures...

    http://en.Wikipedia.org/wiki/Raw_image_format

    Check the links classified by Ronnie Vernon for a better understanding of the libraries and files.

  • How to trace the temperature and voltage using the graph of Mixed Signal

    Hello

    I use the NOR cDAQ-9178, module NI 9214 (temperature) and the module NI 9201 (voltage). My program allows the user to choose among 3 different tasks, Masurement of temperature, voltage, or both. When you select the task for temperature and voltage measurement, I was drawing all channels on the same graph. I was invited to separate channels of temperature and voltage and draw on a split graph, using the same category axis. I tried stacking, but could not control where each parcel channel went. I think the Mixed Signal graph would work well. Everything works and records all the data of the channels to the files, but my plots appear not on the graph, although I can see the change in scale numbers. I think I can use the cluster incorrectly. Can someone tell me what I am doing wrong? I selected the 'Plot Visible' option, but the plot is not always displayed. I've attached a zip with all the screws needed to run my program. The main VI is "Voltage_Temperature_SingleTask_Measurements_MAIN.vi"... but everything must be downloaded to the program works. Please help... Thank you.

    Hi mzhlb,

    I complained only the expressVIs.

    Why not use simple IndexArray function to get bots waveforms of your waveform table? (I faked it your DAQmxRead with functions SigGen).

  • How to filter the doc and xml using SDKFileOpenChooser?

    I need to filter only word and xml

    SDKFileOpenChooser openChooser;

    openChooser.AddFilter (291, "App_Filter");   291 for app

    openChooser.ShowDialog ();


    Where to find the ID of the extension for the filter application or any solution?

    To display only the XML using SDKFileOpenChooser files use:

    openChooser.AddFilter (kXMLFileTypeInfoID, "files (xml)" "") XML;

    To Word files, try to use kMSWordFileTypeInfoID instead.

  • How can I the date and time using regular expressions

    Hi all

    I have depolyed filtering the log agent. While setting properties, I would like to recover the file that is generated at the present time, but along the way, I am unable to define, what regular expression that I provide retireves date and time specific file...

    Leave with kindness, men know is it possible to do?

    Thanks in advance.

    Shiva

    This seems to be the same question I can't add a timestamp in logfilter, so I'll answer in this thread. Please check the two wires as "Answered" when the issue has been resolved.

    Kind regards

    Brian Wheeldon

  • How to create the database and a tablespace?

    Hello experts,

    I want to create a database named influx as tablespace influx.

    for this that I login under the sys account.

    now, I'm trying to run the following command:


    CREATE DATABASE WORKFLOWS
    LOGFILE GROUP 1 ("G:\app\dhirender\oradata\INFLUX\redo01.log") SIZE 100 M,
    GROUP 2 ("G:\app\dhirender\oradata\INFLUX\redo02.log") SIZE 100 M
    GROUP 3 ("G:\app\dhirender\oradata\INFLUX\redo03.log") SIZE 100M
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXLOGHISTORY 1
    MAXDATAFILES 100
    DEFAULT TABLESPACE users
    DATAFILE 'G:\app\dhirender\oradata\INFLUX\INFLUX01.dbf '.
    SIZE 500M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED

    FOLLOWING ERROR IS COMING:

    ORA-01501 datbase remote.

    database ORA-01100 already mount

    also help me create tablespace.

    Please help me.

    Thank you

    Yoann

    Follow, you will get help!

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_5004.htm

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_7003.htm

    https://forums.Oracle.com/thread/2481617

    https://forums.Oracle.com/thread/661075

    See you soon,.

    Manik.

  • How to recover the database when archive some of the log file are deleted.

    I am facing a problem with the Oracle database, which is linked to archivelogs.
    Our development database is running in archivelog mode, but we don't have safeguards and have no recovery catalog.
    When the database was in running, disk got full, so some archivelogs were deleted manually.
    After that they have restarted the DB, and DB now not come. The errors are as follows:

    -------------------------------------------------------------------------------------------------------------


    SQL > startup
    ORACLE instance started.

    Total System Global Area 1444383504 bytes
    Bytes of size 731920 fixed
    486539264 variable size bytes
    956301312 of database buffers bytes
    Redo buffers 811008 bytes
    Mounted database.
    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open


    SQL > alter database open resetlogs;
    ALTER database open resetlogs
    *
    ERROR on line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' / export/home/oracle/dev/ADVFRW/ADVFRW.system'


    SQL > recover datafile ' / export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: cool cancelled due to errors
    ORA-01610: recovery using BACKUP CONTROLFILE option must be


    SQL > restore database using backup controlfile;
    ORA-00279: change 215548705 generated at 2008-09-02 17:06:10 needed for thread
    1
    ORA-00289: suggestion:
    /export/home/Oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.arc
    ORA-00280: change 215548705 thread 1 is in sequence #1107


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    /export/home/Oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.arc
    ORA-00308: cannot open archived log
    ' / export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to get file status
    SVR4 error: 2: no such file or directory
    Additional information: 3


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}
    Cancel
    Cancelled media recovery.
    SQL >

    -------------------------------------------------------------------------------------------------------------


    1 how to recover the database and put online

    Any help will be much appreciated.

    Regarding
    Hemant Joshi

    Published by: hem_Kec on 7 Sep 2008 09:07

    Hello

    It is actually quite easy.
    We knew that Oracle was looking for logsequence 1107. There is no archived log, it was deleted, or it has never generated. As you delete files, the 1st solution would be possible, BUT as there was only an instance crash so more old archived logs is not required for crash recovery. There is a need during the restoration of the old backup files, which is not our case.

    Thus, the missing log sequence has not been archived = > it is a redo log.
    To identify the required online redo log, we just to log query v$ as I suggest.

    Once the log identified file, we can recover it by specifying the redo log when you ask logsequence 1107.

    And it is on. We win! :)

  • How to monitor the CPU, memory and i/o on the system

    Hello..

    Some body help me?...

    1. how to manage the monitoring of the performance of the system and the database during execution of ODI?
    2. how to monitor the CPU, memory and i/o on the system?

    TQ
    balleur

    In an attempt to partially answer your questions:

    1. how to manage the monitoring of the performance of the system and the database during execution of ODI?

    Monitor the performance of the application from a commercial point of view. As transactions per minute, or response time or time elapsed for the key events of the company. Monitor the activity of the material such that the CPU usage is not necessarily linked to the performance of your application. Performance should be measured from top to bottom - business first, then the lower levels until you get finally to computer equipment. Only if you get a problem to the next level - response time is too large, for example - you can go through the lower levels to identify the cause and fix it.

    2. how to monitor the CPU, memory and i/o on the system?

    I personally use "sar" on UNIX-BASED or Linux, or rather "CFDCs" which is the system activity data collector. SADC will measure and collect data on activities on CPU, memory, disks, etc. and save them to a file in binary format. You can then extract these measures later for analysis using SAR (sar f sadc_file_name). The benefits of SADC are that it is light (these operating systems measure such things anyway, just CFDC records far), it records everything at once (with the exception of the network), it records the time stamp too for each measure, and you can analyze it later when you want to.

    There are commercial products out there too who do similar work, with additional features, such as the integration of Oracle and the relationship between several systems. TeamQuest is an example, but there are others also. (I do not work for TeamQuest, but I used their product in the past).

    John

  • How to monitor the use of the Hyperion applications

    Hi all
    We have developed a classical Planning Application in Hyperion 11.1.2
    The application is running in production mode, and now we want to monitor the use of this application, in this regard, I have following questions:
    (1) how to activate the newspapers?
    (2) how to monitor the time of connection and disconnection of each user
    (3) how to check the amount of data entered in a particular week
    (4) how to check that data are entered against how much the faculty members?

    I won't pretend to know what should I know about this subject, but I get this question of a large number of customers. So, here is my answer. There is no right way to monitor who logs and how many times they connect. If you enable the audit DATA, that you can do is to see when a user loads the data and how often they do. This does not match the connection, but planners usually don't connect to display data (which are normally made in EN or SmartView), they connect to load/update of data. With active audit DATA, you can query the HSP_AUDIT_RECORDS table, which is where the audit is stored, and see how many times the user load the data and the last load of data. Is not correct, but it is far more closely than any other method I've found.

    Example of the last connection (really last loaded data)
    SELECT USER_NAME AS 'User', time_posted as 'Last Login Time' OF HSP_AUDIT_RECORDS WHERE TYPE = "data";

    You can use a similar query to count the number of data loads.

    This would also show you what the user has launched it to business rules.

    Another option would be to enable SSAUDIT on the planning application in Essbase (this is done in the Essbase - google SSAUDIT server configuration file). This will create 2 files. The first is a file index or pointer. There will be a line for each record, via a web form or SmarView load. The second file contains all of the loaded data. The first file will tell you that loaded which lines in the second file and what time he did. The downside is that each connection between planning and Essbase uses the ID of the source of data for planning. So, it always shows the same loading data ID and will not be the real of the user who did it.

    Note that users do not have to connect through planning. They can directly connect to Essbase. All financial reports that would be misunderstood by looking only at the planning.

    If you really want the actual load, you really watch the Essbase and Essbase application log files. Would not show you users, but could show you the number of queries, the data loads, etc. You could analyze these logs in a relational table for quick access to the use of the query.

    That's a lot of things to take. Unfortunately, to answer your question, it is not a quick option, "click here."

    Utility to analyze the logs can be found at http://code.google.com/p/jrightlog.

    ------------
    Kyle Goodfriend
    http://www.in2hyperion.com

    Please be sure to assign the post as answered and answers as response or useful if others can benefit from your experience.

  • Help, how to query the database using pagination

    Hello

    How to query the database using paging for large data.

    any API for this?

    Thank you in advance!

    Hello

    You can specify XmlQueryContext::Lazy as the type of assessment and only call XmlResults:: next() comes as many times as you need.

    John

Maybe you are looking for

  • Several tabs in Taskmgr.exe displayed for Vista disappeared!

    While I was moving the mouse on the screen of Taskmgr, all of a sudden everything has disappeared except Services and I couldn't get it back.My taskmgr.exe no longer has a menu bar and has only Services; I can't see performance or Applications tab.Al

  • Communication platform Windows Live Messenger has stopped working...

    Why isn't this mesege always launched after a few seconds of loging in... It gives me only one option to close the program and if I ignore it more pop up... It says "a problem caused blocking the program works correctly. Windows will close the progra

  • change region on windows 7 WMP dvd

    I just moved from the USA to England. How can I change the region code on my player WMP dvd of windows 7?

  • CASE managed subnet and mapping vlan

    Hi all, I would like to ask for help for my device of the NAC. Currently im set up unit of the NAC. I have just the difficulty to which address ip use for the managed subnet. I have install confidence vlan as there are in our network, but which on th

  • bind the variable question

    HelloI wonder what trivial mistake, am I doing here? Qsure uite that the syntax is correct and it has worked before in the developer doesn't have it? variable bind_variable number execute :bind_variable := 1; print bind_variable PL/SQL procedure succ