This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ##################################################################################################################################################### | |
# Database Server Monitoring Script [dbalarm]. | |
VER="[6.7]" | |
SCRIPT_NAME="dbalarm${VER}" | |
# Features: | |
# Report ERRORS in DB, ASM Instance, GRID INFRASTRUCTURE, GOLDENGATE and LISTENERS ALERTLOG plus dmesg DEVICE DRIVER OS log. | |
# Report TABLESPACES, ASM DISKGROUPS and FRA when reach %USED THRESHOLD. | |
# Report OFFLINE databases. | |
# Report CPU, FILESYSTEM, TABLESPACES When hit the THRESHOLD. | |
# Report LONG RUNNING operations/Active SESSIONS on DB when the CPU hits the THRESHOLD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ############################################################################################## | |
# This script shows AUDIT records for DB User. | |
# To be run by ORACLE user | |
# # # # | |
# Author: Mahmmoud ADEL # # # # ### | |
# Created: 25-04-2013 # # # # # | |
# | |
# Modified: 07-03-2019 Allow the user to control the display of LOGIN/LOGOFF data. | |
# 10-03-2019 Added the option of excluding specific audit action from the report. | |
# ############################################################################################## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ############################################################################################################################ | |
# Ver: 3.0 | |
# EXPORT DATABASE | SCHEMA | TABLE. | |
# To be run by ORACLE user | |
# # # # | |
# Author: Mahmmoud ADEL # # # # ### | |
# # # # # # | |
# Created: 03-02-2014 | |
# Modified: 26-05-2014 Hashed METADATA export lines to clear the confusion. | |
# 21-08-2014 Added DEGREE OF PARALLELISM calculation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ################################################################################### | |
# This script Backup & Cleanup the database logs. | |
# To be run by ORACLE user | |
# [Ver 2.0] | |
# # # # | |
# Author: Mahmmoud ADEL # # # # ### | |
# Created: 03-06-2013 # # # # # | |
# Modified: 02-07-2013 | |
# 14-01-2014 Customized the script to run on various environments. | |
# 14-06-2017 Increased the script accuracy and elimiated tar bug. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ############################################################################################################# | |
# Ver [3.0] | |
# CONFIGURATION BASELINE COLLECTOR SCRIPT FOR ORACLE DATABASE & LINUX OS | |
# THIS SCRIPT WILL WRITE FOUR LOG FILES: | |
# - ONE FOR DATABASE CONFIGURATIONS [One log for EACH database]. | |
# - ONE CONTAINS CREATION/GRANTED PRIVILEGES DDL STATEMENTS FOR ALL DB USERS [One log for EACH database]. | |
# - ONE FOR CONTROLFILE BACKUP TO TRACE [One log for EACH database]. | |
# - ONE FOR OS CONFIGURATIONS. | |
# | |
# FEATURES: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ################################################################################## | |
# Checking long running queries run by specific user | |
# [Ver 1.2] | |
# | |
# # # # | |
# Author: Mahmmoud ADEL # # # # ### | |
# Created: 09-03-17 # # # # # | |
# Modified: 21-01-19 Enhanced the fetch for ORACLE_HOME. | |
# 19-02-19 Enabled the HTML report version. | |
# 06-07-20 New calculation method for 12c+ updated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ####################################################################### | |
# Kill queries running for more than N hours based on specific criteria. | |
# ####################################################################### | |
VER="[1.0]" | |
# # # # | |
# Author: Mahmmoud ADEL # # # # ### | |
# Created: 11-01-18 # # # # # | |
# | |
# | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# #################################################################################################################### | |
# This Script Detects GOLDENGATE LAG If The LAG Hits the Pre-defined Threshold | |
# [Ver 1.0] | |
# | |
# To get this script work you need to Define the following variables: | |
# ORACLE_HOME # Must be set to the ORACLE_HOME path of the database where GoldenGate is running against. | |
# GG_HOME # Should be set to the Goldengate installation home directory path. | |
# LAG=xxxx # The number of minutes of lag, if reached an email alert will be sent [10 minutes is the default]. | |
# EXL_PROC_NAME="DONOTREMOVE|REP11|REP12" In case you want to exclude specific processes e.g. REP11 & REP12 | |
# LOG_DIR # The location of script logs [/tmp by default]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ######################################################################################################################## | |
# DATABASE DAILY HEALTH CHECK MONITORING SCRIPT [HTML VERSION] | |
VER="[v4.3]" | |
# =============================================================================== | |
# CAUTION: | |
# THIS SCRIPT MAY CAUSE A SLIGHT PERFORMANCE IMPACT WHEN IT RUN, | |
# I RECOMMEND TO NOT RUN THIS SCRIPT SO FREQUENT. | |
# E.G. YOU MAY CONSIDER TO SCHEDULE IT TO RUN ONE TIME BETWEEN 12:00AM to 5:00AM. | |
# =============================================================================== | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ######################################################################################################################################################### | |
# Ver 3.1 | |
# SCRIPT TO REBUILD A GIVEN TABLE AND ITS INDEXES USING ONLINE FEATURES DBMS_REDEFINITION/ONLINE REBUILD IF AVAILABLE OR OFFLINE REBUILD AS A FINAL RESORT | |
# ######################################################################################################################################################### | |
# | |
# # # # | |
# Author: Mahmmoud ADEL # # # # ### | |
# Created: 16-06-14 # # # # # | |
# | |
# Modified: 17-06-14 Inform the user if the DB is in Force Logging Mode. |
NewerOlder