Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sujunmin/oracledbdailycheckscripts

Oracle DB 12c Daily Check Scripts for Windows
https://github.com/sujunmin/oracledbdailycheckscripts

daily-tasks database-status oracle-db powershell sql windows

Last synced: 2 months ago
JSON representation

Oracle DB 12c Daily Check Scripts for Windows

Awesome Lists containing this project

README

        

# OracleDBDailyCheckScripts
Oracle DB 12c Daily Check Scripts for Windows

# Preparations
Settings

In create_database_report.bat
- `set ORACLE_SID=` Oracle SID
- ` / as sysdba @database_status.sql` SQLPlus and database_status.sql path
- `powershell -nologo -noninteractive -file sendreportfile.ps1` sendreportfile.ps1 path

In database_status.sql
- `spool ` Output Html file path

In sendreportfile.ps1
- `$MessageContent = [Io.File]::ReadAllText("", [System.Text.Encoding]::Default)` Output Html file path (The same as `` in database_status.sql)
- `Send-MailMessage -to "" -from "" -Subject "DBA Checks ()[] " -smtpserver -Body $MessageContent -BodyAsHtml -Encoding ([System.Text.Encoding]::UTF8)`
- `` for report rcpts
- `` for report sender
- `` for Oracle DB server name
- `` for Oracle DB IP
- `` for Mail server IP

# Usage

execute `create_database_report.bat`