Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sujunmin/oracledbdailycheckscripts
- Owner: sujunmin
- License: apache-2.0
- Created: 2016-12-16T09:36:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T03:24:23.000Z (over 5 years ago)
- Last Synced: 2023-10-03T21:11:48.691Z (over 1 year ago)
- Topics: daily-tasks, database-status, oracle-db, powershell, sql, windows
- Language: PLSQL
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OracleDBDailyCheckScripts
Oracle DB 12c Daily Check Scripts for Windows# Preparations
SettingsIn 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 pathIn database_status.sql
- `spool ` Output Html file pathIn 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`