Share this page

# nca_connect_server

Connection Functions

Connects to an Oracle NCA database server.

    int nca_connect_server( LPCSTR host, LPCSTR port, LPCSTR command_line );

host | The host name or IP address of the database server.
port | The port number of the database server.
command_line | The command line specified when starting the application.

The nca_connect_server function connects to an Oracle NCA database server using the specified host, port number, and module.

## Return Values

Oracle NCA Error Codes

## Parameterization

All arguments of this function may be parameterized using standard parameterization.

## Example

In the following example, the nca_connect_serverfunction connects to the sol01 server at port 9000. The command line specifies the database module and the user ID for access to the database.

Copy code

    nca_connect_server("sol01", "9000"/*version=107*/,
              "module=e:\\appsnca\\fnd\\7.5\\forms\\us\\fndscsgn userid=applsyspub/pub@vision fndnam=apps");
    nca_edit_set("FNDSCSGN.SIGNON.USERNAME.0", "VISION");
    nca_obj_type("FNDSCSGN.SIGNON.USERNAME.0",'\t',0);
    nca_edit_set("FNDSCSGN.SIGNON.PASSWORD.0", "WELCOME");
    nca_button_press("FNDSCSGN.SIGNON.CONNECT_BUTTON.0");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: