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 |
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
# Import win32com.client so that we have easy access to COM interfaces. | |
import win32com.client | |
# Connection information used to connect to your Oracle database. | |
source_connection = "SCOTT/SCOTT_PASSWORD@ORA_DATABASE" | |
# Start Toad DevOps Toolkit. | |
tdt = win32com.client.Dispatch("Toad.ToadAutoObject") | |
# Create and assign a Toad DevOps Toolkit connection. |