git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
|
||||
Refreshing the EFT test system
|
||||
|
||||
The EFT test system is located on the PORSZIVO server (10.131.254.75) which is
|
||||
accessible using Remote Desktop connection (mstsc).
|
||||
|
||||
To refresh the test system follow the steps below:
|
||||
--------------------------------------------------
|
||||
|
||||
1) Drop the EFT_NOM_UAT user using the CASCADE option. As you are dropping this user you need to be logged in as
|
||||
WSGL@nomtest in SQL*Plus. pwd: wsgl.
|
||||
|
||||
DROP USER EFT_NOM_UAT CASCADE;
|
||||
|
||||
2) Stay logged in as WSGL@nomtest recreate the EFT_NOM_UAT user using the
|
||||
'@ C:\advantica\eft\eft_nom_uat.pdc' script.
|
||||
3) Change connection to EFT_NOM_UAT@nomtest (pwd: eft_nom_uat) and create the object types and object
|
||||
tables using '@ C:\advantica\eft\schema_build\install.sql'
|
||||
4) On the production database server export the EFT_NOM schema
|
||||
a) log onto the EFT production database server.
|
||||
b) Open a command (DOS) window.
|
||||
c) Open the Oracle export utility using the command 'exp'.
|
||||
d) Log into export as EFT_NOM@nom (pwd: eft_nom) and
|
||||
e) Select a file destination known to have at least 3Gb of storage available
|
||||
on the server
|
||||
f) Follow the interactive instructions to create a user level export for the
|
||||
EFT_NOM schema. All default, export user only (option 2).
|
||||
5) Copy the dump file over to the PORSZIVO server which can be done by sharing a directory on
|
||||
PORSZIVO for full access. You may want to zip the dumpfile before doing this.
|
||||
6) With the copying finished log into PORSZIVO, unzip the dumpfile and import it to the EFT_NOM_UAT schema:
|
||||
a) Open a command (DOS) window.
|
||||
b) Open the Oracle import utility using the command 'imp'.
|
||||
c) Log into import as EFT_NOM_UAT@nomtest (pwd: eft_nom_uat).
|
||||
d) Enter the dumpfile destination when prompted to do so and accept the
|
||||
default values except for:
|
||||
i) ignore create error which you need to set to 'yes' as some objects have
|
||||
been created in step 3.
|
||||
ii) Import entire file, set this to 'yes' to ensure all the Packages etc are
|
||||
imported.
|
||||
7) Confirm the UAT application operates correctly using the URL
|
||||
https://217.67.35.156/eftnomuat/home
|
||||
8) Clean up any files no longer needed e.g. the dumpfile.
|
||||
|
||||
14
Data/BulkLoad/EFT/Nominations/schema_build/eft_nom_uat.pdc
Normal file
14
Data/BulkLoad/EFT/Nominations/schema_build/eft_nom_uat.pdc
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Create the user
|
||||
create user EFT_NOM_UAT
|
||||
identified by "EFT_NOM_UAT"
|
||||
default tablespace USERS
|
||||
temporary tablespace TEMP
|
||||
profile DEFAULT
|
||||
quota unlimited on users;
|
||||
-- Grant/Revoke role privileges
|
||||
grant connect to EFT_NOM_UAT with admin option;
|
||||
grant dba to EFT_NOM_UAT;
|
||||
grant resource to EFT_NOM_UAT with admin option;
|
||||
-- Grant/Revoke system privileges
|
||||
grant create any view to EFT_NOM_UAT;
|
||||
grant unlimited tablespace to EFT_NOM_UAT with admin option;
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE OR REPLACE TYPE "FILELIST" AS TABLE OF VARCHAR2(255)
|
||||
/
|
||||
@@ -0,0 +1,5 @@
|
||||
CREATE OR REPLACE TYPE "NAME_VALUE_REC" AS OBJECT
|
||||
(ATTRIBUTE_NAME VARCHAR2(30)
|
||||
,ATTRIBUTE_VALUE VARCHAR2(1000)
|
||||
)
|
||||
/
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE OR REPLACE TYPE "NAME_VALUE_TAB" AS TABLE OF NAME_VALUE_REC
|
||||
/
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE OR REPLACE TYPE "T_INT_ARRAY" as table of integer
|
||||
/
|
||||
@@ -0,0 +1,34 @@
|
||||
-- Create table
|
||||
create table AUDIT_SESSIONS
|
||||
(
|
||||
AUSE_ID NUMBER not null,
|
||||
USERNAME VARCHAR2(30) not null,
|
||||
SESSION_ID VARCHAR2(240),
|
||||
IP_ADDRESS VARCHAR2(15),
|
||||
CREATED_BY VARCHAR2(30) not null,
|
||||
CREATED_ON DATE not null
|
||||
)
|
||||
tablespace USERS
|
||||
pctfree 10
|
||||
initrans 1
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 64K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
);
|
||||
-- Create/Recreate primary, unique and foreign key constraints
|
||||
alter table AUDIT_SESSIONS
|
||||
add constraint AUSE_PK primary key (AUSE_ID)
|
||||
using index
|
||||
tablespace USERS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 64K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
);
|
||||
@@ -0,0 +1,64 @@
|
||||
-- Create table
|
||||
create table AUDIT_TRANSACTIONS
|
||||
(
|
||||
AUTR_ID NUMBER not null,
|
||||
AUSE_AUSE_ID NUMBER not null,
|
||||
OPERATION_TYPE VARCHAR2(30) not null,
|
||||
OPERATION_TARGET VARCHAR2(32),
|
||||
OLD_VALUES NAME_VALUE_TAB,
|
||||
NEW_VALUES NAME_VALUE_TAB,
|
||||
CREATED_ON DATE not null,
|
||||
CREATED_BY VARCHAR2(30) not null
|
||||
)
|
||||
nested table OLD_VALUES store as AUDIT_TRANSACTIONS_NT50
|
||||
nested table NEW_VALUES store as AUDIT_TRANSACTIONS_NT60
|
||||
tablespace USERS
|
||||
pctfree 10
|
||||
initrans 1
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 64K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
);
|
||||
-- Create/Recreate primary, unique and foreign key constraints
|
||||
alter table AUDIT_TRANSACTIONS
|
||||
add constraint AUTR_PK primary key (AUTR_ID)
|
||||
using index
|
||||
tablespace USERS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 64K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
);
|
||||
alter table AUDIT_TRANSACTIONS
|
||||
add constraint AUTR_AUSE_FK foreign key (AUSE_AUSE_ID)
|
||||
references AUDIT_SESSIONS (AUSE_ID);
|
||||
-- Create/Recreate indexes
|
||||
create unique index SYS_C00289310 on AUDIT_TRANSACTIONS (NEW_VALUES)
|
||||
tablespace USERS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 64K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
);
|
||||
create unique index SYS_C00289311 on AUDIT_TRANSACTIONS (OLD_VALUES)
|
||||
tablespace USERS
|
||||
pctfree 10
|
||||
initrans 2
|
||||
maxtrans 255
|
||||
storage
|
||||
(
|
||||
initial 64K
|
||||
minextents 1
|
||||
maxextents unlimited
|
||||
);
|
||||
@@ -0,0 +1,7 @@
|
||||
@@FILELIST.tps
|
||||
@@NAME_VALUE_REC.tps
|
||||
@@NAME_VALUE_TAB.tps
|
||||
@@T_INT_ARRAY.tps
|
||||
@@audit_sessions.pdc
|
||||
@@audit_transactions.pdc
|
||||
@@nnpcv_types.sql
|
||||
@@ -0,0 +1,13 @@
|
||||
CREATE OR REPLACE TYPE nnpcv_rec AS OBJECT (
|
||||
nnpcv_id NUMBER
|
||||
,VALUE VARCHAR2(100)
|
||||
,gas_day DATE
|
||||
,coca_id NUMBER
|
||||
,nomi_id NUMBER
|
||||
,conp_id NUMBER
|
||||
,created_by VARCHAR2(30)
|
||||
,created_on DATE);
|
||||
/
|
||||
|
||||
CREATE OR REPLACE TYPE nnpcv_tab AS TABLE OF NNPCV_REC;
|
||||
/
|
||||
Reference in New Issue
Block a user