|
More site info...
|
|
Forum profile page for DB2 on http://www.dbforums.com.
This report page is the aggregated overview from a single forum: DB2, located on the Message Board at http://www.dbforums.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "DB2" on the Message Board at http://www.dbforums.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on DB2:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
85
|
342
|
1,008
|
|
Post:
|
365
|
1,176
|
3,263
|
|
|
DB2 Posting activity graph:
|
Top authors during last week:
user's latest post:
Absolute SUDOKU Solver - Page 4...
Published (2009-11-06 17:07:00)
11/06/09 "Metro" NY, page 29 HARD --> 1 sec <-- Code: Source (line, sudoku_str) as ( select 1, '020090800' from sysibm.sysdummy1 union all select 2, '600270003' from sysibm.sysdummy1 union all select 3, '000006210' from sysibm.sysdummy1 union all select 4, '000700008' from sysibm.sysdummy1 union all select 5, '702804109' from sysibm.sysdummy1 union all select 6,...
user's latest post:
Where I can get the DUMPS of...
Published (2009-11-07 21:04:00)
Quote: Originally Posted by prashantopel Thanks How to create dummy database for practice in DB2 9.7? From DB2 Command Window, enter: db2 create db db2dummy I'd have suggested to create a db called db2dummy1 if db2 allowed the db name to be more than 8 char.
user's latest post:
Order of picking data mismatch...
Published (2009-11-06 12:49:00)
Quote: Originally Posted by Satish K Can you please let me know how to use the functions :- ASCII_STR and EBCDIC_STR in this case? Thx, Satish http://bit.ly/4o3Ykb
user's latest post:
How to convert INT 0 or 10 to 001
Published (2009-11-06 10:55:00)
Well, it returns a string with 3 characters where the first 2 are blanks. So you have to replace those blacks with 0's.
user's latest post:
Primary Key on GUID/UUID column...
Published (2009-11-06 17:38:00)
INSERTing 25 million rows is just asking for trouble. I think it is obvious that the problem is in having to update the index for each inserted record. If you cannot eliminate that by using LOAD or dropping and re-creating the index, I'd say your only other option is to try and speed that up. Minimize page splits by setting both PCTFREE values to something like 90 (the maximum is 99). May be put the PK index into a separate tablespace...
user's latest post:
Profiling Database
Published (2009-11-06 00:23:00)
Use SYSIBM tables in good health. SYSCAT views are for those who moved to DB2 from "Query Manager", OS/2, Windows, etc. and have not the capacity to remember SYSIBM names. When you grow up and migrate to DB2 on z/OS, you will not find any SYSCAT there. So get ahead of the game and learn SYSIBM names. P.S. Where is Marcus today? I miss him
user's latest post:
simple xml extraction
Published (2009-11-07 06:36:00)
Here is an example. Note(1): Tested on DB2 9.7 for LUW. So, some modifications may be necessary to run on earlier DB2 version. Note(2): Add WHERE clause or use subquery, to select first 10 rows only. Code: ------------------------------ Commands Entered ------------------------------ WITH tbload(acct_no, rec_no, tran_date) AS ( VALUES ( 1, 1, '2009-10-01') ,( 1, 2, '2009-10-02') ,( 1, 3, '2009-10-05') ,( 1, 4,...
user's latest post:
Simple specs - Page 6 - dBforums
Published (2009-11-05 20:01:00)
Quote: Originally Posted by Lenny77 blank remains blank No problem! Assuming the shift amount remains +19 ... values(translate('gxp rhkd ihlm mhwtr', substr(lower('ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJ KLMNOPQRSTUVWXYZ'), mod(26000001+19,26),26)||' ',lower('ABCDEFGHIJKLMNOPQRSTUVWXYZ '))) 1 ------------------- zqi kadw baef fapmk 1 record(s) selected.
user's latest post:
How to use m switch in SQL script ?
Published (2009-11-06 05:25:00)
Seems that no body paid much attention on that. Any way, I am splitting script in sections. Code: db2 -tvf script1.sql db2 -mtvf script2.sql db2 -tvf script3.sql That works already. My point to share was to find if anybody had any better workaround. I still need another workaround for Task Center Schedules. Thanks for your attention. DBFinder
|
|
|
|
Latest active threads on DB2::
Started 2 days, 15 hours ago (2009-11-07 06:36:00)
by Tonkuma
Here is an example.
Note(1): Tested on DB2 9.7 for LUW. So, some modifications may be necessary to run on earlier DB2 version.
Note(2): Add WHERE clause or use subquery, to select first 10 rows only.
Code:
------------------------------ Commands Entered ------------------------------
WITH
tbload(acct_no, rec_no, tran_date) AS (
VALUES
( 1, 1, '2009-10-01')
,( 1, 2, ...
Started 4 days, 11 hours ago (2009-11-05 10:37:00)
by sathyaram_s
700 is obsolete. I suggest you take 730.
IBM developerWorks : DB2 9 Fundamentals certification 730 prep series
Download these tutorials and I am sure you can pass (and learn too)!
Started 4 days, 10 hours ago (2009-11-05 11:44:00)
by ARWinner
No, it does not exist for DB2 for LUW. You will have to as IBM if it will ever be implemented.
Andy
Started 1 week ago (2009-11-02 18:45:00)
by stolze
You need the aggregation of strings. XMLAGG or recursive queries are the standard answer for that.
Started 4 days, 12 hours ago (2009-11-05 09:39:00)
by sathyaram_s
Looks like your Windows drive ( C:\ drive, probably) is filling up...
Cheers
Sathyaram
Quote:
Originally Posted by Partha.Baidya
I using DB2 9.1.3 in Windows XP. It is a PC and I am getting the following error in the Windows event viewer.
Instance: DB2 Node:000
PID:1024(db2fmp.exe) TID:4224 Appid:none
Health ...
Started 3 days, 13 hours ago (2009-11-06 08:27:00)
by Tonkuma
How about concatenating shorter strings.
Like this:
INSERT INTO ....
VALUES
('abcd...' ||
' efgh....' ||
'xyz....'
, ....
)
Started 4 days, 1 hour ago (2009-11-05 20:27:00)
by db2dummy1
It has been a while, but I believe that APPLY will go to sleep only when it believes it processed everything in CD/CCD tables and is completely caught up. There were some bugs around this early on but they should all have been taken care of by now. I also recall that there is a way to make APPLY more aggressive by reducing sleep time in config somewhere.
Started 3 days, 6 hours ago (2009-11-06 15:19:00)
by n_i
I guess there are some reasons that prevent you from using LOAD instead...
If the new PK values are increasing and not random, I don't think increasing PCTFREE will do much good. If they keys are random, try increasing both LEVEL2 PCTFREE and leaf level PCTFREE as much as possible. Also, you may want to try pausing the insert process from time to time and updating the PK index statistics. ...
Started 1 month, 2 weeks ago (2009-09-23 02:06:00)
by db2dummy1
this is great! spasibo Leonid! can you do the same for chess? a chess-solver?
|
|
Hot threads for last week on DB2::
Started 1 week ago (2009-11-02 18:45:00)
by stolze
You need the aggregation of strings. XMLAGG or recursive queries are the standard answer for that.
Started 6 days, 8 hours ago (2009-11-03 14:05:00)
by ARWinner
My guess is that your configuration is based on 16GB of memory, but 32 bit can only access 4GB. Anything over that is wasted.
Andy
Started 1 week ago (2009-11-02 18:06:00)
by koganti
Started 4 days, 11 hours ago (2009-11-05 10:21:00)
by sathyaram_s
Not clear! Please give an example or if possible, the same code and query that is not 'working'
What version of DB2 are you using ?
Started 5 months, 3 weeks ago (2009-05-20 04:30:00)
by przytula_guy
when the backup is started, the log file name is retained
while running the backup log files can get closed and archived
at end of backup logs need to be included in image and log file has been archived; at that time we retrieve a log from archive location. if log file has been renamed in mean time by other procedure, the log file is not available anymore and backup will fail
Started 4 days, 11 hours ago (2009-11-05 10:37:00)
by sathyaram_s
700 is obsolete. I suggest you take 730.
IBM developerWorks : DB2 9 Fundamentals certification 730 prep series
Download these tutorials and I am sure you can pass (and learn too)!
Started 4 days, 9 hours ago (2009-11-05 12:15:00)
by Lenny77
Right ( Digits (your_number), 3) ....
Lenny
Started 4 days, 10 hours ago (2009-11-05 11:44:00)
by ARWinner
No, it does not exist for DB2 for LUW. You will have to as IBM if it will ever be implemented.
Andy
Started 4 days, 11 hours ago (2009-11-05 10:21:00)
by ARWinner
Try adding the precision and scale to the cast as decimal. e.g. CAST(AMOUNT as DECIMAL(31,8)).
Andy
Started 5 days, 10 hours ago (2009-11-04 11:27:00)
by przytula_guy
name - columns and type can be retrieved from systables - syscolumns
info about the data - only by executing some sql like
select count(*) : nbr of rows
select count(distinct... for unique values....
max(xx) min(xx)
|
|