From 34575be87727c351f5c6a14c42887fe27f9bf499 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Mon, 28 Jan 2008 18:33:23 +0000 Subject: [PATCH] added fat build scripts for the FAT environment, it works!, I had to create a workspace to create the application in. Also had to manually copy the images and css to the application. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3406 248e525c-4dfb-0310-94bc-949c084e9493 --- Data/fat/InstallData.cmd | 24 ++++++ Data/fat/apau.ctl | 30 +++++++ Data/fat/apau.log | 50 ++++++++++++ Data/fat/apex_auto_install.rb | 150 ++++++++++++++++++++++++++++++++++ Data/fat/create_passwords.sql | 21 +++++ Data/fat/delete_demo_data.sql | 5 ++ Data/fat/parl.bad | 1 + Data/fat/parl.ctl | 35 ++++++++ Data/fat/parl.log | 55 +++++++++++++ Data/fat/prel.bad | 2 + Data/fat/prel.ctl | 44 ++++++++++ Data/fat/prel.log | 61 ++++++++++++++ Data/fat/prty.bad | 1 + Data/fat/prty.ctl | 64 +++++++++++++++ Data/fat/prty.log | 69 ++++++++++++++++ InstallMIP.cmd | 16 +++- 16 files changed, 627 insertions(+), 1 deletion(-) create mode 100644 Data/fat/InstallData.cmd create mode 100644 Data/fat/apau.ctl create mode 100644 Data/fat/apau.log create mode 100644 Data/fat/apex_auto_install.rb create mode 100644 Data/fat/create_passwords.sql create mode 100644 Data/fat/delete_demo_data.sql create mode 100644 Data/fat/parl.bad create mode 100644 Data/fat/parl.ctl create mode 100644 Data/fat/parl.log create mode 100644 Data/fat/prel.bad create mode 100644 Data/fat/prel.ctl create mode 100644 Data/fat/prel.log create mode 100644 Data/fat/prty.bad create mode 100644 Data/fat/prty.ctl create mode 100644 Data/fat/prty.log diff --git a/Data/fat/InstallData.cmd b/Data/fat/InstallData.cmd new file mode 100644 index 0000000..d844199 --- /dev/null +++ b/Data/fat/InstallData.cmd @@ -0,0 +1,24 @@ +@echo off + +if "%1"=="" goto :usage +if "%1"=="sys" goto :usage +if "%1"=="system" goto :usage + +sqlplus %1 @delete_demo_data +sqlldr %1 control=prty + +sqlldr %1 control=parl + +sqlldr %1 control=prel + +sqlldr %1 control=apau + +sqlplus %1 @create_passwords + +goto :done + +:usage + +echo usage InstallData user/password@database + +:done diff --git a/Data/fat/apau.ctl b/Data/fat/apau.ctl new file mode 100644 index 0000000..e5a4820 --- /dev/null +++ b/Data/fat/apau.ctl @@ -0,0 +1,30 @@ +LOAD DATA +INFILE * +INTO TABLE apex_authorization +REPLACE +FIELDS TERMINATED BY '|' +( +rt_code +,component_name +,component_type +,privilege +) +BEGINDATA +MIPADMIN|5|P|A +MIPADMIN|7|P|A +MIPADMIN|8|P|A +MIPADMIN|9|P|A +MIPADMIN|10|P|A +MIPADMIN|11|P|A +MIPADMIN|12|P|A +MIPADMIN|13|P|A +MIPADMIN|14|P|A +MIPADMIN|15|P|A +MIPADMIN|18|P|A +MIPADMIN|19|P|A +MIPADMIN|30|P|A +MIPADMIN|31|P|A +MIPADMIN|32|P|A +CS|32|P|A +CS|32|P|R +AGENT|32|P|A \ No newline at end of file diff --git a/Data/fat/apau.log b/Data/fat/apau.log new file mode 100644 index 0000000..1b5eb86 --- /dev/null +++ b/Data/fat/apau.log @@ -0,0 +1,50 @@ + +SQL*Loader: Release 8.1.7.0.0 - Production on Mon Jan 28 18:25:23 2008 + +(c) Copyright 2000 Oracle Corporation. All rights reserved. + +Control File: apau.ctl +Data File: apau.ctl + Bad File: apau.bad + Discard File: none specified + + (Allow all discards) + +Number to load: ALL +Number to skip: 0 +Errors allowed: 50 +Bind array: 64 rows, maximum of 65536 bytes +Continuation: none specified +Path used: Conventional + +Table APEX_AUTHORIZATION, loaded from every logical record. +Insert option in effect for this table: REPLACE + + Column Name Position Len Term Encl Datatype +------------------------------ ---------- ----- ---- ---- --------------------- +RT_CODE FIRST * | CHARACTER +COMPONENT_NAME NEXT * | CHARACTER +COMPONENT_TYPE NEXT * | CHARACTER +PRIVILEGE NEXT * | CHARACTER + + +Table APEX_AUTHORIZATION: + 18 Rows successfully loaded. + 0 Rows not loaded due to data errors. + 0 Rows not loaded because all WHEN clauses were failed. + 0 Rows not loaded because all fields were null. + + +Space allocated for bind array: 65016 bytes(63 rows) +Space allocated for memory besides bind array: 0 bytes + +Total logical records skipped: 0 +Total logical records read: 18 +Total logical records rejected: 0 +Total logical records discarded: 0 + +Run began on Mon Jan 28 18:25:23 2008 +Run ended on Mon Jan 28 18:25:23 2008 + +Elapsed time was: 00:00:00.04 +CPU time was: 00:00:00.03 diff --git a/Data/fat/apex_auto_install.rb b/Data/fat/apex_auto_install.rb new file mode 100644 index 0000000..a865934 --- /dev/null +++ b/Data/fat/apex_auto_install.rb @@ -0,0 +1,150 @@ +#requires +require 'watir' +#email stuff +require 'net/smtp' + +#used to handle javascript popups +require 'watir/contrib/enabled_popup' +require 'watir/WindowHelper' +# +# Method to handle javascript popups. +# +require 'thread' +# +require 'win32ole' +# +def startClicker( button , waitTime = 3) + w = WinClicker.new + longName = @@ie.dir.gsub("/" , "\\" ) + shortName = w.getShortFileName(longName) + c = "start ruby #{shortName}\\watir\\clickJSDialog.rb #{button} #{waitTime} " + puts "Starting #{c}" + w.winsystem(c) + w=nil +end + + + + +#includes +include Watir +@@ie = IE.new +@@ie.visible= true +#set the speed of watir +@@ie.speed = :fast +#backup 2 directories +Dir.chdir('..') +Dir.chdir('..') +#we're in windows, so replace the forwards with the backs +workingdir = Dir.getwd.to_s.gsub!('/','\\') +#Set constants for import +ORIGINAL_APP_ID = '155' +NEW_APP_ID = '200' +SCHEMA = 'MIP_FAT' +APEX_EXPORT_SCRIPTS_DIR = workingdir +'\\Screens\\' +APPLICATION_SCRIPT = 'f155.sql' +CSS_SCRIPT = 'css.sql' +IMAGES_SCRIPT = 'f155_img.sql' +THEME_SCRIPT = 'f155_theme_101.sql' +ADID = '4550' #APEX admin identifier +WORKSPACE = 'MIP_FAT' +USER = 'ADMIN' +PASSWORD = 'password' +DELETE_PREVIOUS_IMPORTS = false + +def importpageone (p_file, p_file_type, p_charset) + @@ie.link(:title, 'Application Builder').click + @@ie.wait + @@ie.button(:value, 'Import >').click + @@ie.wait + @@ie.file_field(:id, "P460_FILE").set(p_file) + @@ie.select_list(:id, "P460_FILE_TYPE").select p_file_type + @@ie.select_list(:id, "P460_FILE_CHARSET").select p_charset + @@ie.button(:value, 'Next >').click + @@ie.wait + @@ie.button(:value, 'Next >').click + @@ie.wait +end + +begin + #Login + @@ie.goto("http://loordv01/pls/apex/f?p=#{ADID}:1") + @@ie.text_field(:id, "F#{ADID}_P1_COMPANY").set(WORKSPACE) + @@ie.text_field(:id, "F#{ADID}_P1_USERNAME").set(USER) + @@ie.text_field(:id, "F#{ADID}_P1_PASSWORD").set(PASSWORD) + @@ie.button(:value, 'Login').click + @@ie.wait + #Import Application export file + importpageone(APEX_EXPORT_SCRIPTS_DIR+APPLICATION_SCRIPT, + 'Application, Page or Component Export', + 'Western European Windows 1252') + #parse page + @@ie.select_list(:id, "P49_PARSE_AS" ).select(SCHEMA) + @@ie.select_list(:id, "P49_BUILD_STATUS" ).select 'Run and Build Application' + @@ie.radio(:id, "P49_NEW_FLOW_OPT_2" ).set + @@ie.wait + @@ie.text_field(:id, "P49_NEW_FLOW_ID").set(NEW_APP_ID) + @@ie.button(:value, 'Install').click + @@ie.wait + #This button won't appear the first time the import occurs + if @@ie.button(:value, 'Replace Existing Application '+NEW_APP_ID).exists? + @@ie.button(:value, 'Replace Existing Application '+NEW_APP_ID).click + @@ie.wait + end + #Install Supporting objects + @@ie.radio(:id, "P2100_ACTION_0" ).set + @@ie.button(:value, 'Next >').click + @@ie.wait + @@ie.button(:value, 'Install').click + @@ie.wait + #Install CSS + + #Need to delete the existing CSS file before installing a new one + #have decided to just install the application for the moment. + #back to install page start + + importpageone(APEX_EXPORT_SCRIPTS_DIR+CSS_SCRIPT, + 'CSS Export', + 'Western European Windows 1252') + + if DELETE_PREVIOUS_IMPORTS + #er this code does not work from the Loordv001 box + #it will run on JP's machine if this code is run from a + #dos prompt - it's an issue with ruby trying to spawn a + #new thead to look for the open dialogue box + @@ie.link(:title, 'Manage Export Repository').click + @@ie.wait + @@ie.checkboxes.each { |c| c.set } + #Click the annoying are you sure button that pops up + startClicker("OK", 1) + @@ie.button(:value, 'Delete Checked').click + @@ie.wait + end + @@ie.close + +rescue StandardError => anyerror +#Hopefully we never get here but, we'll try and send an email if the +#script errors so we can fix it +#don't leave memory hungry instances of ie running if we get an error +@@ie.close + +#build the email +from_addr = 'jamie.priest@advantica.com' +to_addr = 'jamie.priest@advanticagroup.com' +project = 'webMIP test build process' +emailtext = < +To: Jamie Priest <#{to_addr}> +Subject: #{project} automated test failure + +An automated assertion failed for the project +#{project} + +#{anyerror} + +END_EMAIL + Net::SMTP.start('LOMAIL01') do |smtp| + smtp.sendmail emailtext, from_addr, to_addr + end + +end \ No newline at end of file diff --git a/Data/fat/create_passwords.sql b/Data/fat/create_passwords.sql new file mode 100644 index 0000000..4bafe9b --- /dev/null +++ b/Data/fat/create_passwords.sql @@ -0,0 +1,21 @@ +DECLARE + l_hash varchar2(240); +BEGIN + FOR l_pwd IN (SELECT id, username + FROM parties + WHERE username IS NOT NULL) LOOP + + l_hash := mip_security.get_hash(p_username=>l_pwd.username, p_password=>'password'); + + INSERT INTO passwords + (prty_id + ,password_hash + ,created_on) + VALUES + (l_pwd.id + ,l_hash + ,SYSDATE); + END LOOP; +END; +/ +exit diff --git a/Data/fat/delete_demo_data.sql b/Data/fat/delete_demo_data.sql new file mode 100644 index 0000000..7d58f9c --- /dev/null +++ b/Data/fat/delete_demo_data.sql @@ -0,0 +1,5 @@ +delete from party_relationships; +delete from party_roles; +delete from passwords; +delete from parties; +exit diff --git a/Data/fat/parl.bad b/Data/fat/parl.bad new file mode 100644 index 0000000..64612f7 --- /dev/null +++ b/Data/fat/parl.bad @@ -0,0 +1 @@ +206|SUPP|2061|08-NOV-07||| diff --git a/Data/fat/parl.ctl b/Data/fat/parl.ctl new file mode 100644 index 0000000..def2ee3 --- /dev/null +++ b/Data/fat/parl.ctl @@ -0,0 +1,35 @@ +LOAD DATA +INFILE * +INTO TABLE party_roles +REPLACE +FIELDS TERMINATED BY '|' +( +prty_id +,rt_code +,id +,start_date +,end_date +,description +) +BEGINDATA +200|SUPP|2001|08-NOV-07||| +201|SUPP|2011|08-NOV-07||| +202|SUPP|2021|08-NOV-07||| +203|SUPP|2031|08-NOV-07||| +204|SUPP|2041|08-NOV-07||| +205|SUPP|2051|08-NOV-07||| +206|SUPP|2061|08-NOV-07||| +207|SUPP|2071|08-NOV-07||| +208|SUPP|2081|08-NOV-07||| +400|MIPADMIN|4001|08-NOV-07||| +401|MIPADMIN|4011|08-NOV-07||| +402|MIPADMIN|4021|08-NOV-07||| +403|MIPADMIN|4031|08-NOV-07||| +404|AGENT|4041|08-NOV-07||| +404|SUPPADMIN|4042|08-NOV-07||| +405|AGENT|4051|08-NOV-07||| +405|SUPPADMIN|4052|08-NOV-07||| +406|AGENT|4061|08-NOV-07||| +407|AGENT|4071|08-NOV-07||| +408|AGENT|4081|08-NOV-07||| +1|MIPADMIN|4091|08-NOV-07||| \ No newline at end of file diff --git a/Data/fat/parl.log b/Data/fat/parl.log new file mode 100644 index 0000000..9654da3 --- /dev/null +++ b/Data/fat/parl.log @@ -0,0 +1,55 @@ + +SQL*Loader: Release 8.1.7.0.0 - Production on Mon Jan 28 18:25:23 2008 + +(c) Copyright 2000 Oracle Corporation. All rights reserved. + +Control File: parl.ctl +Data File: parl.ctl + Bad File: parl.bad + Discard File: none specified + + (Allow all discards) + +Number to load: ALL +Number to skip: 0 +Errors allowed: 50 +Bind array: 64 rows, maximum of 65536 bytes +Continuation: none specified +Path used: Conventional + +Table PARTY_ROLES, loaded from every logical record. +Insert option in effect for this table: REPLACE + + Column Name Position Len Term Encl Datatype +------------------------------ ---------- ----- ---- ---- --------------------- +PRTY_ID FIRST * | CHARACTER +RT_CODE NEXT * | CHARACTER +ID NEXT * | CHARACTER +START_DATE NEXT * | CHARACTER +END_DATE NEXT * | CHARACTER +DESCRIPTION NEXT * | CHARACTER + +Record 7: Rejected - Error on table PARTY_ROLES. +ORA-02291: integrity constraint (MIP_FAT.PARL_PRTY_FK) violated - parent key not found + + +Table PARTY_ROLES: + 20 Rows successfully loaded. + 1 Row not loaded due to data errors. + 0 Rows not loaded because all WHEN clauses were failed. + 0 Rows not loaded because all fields were null. + + +Space allocated for bind array: 65016 bytes(42 rows) +Space allocated for memory besides bind array: 0 bytes + +Total logical records skipped: 0 +Total logical records read: 21 +Total logical records rejected: 1 +Total logical records discarded: 0 + +Run began on Mon Jan 28 18:25:23 2008 +Run ended on Mon Jan 28 18:25:23 2008 + +Elapsed time was: 00:00:00.06 +CPU time was: 00:00:00.03 diff --git a/Data/fat/prel.bad b/Data/fat/prel.bad new file mode 100644 index 0000000..36a7989 --- /dev/null +++ b/Data/fat/prel.bad @@ -0,0 +1,2 @@ +4052|2061|405|206|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4081|2061|408|206|AGENT|SUPP|08-NOV-07|AGENT|SUPP diff --git a/Data/fat/prel.ctl b/Data/fat/prel.ctl new file mode 100644 index 0000000..a230a93 --- /dev/null +++ b/Data/fat/prel.ctl @@ -0,0 +1,44 @@ +LOAD DATA +INFILE * +INTO TABLE party_relationships +REPLACE +FIELDS TERMINATED BY '|' +( +from_parl_id +,to_parl_id +,from_parl_prty_id +,to_parl_prty_id +,from_parl_rt_code +,to_parl_rt_code +,start_date +,from_prtp_rt_code +,to_prtp_rt_code +) +BEGINDATA +4041|2001|404|200|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4041|2011|404|201|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4041|2021|404|202|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4042|2001|404|200|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4042|2011|404|201|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4042|2021|404|202|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4042|2031|404|203|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4042|2041|404|204|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4042|2051|404|205|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4051|2001|405|200|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4051|2011|405|201|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4051|2021|405|202|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4052|2031|405|203|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4052|2041|405|204|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4052|2051|405|205|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4052|2061|405|206|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4052|2071|405|207|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4052|2081|405|208|SUPPADMIN|SUPP|08-NOV-07|SUPPADMIN|SUPP +4061|2031|406|203|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4061|2041|406|204|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4061|2051|406|205|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4071|2031|407|203|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4071|2041|407|204|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4071|2051|407|205|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4081|2061|408|206|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4081|2071|408|207|AGENT|SUPP|08-NOV-07|AGENT|SUPP +4081|2081|408|208|AGENT|SUPP|08-NOV-07|AGENT|SUPP diff --git a/Data/fat/prel.log b/Data/fat/prel.log new file mode 100644 index 0000000..9249a01 --- /dev/null +++ b/Data/fat/prel.log @@ -0,0 +1,61 @@ + +SQL*Loader: Release 8.1.7.0.0 - Production on Mon Jan 28 18:25:23 2008 + +(c) Copyright 2000 Oracle Corporation. All rights reserved. + +Control File: prel.ctl +Data File: prel.ctl + Bad File: prel.bad + Discard File: none specified + + (Allow all discards) + +Number to load: ALL +Number to skip: 0 +Errors allowed: 50 +Bind array: 64 rows, maximum of 65536 bytes +Continuation: none specified +Path used: Conventional + +Table PARTY_RELATIONSHIPS, loaded from every logical record. +Insert option in effect for this table: REPLACE + + Column Name Position Len Term Encl Datatype +------------------------------ ---------- ----- ---- ---- --------------------- +FROM_PARL_ID FIRST * | CHARACTER +TO_PARL_ID NEXT * | CHARACTER +FROM_PARL_PRTY_ID NEXT * | CHARACTER +TO_PARL_PRTY_ID NEXT * | CHARACTER +FROM_PARL_RT_CODE NEXT * | CHARACTER +TO_PARL_RT_CODE NEXT * | CHARACTER +START_DATE NEXT * | CHARACTER +FROM_PRTP_RT_CODE NEXT * | CHARACTER +TO_PRTP_RT_CODE NEXT * | CHARACTER + +Record 16: Rejected - Error on table PARTY_RELATIONSHIPS. +ORA-02291: integrity constraint (MIP_FAT.PREL_PARL_TO_FK) violated - parent key not found + +Record 25: Rejected - Error on table PARTY_RELATIONSHIPS. +ORA-02291: integrity constraint (MIP_FAT.PREL_PARL_TO_FK) violated - parent key not found + + +Table PARTY_RELATIONSHIPS: + 25 Rows successfully loaded. + 2 Rows not loaded due to data errors. + 0 Rows not loaded because all WHEN clauses were failed. + 0 Rows not loaded because all fields were null. + + +Space allocated for bind array: 65016 bytes(28 rows) +Space allocated for memory besides bind array: 0 bytes + +Total logical records skipped: 0 +Total logical records read: 27 +Total logical records rejected: 2 +Total logical records discarded: 0 + +Run began on Mon Jan 28 18:25:23 2008 +Run ended on Mon Jan 28 18:25:23 2008 + +Elapsed time was: 00:00:00.06 +CPU time was: 00:00:00.03 diff --git a/Data/fat/prty.bad b/Data/fat/prty.bad new file mode 100644 index 0000000..a3c360d --- /dev/null +++ b/Data/fat/prty.bad @@ -0,0 +1 @@ +|hardya|LON|London Supplies||08-NOV-07|||LONSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to London|206|MKTP diff --git a/Data/fat/prty.ctl b/Data/fat/prty.ctl new file mode 100644 index 0000000..ed7eed2 --- /dev/null +++ b/Data/fat/prty.ctl @@ -0,0 +1,64 @@ +LOAD DATA +INFILE * +INTO TABLE parties +REPLACE +FIELDS TERMINATED BY '|' +( +manu_ref +,created_by +,shortcode +,name +,description +,created_on +,updated_on +,updated_by +,mktp_ref +,lt_7b_contract_ref +,gt_7b_contract_ref +,adversarial_contract_ref +,username +,status +,first_name +,last_name +,personal_title +,comments +,id +,prty_type +) +BEGINDATA +|advantica||||08-NOV-07|||||||advantica|OPEN|Advantica|User|Mr|User|1|PERS +ACT|hardya||ACTARIS||08-NOV-07||||||||||||Manufactures meters|100|MANU +DRE|hardya||DRESSER||08-NOV-07||||||||||||Manufactures meters|101|MANU +QUI|hardya||QUINSHIELD||08-NOV-07||||||||||||Manufactures meters|102|MANU +|hardya|NS1|Northern Supplies||08-NOV-07||NSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to the north of the UK|200|MKTP +|hardya|NS2|Extreme Northern Supplies||08-NOV-07||ENSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to the extreme north of the UK|201|MKTP +|hardya|WS1|Welsh Supplies||08-NOV-07||WSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to Wales|202|MKTP +|hardya|WS2|Welsh Supplies||08-NOV-07||W2SUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to Wales|203|MKTP +|hardya|CE1|Central Gas Supplies||08-NOV-07||CGSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to the Central region|204|MKTP +|hardya|CE2|Centre de Gas Supplies||08-NOV-07||CDSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to the Central region|205|MKTP +|hardya|LON|London Supplies||08-NOV-07|||LONSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to London|206|MKTP +|hardya|KER|Kernow Supplies||08-NOV-07||KERSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to Cornwall|207|MKTP +|hardya|BM|Bootiful Gas Supplies||08-NOV-07||BGSUPP|LT7 Contract|GT7 Contract|Adversarial Contract|||||||Supplier of gas to the East|208|MKTP +|hardya||National Grid||08-NOV-07||||||||||||Internal organization|300|IO +|hardya||National Grid Metering||08-NOV-07||||||||||||Internal organization|301|IO +|hardya||Customer Services||08-NOV-07||||||||||||Internal organization|302|IO +|hardya||Quotations||08-NOV-07||||||||||||Internal organization|303|IO +|hardya||||08-NOV-07|||||||hardya|OPEN|Andrew|Hardy|Mr|User|400|PERS +|hardya||||08-NOV-07|||||||priestj|OPEN|Jamie|Priest|Mr|User|401|PERS +|hardya||||08-NOV-07|||||||kanagasabapathy|OPEN|Dharshani|Kanagasabapathy||User|402|PERS +|hardya||||08-NOV-07|||||||mullenmd|OPEN|Matt|Mullen||User|403|PERS +|hardya||||08-NOV-07|||||||agent1|OPEN|Fred|Smith||User|404|PERS +|hardya||||08-NOV-07|||||||agent2|OPEN|Joe|Bloggs||User|405|PERS +|hardya||||08-NOV-07|||||||agent3|OPEN|Peter|Piper||User|406|PERS +|hardya||||08-NOV-07|||||||agent4|OPEN|Nigel|Normal||User|407|PERS +|hardya||||08-NOV-07|||||||agent5|OPEN|Norah|Batty||User|408|PERS +|hardya||||08-NOV-07|||||||cs1|OPEN|Henrietta|Helpful||User|409|PERS +|hardya||||08-NOV-07|||||||cs2|OPEN|Tommy|Atkins||User|410|PERS +|hardya||||08-NOV-07|||||||cs3|OPEN|Tracy|Beaker||User|411|PERS +|hardya||||08-NOV-07|||||||ic1|OPEN|Gareth|Thomas||User|412|PERS +|hardya||||08-NOV-07|||||||ic2|OPEN|Bhavesh|Singh||User|413|PERS +|hardya||||08-NOV-07|||||||ic3|OPEN|Dave|Smith||User|414|PERS +|mullenmd||||17-DEC-07|||||||login_test|OPEN|Test|Login||User|415|PERS +|mullenmd||||17-DEC-07|||||||expired_user|EXPIRED|Test|Login||User|416|PERS +|mullenmd||||17-DEC-07|||||||locked_user|LOCKED|Test|Login||User|417|PERS +|mullenmd||||17-DEC-07|||||||old_password|OPEN|Test|Login||User|418|PERS diff --git a/Data/fat/prty.log b/Data/fat/prty.log new file mode 100644 index 0000000..e15774a --- /dev/null +++ b/Data/fat/prty.log @@ -0,0 +1,69 @@ + +SQL*Loader: Release 8.1.7.0.0 - Production on Mon Jan 28 18:25:23 2008 + +(c) Copyright 2000 Oracle Corporation. All rights reserved. + +Control File: prty.ctl +Data File: prty.ctl + Bad File: prty.bad + Discard File: none specified + + (Allow all discards) + +Number to load: ALL +Number to skip: 0 +Errors allowed: 50 +Bind array: 64 rows, maximum of 65536 bytes +Continuation: none specified +Path used: Conventional + +Table PARTIES, loaded from every logical record. +Insert option in effect for this table: REPLACE + + Column Name Position Len Term Encl Datatype +------------------------------ ---------- ----- ---- ---- --------------------- +MANU_REF FIRST * | CHARACTER +CREATED_BY NEXT * | CHARACTER +SHORTCODE NEXT * | CHARACTER +NAME NEXT * | CHARACTER +DESCRIPTION NEXT * | CHARACTER +CREATED_ON NEXT * | CHARACTER +UPDATED_ON NEXT * | CHARACTER +UPDATED_BY NEXT * | CHARACTER +MKTP_REF NEXT * | CHARACTER +LT_7B_CONTRACT_REF NEXT * | CHARACTER +GT_7B_CONTRACT_REF NEXT * | CHARACTER +ADVERSARIAL_CONTRACT_REF NEXT * | CHARACTER +USERNAME NEXT * | CHARACTER +STATUS NEXT * | CHARACTER +FIRST_NAME NEXT * | CHARACTER +LAST_NAME NEXT * | CHARACTER +PERSONAL_TITLE NEXT * | CHARACTER +COMMENTS NEXT * | CHARACTER +ID NEXT * | CHARACTER +PRTY_TYPE NEXT * | CHARACTER + +Record 11: Rejected - Error on table PARTIES, column ID. +ORA-01722: invalid number + + +Table PARTIES: + 35 Rows successfully loaded. + 1 Row not loaded due to data errors. + 0 Rows not loaded because all WHEN clauses were failed. + 0 Rows not loaded because all fields were null. + + +Space allocated for bind array: 61920 bytes(12 rows) +Space allocated for memory besides bind array: 0 bytes + +Total logical records skipped: 0 +Total logical records read: 36 +Total logical records rejected: 1 +Total logical records discarded: 0 + +Run began on Mon Jan 28 18:25:23 2008 +Run ended on Mon Jan 28 18:25:23 2008 + +Elapsed time was: 00:00:00.08 +CPU time was: 00:00:00.05 diff --git a/InstallMIP.cmd b/InstallMIP.cmd index d0bb24b..441dca5 100644 --- a/InstallMIP.cmd +++ b/InstallMIP.cmd @@ -26,6 +26,7 @@ sqlplus %3/%4@%5 @Data\Seed\create_passwords.sql if "%6"=="" goto :done if "%6"=="demo" goto :demo if "%6"=="test" goto :test +if "%6"=="fat" goto :fat :demo @echo Demo @@ -49,8 +50,21 @@ cd ..\.. goto :done +:fat +@echo Install FAT data +cd Data\fat +call InstallData %3/%4@%5 +@echo Installed fat data +@echo Installing fat application in APEX... +ruby apex_auto_install.rb +cd ..\.. + +@echo fat install Complete + +goto :done + :usage -echo "usage InstallMIP sys_name sys_password app_name app_password db_connect_string [demo|test]" +echo "usage InstallMIP sys_name sys_password app_name app_password db_connect_string [demo|test|fat]" :done