35 lines
691 B
Plaintext
35 lines
691 B
Plaintext
-- 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
|
|
);
|