Repository.ConnectToOracleRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "Repository.ConnectToOracleRepository" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
mNo edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}
Connects to an Oracle repository.
== Method Syntax ==
{{APIName|'''ConnectToOracleRepository'''(}}
{{APIPrefix|ByVal}}
{{APIName|Port}}
{{APIPrefix|As Integer}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Service}}
{{APIPrefix|As String}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Host}}
{{APIPrefix|As String}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Schema}}
{{APIPrefix|As String}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|Password}}
{{APIPrefix|As String}}
{{APIName|)}}
{{APIPrefix|As Boolean}}<br>
{{APIComment|Connects to an Oracle repository.}}


== Parameters ==
'''Port'''
The server port for the Oracle Repository.


'''Service'''
<onlyinclude>Connects to an Oracle repository. Returns a '''Boolean''' value; when true, indicates a successful connection to the repository.</onlyinclude>
The Oracle Database name for the Synthesis Repository to connect.


'''Host'''
== Syntax ==
The Oracle Host name.
'''.ConnectToOracleRepository'''(''Port'', ''Service'', ''Host'', ''Schema'', ''Password'')


'''Schema'''
===Parameters===
The Oracle Schema.
''Port''
:Required. Integer. The server port for the Oracle repository.


'''Password'''
''Service''
The Password for the database.
:Required. String. The repository service identifier.


== Usage Example ==
''Host''
:Required. String. The repository host identifier.


{{APIComment|Declare a new repository connection class.}}
''Schema''
        Private WithEvents MyRepository As New Repository
:Required. String. The repository schema.


{{APIComment|Connect to the Synthesis repository.}}
''Password''
        Dim Success As Boolean = False
:Required. String. The repository password or the Windows login password used for access to the database.
        Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", "OracleHost", "OracleSchema", "OraclePassword")
 
 
==Example==
 
'''VBA|VB.NET'''
{{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
MyRepository.ConnectToOracleRepository({{APIString|"OraclePort"}}, {{APIString|"OracleService"}},{{APIString|"OracleHost"}}, {{APIString|"OracleSchema"}}, {{APIString|"OraclePassword"}})

Latest revision as of 21:54, 13 November 2015

APIWiki.png


Member of: SynthesisAPI.Repository


Connects to an Oracle repository. Returns a Boolean value; when true, indicates a successful connection to the repository.

Syntax

.ConnectToOracleRepository(Port, Service, Host, Schema, Password)

Parameters

Port

Required. Integer. The server port for the Oracle repository.

Service

Required. String. The repository service identifier.

Host

Required. String. The repository host identifier.

Schema

Required. String. The repository schema.

Password

Required. String. The repository password or the Windows login password used for access to the database.


Example

VBA|VB.NET

Dim MyRepository As New Repository
MyRepository.ConnectToOracleRepository("OraclePort", "OracleService","OracleHost", "OracleSchema", "OraclePassword")