MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with START DB

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
chagantivamsee
Beginner


Joined: 16 Sep 2005
Posts: 6
Topics: 4

PostPosted: Tue Jul 25, 2006 10:18 am    Post subject: Problem with START DB Reply with quote

Hi,

In one of my JCLs, I have the following code(Step1):

PGM = IKJEFT01

Code:
DSN SYSTEM(DB2G)                                 
-START DB(F5938PPV) SPACENAM(SRTBL2) ACCESS(FORCE)
 END     


and I have got an RC = 12 and this error message today, on running the above step:

Code:
DSN                                                         
 -START DB(F5938PPV) SPACENAM(SRTBL2) ACCESS(FORCE)         
DSNI002I  ! DSNISTFO UNABLE TO START                       
           OBJECT-TYPE 00000200                             
           OBJECT-NAME F5938PPV.SRTBL2                     
           REASON 00C900A8                                 
           TYPE 00000200                                   
           NAME F5938PPV.SRTBL2                             
DSN9023I  ! DSNTDDIS 'START DATABASE' ABNORMAL COMPLETION   


Then in the Step2, i have this code:

PGM=DSNUTILB
Code:

RUNSTATS TABLESPACE(F5938PPV.SRTBL2)   
         TABLE(F5938DB.SORT_TBL_2)     
         INDEX(ALL)                     
         COLUMN(ALL)                   
         SHRLEVEL REFERENCE     


and the Step2 got an RC = 0.

Can I call this a successful Job or does it need to be re-submitted? Please advice.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Jul 25, 2006 12:11 pm    Post subject: Reply with quote

chagantivamsee,

Your job failed because the Start command was not able to acquire the lock. Why do you need a START database before the RUNSTATS step? Was there a load step prior to the start? Any way here is the detailed explanation of the reason 00C900A8

Code:

00C900A8                                                                   
                                                                           
Explanation:  The table space, index, or partition could not be started     
because of a failure to acquire the lock. Activity on the table space,     
index, or partition must quiesce before the START DB ACCESS(FORCE) command 
can acquire the necessary lock.                                             
                                                                           
The abend reason code is issued by the following CSECT: DSNISTFO           
                                                                           
System Action:  The START operation is not performed.                       
                                                                           
User Response:  Wait for all activity on the table space, index, or         
partition to complete before reissuing the START command.                   
                                                                           
Problem Determination:  The requested operation is not performed. Message   
DSNI002I is issued. For more information, refer to the description of this 
message in "DSNI... messages" in item DSNI.... If the problem persists after
all activity on the table space, index, or partition completes, gather     
diagnostic information to pursue the problem.                               
                                                                           
SYS1.LOGREC contains information in the variable recording area (VRA) of   
the system diagnostic work area (SDWA). Significant fields for this code   
are: VRARRK13, VRARRK14, and VRARRK15. If you suspect an error in DB2,     
refer to Part 2 of DB2 Diagnosis Guide and Reference for information on     
identifying and reporting the problem.                                     
                                                                           
Collect the following diagnostic items listed in Appendix C, "Problem       
determination" in item -PROBLEM_DETERMI : 1, 3, 5, 32, 33                   


If you have authority then the run the following command from the option 7 of DB2 primary menu

Code:

-DISPLAY DB(F5938PPV) SPACENAM(SRTBL2) LOCKS CLAIMERS


This will give you a list of all who is having a lock on the table space.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chagantivamsee
Beginner


Joined: 16 Sep 2005
Posts: 6
Topics: 4

PostPosted: Wed Jul 26, 2006 5:55 am    Post subject: Reply with quote

kolusu wrote:
chagantivamsee,

Your job failed because the Start command was not able to acquire the lock. Why do you need a START database before the RUNSTATS step? Was there a load step prior to the start? Any way here is the detailed explanation of the reason 00C900A8

Code:

00C900A8                                                                   
                                                                           
Explanation:  The table space, index, or partition could not be started     
because of a failure to acquire the lock. Activity on the table space,     
index, or partition must quiesce before the START DB ACCESS(FORCE) command 
can acquire the necessary lock.                                             
                                                                           
The abend reason code is issued by the following CSECT: DSNISTFO           
                                                                           
System Action:  The START operation is not performed.                       
                                                                           
User Response:  Wait for all activity on the table space, index, or         
partition to complete before reissuing the START command.                   
                                                                           
Problem Determination:  The requested operation is not performed. Message   
DSNI002I is issued. For more information, refer to the description of this 
message in "DSNI... messages" in item DSNI.... If the problem persists after
all activity on the table space, index, or partition completes, gather     
diagnostic information to pursue the problem.                               
                                                                           
SYS1.LOGREC contains information in the variable recording area (VRA) of   
the system diagnostic work area (SDWA). Significant fields for this code   
are: VRARRK13, VRARRK14, and VRARRK15. If you suspect an error in DB2,     
refer to Part 2 of DB2 Diagnosis Guide and Reference for information on     
identifying and reporting the problem.                                     
                                                                           
Collect the following diagnostic items listed in Appendix C, "Problem       
determination" in item -PROBLEM_DETERMI : 1, 3, 5, 32, 33                   


If you have authority then the run the following command from the option 7 of DB2 primary menu

Code:

-DISPLAY DB(F5938PPV) SPACENAM(SRTBL2) LOCKS CLAIMERS


This will give you a list of all who is having a lock on the table space.

Hope this helps...

Cheers

Kolusu
Hi Kolusu,

Thanks a lot for your reply.

Yes, there is a load step prior to the start. Thats the reason why we have a START before RUNSTATS. Is there a way where we can forcefully acquire a lock on the table space? I thought ACCESS(FORCE) does it. But, its proven that it doesn't.

And any idea why the Step02 was successful even though Step01 wasn't? Can I call this a Job successful or do I need to restart it?

Thanks in Advance,
Vamsee.
Back to top
View user's profile Send private message
videlord
Beginner


Joined: 09 Dec 2004
Posts: 147
Topics: 19

PostPosted: Wed Jul 26, 2006 12:20 pm    Post subject: Reply with quote

Hi Vamsee,

1. Try access(UT) if you want to run RUNSTATS utility. Usually we didn't run ACCESS(FORCE) in production environment, it may cause data inconsitant.

2. The START... ACCESS(UT) command can be run before load, and START ...ACCESS(RW) after all utility finished.

3. START command may mail if other user/thread lock the tablespace. One way we have done before:
code a REXX program to check any lock on the table, (may kick out the user/cancel the thread or you can wait, depend on your application)
then run the command when no other locks
Back to top
View user's profile Send private message
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Fri Jul 28, 2006 2:33 pm    Post subject: Reply with quote

You will have to run QUIESCE utility on the table space prior to start the database.
Back to top
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jul 31, 2006 8:37 am    Post subject: Reply with quote

If there's a LOAD step, the LOAD normally put the tablespace in cpy pending or check pending or index pending status - What's the need to START the database here?
________
Oshawa Car Assembly


Last edited by coolman on Sat Feb 05, 2011 1:45 am; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon Jul 31, 2006 8:45 am    Post subject: Reply with quote

Quote:

If there's a LOAD step, the LOAD normally put the tablespace in cpy pending or check pending or index pending status - What's the need to START the database here?


coolman,

After a load is performed on a db2 table , as you said the table is placed under copy/check pending. To remove this you need to run the CHECK Data utility. You can avoid that by using the START Command provided you know that the data you loaded satisfies all the table constraints(primary key/foregin key ...)

Access(Force) Resets any indications that a table space, index, or partition is unavailable because of pages in the logical page list, pending deferred restarts, write error ranges, read-only accesses, or utility controls. FORCE also resets the CHECK pending, COPY pending, and RECOVER pending states. Full access to the data is forced.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Jul 31, 2006 9:31 am    Post subject: Reply with quote

Thanks Kolusu
________
Bmw 6 Series
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group