PMDAORACLE(1)
okay bestie, welcome to pmdaoracle(1) β yes, we're in the General Commands Manual section, and this one is giving database observability in the best way π
β¨ let's get into it.
π NAME π
pmdaoracle β the Oracle database PMDA. that's the name, that's the whole thing π«Ά
π¦ DESCRIPTION π¦
pmdaoracle is a Performance Co-Pilot PMDA (that's a Performance Metrics Domain Agent, iykyk) and what it does is extract live performance data from a running Oracle database. literally pulling the real-time vibes straight out of your DB. no cap. π₯
β¨ INSTALLATION β¨
so pmdaoracle reads a configuration file, and it looks in these spots, in this exact order:
/etc/pcpdbi.conf$PCP_PMDAS_DIR/oracle/oracle.conf./oracle.conf
that file can contain overridden values (Perl code, bestie, we're fancy) for the settings listed at the very start of pmdaoracle.pl. for example:
$usernameβ username to connect to the database [default:'SYSTEM']$passwordβ password to connect to the database [default:'manager']$hostβ host the database is running on [default:'localhost']$portβ port the database is listening on [default:'1521']$os_userβ operating system username (the PMDA will run with the corresponding user id) [default:oracle]@sidsβ an array of$ORACLE_SIDdatabase identifiers [default:('master')]
and look, to test your local settings there's a lil script provided that connects and disconnects from the database β it verifies the fundamental configuration is actually in place before you go any further π§
β οΈ BIG ONE: if the $PCP_PMDAS_DIR/oracle/connect.pl script cannot connect, do NOT proceed with installation of the PMDA, because it will be unsuccessful. correct your local settings first. periodt. π
once that's all set up, you can access the names and values for the oracle performance metrics by doing the following as root:
# cd $PCP_PMDAS_DIR/oracle
# ./Install
and to uninstall, this is what you do, also as root:
# cd $PCP_PMDAS_DIR/oracle
# ./Remove
pmdaoracle is launched by pmcd(1) and should never be executed directly π. the Install and Remove scripts notify pmcd(1) when the agent is installed or removed. so let them cook.
π CONNECTION STATE π
by default, pmdaoracle will aggressively attempt to maintain persistent connections to Oracle so it can give timely responses to its queries, and it will automatically re-connect if a connection drops. yes, it's clingy, and honestly? iconic behavior. π
but sometimes that's just not the vibe, so a manual pmStore(3) mechanism is provided to explicitly control disconnecting and reconnecting to an Oracle instance. this can be used, for example, to make sure pmdaoracle is not connected at shutdown, so you get a clean Oracle shutdown process πΈ
the pmstore(1) command can be used to disconnect and reconnect. using the individual instances of the oracle.control.connected metric, you can set the connection state to either up (1) or down (0). also, pminfo(1) can report on the current status of Oracle connections. bestie, look:
# pminfo βf oracle.control.connected
oracle.control.connected
inst [0 or "master"] value 1
# pmstore oracle.control.connected 0
oracle.control.connected inst [0 or "master"] old value=1 new value=0
π FILES π
/etc/pcpdbi.confβ configuration file for all PCP database monitors$PCP_PMDAS_DIR/oracle/oracle.confβ configuration file forpmdaoracle$PCP_PMDAS_DIR/oracle/sample.confβ example configuration file forpmdaoracleusing$LD_LIBRARY_PATH$PCP_PMDAS_DIR/oracle/connect.plβ configuration test script for Oracle database connectivity$PCP_PMDAS_DIR/oracle/Installβ installation script for thepmdaoracleagent$PCP_PMDAS_DIR/oracle/Removeβ undo installation script for thepmdaoracleagent$PCP_LOG_DIR/pmcd/oracle.logβ default log file for error messages frompmdaoracle
π PCP ENVIRONMENT π
environment variables with the prefix PCP_ are used to parameterize the file and directory names that PCP uses. on each installation, the file /etc/pcp.conf contains the local values for these variables. and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
π SEE ALSO π
PCPIntro(1), pmdadbping(1), pminfo(1), pmstore(1), DBI(3) and pmStore(3). go read them, they're all slay π«Ά
and that's the whole page, bestie!! this lil love letter comes to you from the fine folks at Performance Co-Pilot, a.k.a. PCP β that's the source/version tag riding on this very PMDAORACLE(1) page. go touch some metrics πβ¨π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2016 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms