create table LUGAR_PERSONA
(
lugar_id NUMBER(8) not null,
personal_id NUMBER(8) not null
)
nologging;
alter table LUGAR_PERSONA
add constraint FK_lugar FOREIGN KEY (lugar_id) REFERENCES lugar(lugar_id);
add constraint FK_personal FOREIGN KEY (personal_id) REFERENCES personal(personal_id);
I create a table LUGAR_PERSONA,
that must be an intermediate table to associate one or several places with one or several people. Obviously I have created the personal table and the table place.
Trying to add the FOREIGN KEY
gives me this error.
alter table PLACE_PERSON * ERROR at line 1: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
What can this error be caused by?
PS: I add the structure of the parent tables and I do it as an image because it's only to show that part is okay.