ข้ามไปที่เนื้อหาหลัก

บทความ

กำลังแสดงโพสต์ที่มีป้ายกำกับ db2

[ SOLVED ] online converts excel sheet to SQL command tool ( MySQL, PostgreSQL, DB2, Oracle ) with quoted and numeric feature

input data in microsoft excel  My colleage dumps the DB2 database into the access file, and I would like to import it back to the DB2 database. This is the quick and dirty way. After conversion from the excel to the SQL command, I execute that command in the DB2 command center. That's it !~ I built the quoted feature so that we can select which field we want to quote and not quote. The tool is available at  " Excel to SQL ". Try it ! Step 1  : paste data from the excel, click submit Step 2 :  choose the column that we want to quote. if not selected the column will be treated as a numeric field Step 3 : Bingo ! converted excel to SQL command If we want to convert from the fix length file ( i.e. the database output file exported from SPUFI ) to the excel sheet, I suggest you to use .rtf format. The microsoft excel understand .rtf and we can correctly parsed it into the column of the excel table.

[ db2 ] SQL1397N The DB2 service failed to logon. SQL1032N No start database manager command was issued. SQLSTATE=57019

H:\>db2start 23/02/2555 11:34:49 0 0 SQL1397N The DB2 service failed to logon. SQL1032N No start database manager command was issued. SQLSTATE=57019 solution : Run > services.msc ref : ibm

[ db2 ] SQL1220N The database manager shared memory set cannot be allocated. SQL1032N No start database manager command was issued. SQLSTATE=57019

In cmd H:\>db2start DB2_01-0 : The service has returned a service-specific error code. 09/02/2555 13:23:40 0 0 SQL1220N The database manager shared memory set cannot be allocated. SQL1032N No start database manager command was issued. SQLSTATE=57019 or full error in Control Center The database manager shared memory set cannot be allocated. Explanation: The database manager could not allocate its shared memory set. The cause of this error may be insufficient memory resources either for the database manager or the environment in which its operation is being attempted. Memory resources that can cause this error include: * The number of shared memory identifiers allocated in the system * The size of the shared memory segment * The amount of paging or swapping space available in the system * The amount of physical memory available in the system User response: One or more of the following: * Validate that sufficient memory resources are available to satisfy ...

[ db2 ] multi-row fetch insert update delete technique

improve insert processing by as much as 20% improve fetch processing by as much as 50%-76% ตัวอย่าง น้ะจ้ะ text copybook 01 host-variables. 05 HV-ACT-NMBR-ARRAY PIC s9(04) USAGE COMP OCCURS 100 TIMES. 05 HV-ACT-CITY-ARRAY PIC x(40) OCCURS 100 TIMES. 05 HV-ACT-NAME-ARRAY OCCURS 100 TIMES. 49 HV-ACT-NMBR-ARRAY PIC s9(04) USGE COMP. 49 HV-ACT-NAME-ARRAY PIC x(40). 05 HV-IND-ARRAY PIC s9(04) USAGE COMP OCCURS 100 TIMES. ตอน จะ declare CURSOR ก็เพิ่ม WITH ROWSET POSITIONING เข้าไป ( default จะเป็น WITHOUT ROWSET POSITIONING ) EXEC SQL DECLARE GETSET CURSOR WITH ROWSET POSITIONING FOR SELECT ACT-NMBR-ARRAY, ACT-CITY-ARRAY, ACT-NAME-ARRAY FROM H_PRSN-ACT_TRNS_T END-EXEC. ตอน fetch จ้ะ EXEC SQL FETCH NEXT ROWSET FROM GETSET FOR 100 ROWS INTO :HV-ACT-NMBR-ARRAY, :HV-ACT-CITY-ARRAY:HV-IND-ARRAY, :HV-ACT-NAME-ARRAY END-EXEC. - นอกจาก NEXT ROWSET แล้ว เรายังสามารถใช้ PRIOR ROWSET, FIRST ROWSET, LAST ROWSET, CURRENT ROWSET, และ ROW...

[ db2 ] how to set codepage and territory id

set in Command Window naja