problem connecting with default user

General discussion on Zend Server for IBM System i

problem connecting with default user

Postby cantorh on Thu Jan 17, 2013 6:51 pm

I trying to connect to the db using the default user ... $conn = ToolkitService::getInstance('*LOCAL','',''); However I'm getting the following errors...
[17-Jan-2013 17:48:21] PHP Fatal error: Uncaught exception 'Exception' with message 'Processing of the SQL statement ended. Reason code 0. SQLCODE=-952' in /usr/local/ZendSvr/share/ToolkitApi/ToolkitService.php:92
Stack trace:
#0 /usr/local/ZendSvr/share/ToolkitApi/ToolkitService.php(48): ToolkitService->__construct('*LOCAL', '', '', '')
#1 /webpages/php/testcall.php(5): ToolkitService::getInstance('*LOCAL', '', '')
#2 {main}
thrown in /usr/local/ZendSvr/share/ToolkitApi/ToolkitService.php on line 92

Posts: 5
Joined: Fri May 13, 2011 5:05 pm

Re: problem connecting with default user

Postby aseiden on Fri Jan 18, 2013 9:49 pm

Hugo and I discussed this offline and found that he could connect with a real user/password but not with the default user ('', '') which is QTMHHTTP. Perhaps there's a permission problem with QTMHHTTP. But it's strange that an SQL error would occur on the connection attempt. db2_connect() behaves the same way, Hugo said.

We'll follow up next week.

Posts: 873
Joined: Thu Apr 09, 2009 5:45 pm

Return to Zend Server for IBM i

Who is online

Users browsing this forum: No registered users and 1 guest