git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493

This commit is contained in:
andrew.gilmore
2012-03-19 11:57:19 +00:00
parent 2a0f4900c3
commit 0e9ca75d77
1587 changed files with 500863 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
CREATE OR REPLACE TYPE "FILELIST" AS TABLE OF VARCHAR2(255)
/

View File

@@ -0,0 +1,5 @@
CREATE OR REPLACE TYPE "NAME_VALUE_REC" AS OBJECT
(ATTRIBUTE_NAME VARCHAR2(30)
,ATTRIBUTE_VALUE VARCHAR2(1000)
)
/

View File

@@ -0,0 +1,2 @@
CREATE OR REPLACE TYPE "NAME_VALUE_TAB" AS TABLE OF NAME_VALUE_REC
/

View File

@@ -0,0 +1,2 @@
CREATE OR REPLACE TYPE "T_INT_ARRAY" as table of integer
/

View File

@@ -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
);

View File

@@ -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
);

View File

@@ -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

View File

@@ -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;
/