| Sample to create a pro*c file and link with Oracle Library to form a executable |
| Step 3 Create c file ue_xtb.c Content of ue_xtb.c #ifndef UE #include "ue.h" #endif #include "ue_samp.h" exitr iapxtb[ ] = { "addtwo",addtwo,XITCC,(char *) 0,0,0 }; |
| Step 4 Create a form with user exit. Sample form with user exit (userexfmb.txt), rename the txt file to .fmb |
| Step 5 Set the environment variable "ORACLE_HOME" and "PATH" to the appropriate oracle home and compile the proc files by giving proc iname=addtwo.pc This will give addtwo.c as output. Then compile with cc compiler as given below. cc -c addtwo.c -I$ORACLE_HOME/precomp/public cc -c ue_xtb.c This will give addtwo.o and ue_xtb.o as output. Now make the executable by giving the below command make -f ins_forms45d.mk f45runmx EXITS="ue_xtb.o addtwo.o" Rename the ins_forms45.txt to ins_forms45d.mk for sample and Rename the env_forms45.txt to env_forms45.mk for sample which is used inside ins_forms45.mk |