Anexo VI. Creación del almacenamiento para el DW

Anuncio
Trabajo Final de Grado: Área Bases de Datos
Anexo V: Creación del almacenamiento para el DW
A. Javier Collado Castro
Anexo VI. Creación del almacenamiento para el DW
Creación de usuario de gestión del DW
/* SCHEMA DEFINITION */
CREATE USER dw IDENTIFIED BY asus;
Permisos del usuario dw
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
GRANT
CREATE SESSION TO dw;
CREATE TABLE TO dw;
CREATE VIEW TO dw;
CREATE ANY TRIGGER TO dw;
CREATE ANY PROCEDURE TO dw;
CREATE SEQUENCE TO dw;
CREATE SYNONYM TO dw;
UNLIMITED TABLESPACE TO dw;
CREATE DATABASE LINK TO dw;
CREATE MATERIALIZED VIEW TO dw;
Definición de los tablespaces del DW
/* TABLESPACE DEFINITION */
CREATE TABLESPACE DIMENSIONS DATAFILE
'/u01/app/oracle/oradata/LUZDW/dimensions.dbf'
SIZE 5M AUTOEXTEND ON;
--CREATE TABLESPACE DEFAULT DATAFILE ONLINE;
CREATE TABLESPACE SUMMARY DATAFILE '/u01/app/oracle/oradata/LUZDW/summary.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_01 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_01.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_02 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_02.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_03 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_03.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_04 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_04.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_05 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_05.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_06 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_06.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_07 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_07.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_08 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_08.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_09 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_09.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_10 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_10.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_11 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_11.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_12 DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_12.dbf' SIZE 5M
AUTOEXTEND ON;
CREATE TABLESPACE FACTS_INDEX DATAFILE '/u01/app/oracle/oradata/LUZDW/facts_INDEX.dbf'
SIZE 5M AUTOEXTEND ON;
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
ALTER
USER
USER
USER
USER
USER
USER
USER
USER
USER
USER
USER
USER
USER
dw
dw
dw
dw
dw
dw
dw
dw
dw
dw
dw
dw
dw
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
QUOTA
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
UNLIMITED
on
on
on
on
on
on
on
on
on
on
on
on
on
FACTS_01;
FACTS_02;
FACTS_03;
FACTS_04;
FACTS_05;
FACTS_06;
FACTS_07;
FACTS_08;
FACTS_09;
FACTS_10;
FACTS_11;
FACTS_12;
FACTS_INDEX;
1
Descargar