declare
    table_exists exception;
    pragma exception_init (table_exists , -00955);
begin
  execute immediate
	'CREATE TABLE INTEGRACAO_TOTVS_SERVICO (
		  INTEGRACAOSERVICO_ID NUMBER(15) NOT NULL 
		, ESQUEMACORRIDA_ID NUMBER(7) NOT NULL 
		, INTEGRADOTOTVS NUMBER(5) 
		, FECHOREFETIVA TIMESTAMP 
		, MSG_RETORNO CLOB 
		, CONSTRAINT INTEGRACAO_TOTVS_SERVICO_PK PRIMARY KEY ( INTEGRACAOSERVICO_ID )
    )';
	
  exception when table_exists then null;
end;