User Profile

Collapse

Profile Sidebar

Collapse
spider007
spider007
Last Activity: Oct 8 '08, 07:27 PM
Joined: Jan 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • spider007
    replied to shell script to extract rows from table
    in DB2
    Is there any specific reason that you want a shell script. You can do a export of the table data using EXPORT command.
    See more | Go to post

    Leave a comment:


  • What you can try to do is a concat and then cast it as a date. so it should look something like:

    concat (char(dat), char(month), '01')
    and then u can use date while comparing

    date(concat (char(dat), '-',char(month), '-','01') )

    I am not sure whether this will work or not. but worth a try. other experts can also response
    See more | Go to post

    Leave a comment:


  • Basically what you are looking for is federation. Look at this article http://www.ibm.com/developerworks/db2/library/techarticle/0203haas/0203haas.html
    See more | Go to post

    Leave a comment:


  • the reason it is updating all the rows is that because you have mentioned EXISTS in the wehere clause. So even if one rows exists, it will update all rows. You may want to try:

    UPDATE TABLE_HDR
    SET HDRFIELD1 = 'XX'
    WHERE HDRFIELD1 IN (SELECT HDRFIELD1 FROM TABLE_HDR,TABLE _1A,TABLE_1B WHERE FIELD_1A= FIELD_1B AND HDRFIELD1=FIELD 1A)

    this is not performance tuned at all.
    See more | Go to post

    Leave a comment:


  • spider007
    replied to DB2 Response File Installation
    in DB2
    You will have to install DB2 on other machine too. Response file helps you in automating the install process. The options which you selected while installing the first time would be saved in the response file. So next time when you install DB2 on any other machine, you can specify the response file at that time and DB2 will be installed with those options.
    See more | Go to post

    Leave a comment:


  • spider007
    replied to Db2 Dba
    in DB2
    1. We relate caching to bufferpool. The data is "cached" in a bufferpool, the memory for which is taken from real memory
    2. You need to specify the stored procedure as non-fenced. In non-fenced mode, the stored procedures are run in the db2 addresspace, however this is not advisable as if there is any problem with SP, it may result into crashing of the instance.
    See more | Go to post

    Leave a comment:


  • spider007
    replied to What is DB2 agent ???
    in DB2
    DB2 agent is the process which is responsible for carrying out work (be it executing SQL, etc.). Going forward in DB2 9.5, DB2 agent is a thread.
    See more | Go to post

    Leave a comment:


  • spider007
    replied to db2 700 exam
    in DB2
    i would suggest book by Rogers Sanders
    See more | Go to post

    Leave a comment:


  • spider007
    started a topic DB2 Best Practices
    in DB2

    DB2 Best Practices

    This is not a question.

    Just wanted to let everyone know (who don't know till now :)) that there are certain DB2 Best Practices which are published here:

    http://www.ibm.com/developerworks/db2/bestpractices.

    Your comments/feedback/suggestions are welcome.

    -Saurabh
    See more | Go to post

  • spider007
    replied to Sybase to DB2 Migration
    in DB2
    If you are migrating to DB2 9, you can use compression to actually get the compressed data which will definitely be less than 300G
    See more | Go to post

    Leave a comment:


  • spider007
    replied to DB2 Migrate to Oracle
    in DB2
    I thought if you "have Desigined a product using DB2", you would want to still work on DB2 and that is what I want to understand (if you could share, that is), that what could be the possible reason to move to Oracle?

    Regd the migration strategy, well as I said, this is probably the wrong forum ;)

    -Saurabh
    See more | Go to post

    Leave a comment:


  • spider007
    replied to DB2 Migrate to Oracle
    in DB2
    Aren't you asking the wrong question in this forum ;) ?
    Just curious to know any particular reason to move from DB2 to Oracle.
    See more | Go to post

    Leave a comment:


  • spider007
    replied to Verify attribute content
    in DB2
    I am not very sure, but i think you can create a c function (udf) and then use it in some trigger on that table. Again i am not sure whether udf can be called inside a trigger or not
    See more | Go to post

    Leave a comment:


  • spider007
    replied to SQL0440 error on delete statement
    in DB2
    Did you migrated the database before using it?
    See more | Go to post

    Leave a comment:


  • spider007
    replied to Db2 loading from Tab delimited Txt file
    in DB2
    Import utility is just like insert statements and hence wil take some time. Load, on the other hand, is very fast but you will not be able to commit after every 2000 rows. if there is no req for commiting every 2k rows, you can use load.
    You may also want to look at this article: http://www-128.ibm.com/developerworks/db2/library/tips/dm-0403wilkins/

    Oldie but goldie..
    See more | Go to post

    Leave a comment:


  • spider007
    replied to Max Lehgth Of A Row In Db2
    in DB2
    I found a link for version 8
    http://publib.boulder. ibm.com/infocenter/db2luw/v8/index.jsp?topic =/com.ibm.db2.udb .doc/admin/c0004926.htm

    you may also want to look at this article:
    http://www.ibm.com/developerworks/db2/library/techarticle/dm-0707schurr/index.html
    See more | Go to post

    Leave a comment:


  • spider007
    replied to DB2 backup Valid or Corrupted
    in DB2
    A little search on info center fetched this
    http://publib.boulder. ibm.com/infocenter/db2luw/v8//topic/com.ibm.db2.udb .doc/core/r0002585.htm
    See more | Go to post

    Leave a comment:


  • spider007
    replied to Db2 loading from Tab delimited Txt file
    in DB2
    I think you will have to modify the tab delimited file to a csv or any other delimiter. For example, if the delimiter is "^", then you can use

    db2 import from filename of del modified by coldel^ insert into ....
    See more | Go to post

    Leave a comment:


  • spider007
    replied to Max Length Of Varchar
    in DB2
    Keep in mind though that you will have to create a tablespace and a bufferpool of size 32K if you want to use varchar of that size.

    Also, I am not really sure whether it will accept 32767.
    See more | Go to post

    Leave a comment:


  • spider007
    replied to DB2 backup Valid or Corrupted
    in DB2
    db2ckbkp is the command
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...