how to resolve ORA-04042: procedure, function, package, or package body does not exist and ORA-00942: table or view does not exist
That is not how you grant privileges on a directory.
SQL&gt; create or replace directory KIR_DOKUMENT as '/tmp';

Directory created.

SQL&gt; select owner, object_type, status from dba_objects where object_name = 'KIR_DOKUMENT';

OWNER
--------------------------------------------------------------------------------
OBJECT_TYPE             STATUS
----------------------- -------
SYS
DIRECTORY               VALID


SQL&gt; grant read on SYS.KIR_DOKUMENT to bp;
grant read on SYS.KIR_DOKUMENT to bp
                  *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL&gt; grant execute on SYS.KIR_DOKUMENT to bp;
grant execute on SYS.KIR_DOKUMENT to bp
                     *
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist

Use the GRANT privilege ON DIRECTORY ... as:
SQL&gt; grant read on directory SYS.KIR_DOKUMENT to bp;

Grant succeeded.

SQL&gt; grant execute on directory SYS.KIR_DOKUMENT to bp;

Grant succeeded.

SQL&gt;