| external help file | SimplySql.Cmdlets.dll-Help.xml |
|---|---|
| Module Name | SimplySql |
| online version | |
| schema | 2.0.0 |
Open a connection to a Oracle Database.
Open-OracleConnection [-ConnectionName <String>] [-CommandTimeout <Int32>] [[-Server] <String>]
[[-ServiceName] <String>] [-Port <Int32>] [-Privilege <String>] [[-Credential] <PSCredential>]
[-Additional <Hashtable>] [<CommonParameters>]
Open-OracleConnection [-ConnectionName <String>] [-CommandTimeout <Int32>] -TnsName <String>
[-Privilege <String>] [[-Credential] <PSCredential>] [-Additional <Hashtable>] [<CommonParameters>]
Open-OracleConnection [-ConnectionName <String>] [-CommandTimeout <Int32>] [-Privilege <String>]
-ConnectionString <String> [<CommonParameters>]
Open a connection to a Oracle Database.
Oracle Managed Data Access @ http://www.oracle.com/technetwork/topics/dotnet/index-085163.html Provider for .NET @ https://www.nuget.org/packages/Oracle.ManagedDataAccess
PS C:\> {{ Add example code here }}{{ Add example description here }}
Hashtable to provide additional connection parameters.
Type: Hashtable
Parameter Sets: default, tns
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe default command timeout to be used for all commands executed against this connection.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 30
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseUser defined name for connection.
Type: String
Parameter Sets: (All)
Aliases: cn
Required: False
Position: Named
Default value: default
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseSpecifies a provider specific connectionstring to be used.
Type: String
Parameter Sets: conn
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseA PSCredential object providing the proper credentials to access to the datasource (if required).
Type: PSCredential
Parameter Sets: default, tns
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalsePort to connect on, if different from default (1521).
Type: Int32
Parameter Sets: default
Aliases:
Required: False
Position: Named
Default value: 1521
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseDetermines the elevated privileges the connection has: SYSDBA, SYSOPER, SYSASM. By default, none.
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: None, SYSASM, SYSDBA, SYSOPER
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe datasource for the connection.
Type: String
Parameter Sets: default
Aliases: Host, DataSource
Required: False
Position: 0
Default value: localhost
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseOracle ServiceName (SID).
Type: String
Parameter Sets: default
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThe TnsName to connect to.
Type: String
Parameter Sets: tns
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.