This section provides some SQL query examples that you can use a baseline for your own queries toward the connected Oracle Database system.
Example: Calling an Oracle stored procedure
This SQL query illustrates how to call a specific Oracle stored procedure:
CALL "<ProcedureName>"('&USERNAME')
In this query:
-
ProcedureName specifies the name of the Oracle stored procedure you want to call.
-
USERNAME refers to the name of the attribute that uniquely identifies a user in the target Oracle Database system.
Example: Creating a new user in the Oracle Database
This SQL query illustrates how to create a new user in the connected Oracle Database:
insert into DatabaseTable(ColumnName) values (upper('&USERNAME'))
In this sample query:
-
DatabaseTable specifies the name of the table into which the entry will be added.
-
USERNAME refers to the name of the attribute that uniquely identifies a user in the target Oracle Database system.