12-14-2010 02:25 AM - edited 03-14-2019 07:03 AM
Hi,
We have implemented a Wallboard in .NET 2.0 and connecting to UCCX v8 Informix database (in particular the table "db_cra") works well with ODBC link ("uccxwallboard" user).
From our tests, it does not work natively and in IBM User Guide, it would seem necessary to add stored procedures to the server through the "coledbp.sql" script (provided in the "Client SDK").
Thank you.
01-19-2011 12:11 PM
Bumping this one, hoping that someone can provide an answer?
I'm in the same situation...
01-19-2011 05:06 PM
Creating custom stored procedure on UCCX informix database is not recommended and will not be supported by TAC. Also "IBM Informix .NET provider" drivers are not tested with the present 8.x releases.
If interested you can try in your lab box and see if it works but from prior experiences we have seen custom stored procedures and untested drivers lead to memory leak issues which ultimately crashes the UCCX engine service.
Hope this helps
Anuj
01-05-2012 09:28 AM
Hi Anuj,
Were you able to get the informix .NET Provider to work with uccx? Is there anything you can get regarding what you found?
Thanks
03-06-2012 07:29 AM
I am not able to connect to the UCCX database with the .net provider "IBM.Data.Informix".
I use the following connection string:
Server=servername;DataBase=db_cra;UID=uccxhruser;PWD=xxxxxxx;
The connection string does not accept any other parameters like Host, Protocol or Service even though they are documented. I get an "invalid argument" error if I use any of them. My informix .net version is 9.7.4.4
If I use the connectionstring as above, I get the following error:
ERROR [08001] [IBM] SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: "SOCKETS". Location where the error was detected: "10.10.X.X". Communication function detecting the error: "connect". Protocol specific error code(s): "10061", "*", "*". SQLSTATE=08001
03-08-2012 03:46 PM
You need to specify the port, protocol and the locale.
This is from my lab
Dim ifxcon As New IfxConnection
Dim rd As IfxDataReader
Dim cmd As IfxCommand
Dim mydb, Query As String
mydb = "Database=db_cra;Host=10.99.18.52;Server=ccx85_uccx;
UID=uccxhruser;Password=cisco;
Service=1504;Protocol=onsoctcp;db_locale=en_US.57372"
Query = "Select * FROM RtCSQssummary"
ifxcon.ConnectionString = mydb
ifxcon.Open()
cmd = ifxcon.CreateCommand
cmd.CommandText = Query
rd = cmd.ExecuteReader()
While rd.Read()
' Reads go here
end while
rd.Close()
ifxcon.Close()
Graham
03-09-2012 07:01 AM
I have solved the issue.
First of all I uninstalled all IBM informix packages and the Cisco UCCX Historical Reports application.
My Computer is Windows 7 64-bit and I had the 64-bit 3.50 drivers installed.
This time instead I installed only the Informix 3.50 32-bit drivers and didn't install the IBM Data server components.
Then I pointed my .net reference to the IBM.Data.Informix.dll under
C:\Program Files (x86)\IBM\Informix\Client-SDK\bin\netf20
I also made sure the app is running in x86 mode.
That dll started working with all the options needed to connect to a UCCX database.
So in my app.config I have this:
And here's the simple code that should work:
using IBM.Data.Informix;
IfxConnection conn = new IfxConnection(ConfigurationManager.ConnectionStrings["Uccx"].ConnectionString);
conn.Open();
IfxCommand command = new IfxCommand("SELECT * FROM Resource WHERE active = 't'", conn);
IfxDataReader reader = command.ExecuteReader();
while (reader.Read())
{
Console.WriteLine("{0} {1} {2}", reader["resourceID"], reader["resourceloginid"], reader["resourcename"]);
}
Console.Read();
03-09-2012 07:31 AM
Thanks Baris. I tried your approach and it works.
04-20-2015 04:19 AM
Hey i have done the all steps that you mentioned above but i got the following exception.
"Unable to load dll iclit09b.dll".
Please help me dear.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide