declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
    execute immediate 'CREATE 
						TABLE PRICING_ESP_PUNTO_VENTA (
						PRICINGESPPUNTOVENTA_ID NUMBER(15) NOT NULL, 
                        PUNTOVENTA_ID NUMBER(15) NOT NULL, 
                        PRICINGESPECIFICO_ID NUMBER(15) NOT NULL , 
                        ACTIVO NUMBER(1), 
                        FECMODIF DATE,
                        USUARIO_ID NUMBER(7),
                        CONSTRAINT PRICINGESPPUNTOVENTA_PK PRIMARY KEY (PRICINGESPPUNTOVENTA_ID) ENABLE)';
    exception when object_exists then null;
end;
/

declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
	execute immediate 'CREATE SEQUENCE PRICING_ESP_PUNTOV_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER';
    exception when object_exists then null;
end;
 