Feedback

Connection with Informix - MacOs

In Scriptcase, we have the following driver available for connecting to Informix: Informix PDO. If you are using your own pre-configured environment, the Informix extension must be enabled manually in PHP.

NOTE: On automatic Scriptcase installation, the Informix PDO driver is already enabled. Just follow the steps to connect by clicking here.

Prerequisites

  • Download the instant client SDK compatible with your operating system’s x64 or x86 architecture. Click here to access the Informix SDK Client Download page.
    • x86 = 32 bits
    • x64 = 64 bits

Informix SDK Client Configuration and Installation

1 - Extract the instant Client SDK file.

2 - Perform the installation via terminal, accessing the extracted folder and running the command below:

sudo ./installclientsdk

NOTE: Install in the default directory (/Applications/IBM/informix).

3 - Choose options 1 through 17 and finish the installation.

4 - After doing so, save the file and restart the apache service.

MacOs “Catalina” 10.15 or Higher
sudo apachectl restart

Creating a Connection in Scriptcase

Here is how to create a connection in your Scriptcase project using the Informix database.

1 - Access any project from your Scriptcase.

2 - Click on the New Connection icon to create a connection.

Creating a New Connection

or go to the Database > New Connection menu.

Creating a New Connection

After that, a new page will appear with all the database connections.

3 - Select the connection Informix.

Database connection selection

Connection

Enter the parameters for connecting to your Informix database as follows:

Conexão com o banco de dados

  • Connection Name: Set the name of your new connection. By default, Scriptcase adds the prefix conn along with the database name.

  • DBMS Driver: Select the Informix Driver used to connect. In this example we use the Informix PDO Driver.

  • Server/Host (Name or IP): Enter the IP or domain of the server where the database is installed along with the access port.
    • Ex: serverdomain.com:9088 or 192.168.254.170:9088
  • Database Name: Enter the name of your database to connect to it.

  • Username: Enter the user to authenticate the connection to your Informix database.

  • Password: Enter the password to complete the authentication process.

  • Test Connection: Click this button to get a response from Scriptcase request to know if the parameters entered are correct.

Teste da conexão do banco de dados

Filter

By accessing this tab, you can configure which items from the Database will be displayed in the connection, depending on the owner or not.

Database connection filtering

Show


Allows the Informix connection to see tables, views, system tables, and procedures depending on the items selected by the user. By default, the items Tables and Views are already selected by Scriptcase.

  • Tables: By selecting this option, the tables in your database will be displayed.
    • By default, Scriptcase enables this option.

  • Views: Selecting this option will display your database views.
    • By default, Scriptcase enables this option.

  • System tables: By selecting this option, the system tables of your database will be displayed.

  • Procedures: When you select this option, the procedures from your database will be displayed.

Searches


Allows you to define which tables and owners are displayed.

  • Tables: You can define in this option which tables will be displayed. The setting can contain a PREFIX% or name of the tables to be displayed.
    • By default, Scriptcase leaves this option empty.
    • Ex:

    Example of prefix usage


  • Owner: Enter the user who sees the inserted tables for display.
    • User must be in capital letters, as in the example above.

  • Show: Choose whether tables are displayed for the owner entered.

NOTE: By using table filtering, you eliminate unnecessary tables for your project and improve the performance of your database connection.

Advanced

In this tab, you have access to connection-specific settings. Changes made in this section impact the data display and performance of the application.

Advanced database connection configuration

  • client_encoding: Select the encoding used in your database. In the example above, we used client_encoding UTF-8.

  • Decimal separator: Select the type of separator for decimal records, between comma and period.
    • By default, period . is selected as the separator.

  • Persistent connection: Set whether connections will be closed after your scripts run in Scriptcase applications.
    • By default, Scriptcase disables this option.

  • Use schema before table name: Set whether the database schema is displayed before table names.
    • By default, Scriptcase enables this option.

    • Ex:

    Example of schema usage

Doubts or Connection Problems?

Contact our Support Team in case of connection problems or questions regarding this database.