4D v16Connecting to an Oracle database |
||
|
4D v16
Connecting to an Oracle database
Connecting to an Oracle database
This 4D method allows a user to connect to an Oracle database. To keep the code simple, we have not included any error-handling. Although this code may seem a bit long for a simple connection, you need to keep in mind that 4D for OCI also includes a simpler alternative by means of the OCILogon command, which lets you avoid many of the handle assignments and helps to simplify and shorten your code. The example shown below is primarily for didactic purposes. This method starts by assigning the various handles, in hierarchical order. All handles are assigned with respect to the environment handle. OCIServerAttach creates an access to the Oracle server by associating a connection string to the server handle. Source code for OCI_CONNECT project method: //Method: CONNECT
|
プロパティ
プロダクト: 4D
履歴
ARTICLE USAGE
4D for OCI ( 4D v16) |