Zahlen- oder Wertfehler, nicht wahr?
Dies könnte das Problem verursachen:
and equipID = :P3_EquipID;
Was ist equipID
der Datentyp von ? Wenn es sich um eine NUMBER
handelt , versuche es
and equipID = to_number(:P3_EquipID);
Da dies nicht der Fall ist (wie Sie kommentierten), würde dies helfen?
declare
v_equipid number;
begin
SELECT count(*)
into v_equipid
from equipment
WHERE equipstatus = 'available'
and equipID = :P3_EquipID;
return v_equipid = 1;
end;