< Back
Get-OracleSnapshot
Post
NAME Get-OracleSnapshot
SYNOPSIS
Query an Oracle database to get an AWR Snapshot Information based on a timestamp
SYNTAX
Get-OracleSnapshot [-TargetDB] <String> [[-DBUser] <String>] [-PasswordPrompt] [-TimeStamp] <DateTime> [-Mark]
<String> [-ErrorLog] [[-ErrorLogFile] <String>] [<CommonParameters>]
DESCRIPTION
This function returns an AWR Snapshot information, including ID and Timestamp
PARAMETERS
-TargetDB <String>
This can be a list of databases
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-DBUser <String>
Username if required
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PasswordPrompt [<SwitchParameter>]
Flag to ask for a password
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-TimeStamp <DateTime>
This is the time for the permoance snapshot
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Mark <String>
Parameter that defines if it's a starting or ending snapshot
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ErrorLog [<SwitchParameter>]
Switch to turn on the error logging
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ErrorLogFile <String>
Required? false
Position? 5
Default value "$env:TEMP\\OracleUtils_Errors_$PID.log"
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-OracleSanpshot -TargetDB myorcl -Timestamp "2018-01-21 17:00:00 +0" -Mark start
RELATED LINKS
SYNOPSIS
Query an Oracle database to get an AWR Snapshot Information based on a timestamp
SYNTAX
Get-OracleSnapshot [-TargetDB] <String> [[-DBUser] <String>] [-PasswordPrompt] [-TimeStamp] <DateTime> [-Mark]
<String> [-ErrorLog] [[-ErrorLogFile] <String>] [<CommonParameters>]
DESCRIPTION
This function returns an AWR Snapshot information, including ID and Timestamp
PARAMETERS
-TargetDB <String>
This can be a list of databases
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-DBUser <String>
Username if required
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PasswordPrompt [<SwitchParameter>]
Flag to ask for a password
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-TimeStamp <DateTime>
This is the time for the permoance snapshot
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Mark <String>
Parameter that defines if it's a starting or ending snapshot
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ErrorLog [<SwitchParameter>]
Switch to turn on the error logging
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-ErrorLogFile <String>
Required? false
Position? 5
Default value "$env:TEMP\\OracleUtils_Errors_$PID.log"
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-OracleSanpshot -TargetDB myorcl -Timestamp "2018-01-21 17:00:00 +0" -Mark start
RELATED LINKS