
add needed perl modules as root.

ORACLE_HOME env variable should be set.

# ncftpget not found can use

perl -MCPAN -e 'install Bundle::CPAN'
perl -MCPAN -e 'install DBI'
perl -MCPAN -e 'install DBD::Oracle'

install easyagent Oracle module.
#copy /usr/local/soap/lib/INCPATH.pm.default to /usr/local/soap/lib/INCPATH.pm
cp /usr/local/soap/lib/INCPATH.pm.default /usr/local/soap/lib/INCPATH.pm

add the contents of perl -V into the INCPATH.pm file.
copy Oracle.pm to /usr/local/soap/easyagent
create /usr/local/soap/etc/oracle user:pass:sid
add ORACLE_HOME to ~easyagnt/.bash_profile

chown easyagnt:easyagnt /usr/local/soap/easyagent/Oracle.pm
chown easyagnt:easyagnt /usr/local/soap/lib/INCPATH.pm
chown easyagnt:easyagnt /usr/local/soap/etc/oracle




***
* NOTE Redhat ES 4.
echo "$ORACLE_HOME/lib" > /etc/ld.so.conf.d/oracle-i386.conf
/sbin/ldconfig
***

***
* NOTE Redhat ES 4 x86_64 .
echo "$ORACLE_HOME/lib" > /etc/ld.so.conf.d/oracle-i386.conf
/sbin/ldconfig
***


/etc/init.d/easyagent-tcp stop
/etc/init.d/easyagent-tcp start


also add theses lines to:
/etc/init.d/easyagent-tcp

ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_HOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib32
export LD_LIBRARY_PATH

'start')
        [ -x /usr/local/soap/bin/easyagent ] && su easyagnt -c "set LD_LIBRARY_PATH=$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; /usr/local/soap/bin/easyagent"
        ;;

