Sqlplus API

A series of functions used for interact directly with sqlplus client program.

API

sqlplus_set_sqlplus_auth_var

Set sqlplus_auth variable with authentication string like: USER/PASSWD@TNSNAME.

Parameters:

  • $1: (db) Name of the schema to use
  • $2: (user) User to use on authentication
  • $3: (pwd) Password to use on authentication.

Returns:

  • 0: always
(Show/Hide)

sqlplus_file

Compile a file and save output to input variable.

Parameters:

  • $1: (var) Name of the variable where is save output command.
  • $2: (f) File to compile.

Returns:

  • 0: on success
  • 1: on error
(Show/Hide)

sqlplus_cmd_4var

Execute an input statement/command to configured schema.

Parameters:

  • $1: (var) Name of the variable where is save output command.
  • $2: (cmd) Command/statement to execute on configured schema
  • $3: (rm_lf) If string length is not zero than from output command are remove LF.
  • $4: (feedback) Set feedback option value. If equal to empty string default value is "off".

Returns:

  • 0: on success
  • 1: on error
(Show/Hide)