The sample queries provided below are only applicable if is connected to the target Oracle Database through the Oracle Database Connector.
Example: Adding a new entry
This SQL query illustrates how to add a new entry to the table named SQLConnTest1 in Oracle Database to which you want to provision data from another connected system.
Table 12: Adding a new entry to the SQLConnTest1 table
Database table structure |
Sample query |
CREATE TABLE "SQLConnTest1"("Id" number,"attr1" nchar(64), "attr2" nchar(64)) |
Insert into SQLConnTest1(attr1) values(:attr1) returning Id into :Id |
In this sample query, Id stands for the attribute that uniquely identifies each object in the Oracle Database.
Example: Creating a new user
This SQL query illustrates how to create a new user in the Oracle Database:
call dbms_utility.exec_ddl_statement('CREATE USER ' || :USERNAME || ' IDENTIFIED BY ' || :newPassword)
In this sample query:
-
USERNAME refers to the name of the attribute that uniquely identifies the user in the Oracle Database.
-
newPassword refers to the name of the attribute that will store the initial password you want to set for the new Oracle Database user.
This section describes how to create or modify a connection to Oracle Database user accounts with the Active Roles . It also lists the type of data you can read and/or write in Oracle Database user accounts with the .
To create a connection to Oracle Database user accounts and work with the user accounts in that data system, use the Oracle Database User Account Connector of the .
The Oracle Database User Account Connector supports the following features:
Table 13: Oracle Database User Account Connector – Supported features
Bidirectional synchronization
Specifies whether you can both read and write data in the connected data system. |
Yes |
Delta processing mode
Specifies whether the connection can process only the data that has changed in the connected data system since the last synchronization operation. This reduces the overall synchronization duration. |
No |
Password synchronization
Specifies whether you can synchronize user passwords from an Active Directory (AD) domain to the connected data system. |
Yes
NOTE: Password synchronization is only supported for user accounts that are authenticated entirely by Oracle Database. The Oracle Database User Accounts Connector does not support password synchronization for Oracle Database user accounts that use external or global authentication from the side of the connected Oracle system. |
You can create a new Oracle Database user accounts connection in the .
To create a new Oracle Database user accounts connection
- In the , open the Connections tab.
- Click Add connection, then use the following options:
-
Click Next.
- On the Specify connection settings page, use the following options:
- Oracle service name: Specify the name of the Oracle service you want to use to access Oracle Database user account. You can click Refresh to get a list of available Oracle services.
- Access Oracle service with: Type the user name and password of the account with which you want to access the Oracle service.
- Test Connection: Click this button to verify the specified connection settings.
-
Click Next.
- On the Specify how to select and modify data page, use the following options:
-
Use data from this table: Allows you to select a database table that includes the data you want to participate in the synchronization operations. You can click Preview to preview the database table you have selected.
-
Use an SQL query to specify data: Allows you to compose an SQL query that provides a more flexible way for specifying the data for synchronization. For example, you can use this option to specify multiple database tables.
-
Click Next.
- On the Specify attributes to identify objects page, use the following options:
-
Available attributes: Lists the attributes that are available in the external data system. Use this list to select the attributes whose values you want to use to generate a unique identifier for each object in the external data system. You can filter attributes by typing in the text box at the top of this list. To select multiple attributes, hold down CTRL and click to select attributes in the list.
-
UniqueID attributes: Lists the attributes whose values are currently used to generate a unique identifier for each object in the external data system.
-
Add->: Moves the selected attributes from the Available attributes list to the UniqueID attributes list.
-
<-Remove: Moves the selected attributes from the UniqueID attributes list to the Available attributes list.
-
Constructed UniqueID: Displays a combination of the attributes whose values will make up a unique identifier for each object in the external data system.
-
To complete configuring the connection to the Oracle Database, click Finish.
After connecting to the Oracle Database with the Oracle Database User Accounts Connector, you can specify custom SQL queries that will automatically run each time after created, updated, or deleted a user account in Oracle Database User Accounts. For more information, see Modifying an existing Oracle Database connection.
You can modify an existing Oracle Database user accounts connection in the .
To modify an Oracle Database user accounts connection
- In the , open the Connections tab.
-
On the Connection Settings tab, click an appropriate item to expand it and use the options it provides.
You can expand the following items:
-
Click Save.