Page 1 of 1

Cognos TM1 & SQL: What you gonna do if TI failed ODBCclose?

Posted: Thu Nov 14, 2013 2:22 pm
by ioscat
Hello, community!

When we use ODBCopen/ODBCclose in TI there is possibility to fail procces in the middle and miss execution of second command. In this case there are opened connections to ODBC are suspended in SQL until tm1 service is restarted.

So the question is - is it somehow possible to close them from tm1? Is session id available for TI? And how to avoid such trap? My only idea is to set up chain of two processes ("matryoshka") with first (base,parent) just to open/close connections and second (child) to do all other job. But is it within bestpractice?

Re: Cognos TM1 & SQL: What you gonna do if TI failed ODBCclo

Posted: Fri Nov 15, 2013 3:28 am
by macsir
Use three processes, one is master and other two sub-processes. one is to check the connection in normal TI ODBC interface. If it can be opened, then execute the second job process. Otherwise, skip it?