declare
    table_exists exception;
    pragma exception_init (table_exists , -00955);
begin
  execute immediate
	'CREATE TABLE INTEGRACAO_TOTVS_CAJA (
		  INTEGRACAOCAJA_ID NUMBER(15) NOT NULL 
		, CAJA_ID NUMBER(15) NOT NULL 
		, INTEGRADOTOTVS NUMBER(5) 
		, FECHOREFETIVA TIMESTAMP 
		, MSG_RETORNO CLOB 
		, CONSTRAINT INTEGRACAO_TOTVS_CAJA_PK PRIMARY KEY ( INTEGRACAOCAJA_ID )
    )';
	
  exception when table_exists then null;
end;