
5 Database Administration Voice System Database Administration
UCS 1000 R4.2 Administration 585-313-507 Issue 3 April 2000 242
7 Change the mode of shell file with the original name to rwxr_xr_x.
8 Add the original executable file name along with all the other executable
files to /etc/inittab file as before using the same tools as before.
The following example is used to illustrate these steps. The executable file
that communicates with the database is called get_pin_uac. The name of
the instance of the ORACLE database is “A”.
1 Compile the get_pin_uac executable file along with all the other
executable files as before.
2 Enter mv get_pin_uac getPinUac in the /home/gar/irapi directory.
3 In the /home/gar/irapi directory, enter vi get_pin_uac
4 Enter the following first line to the file:
ORACLE_SID=A;export ORACLE_SID
5 Add the following second and third line to the file:
ORACLE_HOME=‘/usr/lbin/dbhome $ORACLE_SID‘;export
ORACLE_HOME
exec /home/gar/irapi/getPinUac
6 Save the file and exit the editor.
7 Enter chmod 755 get_pin_uac