Set up the Linux or UNIX environment to run IBM® Integration Bus commands.
When you start a runtime component on Linux and UNIX systems, it inherits the environment from where you issue the mqsistart command.
You must therefore initialize the environment before you start a component; the command mqsiprofile located in the directory install_dir/bin, performs this initialization. If you are starting a broker, you might also need to initialize the environment for any databases that are accessed by the broker.
You must not change the location of the mqsiprofile command, or make user modifications to the command, because it might be replaced if you install service, or an update, to the product.
If you want to run your own additional environment settings, add a script (with the file extension .sh) to the directory work_path/common/profiles, where work_path identifies the machine-wide IBM Integration Bus working directory.
echo $MQSI_WORKPATH
When you run mqsiprofile again, the command automatically calls the additional user-written scripts in this location.
You must log out and log back in, to pick up the new files in the work_path/common/profiles directory, before you run mqsiprofile again.
The newly added script is not picked up if you run the mqsistart command from an existing initialized command shell.
A typical reason for adding scripts is to configure access to databases from deployed message flows. For more information, see Running database setup scripts.
When you have configured any additional setup, you can initialize the runtime environment for components and commands:
Check whether the following conditions apply to your environment:
You can check that your ODBC environment is configured correctly by running the mqsicvp command. This command also validates the connection to all data sources that are listed in the odbc.ini file that have been associated with a broker by using the mqsisetdbparms command. For more information, see mqsicvp command.
A broker might require access to databases from deployed message flows.
When you install a database product on Linux and UNIX systems, some database managers provide a profile to perform the environment setup that the database requires, or provide details of actions that you must take in their documentation. Always check the database product documentation for environment setup details; the information provided here is for general guidance only and might not be complete.
When your environment has been set up, see Working with databases for information about setting up your databases for use with the broker.