Category Database

Shell Script to Monitor Oracle Tablespace and Send Email Alert Only If Threshold Exceeds

export MMSG=/tmp/$$.mail export ADDR=”shadab@easyoradba.com” export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1 export ORACLE_SID=orcl file=/tmp/${$}_`date +%Y%m%d` sqlplus -s “/as sysdba” << .eof > $file set pages…

Snapshots are not Backups

Very well explained article why Storage Snapshots are not the best way for backing up an Oracle database. http://www.oracle.com/technetwork/database/features/availability/rman-fra-snapshot-322251.html?utm_content=buffer67053&utm_medium=social&utm_source=facebook.com&utm_campaign=buffer

Consolidation on Exadata

<div style=”margin-bottom:5px”> <strong> <a href=”https://www.slideshare.net/OracleMKTPR20/database-consolidation-on-oracle-exadata-13603279″ title=”Database consolidation on oracle exadata” target=”_blank”>Database consolidation on oracle exadata</a> </strong> from <strong><a href=”http://www.slideshare.net/OracleMKTPR20″ target=”_blank”>Oracle…

Count number of sessions oracle

— Count number of sessions oracle for 7 days, Provided you keep data that long — [sourcecode language=”sql”] select to_char(BEGIN_INTERVAL_TIME,’HH24′), ROUND(SUM(CURRENT_UTILIZATION)/COUNT(*))…