Filtering Connection Database - Oracle

Filtering Connection Database - Oracle

On various occasions, we encounter slowness when connecting to the database or while editing and executing applications. It is possible to resolve these issues by optimizing data loading through filter configuration. To do so, follow these steps:

Step 1 - Creating the Connection

Access the “Database > New Connection” menu to create a new connection in your project.


Step 2 - Selecting the Database

Choose the database — in our case, "Oracle."


Step 3 - Configuring Connection Parameters

Now, the following connection parameters will be needed:

  • Connection Name: You can use any name to identify the connection — by default, Scriptcase sets the name as “conn_oracle.”
  • DBMS Driver: We should select the appropriate connection driver according to the Oracle database.
  • Database Name: We can directly use the IP/TSNAME to connect to the desired database.
  • Schema: SCHEMA of the database to be used.
  • Username: Oracle database user.
  • Password: Oracle database password. Once filled out, click “Test Connection.”

Step 4 - Configuring the Connection Filter

At this point, we should take the following steps to optimize our Oracle database connection configuration:

Show: We choose which database items will be displayed when creating applications.
  • Tables
  • Views
  • System Tables
  • Procedures

Filters: Here, we can configure two items with the following options:

  • Tables: We can type the names of the tables to be used in the configuration.
  • Owner: We should use the name — always in uppercase — of the SCHEMA, to show or not in the table list when creating the application.
  • Show: Defines whether the data entered in "Tables" and/or "Owner" will be displayed or not.
Once configured, click "Save".

Info
In the example below, only the "SYSTEM" SCHEMA data will be displayed when creating applications.



Conclusion

By following these steps, we avoid loading all SCHEMAS or tables from the database, reducing the amount of data requested from the database and increasing the speed of application creation, editing, and execution.

    • Related Articles

    • Filter Oracle Connection

      If the error above appears when connecting to the database and then creating a new application, it is necessary to make some changes regarding the database: Obs: For such changes it is necessary to know the owner who has view of the tables, such ...
    • Connection with MSSQL Database

      Scriptcase has 3types of connections that can be used to communicate with Database MSSQL Server. - MSSQL Server Native SRV PDO - MSSQL Server Native SRV - MSSQL Server ODBC 1. Connection ODBC (MSSQL Server ODBC)  This connection may be used on the ...
    • Oracle Connection - Scriptcase 8.1 - Linux

      To enable the connection to Oracle on Linux, we must perform the following steps: Prerequisites Step 1  -  Add the i386 architecture and install the packages below : UBUNTU\DEBIAN CENTOS\RHEL - sudo dpkg —add-architecture i386 
- sudo apt-get update
 ...
    • Using the Database Builder

      The DataBase Builder is a Scriptcase 'DBMS' (Database Manager System), this tool allows you to create tables, modify the structure of your tables, generate ER diagrams (Entity x Relationships), perform the export of the tables among other things. ...
    • Oracle Connection - Scriptcase 9 - Linux 64 Bits

      This procedure will only work if you have a Scriptcase manual installation in your server. Installing PHP 7.0 Installing the Scriptcase Manually To connect with Oracle in a Linux System, we must follow these steps below: Step 1 -  Installing these ...