Crear tabla en ORACLE
Hola amigos, necesito informacion de que parametros se deben utilizar para crear una tabla en ORACLE, pues tengo tablas que creceran mucho y no quiero tener problemas mas adelante, si alguien tiene informacion les agradesco.
Hola:
Tienes:
PCTFREE: porcentaje para actualizaciones (ojo con datos variables).
PCTUSED: Porcentaje para inserciones
INITRANS: Conexiones minimas concurrentes (DML)
MAXTRANS: idem pero maximas
INITIAL: Primer extent
NEXT: Siguientes entent
PCTINCREASE: %de aumento en tama帽o de extent
Ejemplo:
create table stock1(
codi_producto integer, -- 4 bytes
descripcion varchar2(100) not null, --prom 30bytes
valor integer not null, -- 4 bytes
stock integer not null, -- 4 bytes
constraint ch_valor check(valor >0),
constraint ch_stock check(stock >=0),
constraint pk_codi_producto primary key(codi_producto)
using index tablespace all_indices)
pctfree 5 -- update(variaci贸n leve)
pctused 90 -- insert(bastantes,expansi贸n negocio)
initrans 2 -- min. Servidor + cliente
maxtrans 6 -- nodo servidor + 5 clientes
storage ( initial 234K -- 5000*(4+30+4+4)/0.9
next 1K -- registros 15 al mes, salen 0
-- 15*(4+30+4+4)/0.9
pctincrease 0 -- next constante
)
Ojala que ete oriente :)
Tienes:
PCTFREE: porcentaje para actualizaciones (ojo con datos variables).
PCTUSED: Porcentaje para inserciones
INITRANS: Conexiones minimas concurrentes (DML)
MAXTRANS: idem pero maximas
INITIAL: Primer extent
NEXT: Siguientes entent
PCTINCREASE: %de aumento en tama帽o de extent
Ejemplo:
create table stock1(
codi_producto integer, -- 4 bytes
descripcion varchar2(100) not null, --prom 30bytes
valor integer not null, -- 4 bytes
stock integer not null, -- 4 bytes
constraint ch_valor check(valor >0),
constraint ch_stock check(stock >=0),
constraint pk_codi_producto primary key(codi_producto)
using index tablespace all_indices)
pctfree 5 -- update(variaci贸n leve)
pctused 90 -- insert(bastantes,expansi贸n negocio)
initrans 2 -- min. Servidor + cliente
maxtrans 6 -- nodo servidor + 5 clientes
storage ( initial 234K -- 5000*(4+30+4+4)/0.9
next 1K -- registros 15 al mes, salen 0
-- 15*(4+30+4+4)/0.9
pctincrease 0 -- next constante
)
Ojala que ete oriente :)
C贸mo has calculado en el ejemplo el valor de initial???? y en que te basas para el de next???
