Last active
March 4, 2018 21:36
-
-
Save hamermike/d1128daf5edc7e0aa3525c28f0eff7ad to your computer and use it in GitHub Desktop.
Toad DevOps Toolkit PL/SQL Code Analysis
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
# Start Toad DevOps Toolkit | |
$TDT = New-Object -ComObject 'Toad.ToadAutoObject' | |
try { | |
# Set Code Analysis parameters | |
$TDT.CodeAnalysis.Connection = $TDT.Connections.NewConnection('user/pwd@db') | |
$TDT.CodeAnalysis.ReportName = "CA Report" | |
$TDT.CodeAnalysis.OutputFolder = "C:\Output" | |
$TDT.CodeAnalysis.ReportFormats.IncludeHTML = $TRUE | |
# Set database objects to Analyze | |
$DBObject = $TDT.CodeAnalysis.DBObjects.Add() | |
$DBObject.ObjectName = 'OBJ_NAME' | |
$DBObject.ObjectOwner = 'OBJ_OWNER' | |
$DBObject.ObjectType = 'OBJ_TYPE' | |
# Execute Code Analysis | |
$TDT.CodeAnalysis.Execute() | |
} finally { | |
# Quit Toad DevOps Toolkit | |
$TDT.Quit() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment