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 ArticleFind 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 ArticleLock 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 ArticleDisk 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 ArticleDatabase 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 ArticleObject 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 ArticleTip 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 ArticleTYPE 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 ArticleImproving 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 ArticleWhat 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