Database Creation – Oracle Server

This page helps you with the prerequisites and the process to setup database in Oracle Server.

NOTE:  

Before proceeding further, ensure that you have AssistEdge RPA compatible Oracle Server version installed on your system and along with that you have access privileges for the database creation.

 

 

Creating Database using AssistEdge Database Installer

This section describes the step by step instructions to create the database using AssistEdge Database Installer in the Oracle Server.

 

To create database in Oracle Server:

  1. Navigate to $ > Database > Installer folder.


  1. Find EV.AE.DatabaseDeployer.exe file and double click to launch AssistEdge Database Installer. The AssistEdge Database Installer dialog box appears.
     

 

  1. In the Database Providers section, select Oracle.
  2. In the Database Options section, you have three choices available. Click any of the below link to choose the preferred option based upon your requirement:
  • Create New Database: Select this option, if you want to setup a new AssistEdge database in Oracle server.

  • Create Objects in Existing Database: Select this option, only if oracle database administrator has already created a tablespace explicitly for AssistEdge database creation along with schema user credentials and database permissions.

Creating New Database

This section explains you about how to create a new database in Oracle Server.

 

NOTE:  

Before proceeding, ensure that you have admin privileges to create a new database.

  • The database name should be unique.
  • For Oracle 12 C: while creating the database using Database Configuration Assistant> Creation Mode step> deselect Create as Container Database checkbox. 

 

To create new database:

  1. In the AssistEdge Database Installer dialog box:


    1. In the Database Providers section, select Oracle.
    2. In the Database Options  section, select Create New Database.
  2. Click NEXT. The Oracle Server page appears as shown below.

 

 

  1. In the SYS Admin UserName, enter database Username with SYS Admin privileges for a new user.

 

NOTE:  

Enter the details of the database SYS Admin user.

The database name should be unique.

 

  1. In the SYS Admin Password, enter database Password with SYS Admin privileges to be used to access the database.
  2. In the Server Name/IP Address, enter Server Name or IP Address of the Oracle server.
  3. In the Port, enter Port number to connect to the database. The default port is 1521; if required, change the port.
  4. In the Connection Method, select the preferred Connection method.
  5. SID: Enter the instance name (SID) on which the user schema is to be created to connect the database.
  6. Service Name: Enter Service Name on which the user schema is to be created to connect the database.
  7. Click TEST CONNECTION to validate, if the connection to the specified Oracle server is established.

     

    • If the connection to the specified Oracle server is established then, a popup message appears as Test connection established successfully.
    • If the test connection to the specified Oracle server fails, check your entries, make any needed corrections, and try again.
    • Then, click OK. The pop-up message closes.

 

NOTE: 

Do not proceed unless the test connection is successful.

 

  1. Click NEXT to proceed. A New Database Details page appears as shown below.

 

This page enables you to create a new database user where details of the new tablespace are required to enter. These details exist in the Oracle server under the earlier specified service name.

  1. In the Tablespace Name, enter the name of the new tablespace being created under the specified Service/SID.
  2. In the User/Schema Name, enter User or Schema Name with DBA privileges on the schema.
  3. In the Password, enter the Password of the mentioned user.
  4. In the Confirm Password, re-enter the Password to confirm.
  5. Click NEXT. Admin User Details page appears as shown below.

 

  1. In the Admin User Details page, you can create a super admin user who will have Admin access to AE Site Admin module and client tools of AE RPA Module. There are two ways to create Admin user, you can choose any of the option as per your preference.
    Default: By default, you can select an existing user from the active directory and assign the user as Admin user. 
    • In Unique ID field, enter the active directory username and then click   Search . The details in this field are auto-filled. On selecting active directory username, a “Success Message” appears next to the search icon.
    • System auto fills the Display Name and Email ID details of the Admin user.

Manual:  Select Manual checkbox, if you can create super admin user manually. Enter the required details manually in the following fields.

  • In the Unique ID field, enter a unique identifier for the AssistEdge Admin user.
  • In the First Name field, enter the first name for the AssistEdge Admin user.
  • In the Last Name  field, enter the last name for the AssistEdge Admin user.
  • In the Display Name field, enter the name that you wish to display for the AssistEdge Admin user.
  • In the Email ID field, enter a valid email ID of the AssistEdge Admin user.

  1. Click INSTALL. The progress page appears that shows the database creation progress.


     
  1. The Installation Completed page appears. Upon successful set-up of database, a success message as “Schema <name of the database> created successfully” appears. You can also check the logs and perform validation of database created before finishing the process:

    • Click VIEW LOGS to view the application log details. The log details contain information such as Log Time Stamp, UM Loader Constructor, dll, and so on.

    • Click VALIDATE to view the validation results after completion of the installation process.



      A popup window with Validation Results appears. Ensure that you get a success message for both listed items and close the dialog box.
  2. Click FINISH to exit the application. 



    A popup window with DatabaseDetails.xml file appears. Click OK.
  3. An export file is created at $\Database\Installer\Export\DatabaseDetails.xml in the installer’s folder.

 

The New Database - Oracle is created successfully and you can start utilizing database for AE RPA /Engage installation process.

 

Creating Objects in Existing Database

This section describes how to use an existing empty database already available in the Oracle server.

 

NOTE:  

  • Before proceeding, ensure that the Oracle Database Administrator has created a tablespace explicitly for the AE database set-up.
  • Also, ensure that you have credentials of schema user and also database administrator permissions.
  • The database name should be unique.

 

To create objects in existing database:

  1. In the AssistEdge Database Installer dialog box:

    1. In the Database Providers section, select Oracle.
    2. In the Database Options section, select Create Objects in Existing Database.
  2. Click NEXT to proceed.

 

The Oracle Server page appears.

  1. In the Server Name/IP Address field, enter name of the server or IP Address of the Oracle server.
  2. In the Port field, enter port number to connect the database.
  3. In the Connection Method section, select the preferred connection method. Possible values are:
    SID: Enter SID name to connect to the database. 
    Service Name: Enter Service Name used to connect to the database.
  4. Click NEXT to proceed. The Database Details page appears.

 

  1. In the User/Schema Name field, enter the name of the existing user or name of the existing schema created for the tablespace user.
  2. In the Password field, enter the password created for the tablespace user.
  3. Click TEST CONNECTION to validate if the connection to the specified Oracle server instance is established.

    • If the connection is established a popup message appears as Test Connection Successful.
    • If the connection fails, make sure you are entering the right credentials and try again.
    • Click OK. The pop-up message closes.
  4.  Click NEXT. The Admin User Details page appears as shown below.

 

  1. In the Admin User Details page, you can create a super admin user who will have Admin access to AE Site Admin module and client tools of AE RPA /Engage Module. There are two ways to create Admin user, you can choose any of the option as per your preference.
    Default: By default, you can select an existing user from the active directory and assign the user as Admin user. 
    1. In Unique ID field, enter the active directory username and then click  Search . The details in this field are auto-filled. On selecting active directory username, a “Success Message” appears next to the search icon.
    2. System auto fills the Display Name and Email ID details of the Admin user.

Manual:  Select Manual checkbox, if you can create super admin user manually. Enter the required details manually in the following fields.

  • In the Unique ID field, enter a unique identifier for the AssistEdge Admin user.
  • In the First Name field, enter the first name for the AssistEdge Admin user.
  • In the Last Name field, enter the last name for the AssistEdge Admin user.
  • In the Display Name field, enter the name that you wish to display for the AssistEdge Admin user.
  • In the Email ID field, enter a valid email ID of the AssistEdge Admin user.


  1. Click INSTALL to finish the database installation process. The progress page appears which shows the database installation progress.

  2. The Installation Completed page appears. Upon successful set-up of database, a success message as “Schema ‘<name of the schema>’ updated successfully” appears. You can also check the logs and perform validation of database created before finishing the process:

 

Click VIEW LOGS to view the application log details. The log details contain information such as Log Time Stamp, UM Loader Constructor, dll, and so on.

 

Click VALIDATE to view the validation results after completion of the database creation process.

 

A popup window with Validation Results appears. Ensure that you get a success message for both listed items and close the dialog box.

  1. Click FINISH to exit the application. 


 

A popup window with DatabaseDetails.xml file appears.

Click OK.

  1. An export file is created at $\Database\Installer\Export\DatabaseDetails.xml in the installer’s folder.



    The objects for AE RPA database are successfully created in the selected database.

 

Creating Database Manually using Scripts – Oracle Server

This section describes how to create database manually by running prepared scripts in the Oracle server. In order to start creating database manually, you are required to first locate the database script folder location and then execute the scripts.
 

NOTE:  

Before proceeding with the creating database manually using scripts, ensure that you have following:

  • Oracle database, where the tablespace is created for the Oracle access user.
  • Access to user in order to create the database in Oracle
  • Below permissions are mandatory to create database:


Grant create session to <User> Grant create TABLE to <User> Grant create SEQUENCE to <User> Grant create PROCEDURE to <User> Grant create VIEW to <User> Grant create trigger to <User> Grant create TYPE to <User> 

 

 

Creating New Database using Scripts

This sections explains you about creating a new database manually using scripts in the Oracle Server. You are required to execute the Oracle scripts mentioned in the below table for a successful deployment.

 

To create database manually using scripts:

  1. Navigate to
    Product Package > Database > Installer > Scripts > SQL > SQLScripts > New_Database.
  2. Open New_Database folder.

In the New_Database folder, you can access the following scripts in the respective folders.

 

Name of Scripts

Path

Create Database user for Oracle Server

DatabaseUser\Create_DBUser.sql

Create SQL tables for Oracle database

Tables\Create_Oracle.sql

Create Tables for Oracle Studio

Tables\Create_Oracle_Studio.sql

Insert Data

Tables\Insert_Data.sql

Insert Oracle Studio

Tables\Insert_Oracle_Studio.sql

Create Oracle Audit Trigger

Tables\Create_Oracle_AuditTrigger.sql

Create Admin User for Oracle

SEAdminUser\CreateSEAdminUser_Oracle.sql

 

 

 

  1. Connect to database.
  2. Access New_Database folder and navigate to OracleScripts > New_Database > DatabaseUSer > Create_DBUser .sql and open the script in Oracle Application express.

 

 

Name of Value

Description

@v_tablespace varchar

Signifies the name of the new tablespace created where the database objects are added.

@datafile

Signifies the name of the datafile.

@user varchar

Signifies the name of the database user.

@password

Signifies the password for the database user.

 

 

 

 

 

 

 

 

 

 

 

 

  1. Click Run.
  2. Upon successful execution of the script, disconnect from the database and establish a new databaseconnection using the username and password created in the above Step 4.
  3. Then, open the following scripts in Oracle Application express and Run them in sequence as mentioned below.
    1. Access “New_Database folder and navigate to “OracleScripts > New_Database> Tables > Create_Oracle.sql” and open the script in Oracle Application express.
    2. Access “New_Database folder and navigate to “OracleScripts > New_Database> Tables > Create_Oracle_Studio.sql” and open the script in Oracle Application express.
    3. Access “New_Database folder and navigate to “OracleScripts > New_Database> Tables> Insert_Data.sql” and open the script in Oracle Application express.
    4. Access “New_Database folder and navigate to “OracleScripts > New_Database> Tables> Insert_Oracle_Studio.sql” and open the script in Oracle Application express.
    5. Access “New_Database folder and navigate to “OracleScripts > New_Database> Tables> Create_Oracle_AuditTrigger.sql” and open the script in Oracle Application express.
  4. After successful execution of above scripts, access “New_Database folder and navigate to “OracleScripts > New_Database> SEAdminUser> CreateSEAdminUser_Oracle.sql” and open the script in Oracle Application express.
  5. Update the highlighted parameters in the script file with correct admin user details as described below:

 

Name of Value

Description

@unique_id

Signifies the Unique ID of the AssistEdge admin user

@first_name

Signifies the first name of the AssistEdge admin user

@last_name

Signifies the last name of the AssistEdge admin user

@display_name

Signifies the display name of the AssistEdge admin user

@email ID

Signifies the Email ID of the AssistEdge admin user

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOTE:  

  •   In case of LDAP Authentication, ensure the values provided are of a valid user account from LDAP.
  •   In case of Custom authentication, create a valid user as per the custom authentication logic.

 

  1. Click Run.
  2. Upon successful execution of the script, admin user is created for Oracle server.
    For example,  to create database manually using “Oracle Application Express”, refer Database Creation using Oracle Application Express.

     

    NOTE:  

    Database backup and restore are not in scope of the product. Third party tools can be used for performing DBA functions of backup and restore of DB.

Database Creation using Oracle Application Express

This section describes how to create and upgrade the database using scripts in Oracle Server using Oracle Application express by following below steps:

Creating database user for Oracle Server

To create a database user for Oracle Server:

  1. Login to Oracle database using the SYSDBArole.
  2. Connect to the database.
  3. Access “New_Database folder and navigate to “OracleScripts > New_Database> DatabaseUSer > Create_DBUser.sql”and open the script in Oracle Application express.

 

Name of Value

Description

@v_tablespace varchar

Signifies the name of the new tablespace created where the database objects are added.

@datafile

Signifies the name of the data file.

@user varchar

Signifies the name of the database user.

@password

Signifies the password for the database user.

       

  1. Click Run.
  2. Upon successful execution of the script, Oracle Server Database setup is finished.

 

 

You can start using AssistEdge database for further installation process.

Creating Tables in Oracle

To create tables in oracle:

  1. Login to Oracle database using the SYSDBArole.
  2. Connect to the database.
  3. Access New_Database folder and navigate to OracleScripts > New_Database> Tables > Create_Oracle.sql and open the script in Oracle Application express.

 

  1. Click Run.
  2. Upon successful execution of the script, required tables are created in the Oracle Server.

 

 

  1. Access New_Database folder and navigate to OracleScripts > New_Database> Tables > Create_Oracle_Studio.sql  and open the script in Oracle Application express.

     

  2. Click Run.
  3. Upon successful execution of the script, required tables are created in the Oracle studio.

 

Inserting data in tables for Oracle Server

To insert data in table for Oracle Server:

  1. Login to Oracle database using the SYSDBArole.
  2. Connect to the database.
  3. Access New_Database folder and navigate to OracleScripts > New_Database> Tables> Insert_Data.sql and open the script in Oracle Application express.

     

     

  4. Click Run.
  5. Upon successful execution of the script, required data is inserted in the tables for oracle server.

 

  1. Access New_Database folder and navigate to OracleScripts > New_Database> Tables> Insert_Oracle_Studio.sql and open the script in Oracle Application express.

 

  1. Click Run.
  2. Upon successful execution of the script, required data is inserted in the tables for Oracle Server.

 

Creating Oracle Audit Trigger

To create audit trigger for Oracle Server:

  1. Login to Oracle database using the SYSDBArole.
  2. Connect to the database.
  3. Access New_Database folder and navigate to OracleScripts > New_Database> Tables> Create_Oracle_AuditTrigger.sql and open the script in Oracle Application express.

 

 

  1. Click Run.
  2. Upon successful execution of the script, required audit triggers are created in the oracle server.

 

Creating AssistEdge Admin user for Oracle Server

To create AssistEdge Admin user for Oracle Server:

  1. Login to Oracle database using the SYSDBArole.
  2. Connect to the database.
  3. Access New_Database folder and navigate to “OracleScripts > New_Database> SEAdminUser> CreateSEAdminUser_Oracle.sql”and open the script in Oracle Application express.

 

 

  1. Update the highlighted parameters in the script file with correct admin user details as described below:

 

 

Name of Value

Description

@unique_id

Signifies the Unique ID of the AssistEdge admin user

@first_name

Signifies the first name of the AssistEdge admin user

@last_name

Signifies the last name of the AssistEdge admin user

@display_name

Signifies the display name of the AssistEdge admin user

@email ID

Signifies the Email ID of the AssistEdge admin user
















 

NOTE:  

In case of LDAP Authentication, ensure the values provided are of a valid user account from LDAP.

In case of Custom authentication, create a valid user as per the custom authentication logic.

 

  1. Click Run.
  2. Upon successful execution of the script, AssistEdge admin user is created for Oracle server.

 

Prerequisite Validation - Oracle Server

This section guides you with prerequisite validations of the Oracle server. A successful installation of the Oracle Server Database installs files to the file system, creates entries in the registry, and also install several tools.

 

To verify whether Oracle server is installed on your system:

  1. From the Start menu, select Programs, then Oracle - HOME_NAME.
  2. In the Welcome window, click Installed Products to display the Inventory dialog box.
  3. To check the installed contents, find the Oracle Database product in the list. Also, you can find the Oracle database icon on the desktop.