| 13 |
rsolanki |
1 |
Option Explicit
|
|
|
2 |
'=====================================================
|
|
|
3 |
' Name: config
|
| 4216 |
dpurdie |
4 |
' Description: Contains all configuration details,
|
| 13 |
rsolanki |
5 |
' enums, global constants and variables.
|
|
|
6 |
'=====================================================
|
|
|
7 |
|
|
|
8 |
'=========== GLOBAL CONSTANTS DECLARATION ============
|
|
|
9 |
'============ GLOBAL VARIABLES DEFINITION ============
|
|
|
10 |
Dim OraSession
|
|
|
11 |
Dim OraDatabase
|
|
|
12 |
Dim APP_ROOT
|
|
|
13 |
Dim QUERIES_PATH
|
|
|
14 |
'============= VARIABLES INITIALISATION ==============
|
|
|
15 |
APP_ROOT = Get_Application_Path()
|
|
|
16 |
'==================== INCLUDE ASP ====================
|
|
|
17 |
'Call Include_File ( AppPath &"common\base_conf.asp" )
|
| 4216 |
dpurdie |
18 |
'================== CONFIGURATION ====================
|
| 13 |
rsolanki |
19 |
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
|
| 3911 |
dpurdie |
20 |
Set OraDatabase = OraSession.OpenDatabase( "RELMANU1", "DEPLOYMENT_MANAGER/DEPLOYMENT_MANAGER", Cint(0))
|
| 13 |
rsolanki |
21 |
QUERIES_PATH = APP_ROOT &"jobs\queries"
|
| 25 |
rsolanki |
22 |
|
|
|
23 |
Const UNC_ARCHIVE = "\\auperaunx26\releasem"
|
|
|
24 |
Const URL_PATH_DPKG_ARCHIVE = "/dpkg_archive"
|
|
|
25 |
Const URL_PATH_DEPLOY_ARCHIVE = "/deploy_archive"
|
|
|
26 |
Const DPKG_ARCHIVE = "\dpkg_archive"
|
|
|
27 |
Const DEPLOY_ARCHIVE = "\deploy_archive"
|
|
|
28 |
Const TELNET_MACHINE = "auperaunx26" ' <-- If this machine name is changed, you need to rebuild pkg_archive.vbs
|
|
|
29 |
Const TELNET_DPKG_ARCHIVE = "dpkg_archive"
|
|
|
30 |
Const TELNET_RELEASES = "releases"
|
|
|
31 |
Const TELNET_DEPLOY_ARCHIVE = "deploy_archive"
|
|
|
32 |
Const QUERIES_FOLDER = "queries"
|
|
|
33 |
Const DESCPKG_FILE = "descpkg"
|
|
|
34 |
Const RELESE_NOTES_PERFIX = "RELEASE_NOTES"
|
|
|
35 |
Const RELEASE_NOTES_TEMPLATE_A = "scripts\templates\release_notes_template_a.html"
|
|
|
36 |
Const RELEASE_NOTES_TEMPLATE_B = "scripts\templates\release_notes_template_b.html"
|
|
|
37 |
Const CKSUM_EXE = "scripts\bin\cksum.exe"
|
|
|
38 |
Const MODCRC_EXE = "scripts\bin\modcrc.exe"
|
|
|
39 |
Const SSH_EXE = "scripts\bin\plink.exe"
|
|
|
40 |
Const WINRSH_EXE = "scripts\bin\winrsh32.exe"
|
| 13 |
rsolanki |
41 |
'======================== enums ======================
|
|
|
42 |
Const enumEVENT_SUCCESS = 0
|
|
|
43 |
Const enumEVENT_ERROR = 1
|
|
|
44 |
Const enumEVENT_WARNING = 2
|
|
|
45 |
Const enumEVENT_INFORMATION = 4
|
|
|
46 |
'====================== OO4O =========================
|
|
|
47 |
const ORATYPE_VARCHAR2 = 1
|
|
|
48 |
const ORATYPE_NUMBER = 2
|
|
|
49 |
const ORATYPE_SINT = 3
|
|
|
50 |
const ORATYPE_FLOAT = 4
|
|
|
51 |
const ORATYPE_STRING = 5
|
|
|
52 |
const ORATYPE_VARCHAR = 9
|
|
|
53 |
const ORATYPE_DATE = 12
|
|
|
54 |
const ORATYPE_UINT = 68
|
|
|
55 |
const ORATYPE_RAW = 95
|
|
|
56 |
const ORATYPE_CHAR = 96
|
|
|
57 |
const ORATYPE_CHARZ = 97
|
|
|
58 |
const ORATYPE_MLSLABEL = 105
|
|
|
59 |
const ORATYPE_OBJECT = 108
|
|
|
60 |
const ORATYPE_REF = 110
|
|
|
61 |
const ORATYPE_CLOB = 112
|
|
|
62 |
const ORATYPE_BLOB = 113
|
|
|
63 |
const ORATYPE_BFILE = 114
|
|
|
64 |
const ORATYPE_VARRAY = 247
|
|
|
65 |
const ORATYPE_TABLE = 248
|
|
|
66 |
const ORATYPE_CURSOR = 102
|
|
|
67 |
|
|
|
68 |
|
| 4216 |
dpurdie |
69 |
const ORAPARM_INPUT=1
|
|
|
70 |
const ORAPARM_OUTPUT=2
|
| 13 |
rsolanki |
71 |
const ORAPARM_BOTH=3
|
|
|
72 |
|
|
|
73 |
const ORADYN_DEFAULT=&H0&
|
|
|
74 |
'=====================================================
|
|
|
75 |
|
|
|
76 |
|