Scheme Changes:

Replaced Access_Controls with APEX_AUTHORISATION
Created POSTCODES, ERROR_LOGS and SYSTEM_CONFIGURATION.
Added missing columns to ENQUIRIES, REGULATORS, etc.
Added views V_PROFILE_RT_CODE_FOR_ENRO.vw, V_PARTY_RELATIONSHIPS.vw, V_LATEST_RT_CODE_FOR_ENRO.vw.

Modules:

Added cout_err.pck, cout_system_configuration.pck.

Data:

Added Data/Demo files
Added Data/Seed files for postcodes, regions and DatabaseItemToFunctionalSpecificationReference.csv

Documentation:

Added Documentation/pldoc for plsqldoc-generated files.
Added Documentation/SupportingDocumentation/Regions to hold region definition information.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@2890 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2007-11-27 11:48:13 +00:00
parent 2a490afbbc
commit 2920f4d016
49 changed files with 18360 additions and 97 deletions

View File

@@ -0,0 +1,73 @@
COLUMN_NAME ,Appendix Reference,INSTALL,STD INSTALL,OFMAT,EXCHANGE,STD EXCHANGE,REMOVE,STD REMOVE,ADVERSARIAL,ALTERATION,CAPACITY CHANGE,"ADDONS(EMS,AMR)",OTHER
INSTALL_BUILDING,Address.Building,M1,M1,M1,M1,M1,M1,M1,M1,M1,M1,M1,M1
INSTALL_CITY,Address.City,M,M,M,M,M,M,M,M,M,M,M,M
FIRST_CONTACT_NAME,Address.Contact Name,M,M,M,M,M,M,M,M,M,M,M,M
INSTALL_POSTCODE,Address.Post Code,M,M,M,M,M,M,M,M,M,M,M,M
INSTALL_STREET,Address.Street,M,M,M,M,M,M,M,M,M,M,M,M
INSTALL_SUB_BUILDING,Address.Sub Building,M1,M1,M1,M1,M1,M1,M1,M1,M1,M1,M1,M1
FIRST_ALT_BUILDING,Contact Address.Building,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_ALT_CITY,Contact Address.City,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_CONTACT_EMAIL,Contact Address.Email,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_CONTACT_EMAIL,Contact Address.Email,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_CONTACT_FAX,Contact Address.Fax,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_CONTACT_FAX,Contact Address.Fax,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_ALT_POSTCODE,Contact Address.Post Code,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_CONTACT_NAME,Contact Address.Second Contact Name,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_ALT_STREET,Contact Address.Street,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_ALT_SUB_BUILDING,Contact Address.Sub Building,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_CONTACT_TELEPHONE_1,Contact Address.Telephone1,M,M,M,M,M,M,M,M,M,M,M,M
SECOND_CONTACT_TELEPHONE_1,Contact Address.Telephone1,O,O,O,O,O,O,O,O,O,O,O,O
FIRST_CONTACT_TELEPHONE_2,Contact Address.Telephone2,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_CONTACT_TELEPHONE_2,Contact Address.Telephone2,O,O,O,O,O,O,O,O,O,O,O,O
AMR_REQUIRED,Job Information.Additional Services.AMR,M,M,M,M,M,M,M,M,M,M,M,M
BASE_REQUIRED,Job Information.Additional Services.Base,M,M,M,M,M,M,M,M,M,M,M,M
BYPASS_REQUIRED,Job Information.Additional Services.By-pass,M,M,M,M,M,M,M,M,M,M,M,M
CONVERTOR_REQUIRED,Job Information.Additional Services.Convertor,M,M,M,M,M,M,M,M,M,M,M,M
EMS_REQUIRED,Job Information.Additional Services.EMS,M,M,M,M,M,M,M,M,M,M,M,M
HOUSING_REQUIRED,Job Information.Additional Services.Housing,M,M,M,M,M,M,M,M,M,M,M,M
LOGGER_REQUIRED,Job Information.Additional Services.Logger,M,M,M,M,M,M,M,M,M,M,M,M
TWIN_STREAM_REQUIRED,Job Information.Additional Services.Twin Stream,O,O,O,O,O,O,O,O,O,O,O,O
ANNUAL_QUANTITY,Job Information.Annual Quantity,M,M,M,M,M,M,M,M,M,M,M,M
INDICATIVE_TIME,Job Information.Appointment Preference,O,O,O,O,O,O,O,O,O,O,O,O
DOWNSTREAM_BOOSTER_OR_COMPRESS,Job Information.Booster/Compressor,M,O,M,M,O,M,O,M,M,M,M,M
EXISTING_METER_SERIAL_NO,Job Information.Existing Asset Serial Number,NA,NA,M,M,M,M,M,O,M,O,M,O
EXISTING_MESC_CODE,Job Information.Existing Meter Size,NA,NA,M,M,M,M,M,M,M,M,O,O
METY_CODE,Job Information.Meter Type Existing ,NA,NA,M,M,M,M,M,M,M,M,O,O
EXISTING_SVCP_CODE,Job Information.Existing Pressure Category,NA,NA,M,M,M,M,M,M,M,M,O,O
EXISTING_METER_OWNER,Job Information.Gas Act Owner,O,O,O,M,M,M,M,O,O,O,O,O
INDICATIVE_DATE,Job Information.Indicative Substantial Completion Date,O,O,O,O,O,O,O,O,O,O,O,O
REQUIRED_IP_DETAILS,Job Information.IP Details,M3,NA,O3,O3,NA,O3,NA,O3,M3,M3,O3,O3
REQUIRED_IP_MBAR,Job Information.IP Mbar,O3,NA,O3,O3,NA,O3,NA,O3,O3,O3,O3,O3
JOB_DESCRIPTION,Job Information.Job Description,O,O,O,O,O,O,O,O,O,O,O,O
ENTY_CODE,Job Information.Job Type,M,M,M,M,M,M,M,M,M,M,M,M
LOAD_CONTROL_TYPE,Job Information.Load Control Type,M,M,O,M,M,O,O,O,O,O,O,O
MARKET_SECTOR_CODE,Job Information.Market Sector Code,O,O,O,O,O,O,O,O,O,O,O,O
QMAX,Job Information.Measuring Capacity Qmax,M,M2,M,M,M,M,M,M,M,M,M,M
QMIN,Job Information.Measuring Capacity Qmin,O,O,O,O,O,O,O,O,O,O,O,O
REQUIRED_MESC_CODE,Job Information.Meter Size,NA,OM2,NA,NA,NA,NA,NA,NA,NA,NA,NA,NA
EXISTING_METER_MODEL,Job Information.Model Code,NA,NA,O,O,O,O,O,O,O,O,O,O
OTHER_INFORMATION,Job Information.Other Information,O,O,O,O,O,O,O,O,O,O,O,O
OTHER_PROJECT_REFERENCE,Job Information.Other Related Projects,O,O,O,O,O,O,O,O,O,O,O,O
REQUIRED_METERING_PRESSURE,Job Information.Required Meter Pressure,M,M,M,M,M,M,M,M,M,M,M,M
REQUIRED_SVCP_CODE,Job Information.Service Pressure,M3,M,O3,O3,M,O3,M,O3,M3,M3,O3,O3
EXISTING_METER_ASSET_PROVIDER,Job Information.Supplier / Job Information.Consumer,O,O,O,M,M,M,M,O,M,O,O,O
TRANSACTION_REFERENCE,Job Site Details.Transaction Reference,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_ALT_BUILDING,Second Contact Address.Building,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_ALT_CITY,Second Contact Address.City,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_ALT_POSTCODE,Second Contact Address.Post Code,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_ALT_STREET,Second Contact Address.Street,O,O,O,O,O,O,O,O,O,O,O,O
SECOND_ALT_SUB_BUILDING,Second Contact Address.Sub Building,O,O,O,O,O,O,O,O,O,O,O,O
ACCESS_ADDITIONAL,Site Detail.Access Instructions,O,O,O,O,O,O,O,O,O,O,O,O
ACCESS_PASSWORD,Site Detail.Access Password,O,O,O,O,O,O,O,O,O,O,O,O
MPRN_ALT,Site Detail.Additional Information,M4,M4,M4,M4,M4,M4,M4,M4,M4,M4,M4,M4
ALTY_CODE,Site Detail.Asset Location Code,M,M,M,M,M,M,M,M,M,M,M,M
ASSET_LOCATION_NOTES,Site Detail.Asset Location Notes,O,O,O,O,O,O,O,O,O,O,O,O
CACA_CODE,Site Detail.Care Category,O,O,O,O,O,O,O,O,O,O,O,O
MPRN,Site Detail.MPRN,M4,M4,M4,M4,M4,M4,M4,M4,M4,M4,M4,M4
AGENT_COMT_CODE,Supplier Agent.Telephone1/Telephone2/Fax/Email,M,M,M,M,M,M,M,M,M,M,M,M
AGENT_CONTACT_VALUE,Supplier Agent.Telephone1/Telephone2/Fax/Email,M,M,M,M,M,M,M,M,M,M,M,M
ID,Enquiry Reference (not in spec appendix),M,M,M,M,M,M,M,M,M,M,M,M
CREATED_BY,,,,,,,,,,,,,
CREATED_ON,,,,,,,,,,,,,
UPDATED_BY,,,,,,,,,,,,,
UPDATED_ON,,,,,,,,,,,,,
1 COLUMN_NAME Appendix Reference INSTALL STD INSTALL OFMAT EXCHANGE STD EXCHANGE REMOVE STD REMOVE ADVERSARIAL ALTERATION CAPACITY CHANGE ADDONS(EMS,AMR) OTHER
2 INSTALL_BUILDING Address.Building M1 M1 M1 M1 M1 M1 M1 M1 M1 M1 M1 M1
3 INSTALL_CITY Address.City M M M M M M M M M M M M
4 FIRST_CONTACT_NAME Address.Contact Name M M M M M M M M M M M M
5 INSTALL_POSTCODE Address.Post Code M M M M M M M M M M M M
6 INSTALL_STREET Address.Street M M M M M M M M M M M M
7 INSTALL_SUB_BUILDING Address.Sub Building M1 M1 M1 M1 M1 M1 M1 M1 M1 M1 M1 M1
8 FIRST_ALT_BUILDING Contact Address.Building O O O O O O O O O O O O
9 FIRST_ALT_CITY Contact Address.City O O O O O O O O O O O O
10 FIRST_CONTACT_EMAIL Contact Address.Email O O O O O O O O O O O O
11 SECOND_CONTACT_EMAIL Contact Address.Email O O O O O O O O O O O O
12 FIRST_CONTACT_FAX Contact Address.Fax O O O O O O O O O O O O
13 SECOND_CONTACT_FAX Contact Address.Fax O O O O O O O O O O O O
14 FIRST_ALT_POSTCODE Contact Address.Post Code O O O O O O O O O O O O
15 SECOND_CONTACT_NAME Contact Address.Second Contact Name O O O O O O O O O O O O
16 FIRST_ALT_STREET Contact Address.Street O O O O O O O O O O O O
17 FIRST_ALT_SUB_BUILDING Contact Address.Sub Building O O O O O O O O O O O O
18 FIRST_CONTACT_TELEPHONE_1 Contact Address.Telephone1 M M M M M M M M M M M M
19 SECOND_CONTACT_TELEPHONE_1 Contact Address.Telephone1 O O O O O O O O O O O O
20 FIRST_CONTACT_TELEPHONE_2 Contact Address.Telephone2 O O O O O O O O O O O O
21 SECOND_CONTACT_TELEPHONE_2 Contact Address.Telephone2 O O O O O O O O O O O O
22 AMR_REQUIRED Job Information.Additional Services.AMR M M M M M M M M M M M M
23 BASE_REQUIRED Job Information.Additional Services.Base M M M M M M M M M M M M
24 BYPASS_REQUIRED Job Information.Additional Services.By-pass M M M M M M M M M M M M
25 CONVERTOR_REQUIRED Job Information.Additional Services.Convertor M M M M M M M M M M M M
26 EMS_REQUIRED Job Information.Additional Services.EMS M M M M M M M M M M M M
27 HOUSING_REQUIRED Job Information.Additional Services.Housing M M M M M M M M M M M M
28 LOGGER_REQUIRED Job Information.Additional Services.Logger M M M M M M M M M M M M
29 TWIN_STREAM_REQUIRED Job Information.Additional Services.Twin Stream O O O O O O O O O O O O
30 ANNUAL_QUANTITY Job Information.Annual Quantity M M M M M M M M M M M M
31 INDICATIVE_TIME Job Information.Appointment Preference O O O O O O O O O O O O
32 DOWNSTREAM_BOOSTER_OR_COMPRESS Job Information.Booster/Compressor M O M M O M O M M M M M
33 EXISTING_METER_SERIAL_NO Job Information.Existing Asset Serial Number NA NA M M M M M O M O M O
34 EXISTING_MESC_CODE Job Information.Existing Meter Size NA NA M M M M M M M M O O
35 METY_CODE Job Information.Meter Type Existing NA NA M M M M M M M M O O
36 EXISTING_SVCP_CODE Job Information.Existing Pressure Category NA NA M M M M M M M M O O
37 EXISTING_METER_OWNER Job Information.Gas Act Owner O O O M M M M O O O O O
38 INDICATIVE_DATE Job Information.Indicative Substantial Completion Date O O O O O O O O O O O O
39 REQUIRED_IP_DETAILS Job Information.IP Details M3 NA O3 O3 NA O3 NA O3 M3 M3 O3 O3
40 REQUIRED_IP_MBAR Job Information.IP Mbar O3 NA O3 O3 NA O3 NA O3 O3 O3 O3 O3
41 JOB_DESCRIPTION Job Information.Job Description O O O O O O O O O O O O
42 ENTY_CODE Job Information.Job Type M M M M M M M M M M M M
43 LOAD_CONTROL_TYPE Job Information.Load Control Type M M O M M O O O O O O O
44 MARKET_SECTOR_CODE Job Information.Market Sector Code O O O O O O O O O O O O
45 QMAX Job Information.Measuring Capacity Qmax M M2 M M M M M M M M M M
46 QMIN Job Information.Measuring Capacity Qmin O O O O O O O O O O O O
47 REQUIRED_MESC_CODE Job Information.Meter Size NA OM2 NA NA NA NA NA NA NA NA NA NA
48 EXISTING_METER_MODEL Job Information.Model Code NA NA O O O O O O O O O O
49 OTHER_INFORMATION Job Information.Other Information O O O O O O O O O O O O
50 OTHER_PROJECT_REFERENCE Job Information.Other Related Projects O O O O O O O O O O O O
51 REQUIRED_METERING_PRESSURE Job Information.Required Meter Pressure M M M M M M M M M M M M
52 REQUIRED_SVCP_CODE Job Information.Service Pressure M3 M O3 O3 M O3 M O3 M3 M3 O3 O3
53 EXISTING_METER_ASSET_PROVIDER Job Information.Supplier / Job Information.Consumer O O O M M M M O M O O O
54 TRANSACTION_REFERENCE Job Site Details.Transaction Reference O O O O O O O O O O O O
55 SECOND_ALT_BUILDING Second Contact Address.Building O O O O O O O O O O O O
56 SECOND_ALT_CITY Second Contact Address.City O O O O O O O O O O O O
57 SECOND_ALT_POSTCODE Second Contact Address.Post Code O O O O O O O O O O O O
58 SECOND_ALT_STREET Second Contact Address.Street O O O O O O O O O O O O
59 SECOND_ALT_SUB_BUILDING Second Contact Address.Sub Building O O O O O O O O O O O O
60 ACCESS_ADDITIONAL Site Detail.Access Instructions O O O O O O O O O O O O
61 ACCESS_PASSWORD Site Detail.Access Password O O O O O O O O O O O O
62 MPRN_ALT Site Detail.Additional Information M4 M4 M4 M4 M4 M4 M4 M4 M4 M4 M4 M4
63 ALTY_CODE Site Detail.Asset Location Code M M M M M M M M M M M M
64 ASSET_LOCATION_NOTES Site Detail.Asset Location Notes O O O O O O O O O O O O
65 CACA_CODE Site Detail.Care Category O O O O O O O O O O O O
66 MPRN Site Detail.MPRN M4 M4 M4 M4 M4 M4 M4 M4 M4 M4 M4 M4
67 AGENT_COMT_CODE Supplier Agent.Telephone1/Telephone2/Fax/Email M M M M M M M M M M M M
68 AGENT_CONTACT_VALUE Supplier Agent.Telephone1/Telephone2/Fax/Email M M M M M M M M M M M M
69 ID Enquiry Reference (not in spec appendix) M M M M M M M M M M M M
70 CREATED_BY
71 CREATED_ON
72 UPDATED_BY
73 UPDATED_ON

View File

@@ -60,6 +60,12 @@ sqlldr %1 control=mesc
sqlldr %1 control=byre
sqlldr %1 control=dir_import
sqlldr %1 control=regi
sqlldr %1 control=poco
sqlplus %1 @enable_constraints
goto :done

25
Data/Seed/dir_import.ctl Normal file
View File

@@ -0,0 +1,25 @@
OPTIONS (SKIP=1)
LOAD DATA
INFILE DatabaseItemToFunctionalSpecificationReference.csv
INTO TABLE data_item_roles_import
REPLACE
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(
field_name
,table_name CONSTANT 'ENQUIRIES'
,description
,install
,std_install
,ofmat
,exchange
,std_exchange
,remove
,std_remove
,adversarial
,alteration
,change_capacity
,addon
,other
)

View File

@@ -12,4 +12,5 @@ BEGINDATA
ENRT|ENQ CREATE|Created Enquiry
ENRT|ENQ OWN|Owner of Enquiry
ENRT|ENQ AMEND|Amend Enquiry
ENRT|ENQ AMEND|Supplier for Enquiry
ENRT|ENQ RFQ|Submit Request For Quotation

15374
Data/Seed/poco.ctl Normal file

File diff suppressed because it is too large Load Diff

19
Data/Seed/regi.ctl Normal file
View File

@@ -0,0 +1,19 @@
LOAD DATA
INFILE *
INTO TABLE regions
REPLACE
FIELDS TERMINATED BY '|'
(
code
,description
)
BEGINDATA
NETW01|SC001 - Scotland
NETW02|NTH01 - North
NETW03|STH01 - South
NETW04|WWE01 - Wales and West
NETW05|RDN01 - North London
NETW06|RDN01 - West Midlands
NETW07|RDN01 - North West
NETW08|RDN01 - East
RDN01|Retained networks