Quantcast
Channel: Scripts Archives | Database Journal
Browsing all 10 articles
Browse latest View live

Monitor CPU Usage Information

>>Script Language and Platform: Oracle Author: Mir Sayeed Hassan This script will monitor CPU Usage Information. select ss.username, se.SID, VALUE/100 cpu_usage_seconds from v$session ss,...

View Article


Find Objects Referenced Inside a Stored Procedure

>>Script Language and Platform: Oracle Author: : Sunny Not all tools provide a GUI interface, making it difficult to find Oracle’s object referenced inside a PLSQL stored procedure. This script...

View Article

Lock Monitoring Scripts

>>Script Language and Platform: SQL / MySQL This sequence of scripts can help identify tables that are being blocked and quantify how many locks are happening in your database. Author: Carlos...

View Article

Disk Space Usage

>>Script Language and Platform: SQL Server Find how much disk space is used on a database in a week. (Between disk space usage differences) Author: Surekha K SELECT distinct top 10 (SELECT...

View Article

Database Size Growth

>>Script Language and Platform: SQL Server History to analyse the growth of the databases size over a given period. Additional to the minimum, maximum and average size per week the growth of...

View Article


Object Dependencies

>>Script Language and Platform: SQL Server Author: PCREDDY To find Objects’ dependencies, use the code below. With CTE as ( SELECT ReferencedObjectType = o2.type, --ReferencedObject =...

View Article

Tip 74 – Changing Cost Threshold for Parallelism

SQL Server has a lot of configuration values. One of these configuration values is the “Cost Threshold for Parallelism”. This configuration value sets a threshold at which the database engine will...

View Article

TYPE Definition Change in Oracle 21c

SQL*Plus and PL/SQL have been at odds for years — cases abound where how a task is performed using SQL*Plus differs from how that same or similar task is completed in PL/SQL. Additionally there are...

View Article


Improving the Performance of a Table Variable using Optimizer Hint RECOMPILE

Table Variables have been known to run slowly when the table variable contains lots of rows. This is because when a batch is compiled the table variable has yet to be populated with any rows, and...

View Article


What Backups Do I Have?

The #1 priority of a DBA is to make sure they can recover a database should it become corrupted.  To recover a database, you need to make sure you have backups. Is knowing you have a backup process...

View Article
Browsing all 10 articles
Browse latest View live