-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
62 lines (41 loc) · 2.37 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
================================================================================
Program: PendingBannerReleases
Version: 1.4.0
Author: Dave Parker ([email protected])
Date: January 24, 2023
1. ABOUT
This program is designed to show the releases in the ESM database which have not
yet been installed in the specified Banner instance.
2. CONFIGURATION
You can configure the connection details for both the ESM H2 database and Banner
database in the config.properties file. This file must reside in the same
directory as the PendingBannerReleases.class file.
3. RUNNING
If your ESM server is running on Linux, you can simply use the included shell
script (pending_banner_releases.sh) to run the program, like so:
$ ./pending_banner_releases.sh
Important: You must ensure that both the config.properties file AND the script
are configured properly. See NOTES (section 4) below.
Alternatively, you may run the PendingBannerReleases class directly. There are
a few things you must do in order for this to work:
1. Copy the live H2 database file to a temporary file and ensure that the
h2.db.file value in config.properties points to the temporary copy.
2. Specify the H2 and OJDBC drivers in the classpath.
Assuming you have set /var/tmp/ESMAdminProdDb.h2.db as the value of h2.db.file
in config.properties, you would do something like this:
$ cp /u01/adminApp/ESMAdminProdDb.h2.db /var/tmp/ESMAdminProdDb.h2.db
$ java -cp <path>/*:. PendingBannerReleases
Where <path> is the full path to the ESM webapp's lib directory
(e.g., /u01/apache-tomcat-8.5.20/webapps/admin/WEB-INF/lib).
4. NOTES
* If you are using the shell script to run this program, you must first ensure
that the values of h2.db.file in config.properites and ESM_H2_FILE in the
pending_banner_releases.sh script are the same.
* The script will copy the live H2 database file to the filename specified by
ESM_H2_FILE. So, DO NOT specify the full path of the live file as the value
for this variable, or the script will fail.
* This program does not currently recognize dependencies, as I was unable to
determine exactly how these relationships are stored in the ESM database.
Therefore, the output may show some product versions which are not installed
in Banner because they were superseded by a newer release.
================================================================================