By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD HH24:MI:SS';
DECLARE
ls_P2_RULE VARCHAR2(20) := 'Something';
BEGIN
RAISE_APPLICATION_ERROR(
-20000,
'Rule ' || ls_P2_RULE || ' : Missing Rule Scope.'
|| ' Please check Rule Definition'
);
END;
/
ORA-20000: Rule Something : Missing Rule Scope. Please check Rule Definition
ORA-06512: at line 4