Hi,Teamsite 6.5 SP2Win 2003 Enterprise EditionOracle 9iWe are using a tpl, which connects to DB, to generate and html. When previewing the DCR we are getting a connection error.Error: [12154] [] "[Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:could not resolve service name"We have checked the tnsnames.ora file. It looks Ok.We are able to connect to the database, when running the tpl from command prompt usign iwpt_compile.iplWe are also able to connect through cgi scripts.We are using Microsoft ODBC for DB Connection.TPL attached.Could anyone help resolve this issue.Regards,Pratheesh.
Thanks fish,I understand that there are difference when running a script from command prompt and through pt. But I was able to connect through a cgi script placed under iw-home/httpd/iw-bin folder, when accessed through the browser. I thought if a cgi is working, then tpl should also work. Is there a difference between calling a tpl and cgi.I have searched the forum. Most of them advice to set the path variable and oracle home variable. I have set these environment correctly.Regards,Pratheesh.