Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • tblwopk.sql tablewopk.sql Oracle
  • Rename Oracle Instance Name Oracle
  • Convert multiple rows to single column Oracle
  • good note for shared pool tunnig Oracle
  • My Minimum Tuning Programs Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • Search and replace pattern Linux/Unix
  • dbinv.sql Oracle
  • Kill a session dynanically using execute immediate Oracle
  • metalink all dynamic view reference notes. Oracle
  • V$transaction notes for finding XID composition. Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • First Entry in RAC Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle

Day to day MYSQL DBA operations (Compared with Oracle DBA)

Posted on 24-Jul-202524-Jul-2025 By Admin No Comments on Day to day MYSQL DBA operations (Compared with Oracle DBA)

Here is a mapping of commonly used Oracle dynamic performance views (V$ views) and data dictionary views (DBA_*) to their closest equivalents in MySQL. These are especially useful for Oracle DBAs learning how to inspect system-level information in MySQL.


🔄 Oracle V$ and DBA_ Views vs MySQL INFORMATION_SCHEMA / Performance Schema

Oracle ViewMySQL EquivalentPurpose / Notes
V$SESSIONinformation_schema.PROCESSLISTperformance_schema.threadsShows active sessions / threads. Also use SHOW FULL PROCESSLIST.
V$DATABASESELECT @@hostname, @@version, @@datadirSELECT schema_name FROM information_schema.schemataNo direct equivalent; use system variables + schemata info.
V$INSTANCESELECT @@hostname, @@port, @@version, @@basedir, @@socketShows server instance details.
V$LOCKperformance_schema.metadata_locksinformation_schema.innodb_locks (if enabled)For active locks. Note: innodb_locks is deprecated in newer versions.
DBA_TABLESinformation_schema.tablesShows table metadata (rows, engine, size etc).
DBA_VIEWSinformation_schema.viewsLists view definitions and properties.
DBA_OBJECTSNo single equivalent. Use combination of:• information_schema.tables• information_schema.views• mysql.proc (for routines)Lists all objects (tables, views, procedures, triggers, etc). MySQL separates this.
DBA_USERSmysql.user (use: SELECT User, Host FROM mysql.user)Lists all users. Not available in information_schema.
V$PARAMETERSHOW VARIABLESinformation_schema.global_variablesFor system parameter values.
V$SYSSTATSHOW GLOBAL STATUSperformance_schema.global_statusFor system statistics.
V$DATAFILEMySQL manages files internally.Use: SHOW TABLE STATUS or check InnoDB tablespace infoMySQL hides datafile info; not user-controllable like Oracle.
DBA_TAB_COLUMNSinformation_schema.columnsShows column-level metadata.
DBA_INDEXESinformation_schema.statisticsShows indexes, columns, uniqueness, etc.
DBA_CONSTRAINTSinformation_schema.table_constraintsIncludes PRIMARY KEY, UNIQUE, FOREIGN KEY.
DBA_TRIGGERSinformation_schema.triggersLists triggers defined in the database.
DBA_PROCEDURESmysql.proc (before MySQL 8)information_schema.routines (MySQL 8+)Lists stored procedures and functions.
DBA_ROLESmysql.role_edges (MySQL 8+)Role information in MySQL 8+. Earlier versions lack role support.
DBA_TAB_PRIVSinformation_schema.schema_privilegesinformation_schema.table_privilegesLists privileges granted on schema/table level.
DBA_JOBSNo direct match. Use mysql.eventEvent Scheduler can act as job manager. Enable with SET GLOBAL event_scheduler = ON.

✅ Examples of Useful MySQL Queries

-- Active sessions (like V$SESSION)
SELECT * FROM information_schema.PROCESSLIST;

-- All databases (like DBA_USERS schemas)
SELECT schema_name FROM information_schema.schemata;

-- All tables and row counts
SELECT table_schema, table_name, engine, table_rows 
FROM information_schema.tables 
WHERE table_schema NOT IN ('mysql', 'information_schema', 'performance_schema');

-- Table columns
SELECT table_name, column_name, data_type, is_nullable, column_default 
FROM information_schema.columns 
WHERE table_schema = 'your_db';

-- Views
SELECT * FROM information_schema.views 
WHERE table_schema = 'your_db';

-- Stored procedures and functions
SELECT * FROM information_schema.routines 
WHERE routine_schema = 'your_db';

-- Indexes (like DBA_INDEXES)
SELECT * FROM information_schema.statistics 
WHERE table_schema = 'your_db';

-- Locks
SELECT * FROM performance_schema.metadata_locks;

-- Events (Scheduled jobs)
SELECT * FROM information_schema.events;

-- System variables (like V$PARAMETER)
SHOW VARIABLES;

-- System status (like V$SYSSTAT)
SHOW GLOBAL STATUS;

MYSQL

Post navigation

Previous Post: MYSQL and Oracle Comparison for Oracle DBA
Next Post: V$INSTANCE of Oracle in MYSQL

Related Posts

  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • MYSQL for Oracle DBA MYSQL
  • V$INSTANCE of Oracle in MYSQL MYSQL

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (350)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sql23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Reading parameter file and printing Linux/Unix
  • Session_info.ksh Linux/Unix
  • RAC 11g with vmware Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • Good link for LIO in Oracle ( Logical IOs) Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme