| 1 | = Examining the JMD Derby database = |
| 2 | |
| 3 | As discussed, the JMD uses an underlying database. Querying this database can give useful information when debugging the JMD. |
| 4 | |
| 5 | One can connect to the derby database using the $JMD_HOME/bin/jmdij script, which will bring up the "ij>" prompt. This prompt |
| 6 | accepts SQL style queries. For the JMD, the table of interest is named "drms.su_cache", which can be described with : |
| 7 | |
| 8 | {{{ |
| 9 | ij> describe drms.su_cache; |
| 10 | }}} |
| 11 | |
| 12 | The general state of the database can be queried : |
| 13 | |
| 14 | {{{ |
| 15 | ij> select count(*), state, request_type from drms.su_cache group by state, request_type order by REQUEST_TYPE, STATE; |
| 16 | 1 |STA&|REQUE& |
| 17 | ----------------------- |
| 18 | 7 |OFLN|MIRROR |
| 19 | 81 |OFLN|USER |
| 20 | }}} |
| 21 | |
| 22 | |
| 23 | Occasionally the JMD will try repeatedly to download a sunum without success, in which case something like this |
| 24 | will appear in the JMD log : |
| 25 | |
| 26 | {{{ |
| 27 | Jan 28, 2014 9:17:50 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[44]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 28 | Jan 28, 2014 9:19:50 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[37]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 29 | Jan 28, 2014 9:21:50 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[49]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 30 | Jan 28, 2014 9:23:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[59]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 31 | Jan 28, 2014 9:25:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[41]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 32 | Jan 28, 2014 9:27:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[54]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 33 | Jan 28, 2014 9:29:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[74]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 34 | Jan 28, 2014 9:31:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[79]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 35 | Jan 28, 2014 9:33:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[64]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 36 | Jan 28, 2014 9:35:45 AM org.vso.jmd.Downloader.SCPDownloader call INFO: Th ID:[69]; SU:[97359684]; RN:[0];[aia_test.lev1];[USER]; Sz:[9990778]; STP:[SCP]; ST:[FAIL] [N/A] [SAO] |
| 37 | }}} |
| 38 | |
| 39 | In this case, the endless failures are occurring because the vendor in fact no longer serves out these data, so we want to stop trying (this is unusual). |
| 40 | First, we establish if this storage unit number (sunum) is still in the derby database : |
| 41 | |
| 42 | {{{ |
| 43 | ij> select * from drms.su_cache where sunum in (97359684); |
| 44 | }}} |
| 45 | |
| 46 | and if it is, we delete it : |
| 47 | |
| 48 | {{{ |
| 49 | ij> delete from drms.su_cache where sunum in (97359684); |
| 50 | }}} |
| 51 | |
| 52 | |
| 53 | The "ij>" prompt can be exited with CNTL-D, or by entering "exit;". |
| 54 | |