Hitachi

JP1 Version 12 JP1/Service Support Configuration and Administration Guide


jssdbstatchk.bat (checks the database status)

Organization of this page

Description

This command can be used to check the status of the Item management database and Item storage database. Information below is output to the standard output. Note that information about the Item storage database can be checked when the size of the Item management database is XL.

To run this command, go to the Start menu and click Programs, JP1_Service Support, and JP1_SS Command Prompt. Then, execute the command.

Format

jssdbstatchk.bat {-state | -dbpath}

Required execution permission

Administrator permissions

Storage folder

JP1/SS-path\tools\

Arguments

-state

Checks the status of the Item management database and Item storage database.

-dbpath

Checks the directory for storing the Item management database and Item storage database.

Return values

Return value

Meaning

0

Normal end

1

Abnormal end

2

Command executing

Status of the database to be output

The status of the database to be output depends on the specified option. The following table lists and describes the output information about the status of the database.

Table 12‒13: Output information about the status of the database

No.

Output information#1

Description

Specified option

1

Database name

(DBtype)

The target database name is output as the header. Either of the following database names is output:

  • itemmanageDB: Item management database

  • itemstoreDB(A)#2: Item storage database

--

2

Database capacity

(dbcapacity)

The database capacity (GB) of the Item storage area and attached file storage area in the target database is output. If the Item storage database is not set up, N/A is output.

-state

3

Database usage rate

(dbusage)

The usage rate (%) of the Item storage area and attached file storage area in the target database is output. If the Item storage database is not set up, N/A is output.

-state

4

Status of the storage area in the Item storage database

(active/inactive)

When the target database is the Item storage database, the status of the storage area is displayed. One of the following statuses is output:

  • active: The storage area is being used. (The storage area is targeted for update operations.)

  • inactive: The storage area is not being used.

  • N/A: The storage area has not been set up.

-state

5

Number of expansions of the Item storage database

(expandtime)

If the target database is the Item storage database, the number of expansions of the Item storage area and attached file storage area in the storage area is displayed. If the Item storage database is not set up, N/A is displayed. If the Item storage database is set up but not expanded, 0 is displayed.

-state

6

Registered Items

(itemrange)

The registration date range for the Items registered in the target database is output. For the registration date range, the oldest and latest registered date are output in yyyy/mm/dd-yyyy/mm/dd format.

Note that the following Items in the Item management database are not included:

  • Items waiting to be deleted

  • Items registered in the process work boards waiting to be deleted

-state

7

Directory that stores the database

(dbsetupdir, dbsetupdir[local], dbsetupdir[share], dbexpanddir, or dbexpanddir[share])

The directory that stores the target database is output. For the Item management database, the directory to which the Item management database is set up is output. For the Item storage database, information about the directory to which the Item storage database is set up and the directory to which the Item storage database is expanded is output.

For an environment in a cluster configuration, information about the setup directories for the following Item management databases is output:

  • Directory that stores the Item management database on a local disk (header name: dbsetupdir[local])

  • Directory that stores the Item management database on a shared disk (header name: dbsetupdir[share])

In a cluster environment, [share] is added to the header name of the information about the directories into which the Item storage database is set up and expanded.

If the database is not set up, N/A is output. In this case, information about the directory to expand the database to is not output.

-dbpath

Legend:

--: Not applicable.

#1

Header names of the database information are enclosed by parentheses. The unit is output after some headers. If database information is divided into the Item storage area and the attached file storage area, the following information is output after the header names:

- For the Item storage area: (item)

- For the attached file storage area: (apdfile)

#2

The storage area is enclosed by parentheses.

The following example shows an output result of executing the jssdbstatchk.bat command with the -state option specified:

[DBtype] itemmanageDB
dbcapacity(GB)(item)   : 67
dbusage(%)(item)       : 70.3
dbcapacity(GB)(apdfile): 32
dbusage(%)(apdfile)    : 73.3
itemrange              : 2015/01/01-2016/02/24
  
[DBtype] itemstoreDB(A)
active/inactive        : inactive
dbcapacity(GB)(item)   : 128
dbusage(%)(item)       : 90.2
expandtime(item)       : 2
dbcapacity(GB)(apdfile): 64
dbusage(%)(apdfile)    : 72.6
expandtime(apdfile)    : 1
itemrange              : 2001/04/01-2007/12/31
  
[DBtype] itemstoreDB(B)
active/inactive        : active
dbcapacity(GB)(item)   : 128
dbusage(%)(item)       : 25.3
expandtime(item)       : 2
dbcapacity(GB)(apdfile): 64
dbusage(%)(apdfile)    : 10.2
expandtime(apdfile)    : 1
itemrange              : 2008/01/01-2014/12/31

The following example shows an output result of executing the jssdbstatchk.bat command with the -dbpath option specified:

[DBtype] itemmanageDB
dbsetupdir            : C:\Program Files (x86)\Hitachi\JP1SS\db
  
[DBtype] itemstoreDB(A)
dbsetupdir            : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbA
dbexpanddir1(item)    : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbA
dbexpanddir2(item)    : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbA
dbexpanddir1(apdfile) : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbA
  
[DBtype] itemstoreDB(B)
dbsetupdir            : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbB
dbexpanddir1(item)    : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbB
dbexpanddir2(item)    : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbB
dbexpanddir1(apdfile) : D:\Program Files (x86)\Hitachi\JP1SS\itemstoredbB

Prerequisites for executing the command

Remarks

Example

The following example shows how to output the status of the database:

jssdbstatchk.bat -state