Repository.ConnectToOracleRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "Repository.ConnectToOracleRepository" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
Connects to an Oracle repository.
{{Template:Repository.ConnectToOracleRepository.Cmt}}
== 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 ==
== Syntax ==
'''Port'''
*ConnectToOracleRepository( Port {{APIPrefix|As Integer}}, Service {{APIPrefix|As String}}, Host {{APIPrefix|As String}}, Schema {{APIPrefix|As String}}, Password {{APIPrefix|As String}}){{APIPrefix|As Boolean}}
The server port for the Oracle Repository.


'''Service'''
Parameters
The Oracle Database name for the Synthesis Repository to connect.
:''Port'': The server port for the Oracle Repository.


'''Host'''
:''Service'': The Oracle Database name for the Synthesis Repository to connect.
The Oracle Host name.


'''Schema'''
:''Host'': The Oracle Host name.
The Oracle Schema.


'''Password'''
:''Schema'': The Oracle Schema.
The Password for the database.
 
:''Password'': The Password for the database.


== Usage Example ==
== Usage Example ==

Revision as of 17:09, 27 February 2014


Connects to an Oracle repository.

Syntax

  • ConnectToOracleRepository( Port As Integer, Service As String, Host As String, Schema As String, Password As String)As Boolean

Parameters

Port: The server port for the Oracle Repository.
Service: The Oracle Database name for the Synthesis Repository to connect.
Host: The Oracle Host name.
Schema: The Oracle Schema.
Password: The Password for the database.

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

       Dim Success As Boolean = False
       Success = MyRepository.ConnectToOracleRepository("OraclePort", "OracleService", "OracleHost", "OracleSchema", "OraclePassword")