B. Building Encina Programs on UNIX : How You Build Programs for Encina : Step 1: Prepare the DCE Environment
 
Share this page                  
Step 1: Prepare the DCE Environment
Before performing the steps in this section, ensure that you have configured DCE and Encina, and have the Encina Monitor (cell and node) manager servers running. For more information, refer to the Encina Monitor System Administrator's Guide and Reference.
To prepare the DCE environment
1. Modify your PATH variable to include your DCE and Encina bin directories, as well as the Ingres “bin” directory, $II_SYSTEM/ingres/bin.
2. Create an OS account for the user that you want to run the application.
3. Create the corresponding Ingres user using the Terminal Monitor. Issue the following commands:
sql iidbdb
* create user username with privileges=(createdb); \g
* \q
4. Login to DCE as the cell administrator, and create a special DCE account and group from which to run your Ingres application servers:
% dce_login cell_admin cell_admin_password
% rgy_edit
Current site is: ...
rgy_edit=> domain group
Domain changed to: group
rgy_edit=> add dtp_group -f "DTP user's group"
rgy_edit=> domain principal
Domain changed to: principal
5. Add the DCE user:
rgy_edit=> add username -f "Ingres Applications Principal"
rgy_edit=> domain account
Domain changed to: account
rgy_edit=> add username -g dtp_group -o none \
-mp <cell_admin_pw> -pw ingapp_password \
-m "Ingres Applications Account"
rgy_edit=> exit
6. Add access control lists (ACLs) for the new group:
acl_edit /.:/encina -m group:dtp_group:rt
acl_edit /.:/encina -ic -m group:dtp_group:rt
acl_edit /.:/encina -io -m group:dtp_group:rt