Method5 is an open source program that extends Oracle SQL to allow remote execution. It lets database administrators, developers, data analysts, system administrators, security engineers, and other users easily run SQL, PL/SQL, and shell scripts quickly and securely on hundreds of databases.

For example, you can quickly select data from all of your databases with one statement:

SQL> select * from table(m5('select * from dual'));

DATABASE_NAME  DUMMY
-------------  -----
db01           X
db02           X
db03           X
...

You can run any SQL statement, PL/SQL block, or Linux/Unix shell command inside the M5 function or the M5_PROC procedure.

The function works with any SQL client and runs on any currently-supported platform, version, or edition of Oracle. The program lives entirely inside an Oracle database and does not require any additional hardware, privileges, binaries, or money.

Download the full program here.


Method5 helps database professionals quickly solve many operational problems. It can also provide a solid foundation for building robust solutions to common database problems, such as:

  • Account Management - such as m5_sync_user
  • Monitoring
  • Security Compliance
  • Configuration Management - such as Snare
  • Preventive Maintenance

This can tip the scales in favor of custom solutions instead of expensive commercial software.


See the user guide for an explanation of all the features, such as: parameters that control the targets and how the statements are run; where the data, metadata, and errors are stored; running as a procedure; and much more.


For more information explore this website, check out the GitHub repository, or watch the video demo below.