Tempo aproximado para leitura: 00:01:40 min
Ocorrência
Ao realizar a abertura da aplicação PRO.exe - Processo Industrial, o Sistema interrompe a inicialização e exibe a mensagem de erro:
Ambiente
TOTVS Agro - TOTVS Agro - Bioenergia - Controle Processo Industrial - PRO - Versão 12
Causa
A falha ocorre devido à ausência da tabela PROAGENDA_INTEGRACAO no esquema schema do banco de dados do PIMS PI.
Solução
Para solucionar a ocorrência e restabelecer a inicialização do executável, crie a tabela PROAGENDA_INTEGRACAO executando o script DDL abaixo no banco de dados Oracle:
Conecte-se ao gerenciador de banco de dados Oracle utilizando o usuário do schema correspondente ao PIMS PI.
Execute o script de criação da tabela e suas respectivas chaves Primary Key e Foreign Key:
-- Create table
create table PROAGENDA_INTEGRACAO
(
emp_codemp CHAR(3) not null,
agi_funcao VARCHAR2(20) not null,
agi_frequencia VARCHAR2(4) not null,
agi_hora_ini VARCHAR2(5) not null,
agi_habilita CHAR(1) not null,
agi_un_tempo CHAR(1) not null
)
tablespace PIMS_DATA
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
-- Create/Recreate primary, unique and foreign key constraints
alter table PROAGENDA_INTEGRACAO
add constraint PK_ID_ID_AGENDA primary key (EMP_CODEMP, AGI_FUNCAO)
using index
tablespace PIMS_DATA
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
alter table PROAGENDA_INTEGRACAO
add constraint EMP_AGENDA_INT foreign key (EMP_CODEMP)
references MCPEMPRES (EMP_CODEMP);
0 Comentários