473,609 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 Database Forum

DB2 relational database management system (IBM) - ask questions about DB2 administration and development, tuning, clustering, queries, security, API, views, joins, XML, schemas, tables, triggers, SQL and more.
3
1,991
thread by: vamsi | last post Dec 1 '11 by: Rabbit
Hi, I'm trying to create a table with a unique index consits of 5 columns with the datatypes ( VARCHAR(80), VARCHAR(144), VARCHAR(1020), VARCHAR(1020), VARCHAR(1020)). But my create table structure is failing as my primary key length is getting exceeded. But I've defined my page size as 32K. which means I can create an index with a length of...
3
2,374
thread by: harikiranjammul | last post Nov 28 '11 by: Rabbit
I need a help on SQL query. I have two tables RESPONSETIME00 & RESPONSETIME02, I need to count the URL’s such that how many times it was requested. I am attaching two tables & the output which I am looking for. Let me know how to get the attached output from the two tables.
1
1,894
thread by: Ganesh Nalawade | last post Nov 24 '11 by: Rabbit
Hi, I want to join two files and generate a report but I am facing problem while joining as the common field on which I want to joibn the file is the DATE and it has different attributes in both files. E.g. Date value in file CSLEXLP – 26oct11.—charcter- 7 Date value in FUL46P – 20111026- decimal 8 Can you help me out with this please?
0
1,305
thread by: nithinkumar1989 | last post Nov 24 '11 by: nithinkumar1989
i am trying to call a stored procedure which is in oracle from db2... i have created it in oracle and i'm done with the steps of 1.creating wrapper 2.create server 3.create user mapping also 4.create nickname.... i am able to call tables from oracle in db2.....by using this statement create nickname local schema.nickname for remote...
0
1,474
thread by: nithinkumar1989 | last post Nov 23 '11 by: nithinkumar1989
when i try to get data from db2 to oracle...is there any extra script to be run other den the script which we run when federation process between db2 to oracle.....
0
1,856
thread by: Abhijeet Joshi | last post Nov 22 '11 by: Abhijeet Joshi
I have installed db2 admin client V8.2 on Windows 7 machine and I am trying to connect db2 Database. At the end of the process system flashes error:- SQL10007N Message "-1332" could not be retrieved. Reason code: "5"
0
1,624
thread by: kalyan21 | last post Nov 21 '11 by: kalyan21
Hi, I want to use the load statement in db2 stored procedure. i just want to insert the data from one table to another table using load to increase the performance. I tried using like this it is throwing error BEGIN DECLARE CURSOR_LOAD CURSOR WITH RETURN FOR SELECT * FROM SESSION.TEMP_DATELOAD1 CALL SYSPROC.ADMIN_CMD('LOAD CURSOR_LOAD...
0
1,317
thread by: Rasika Limje | last post Nov 17 '11 by: Rasika Limje
I have a stored procedure to be used in my JAVA code. I know only its name, parameters, and I know that it returns nothing. So, when I say, stmt = cn.prepareCall("{call UpdateAgent (?, ?) }"); stmt.setLong(1, agent); stmt.setDouble(2, amount); rs = stmt.executeQuery(); What is actually returned in 'rs'?
0
1,894
thread by: Gags | last post Nov 14 '11 by: Gags
DB2 LUW 9.5 Context : Loaded the data for over 100 tables and all with the identity columns. I can go over all the tables manually and find max and can use the alter table alter column restart command but wondering if there's a possibility to just write a stored proc that will take the input as SCHEMA name and will find the tables with identity...
0
1,647
thread by: Omkar Kulkarni | last post Nov 13 '11 by: Omkar Kulkarni
Hi, We are having 100+ servers on which we are configuring the DSN using DB2 configuration assistant manually. I just need the any vbscript or the CLI commnads with the help of which I can automate this task a little bit. Please give any link & reference manual with which I can write my own script. Thanking you all....
2
4,439
thread by: 200dogz | last post Nov 9 '11 by: 200dogz
Hi all, We have a DB2 instance running on a virtual machine with Windows Server 2003 and 3.75GB of RAM. Some time since 2010, we started to experience problems with DB2, which the entire instance would "hang" when certain SQL queries are run and the only way we could get it to recover is by restarting the machine. I'm not sure if any update...
1
1,875
thread by: chamath | last post Nov 5 '11 by: ggonsalves
Is it possible to create Federated Database Objects Between two Db2 Databases Sitting on Different instances in the same Server. Eg ServerDbS1 Instance_01 Dbs1_01 Dbs1_02 Instance_02 Dbs2_01
1
2,242
thread by: pnsimham | last post Nov 5 '11 by: ggonsalves
We are looking at implementing HADR Solution to our OLTP databases and wanted to check how long does a HADR take to switch from primary to Secondary in real world? I have been reading documentation that it is fast, but the actual time is not mentioned any where. Wanted to see if it is less than 5 minutes or longer than it? Also, wanted to see...
1
3,366
thread by: Ashu Rai | last post Nov 2 '11 by: vijay2082
Hi, Is there any possibility of importing oracle dump in DB2
6
2,708
thread by: TAAJ Singh | last post Oct 27 '11 by: yarbrough40
Hi; I have a situation where a query is returning multiple rows for each group. For example :- ID Groups Value Status Modified_Time 1 JAA 190 1 2011-10-14 12.01.23 2 JAA 4354 1 2011-5-23 11.01.23 3 JAA 343 1 2011-7-01 11.01.24 4 MTT 566 1 2011-10-01 12.01.25
3
1,958
thread by: daremo18 | last post Oct 26 '11 by: Rabbit
I have a table, like this: PatNo TranCde TranAmt 1000 Adj1 -250 1000 Adj2 -100 1000 Pmt1 300 1000 Pmt2 700 2000 Adj1 -450 2000 Adj2 -75
0
1,443
thread by: sandeepKumarB | last post Oct 26 '11 by: sandeepKumarB
I want to convert this (date field) '2011-09-27 14:23:58.078000' to '2011-09-27T14:23:58.078' in DB2 appreciate your help. Thanks
0
1,528
thread by: Andy Andy | last post Oct 26 '11 by: Andy Andy
I need to run store procedure for data processing. During data processing, I need to show some messages / information to a log file / screen, how can I do it? Can I use DBMS_OUTPUT.PUT_LINE in the store procedure ? If so, how to set the "Set serverouput on" inside the store procedure ? Thanks !
2
1,332
thread by: Rahul B | last post Oct 26 '11 by: chamath
Hi, Why is it that this command doesn't work in DB2. I have to create a view in which one of the columns has to be null(Don't ask me why that should always be null, because the view in Oracle and DB2 should have same columns and Oracle view has col as null) So i try ... Create view......null as col.......
0
1,848
thread by: 0123456 | last post Oct 25 '11 by: 0123456
Hi All, I am not able to connect to DB2 database from java, no matter what driver I use. I either get "No suitable driver found" for Class.forName("com.ibm.db2.jcc.DB2Driver"); OR For Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
1
2,679
thread by: elispop122003 | last post Oct 20 '11 by: elispop122003
When trying to load the data from a clob data type I get the following error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1047096368 bytes) What I don't understand is why so much memory is being used. This is a test record that contains only 50 characters yet it is somehow trying to allocate several...
0
1,295
thread by: Gary Reardon | last post Oct 20 '11 by: Gary Reardon
I have a Table that Contains 2 Columns, A & B I need to check Column A for a specific value and if it does not equal that value, Add a new record (INSERT ?) using the specific Value for Column A and existing Value from the checked record for Column B
0
1,500
thread by: EVS KAT | last post Oct 19 '11 by: EVS KAT
How to load a table from 2 mainframe flat files with same record length 130 bytes?But these 2 files will have different data on same positions of each file.Any suggestions?ideas..pls..
0
1,308
thread by: echogovadze | last post Oct 19 '11 by: echogovadze
Hi, I wander if i can write INSERT statment, which selects data from table that exists in database1 into table that exists in database2? If yes - what syntax should i use? It is so simple in TSQL... but does not work in DB2. Thanks in advance! Eka
1
1,654
thread by: Rom Bess | last post Oct 17 '11 by: Rabbit
Good afternoon, I've a question regarding converting Oracle SQL Statement to Microsoft Access. I need to monitor DB's and I would getting data into MS Access direct. I've installed ODBC driver and got connection to Oracle DB's. Now when I trying to get data from Oracle DB (like tablespace size, free space etc) I'm getting error, because I took...

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.