Feedback

Connection with Informix - Windows

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

If you are using a manual installation on Windows, you will need to enable the Informix extension in the php.ini file and install the Client SDK. See below for how to do this.

  • 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 Installation

1 - Unzip the file into any folder.

  • Example: client informix

Unzipping the file.

2 - Access your windows CMD by searching for command prompt in Windows search or by pressing ctrl+r and typing cmd in execute.

Accessing the Windows Command Prompt.

3 - When starting CMD, access the folder where the file was saved after downloading using the cd command and entering the path to the folder the SDK client is in. Example:

Accessing the client folder.

4 - Then run the .exe file with the -i and GUI parameters.

  • Example: installclientsdk.exe -i GUI

Running the installer.

5 - Follow the client installation wizard by clicking next to keep the default values for the installation. Pay attention to the Security Features step.

Installation Wizard.

6 - Here you can choose whether or not to use a password to access the OAT (Informix Administration Application)

OAT definition.

7 - Set your login and password, if you have checked the OAT password protection option

Setting the OAT password.

8 - Select NO and proceed with the installation as usual.

Installation Wizard.

9 - Proceed with the installation by clicking on Done and wait for the process to finish.

Finalize installation.

Setting php.ini.

1 - In the php.ini file, located under C:\php, uncomment the line for the Informix extension php_pdo_informix by removing the ; from the start of the line. See the example below:

Informix Extension Enablement

2 - Restart the Apache service using the Task Manager.

  • Open Task Manager and click on the Services tab.

  • Look for the Apache2.4 or ApacheScriptcase9php73 service and right-click on this service, then Restart.

Restart Apache

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.