Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • PLSQL Table Syntax 1 Oracle
  • Good RAC & Standby Notes Oracle
  • checking redhat linux version Linux/Unix
  • block_ident.sql Oracle
  • Important Script Method for tuning Oracle
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • upload.html PHP/MYSQL/Wordpress
  • get_vmstat_linux Oracle
  • Korn Shell Arithmatic Linux/Unix
  • plan10g.sql good Oracle
  • Histogram information Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • v$event_name Oracle
  • Transfer SQL Profiles from One database to other database. 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

  • MYSQL for Oracle DBA MYSQL
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • MYSQL and Oracle Comparison for Oracle DBA MYSQL
  • Oracle vs MYSQL Architecture differences (For DBAs) 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 (402)
  • 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

  • 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
  • Creating a Container Database using dbaascli08-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Generate SSH without password authentication. Linux/Unix
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • SQL_PROFILE – I explaination Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • When error comes for temporary tablespace with version <= 9i Oracle
  • Drop tempfiles from database Oracle
  • good linux notes Linux/Unix
  • Library cahe Latches and internal explaination Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme