Which are the MOST IMPORTANT ACCENTURE DATABASE INTERVIEW QUESTIONS? Then this is for you. Database is a systematic collection of data and an electronic filing system. Databases helps in storing and manipulating the data. Databases are created in such a way that data is stored, retrieved, manipulated and deleted with operations. DB2 is the database used to store the data. It is the IBM product used for accessing data. Do search in gradjobopenings jobs for Accenture DB2 job listings for full time and part time positions updated today. Check out interview questions page to get more information on the kind and level of questions you will come across during the interview. gradjobopenings.com Accenture DB2 interview questions and answers provides you with complete guide and makes you prepared for winning job interview.
We at gradjobopenings.com provide free job alerts of freshers job drives. In this website we list on campus job openings for freshers and off campus job openings for freshers and also work from home job openings. This is the best website to apply for off campus drive in India. Visit our website for government job alerts and private job alerts. We also list free interview notes and study materials, one of the best interview study website.
Question 1. Explain How Would You Retrieve Rows From A Db2 Table In Embedded Sql?
Answer :
can achieve it by either by using the single row SELECT statements, or by using the CURSOR
Question 2. What Are The Alternate Ways Available To You To Retrieve A Row From A Table In Embedded Sql Apart From Cursor?
Answer :
By using Single row SELECT.
Question 3. Explain How Can You Specify And Use A Cursor In A Cobol Program?
Answer :
Try to use DECLARE CURSOR statement either in working storage or in procedure division, to specify the SELECT statement Then use OPEN, FETCH rows in a loop and finally CLOSE.
Question 4. Can You Tell Me What Will Happen When You Say Open Cursor?
Answer :
If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement Other wise simply the cursor is placed on the first row.
Question 5. Is It Possible More Than One Cursor Open At Any One Time In A Program?
Answer :
Yes, we can open more than one cursor at a time
Question 6. Can You Tell If Declare Cursor Is Executable?
Answer :
No, DECLARE CURSOR is not executable.
Question 7. Explain In Brief How Do You Leave The Cursor Open After Issuing A Commit?
Answer :
Use WITH HOLD option in DECLARE CURSOR statement, it has not effect in psuedo-conversational CICS programs.
Question 8. When You Do A Database Commit, Is The Cursor Closed In Db2?
Answer :
Yes, the cursor will be closed.
Question 9. Describe The Cobol Definition Of A Varchar Field?
Answer :
A VARCHAR column REMARKS would be defined as follows: 10 REMARKS 49 REMARKS-LEN PIC S9(4) USAGE COMP 49 REMARKS-TEXT PIC X(1920)
Question 10. Can You Tell Me What Is The Physical Storage Length Of Each Of The Following Db2 Data Types:
Answer :
DATE, TIME, TIMESTAMP and its picture clause in COBOL. DATE: 4bytes DATE: PIC X(10) TIME: 3bytes TIME PIC X(08) TIMESTAMP: 10bytes TIMESTAMP: PIC X(26)
Question 11. Explain What Are The Contents Of A Dclgen In Db2?
Answer :
EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes. A host language copy book that gives the host variable definitions for the column Names.
Question 12. In Db2, Is It Always Mandatory To Use Dclgen? If Not, Why Would You Use It At All?
Answer :
It is not always mandatory to use DCLGEN Using DCLGEN, helps detect wrongly spelt column names etc during the pre- compile stage itself ( because of the DECLARE TABLE ) DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error.
Question 13. Is Is Always Mandatory To Use Declare Table In Dclgen ? Can You Tell Why It Used?
Answer :
It not mandatory to have DECLARE TABLE statement in DCLGEN This is used by the pre-compiler to validate the table-name, view-name, column name etc, during pre-compile.
Question 14. Explain In Brief How Is A Typical Db2 Batch Program Gets Executed ?
Answer :
You should Use DSN utility to run a DB2 batch program from native TSO An example is shown: DSN SYSTEM(DSP3) RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB(‘ED01TOBJLOADLIB’) END Use IKJEFT01 utility program to run the above DSN command in a JCL
Question 15. List Some Fields From Sqlca.?
Answer :
SQLCODE, SQLERRM, SQLERRD
Question 16. Can You Tell Me How Can You Find Out The # Of Rows Updated After An Update Statement?
Answer :
You need to check the value stored in SQLERRD(3)
Question 17. Can You Tell What Do You Need To Do Before You Do Explain?
Answer :
You have to ensure that the PLAN_TABLE is created under the AUTHID
Question 18. Can You Tell Where Is The Output Of Explain Stored?
Answer :
In user id PLAN_TABLE
Accenture Syllabus and interview pattern 👉👉 Click here
Question 19. What Does It Mean – Explain Has Output With Matchcols = 0?
Answer :
A non matching index scan if ACCESSTYPE = I
Question 20. Explain How Can You Do The Explain Of A Dynamic Sql Statement?
Answer :
Use SPUFI or MF to EXPLAIN the dynamic SQL statement
Include EXPLAIN command in the embedded dynamic SQL statements
Question 21. Explain What Are The Various Isolation Levels Possible ?
Answer :
The isolation levels are CS: Cursor Stability RR: Repeatable Read
Question 22. Differentiate Between Cs And Rr Isolation Levels?where Do You Specify Them?
Answer :
CS: Releases the lock on a page after use
RR: Retains all locks acquired till end of transaction. ISOLATION LEVEL is a parameter for the bind process
Question 23. When Do You Specify The Isolation Level?
Answer :
During the BIND process ISOLATION ( CS/RR )
Question 24. Name The Various Locking Levels Available?
Answer :
PAGE, TABLE, TABLESPACE
Question 25. Explain In Brief How Does Db2 Determine What Lock-size To Use?
Answer :
Based on the lock-size given while creating the tablespace
Programmer can direct the DB2 what lock-size to use
If lock-size ANY is specified, DB2 usually choses a lock-size of PAGE
Question 26. Explain What Are The Disadvantages Of Page Level Lock In Db2?
Answer :
The main disadvantage is the high resource utilization if large updates are to be done.