IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 700 certification did'nt find the answers


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rohit_raajin

New User


Joined: 10 May 2005
Posts: 10
Location: india

PostPosted: Thu May 24, 2007 12:15 pm
Reply with quote

In which of the following is the size of the buffer used during an online backup defined ?
a. DB2_backupsz registry variable
b. DBM configuration of database instance.
c. DBM.INI file for the database instance
d. DB configuration for database being backed up.


Given the following :
CREATE TABLE tab1(col1 int CONSTRANT notnull CHECK(col1 IS NOT NULL), col2 CHAR(10)
which of the following will enforce uniqueness of col1 which currently does not contain duplicate values ?
a.Create primary key on col1.
b.Create unique index on col1
c.Create a cluster index on col1
d.Create unique constrant on col1
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu May 24, 2007 10:10 pm
Reply with quote

1. (a)

backbufsz : This parameter specifies the size of the buffer used when backing up the database when a value is not explicitly specified in the backup utility.

2. (b).

Here is the explanation:

If the statement was unique constraint, then Db2 will automatically create a unique index. Since it is not unique constraint a unique index has to be created. There is a difference between defining a unique constraint and creating a unique index. Both enforce uniqueness, a unique index allows nullable columns and generally cannot be used as a primary key.
Back to top
View user's profile Send private message
deepak.vl

New User


Joined: 17 Feb 2007
Posts: 38
Location: Hyderabad

PostPosted: Sun May 27, 2007 7:12 pm
Reply with quote

Hi,
For the second Q, even option (a) seems to enforce uniqueness to COL1. Any specific reason why that is not the answer?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
No new posts Need to find a specific STRING COBOL Programming 11
Search our Forums:

Back to Top