Hello All,
I am unable to connect to oracle database instance from a presentation template. It just gives me a error message
as
===================
iwtmplpreview Error:
Could not process template: /data/iwmnt/default/main/
www.xxxxx.com/WORKAREA/skoppise/templatedata/health_and_lifestyle/rm_beauty/presentation/rm_beauty.tpl:/default/main/
www.xxxxx.com/WORKAREA/skoppise/templatedata/health_and_lifestyle/rm_beauty/presentation/rm_beauty.tpl ===================
Here is the Code of Presentation Template file.
=-===============
<?xml version="1.0" encoding="UTF-8"?>
<iw_pt name="health_and_lifestyle_beauty">
<iw_perl>
<![CDATA[
$ENV{ORACLE_HOME} = '/opt/oracle';
$ENV{PATH} = '/opt/oracle/bin';
$ENV{LD_LIBRARY_PATH} = '/opt/oracle/lib';
$ENV{SID} = 'cmsdb';
$ENV{ORA_SID} = 'cmsdb';
]]>
</iw_perl>
<iw_sql_open data_source = "dbi

racle:host=cmsdb;port=1521;sid=cmsdb"
user_name = "child"
password = "child"
connection = "dbh"
aux_env = "ORACLE_HOME => '/opt/oracle'">
<iw_sql_query stmt = "select membername from userprofiles'"
connection = 'dbh'
result_set = 'rs'/>
<iw_sql_iterate var='row' result_set='rs'>
<iw_value name='$row->{membername}'/><br/>
</iw_sql_iterate>
</iw_sql_open>
</iw_pt>
================
Any help please...
Thanks,
Srinivas'