Monday, February 17, 2025

Oracle DB Basic

The DEFINE command in SQLPlus is used to display or set substitution variables

 SQL> def

DEFINE _DATE           = "17-FEB-25" (CHAR)

DEFINE _CONNECT_IDENTIFIER = "db19c" (CHAR)

DEFINE _USER           = "SYS" (CHAR)

DEFINE _PRIVILEGE      = "AS SYSDBA" (CHAR)

DEFINE _SQLPLUS_RELEASE = "1903000000" (CHAR)

DEFINE _EDITOR         = "vi" (CHAR)

DEFINE _O_VERSION      = "Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production

Version 19.3.0.0.0" (CHAR)

DEFINE _O_RELEASE      = "1903000000" (CHAR)

SQL>


SQL> !ps -ef | grep pmon
oracle      3792       1  0 20:55 ?        00:00:00 ora_pmon_db19c
oracle      7275    7263  0 23:40 pts/2    00:00:00 /bin/bash -c ps -ef | grep pmon
oracle      7277    7275  0 23:40 pts/2    00:00:00 grep pmon

SQL> !ps -ef | grep smon
oracle      3834       1  0 20:55 ?        00:00:00 ora_smon_db19c
oracle      7280    7263  0 23:40 pts/2    00:00:00 /bin/bash -c ps -ef | grep smon
oracle      7282    7280  0 23:40 pts/2    00:00:00 grep smon

[oracle@db19c ~]$  ps -ef | grep pmon
oracle     12305       1  0 Mar05 ?        00:00:00 ora_pmon_db19c
oracle     12749   12136  0 00:01 pts/0    00:00:00 grep --color=auto pmon


No comments:

Post a Comment

 https://www.linkedin.com/pulse/building-real-time-database-monitoring-dashboard-oracle-khaleeq-tpwxf/