473,404 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

php code is not running after migrating the DB2 Connect EE from V7 to V8

Hi all,

Environment:

My PC: MS Windows 2000 pro, DB2 Connect Client 7.1
Gateway: MS Windows 2000 server. DB2 Connect EE.
DB2 z/OS V7.1 z/OS 1.6
php 5.1.2 is running on my PC.

the below php code was running with DB2 Connect EE V7.
after migrating to V8 it is not running now.
Here only the gateway machine DB2 connect EE version is changed.

Could somebody let me know how i could run this php code with DB2
Connect EE V8.
-----------------------------------------------------------------------------------------------------------------------------

The sql in the loop, I catch it from the performance monitor Omegamon
II for DB2 for z/OS :
"..SELECT * FROM SYSIBM.SYSTABAUTH WHERE GRANTEE='SDIZZZZ' ORDER BY
TCREATOR ASC FOR UPDATE ...........SCROLL SENSITIVE STA "
/* P H P C O D E */
$command = "SELECT * FROM SYSIBM.SYSTABAUTH WHERE
GRANTEE='$kullanici' ORDER BY TCREATOR ASC ";
$query = odbc_exec($baglan, $command);

$t=0;$i=0;

if(odbc_fetch_row($query))
{
$t=1;
$grantorilk="";
do
{
$sysibmorgrantor=0;
$grantor = odbc_result($query, "GRANTOR");
$tcreator = odbc_result($query, "TCREATOR");

if(!strncmp($tcreator, "SYSIBM",6))
{$grantor = "SDIDBA3";$sysibmorgrantor=1;}
if(strncmp($grantorilk,$grantor, 8))
{
$setsqlid = "SET CURRENT SQLID = '$grantor';";
if(!odbc_exec($baglan, $setsqlid))
echo "$setsqlid satırı yapılamadı<br>";
}
$tablo = odbc_result($query, "TTNAME");
$grantorilk = $grantor;
if($sysibmorgrantor == 1)
$sil = "REVOKE ALL ON TABLE SYSIBM.$tablo FROM $kullanici;";
else $sil = "REVOKE ALL ON TABLE $tcreator.$tablo FROM
$kullanici;";
if(!odbc_exec($baglan, $sil))
echo "$sil satırı yapılamadı<br>";
if($i==30)
{$i=0;odbc_commit($baglan);}
$i++;
}
while(odbc_fetch_row($query)) ;
odbc_commit($baglan);
}

/* P H P C O D E */

Nov 10 '06 #1
0 1396

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Nathan Given | last post by:
Hello All, I've been struggling on and off for 3 months trying to connect to an DB2 database running on an IBM iSeries machine. I FINALLY figured out how to connect with Coldfusion (see...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
9
by: skulkrinbait | last post by:
Hello, I need some help please. I need to migrate some applications from OS2 to Windows, the source code is C. I believe this can be done using Lex and Yacc and have installed Cygwin with Flex...
2
by: Ric | last post by:
Do someone know how to migrate/copy a Windows DB2 8.1 data base to DB2 8.1 database system on AIX 5.3. Found some migrate doc on the web but these handle mirgrations across db systems. Thx in...
0
by: Valerie Hough | last post by:
My app currently runs C#, .NET v2.0 on Windows Xp/Windows Server 2003, using asynchronous socket communication. I set up my server socket: Socket s = new Socket( AddressFamily.InterNetwork,...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
9
by: WT | last post by:
Hello, I have code created with .net 1.0 and migrated to 3.5. Form 2.0 the XslTransform class is obsolete and the vs2008 compiler generates warnings that these classes are absolete suggesting to...
3
by: Iluvatar | last post by:
Hi, last week our project upgraded from vs.net 2005 to vs.net 2008. Our project still uses framework 2.0, because the deployment servers are not 3.x ready yet. Everything so far while migrating...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.