<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Bytes - answers</title>
		<link>http://bytes.com</link>
		<description>DB2 relational database management system (IBM) - Get answers to questions about DB2 administration and development, tuning, clustering, queries, security, API, views, joins, XML, schemas, tables, triggers, SQL and more.</description>
		<language>en</language>
		<lastBuildDate>Fri, 20 Nov 2009 23:18:04 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://bytes.com/images/misc/rss.jpg</url>
			<title>Bytes - answers</title>
			<link>http://bytes.com</link>
		</image>
		<item>
			<title>Create db2 table directly by importing flat file without prior db2 table existing</title>
			<link>http://bytes.com/topic/db2/answers/877161-create-db2-table-directly-importing-flat-file-without-prior-db2-table-existing</link>
			<pubDate>Tue, 17 Nov 2009 11:34:31 GMT</pubDate>
			<description><![CDATA[Hi , 
 
I need help in understanding if i can directly(there are 100s of different structured files i get in text format with & hence dont wnat to...]]></description>
			<content:encoded><![CDATA[<div>Hi ,<br />
<br />
I need help in understanding if i can directly(there are 100s of different structured files i get in text format with &amp; hence dont wnat to manually define the structure for each file manually) create a db2 table with the structure &amp; data as in excel or flat file by importing the flat file .I have only DB@ enterprise server.No other tools....DTS in MS SQL saves this complete effort(even if it means all fields are varchar...it still recognizes all column names from the flat file automatically.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>raka61</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/877161-create-db2-table-directly-importing-flat-file-without-prior-db2-table-existing</guid>
		</item>
		<item>
			<title>Getting Error sql0338n</title>
			<link>http://bytes.com/topic/db2/answers/877084-getting-error-sql0338n</link>
			<pubDate>Mon, 16 Nov 2009 08:52:43 GMT</pubDate>
			<description>Hi, 
I am running a following query in DB2 and getting SQL0338n error. 
This is primarily because, there are subqueries at few places (marked in...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
I am running a following query in DB2 and getting SQL0338n error.<br />
This is primarily because, there are subqueries at few places (marked in bold)in the main query, after 'ON' clause.<br />
Could anyone please help me, as how these subqueries can be replaced without change in resultset?<br />
<br />
Thanks,<br />
Tejas.<br />
<br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Select<br />
.<br />
.<br />
.<br />
FROM join_is JID<br />
LEFT OUTER JOIN AD_PH ph <br />
ON JID.h_num=ph.h_num <br />
AND JID.ph_ts=ph.ts<br />
LEFT OUTER JOIN AD_COM cmd <br />
<b>ON ph.cmd_cd = cmd.cmd_cd<br />
AND cmd.ts =<br />
(<br />
SELECT max(ts)<br />
FROM AD_COM cmd_sub<br />
WHERE cmd_sub.v_frm &lt;= @start<br />
AND cmd_sub.cmd_cd = ph.cmd_cd<br />
) </b>LEFT OUTER JOIN AD_PS ps <br />
ON JID.p_num=ps.p_num <br />
AND JID.ps_ts=ps.ts<br />
LEFT OUTER JOIN PSM <br />
ON JID.p_num=PSM.p_num<br />
LEFT OUTER JOIN AD_FORM af <br />
ON JID.h_num = af.h_num<br />
AND af.ts =<br />
<b>(<br />
SELECT max(ts)<br />
FROM AD_FORM af_sub<br />
WHERE af_sub.v_frm &lt;= @start<br />
AND af_sub.h_num = JID.h_num<br />
) </b>LEFT OUTER JOIN AD_FC afc <br />
ON JID.h_num = afc.h_num<br />
<b>AND afc.ts = <br />
(<br />
SELECT max(ts) <br />
FROM AD_FC afc_sub<br />
WHERE afc_sub.v_frm &lt;= @start<br />
AND afc_sub.h_num = JID.h_num<br />
),</b><br />
AD_PCR pcr<br />
LEFT OUTER JOIN <br />
(<br />
SELECT sub_p.ps_num AS m_ps_num, max(f_pr_dt) AS match_f_pr_dt <br />
FROM AD_PCR sub_p, PSM ps_ids<br />
WHERE sub_p.ps_num = ps_ids.ps_num<br />
AND sub_p.ts = <br />
(SELECT MAX(ts) FROM AD_PCR sub_p2 WHERE sub_p2.p_num = sub_p.p_num AND sub_p2.v_frm &lt; @end)<br />
AND sub_p.ad_ty_ind != 'D'<br />
AND sub_p.td_st_ind != 'C'<br />
GROUP BY sub_p.ps_num<br />
HAVING MAX(sub_p.f_pr_dt) &lt;= @start <br />
) match ON match.m_ps_num = pcr.ps_num <br />
LEFT OUTER JOIN #efp efp ON efp.p_num = pcr.p_num<br />
LEFT OUTER JOIN AD_BD bd <br />
<b>ON bd.p_num IN <br />
(<br />
SELECT head_bd.p_num<br />
FROM AD_BD head_bd<br />
WHERE head_bd.bd_num = pcr.bd_num<br />
AND head_bd.ts =<br />
(<br />
SELECT max(ts)<br />
FROM AD_BD head_bd_sub<br />
WHERE head_bd_sub.v_frm &lt;= @start<br />
AND head_bd_sub.bd_num = head_bd.bd_num<br />
)<br />
)</b>AND bd.ts = <br />
(<br />
SELECT max(ts)<br />
FROM AD_BD bd_sub<br />
WHERE bd_sub.v_frm &lt;= @start<br />
AND bd.bd_num = bd_sub.bd_num<br />
) <br />
AND bd.pump_dt IS NOT NULL<br />
AND bd.ad_ty_ind != 'D'<br />
<b>AND NOT EXISTS <br />
(<br />
SELECT 1<br />
FROM AD_BD bd_sub2<br />
WHERE bd_sub2.p_num = bd.p_num<br />
AND bd_sub2.ts != bd.ts<br />
AND bd_sub2.ad_ty_ind != 'D'<br />
AND <br />
(<br />
bd_sub2.pump_dt IS NULL<br />
OR (bd.pump_dt &lt;= bd.v_frm AND bd_sub2.ts &gt; bd.ts)<br />
OR (bd.pump_dt &gt; bd.v_frm AND (bd_sub2.pump_dt &gt; bd.pump_dt OR bd_sub2.v_frm &gt; bd.pump_dt))<br />
)</b><br />
<b>AND bd_sub2.ts = <br />
(<br />
SELECT max(ts)<br />
FROM AD_BD bd_sub3<br />
WHERE bd_sub3.v_frm &lt;= @start<br />
AND bd_sub3.bd_num = bd_sub2.bd_num<br />
) </b>) <br />
LEFT OUTER JOIN AD_CNT cntr<br />
ON pcr.cnt_num = cntr.cnt_num<br />
<b>AND cntr.ts =<br />
(<br />
SELECT max(ts)<br />
FROM AD_CNT cntr_sub<br />
WHERE cntr_sub.v_frm &lt;= @start<br />
AND cntr_sub.cnt_num = pcr.cnt_num<br />
)</b></div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>tejasmore</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/877084-getting-error-sql0338n</guid>
		</item>
		<item>
			<title>How to get the stored procedure information?</title>
			<link>http://bytes.com/topic/db2/answers/876786-how-get-stored-procedure-information</link>
			<pubDate>Tue, 10 Nov 2009 09:09:06 GMT</pubDate>
			<description>Hi All, 
 
I dont know much about stored procedure.I am being asked to increase the ASUTIME LIMIT parameter .I know that to alter the parameter. i...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I dont know much about stored procedure.I am being asked to increase the ASUTIME LIMIT parameter .I know that to alter the parameter. i have to get the stored procedure and from there only i can alter the parameter.But the requesting team doesnt know where to get stored procedure name.Do anybody help?Or is there any other way to increase this Limit?The job is a db2 unload utility.Hw can i alter this limit and how to get the stored proc name?<br />
<br />
Please help.....<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>srilata83</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876786-how-get-stored-procedure-information</guid>
		</item>
		<item>
			<title>hw to get the stored procedure information?</title>
			<link>http://bytes.com/topic/db2/answers/876784-hw-get-stored-procedure-information</link>
			<pubDate>Tue, 10 Nov 2009 08:54:38 GMT</pubDate>
			<description>Hi All, 
 
I am being asked to increase the ASUTIME LIMIT 
parameter .I know to alter the parameter.  i have to get the stored procedure and from...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
I am being asked to increase the ASUTIME LIMIT<br />
parameter .I know to alter the parameter.  i have to get the stored procedure and from there only i can alter the parameter.But the requesting team doesnt know where to get stored procedure name.Do anybody help?Or is there any other way to increasse this Limit?<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>srilata83</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876784-hw-get-stored-procedure-information</guid>
		</item>
		<item>
			<title>Db2cmd error</title>
			<link>http://bytes.com/topic/db2/answers/876562-db2cmd-error</link>
			<pubDate>Thu, 05 Nov 2009 04:24:10 GMT</pubDate>
			<description><![CDATA[Hi, 
 
I'm using DB2v8.1.7 on window XP. I got  
 
DB2CMD.EXE -> 5 
SQL1042C An unexpected system error occurred. 
 
when try to execute DB2 command...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I'm using DB2v8.1.7 on window XP. I got <br />
<br />
DB2CMD.EXE -&gt; 5<br />
SQL1042C An unexpected system error occurred.<br />
<br />
when try to execute DB2 command on CLP.<br />
<br />
Is there any solution for this problem ? Thank you very much in advance.<br />
<br />
Regards<br />
Azahary</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>Azahary</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876562-db2cmd-error</guid>
		</item>
		<item>
			<title>MQT with MQT</title>
			<link>http://bytes.com/topic/db2/answers/876401-mqt-mqt</link>
			<pubDate>Mon, 02 Nov 2009 06:49:07 GMT</pubDate>
			<description>Hi, 
 
I am using DB2 UDB 9.1, today i tried to create an MQT using another MQT. 
 
For example : create table mqt_test as (select col1,col2 from...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
I am using DB2 UDB 9.1, today i tried to create an MQT using another MQT.<br />
<br />
For example : create table mqt_test as (select col1,col2 from mqt1) data initially deferred refresh deferred;<br />
<br />
In the above statement mqt1 is one MQT created in my db, now i am trying to create another mqt i.e, mqt_test on top of it.<br />
<br />
Is it possible to create like this because Oracle Mat views supports this, but i dont know about DB2. Can any one suggest me on this.<br />
<br />
<br />
Thanks,<br />
Siva</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>sivuj18</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876401-mqt-mqt</guid>
		</item>
		<item>
			<title>Performance Problem with Order by Clause in DB2</title>
			<link>http://bytes.com/topic/db2/answers/876311-performance-problem-order-clause-db2</link>
			<pubDate>Fri, 30 Oct 2009 16:59:38 GMT</pubDate>
			<description>If i use below query 
Select * from ADJ_ADJSTMNT fetch first 21 rows only with ur; 
works fine 
But if i use the same query with order by clause like...</description>
			<content:encoded><![CDATA[<div>If i use below query<br />
Select * from ADJ_ADJSTMNT fetch first 21 rows only with ur;<br />
works fine<br />
But if i use the same query with order by clause like below<br />
Select * from ADJ_ADJSTMNT <br />
order by adj_ca_id<br />
fetch first 21 rows only with ur;<br />
<br />
It's very much time consumming.<br />
Pls note that ADJ_ca_id has an primary index,It's must for me to select all records from ADJ rather then some specific fields from ADJ<br />
<br />
What could be the possible solutions.<br />
<br />
Many Thanks in Advance</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>gecashish</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876311-performance-problem-order-clause-db2</guid>
		</item>
		<item>
			<title>BAckup online with include logs fails !!!</title>
			<link>http://bytes.com/topic/db2/answers/876282-backup-online-include-logs-fails</link>
			<pubDate>Fri, 30 Oct 2009 08:35:44 GMT</pubDate>
			<description>Hi all, 
 
db2 9.1 fixpak 0 
aix 5.3  
 
I have a big problem every time I start an online backup with include logs via veritas comes out an error!!!...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
db2 9.1 fixpak 0<br />
aix 5.3 <br />
<br />
I have a big problem every time I start an online backup with include logs via veritas comes out an error!!!<br />
The db2diag shows:<br />
2009-10-29-17.57.22.240269+060 E10634592A396 LEVEL: Info<br />
PID : 995458 TID : 1 PROC : db2agent (idle)<br />
INSTANCE: db2inst1 NODE : 000 DB : ATMDB<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubSetupJobControl, probe:1391<br />
MESSAGE : Starting an online db backup.<br />
<br />
2009-10-29-18.34.34.020288+060 I10634989A414 LEVEL: Warning<br />
PID : 1253454 TID : 1 PROC : db2logmgr (ATMDB)<br />
INSTANCE: db2inst1 NODE : 000<br />
FUNCTION: DB2 UDB, data protection services, sqlpReadFromVendorDevice, probe:1240<br />
MESSAGE : Return code from sqlpReadFromVendorDevice: <br />
DATA #1 : Hexdump, 4 bytes<br />
0x0FFFFFFFFFFFD010 : 0000 0019 ....<br />
<br />
2009-10-29-18.34.34.021707+060 I10635404A288 LEVEL: Error<br />
PID : 1253454 TID : 1 PROC : db2logmgr (ATMDB)<br />
INSTANCE: db2inst1 NODE : 000<br />
FUNCTION: DB2 UDB, data protection services, sqlpgRetrieveLogVendor, probe:3720<br />
RETCODE : ZRC=0x00000019=25<br />
<br />
2009-10-29-18.34.34.961017+060 I10635693A401 LEVEL: Error<br />
PID : 983148 TID : 1 PROC : db2lfr (ATMDB)<br />
INSTANCE: db2inst1 NODE : 000<br />
FUNCTION: DB2 UDB, recovery manager, sqlplfrOpenExtentRetrieve, probe:225<br />
MESSAGE : Received error from db2logmgr on retrieve: <br />
DATA #1 : Hexdump, 4 bytes<br />
0x0FFFFFFFFFFFD260 : 0000 0019 ....<br />
<br />
2009-10-29-18.34.34.961173+060 I10636095A442 LEVEL: Error<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, data protection services, sqlpOpenLogForBackup, probe:20<br />
RETCODE : ZRC=0x82100016=-2112880618=SQLPLFR_RC_RETRIEVE_FAILED<br />
&quot;Log could not be retrieved&quot;<br />
<br />
2009-10-29-18.34.34.967397+060 E10636538A491 LEVEL: Error<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubProcessLogExtent, probe:1855<br />
MESSAGE : ADM8010E Backup was unable to copy requested log file &quot;S0004615.LOG&quot; <br />
for inclusion in the backup image. The backup has been aborted.<br />
<br />
2009-10-29-18.34.34.967558+060 I10637030A385 LEVEL: Error<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
MESSAGE : Current extent:<br />
DATA #1 : Hexdump, 4 bytes<br />
0x0FFFFFFFFFFF6A58 : 0000 1207 ....<br />
<br />
2009-10-29-18.34.34.967677+060 E10637416A483 LEVEL: Severe<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubProcessLogExtent, probe:1910<br />
DATA #1 : Sqlcode, PD_TYPE_SQLCODE, 4 bytes<br />
-2428<br />
DATA #2 : Hexdump, 4 bytes<br />
0x000000011127E840 : FFFF F684 ....<br />
<br />
2009-10-29-18.34.34.967828+060 E10637900A886 LEVEL: Severe<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubProcessLogExtent, probe:1910<br />
MESSAGE : SQL2428N The BACKUP did not complete because one or more of the <br />
requested log files could not be retrieved.<br />
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes<br />
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -2428 sqlerrml: 0<br />
sqlerrmc: <br />
sqlerrp : sqlubPro<br />
sqlerrd : (1) 0x00000000 (2) 0x00000000 (3) 0x00000000<br />
(4) 0x00000000 (5) 0x00000000 (6) 0x00000000<br />
sqlwarn : (1) (2) (3) (4) (5) (6) <br />
(7) (8) (9) (10) (11) <br />
sqlstate: <br />
<br />
2009-10-29-18.34.34.968773+060 E10638787A473 LEVEL: Severe<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubbuf, probe:338<br />
DATA #1 : Sqlcode, PD_TYPE_SQLCODE, 4 bytes<br />
-2044<br />
DATA #2 : Hexdump, 8 bytes<br />
0x000000011127E840 : FFFF F804 0000 0002 ........<br />
<br />
2009-10-29-18.34.34.968905+060 E10639261A872 LEVEL: Severe<br />
PID : 647378 TID : 1 PROC : db2bm.995458.1<br />
INSTANCE: db2inst1 NODE : 000<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubbuf, probe:338<br />
MESSAGE : SQL2428N The BACKUP did not complete because one or more of the <br />
requested log files could not be retrieved.<br />
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes<br />
sqlcaid : SQLCA sqlcabc: 136 sqlcode: -2428 sqlerrml: 0<br />
sqlerrmc: <br />
sqlerrp : sqlubPro<br />
sqlerrd : (1) 0x00000000 (2) 0x00000000 (3) 0x00000000<br />
(4) 0x00000000 (5) 0x00000000 (6) 0x00000000<br />
sqlwarn : (1) (2) (3) (4) (5) (6) <br />
(7) (8) (9) (10) (11) <br />
sqlstate: <br />
<br />
2009-10-29-18.34.39.978211+060 I10640134A664 LEVEL: Error<br />
PID : 1118270 TID : 1 PROC : db2med.995458.0<br />
INSTANCE: db2inst1 NODE : 000<br />
FUNCTION: DB2 UDB, database utilities, sqluMapVend2MediaRCWithLog, probe:939<br />
DATA #1 : String, 110 bytes<br />
Vendor error: rc = 17 returned from function sqluvend.<br />
Return_code structure from vendor library nbdb2.sl64:<br />
<br />
DATA #2 : Hexdump, 48 bytes<br />
0x0FFFFFFFFFFFD858 : 0000 020C 4E65 7442 6163 6B75 7020 436F ....NetBackup Co<br />
0x0FFFFFFFFFFFD868 : 6D6D 6974 2041 6374 696F 6E20 4661 696C mmit Action Fail<br />
0x0FFFFFFFFFFFD878 : 6500 08BA 18A8 08BA 0000 0000 0000 0000 e...............<br />
<br />
2009-10-29-18.34.39.978615+060 I10640799A313 LEVEL: Warning<br />
PID : 1118270 TID : 1 PROC : db2med.995458.0<br />
INSTANCE: db2inst1 NODE : 000<br />
FUNCTION: DB2 UDB, database utilities, sqluMCTerminateBackup, probe:1322<br />
MESSAGE : Media controller -- Problem closing vendor device<br />
<br />
2009-10-29-18.34.39.983990+060 E10641113A708 LEVEL: Error<br />
PID : 995458 TID : 1 PROC : db2agent (idle)<br />
INSTANCE: db2inst1 NODE : 000 DB : ATMDB<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubCleanupPartialBackup, probe:578<br />
MESSAGE : Error returned by sqluvdel<br />
DATA #1 : unsigned integer, 4 bytes<br />
26<br />
DATA #2 : Hexdump, 48 bytes<br />
0x0FFFFFFFFFFE4A68 : 0000 01F9 4E65 7442 6163 6B75 7020 4442 ....NetBackup DB<br />
0x0FFFFFFFFFFE4A78 : 3220 496E 7075 7420 496E 7661 6C69 6400 2 Input Invalid.<br />
0x0FFFFFFFFFFE4A88 : 0000 0000 0000 0000 0000 0000 0000 0000 ................<br />
<br />
2009-10-29-18.34.39.990737+060 E10641822A374 LEVEL: Severe<br />
PID : 995458 TID : 1 PROC : db2agent (idle)<br />
INSTANCE: db2inst1 NODE : 000 DB : ATMDB<br />
APPHDL : 0-692 APPID: *LOCAL.db2inst1.091029165722<br />
AUTHID : DB2INST1<br />
FUNCTION: DB2 UDB, database utilities, sqlubcka, probe:850<br />
MESSAGE : Backup terminated.<br />
<br />
Attach the db_cfg. <br />
<br />
Backup command is: <br />
<br />
db2 online backup db dbname online load / usr/openv/netbackup/bin/nbdb2.sl64 inlude logs <br />
Help me please...</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://bytes.com/images/attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://bytes.com/attachments/attachment/2356d1256891729/db_cfg.txt">db_cfg.txt</a> (6.8 KB)</td>
</tr>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>alex250374</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876282-backup-online-include-logs-fails</guid>
		</item>
		<item>
			<title>How to write a stored procedure?</title>
			<link>http://bytes.com/topic/db2/answers/876063-how-write-stored-procedure</link>
			<pubDate>Mon, 26 Oct 2009 09:40:41 GMT</pubDate>
			<description>Hi all, 
I m As/400 user. I wan to know how to write a stored procedure in as/400 db2 and how compile/run it? 
Please reply me urjently... I m in...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
I m As/400 user. I wan to know how to write a stored procedure in as/400 db2 and how compile/run it?<br />
Please reply me urjently... I m in urjentl need of it...<br />
<br />
Thanks in Advance,<br />
Nityanand.</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>nityanandkore</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/876063-how-write-stored-procedure</guid>
		</item>
		<item>
			<title>locks, transactions and stored procedures</title>
			<link>http://bytes.com/topic/db2/answers/875924-locks-transactions-stored-procedures</link>
			<pubDate>Thu, 22 Oct 2009 17:33:54 GMT</pubDate>
			<description>hello, 
 
Im calling a db2 sp from a java application. Im not declaring explicitly any transaction at client side. 
 
The stored procedure has a...</description>
			<content:encoded><![CDATA[<div>hello,<br />
<br />
Im calling a db2 sp from a java application. Im not declaring explicitly any transaction at client side.<br />
<br />
The stored procedure has a configuration like the following. There is no explicit transaction declared inside the SP as well.<br />
<br />
Run_some_code_area1<br />
Select statement to row_xy<br />
Run_some_code_area2<br />
an Update statement to row_xy (the same from the select statement)<br />
Run_some_code_area3<br />
<br />
Now, imagine there are two application invoking this same SP, an that each one will try to select and update exactly the same row: row_xy. If application_A is in the Run_some_code_area2 block, will Application B be able to execute with sucess the select statement?<br />
<br />
<br />
Thank you</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>forumwebuser</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/875924-locks-transactions-stored-procedures</guid>
		</item>
		<item>
			<title>Return union result in one row?</title>
			<link>http://bytes.com/topic/db2/answers/875904-return-union-result-one-row</link>
			<pubDate>Thu, 22 Oct 2009 12:47:07 GMT</pubDate>
			<description><![CDATA[Hi folks, 
 
I want to union two tables into one row per empno 
 
 SELECT EMPNO, EMAIL , ' '    
 FROM EMP_T                  
                    
...]]></description>
			<content:encoded><![CDATA[<div>Hi folks,<br />
<br />
I want to union two tables into one row per empno<br />
<br />
 SELECT EMPNO, EMAIL , ' '   <br />
 FROM EMP_T                 <br />
                   <br />
 UNION ALL                     <br />
 SELECT EMPNO, ' ', MGREMAIL <br />
 FROM MGR_T    <br />
<br />
tables look like this: <br />
<br />
EMP_T<br />
<br />
 EMPNO    EMAIL     <br />
 -------  ----------<br />
 0001  emp1@123.com<br />
 0002  emp2@123.com<br />
 0003  emp3@123.com<br />
<br />
MGR_T<br />
<br />
EMPNO    MGREMAIL                     <br />
-------  -----------------------------<br />
0001  mgr1@123.com<br />
0002  mgr2@123.com <br />
0004  mgr3@123.com <br />
0003  mgr4@123.com <br />
<br />
I want the result to look like this:<br />
<br />
EMPNO    email                   mgremail                 <br />
-------        --------------------        -------------------- <br />
0001  emp1@123.com     mgr1@123.com<br />
0002  emp2@123.com     mgr2@123.com <br />
0004                               mgr3@123.com                          <br />
0003  emp3@123.com     mgr4@123.com <br />
<br />
Any suggestions ?<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>pppat</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/875904-return-union-result-one-row</guid>
		</item>
		<item>
			<title>SQL1336N and DB2 CONNECTIVITY PROBLEM. What am I doing wrong?</title>
			<link>http://bytes.com/topic/db2/answers/875877-sql1336n-db2-connectivity-problem-what-am-i-doing-wrong</link>
			<pubDate>Thu, 22 Oct 2009 03:47:52 GMT</pubDate>
			<description>Hi all, 
 
I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things....</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that<br />
I can get will be highly appreciated.<br />
<br />
First, the error that I am getting when I try to connect to the remote host after performing NODE and database catalog is the following:<br />
<br />
[IBM][CLI Driver] SQL1336N  The remote host &quot;WINSVR2008R2-2&quot; was not found.  SQLSTATE=08001. I have reviewed the associated explanation for the SQL1336N error message which in <br />
essence states that the system cannot resolve the IP address of the remote host.<br />
<br />
For further clarification, I have DB2 Express-C 9.7 installed on my Vista Home premium Laptop. I also have VMware Workstation 6.5.3 hosting Windows Server 2008 R2 as guest OS. <br />
On this Windows Server 2008 R2 is installed a copy of DB2 Express-C 9.7. I desire connectivity to this DB2 copy from my Vista machine's DB2 Control Center. Below is what I have <br />
configured for my local and remote DB2 environment. <br />
<br />
Please take note of what I have for IP address from issuing IPCONFIG for both VISTA host and the VMware Windows Server 2008R2:<br />
<br />
(1) From the Services file on both environment (Vista and Windows Server2008R2) I have:<br />
<br />
SERVICE NAME    PORT#<br />
<br />
db2vistaj_DB2	55000/tcp                           #HomeLaptop-1                       &lt;---- Vista Home Premium - Local Machine<br />
db2vista_DB2	50000/tcp                           #HomeLaptop-1<br />
<br />
db2j_DB2T0	65000/tcp                           #Windows Server 2008 R2 TestBaseVM  &lt;---- VMware/Windows Server 2008 R2 (Remote). Cataloged locally<br />
db2c_DB2T0	60000/tcp                           #Windows Server 2008 R2 TestBaseVM<br />
<br />
db2j_DB2W0	55000/tcp                           #Windows Server 2008 R2 WorkBaseVM  &lt;---- Another VMware/Windows server 2008 R2. This is not currently cataloged on my local machine<br />
db2c_DB2W0	50000/tcp                           #Windows Server 2008 R2 WorkBaseVM        local machine (Remote)<br />
<br />
<br />
<br />
       Catalog Information:<br />
<br />
cATALOG TCPIP NODE SVR2008A  REMOTE WINSVR2008R2-2  SERVER db2c_DB2T0  OSTYPE WIN<br />
<br />
CATALOG DATABASE SAMPLE AS SAMPLEA AT NODE SVR2008A<br />
<br />
<br />
db2 =&gt; list node directory<br />
<br />
 Node Directory<br />
<br />
 Number of entries in the directory = 1<br />
<br />
Node 1 entry:<br />
<br />
 Node name                      = SVR2008A<br />
 Comment                        =<br />
 Directory entry type           = LOCAL<br />
 Protocol                       = TCPIP<br />
 Hostname                       = WINSVR2008R2-2<br />
 Service name                   = db2c_DB2T0<br />
<br />
db2 =&gt; list database directory<br />
<br />
 System Database Directory<br />
<br />
 Number of entries in the directory = 3<br />
<br />
Database 1 entry:<br />
<br />
 Database alias                       = TOOLSDB<br />
 Database name                        = TOOLSDB<br />
 Local database directory             = C:<br />
 Database release level               = d.00<br />
 Comment                              =<br />
 Directory entry type                 = Indirect<br />
 Catalog database partition number    = 0<br />
 Alternate server hostname            =<br />
 Alternate server port number         =<br />
<br />
Database 2 entry:<br />
<br />
 Database alias                       = SAMPLEA<br />
 Database name                        = SAMPLE<br />
 Node name                            = SVR2008A<br />
 Database release level               = d.00<br />
 Comment                              =<br />
 Directory entry type                 = Remote<br />
 Catalog database partition number    = -1<br />
 Alternate server hostname            =<br />
 Alternate server port number         =<br />
<br />
Database 3 entry:<br />
<br />
 Database alias                       = SAMPLE<br />
 Database name                        = SAMPLE<br />
 Local database directory             = C:<br />
 Database release level               = d.00<br />
 Comment                              =<br />
 Directory entry type                 = Indirect<br />
 Catalog database partition number    = 0<br />
 Alternate server hostname            =<br />
 Alternate server port number         =<br />
<br />
------------------------------------------------------------------------------------------------------------------------------------------------------<br />
<br />
                  IPCONFIG -- WINDOWS SERVER 2008 R2<br />
<br />
C:\Users\Administrator&gt;ipconfig /all<br />
<br />
Windows IP Configuration<br />
<br />
   Host Name . . . . . . . . . . . . : WINSVR2008R2-2<br />
   Primary Dns Suffix  . . . . . . . :<br />
   Node Type . . . . . . . . . . . . : Hybrid<br />
   IP Routing Enabled. . . . . . . . : No<br />
   WINS Proxy Enabled. . . . . . . . : No<br />
<br />
Ethernet adapter Local Area Connection* 9:<br />
<br />
   Media State . . . . . . . . . . . : Media disconnected<br />
   Connection-specific DNS Suffix  . :<br />
   Description . . . . . . . . . . . : Microsoft Failover Cluster Virtual Adapte<br />
r<br />
   Physical Address. . . . . . . . . : 02-0C-29-6E-50-FB<br />
   DHCP Enabled. . . . . . . . . . . : Yes<br />
   Autoconfiguration Enabled . . . . : Yes<br />
<br />
Ethernet adapter Local Area Connection:<br />
<br />
   Connection-specific DNS Suffix  . :<br />
   Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection<br />
   Physical Address. . . . . . . . . : 00-0C-29-EF-CE-93<br />
   DHCP Enabled. . . . . . . . . . . : No<br />
   Autoconfiguration Enabled . . . . : Yes<br />
   Link-local IPv6 Address . . . . . : fe80::fc5c:9725:716c:6c50%11(Preferred)<br />
   IPv4 Address. . . . . . . . . . . : 192.168.2.2(Preferred)<br />
   Subnet Mask . . . . . . . . . . . : 255.255.255.0<br />
   Default Gateway . . . . . . . . . : 192.168.2.1<br />
   DHCPv6 IAID . . . . . . . . . . . : 234884137<br />
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-6D-E2-CA-00-0C-29-6E-50-FB<br />
<br />
   DNS Servers . . . . . . . . . . . : 192.168.2.1<br />
   NetBIOS over Tcpip. . . . . . . . : Enabled<br />
<br />
                  <br />
<br />
<br />
		IPCONFIG -- VISTA (HOST and Showing, Wireless Network Connection, VMware Network Adapter VMnet1 and VMnet8)<br />
<br />
C:\Users&gt;IPCONFIG /ALL<br />
<br />
Windows IP Configuration<br />
<br />
   Host Name . . . . . . . . . . . . : HomeLaptop-1<br />
   Primary Dns Suffix  . . . . . . . :<br />
   Node Type . . . . . . . . . . . . : Hybrid<br />
   IP Routing Enabled. . . . . . . . : No<br />
   WINS Proxy Enabled. . . . . . . . : No<br />
   DNS Suffix Search List. . . . . . : Belkin<br />
<br />
Wireless LAN adapter Wireless Network Connection:<br />
<br />
   Connection-specific DNS Suffix  . : Belkin<br />
   Description . . . . . . . . . . . : Atheros AR5007 802.11b/g WiFi Adapter<br />
   Physical Address. . . . . . . . . : 00-23-4D-B5-17-89<br />
   DHCP Enabled. . . . . . . . . . . : Yes<br />
   Autoconfiguration Enabled . . . . : Yes<br />
   Link-local IPv6 Address . . . . . : fe80::54a1:eaaf:3842:591c%11(Preferred)<br />
   IPv4 Address. . . . . . . . . . . : 192.168.2.2(Preferred)<br />
   Subnet Mask . . . . . . . . . . . : 255.255.255.0<br />
   Lease Obtained. . . . . . . . . . : Wednesday, October 21, 2009 9:35:53 PM<br />
   Lease Expires . . . . . . . . . . : Friday, October 19, 2018 9:35:53 PM<br />
   Default Gateway . . . . . . . . . : 192.168.2.1<br />
   DHCP Server . . . . . . . . . . . : 192.168.2.1<br />
   DHCPv6 IAID . . . . . . . . . . . : 234890061<br />
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-62-44-FB-00-23-4D-B5-17-89<br />
<br />
   DNS Servers . . . . . . . . . . . : 192.168.2.1<br />
                                       192.168.2.1<br />
   NetBIOS over Tcpip. . . . . . . . : Enabled<br />
<br />
Ethernet adapter Local Area Connection:<br />
<br />
   Media State . . . . . . . . . . . : Media disconnected<br />
   Connection-specific DNS Suffix  . :<br />
   Description . . . . . . . . . . . : Realtek RTL8102E Family PCI-E Fast Ethern<br />
et NIC (NDIS 6.0)<br />
   Physical Address. . . . . . . . . : 00-1E-EC-B7-40-15<br />
   DHCP Enabled. . . . . . . . . . . : No<br />
   Autoconfiguration Enabled . . . . : Yes<br />
<br />
Ethernet adapter VMware Network Adapter VMnet1:<br />
<br />
   Connection-specific DNS Suffix  . :<br />
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet<br />
1<br />
   Physical Address. . . . . . . . . : 00-50-56-C0-00-01<br />
   DHCP Enabled. . . . . . . . . . . : No<br />
   Autoconfiguration Enabled . . . . : Yes<br />
   Link-local IPv6 Address . . . . . : fe80::71e1:6dac:8abe:3e46%12(Preferred)<br />
   IPv4 Address. . . . . . . . . . . : 192.168.233.1(Preferred)<br />
   Subnet Mask . . . . . . . . . . . : 255.255.255.0<br />
   Default Gateway . . . . . . . . . :<br />
   DHCPv6 IAID . . . . . . . . . . . : 369119318<br />
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-62-44-FB-00-23-4D-B5-17-89<br />
<br />
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1<br />
                                       fec0:0:0:ffff::2%1<br />
                                       fec0:0:0:ffff::3%1<br />
   NetBIOS over Tcpip. . . . . . . . : Enabled<br />
<br />
Ethernet adapter VMware Network Adapter VMnet8:<br />
<br />
   Connection-specific DNS Suffix  . :<br />
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet<br />
8<br />
   Physical Address. . . . . . . . . : 00-50-56-C0-00-08<br />
   DHCP Enabled. . . . . . . . . . . : No<br />
   Autoconfiguration Enabled . . . . : Yes<br />
   Link-local IPv6 Address . . . . . : fe80::35cc:4e5d:6032:35dd%13(Preferred)<br />
   IPv4 Address. . . . . . . . . . . : 192.168.139.1(Preferred)<br />
   Subnet Mask . . . . . . . . . . . : 255.255.255.0<br />
   Default Gateway . . . . . . . . . :<br />
   DHCPv6 IAID . . . . . . . . . . . : 402673750<br />
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-12-62-44-FB-00-23-4D-B5-17-89<br />
<br />
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1<br />
                                       fec0:0:0:ffff::2%1<br />
                                       fec0:0:0:ffff::3%1<br />
   NetBIOS over Tcpip. . . . . . . . : Enabled</div>

]]></content:encoded>
			<category domain="http://bytes.com/topic/db2/answers/">answers</category>
			<dc:creator>okonita</dc:creator>
			<guid isPermaLink="true">http://bytes.com/topic/db2/answers/875877-sql1336n-db2-connectivity-problem-what-am-i-doing-wrong</guid>
		</item>
	</channel>
</rss>
