Depends on what database you are using ... With Oracle you just have to put the SID of the database you want to connect to in the parameter ns_param datasource {} or if you are using PostgreSQL, the same parameter looks like ns_param datasource ${db_host}:${db_port}:${db_name} which should be self-explanatory.