is there another way to do this? I want to restrict the user to his own module and associated results. First intention was to create a view because this gives the possibility to use a WHERE clause in combination with USER which givs me the username of the connected user.
CREATE OR REPLACE FORCE VIEW "ADMIN_STUDENT"."MODULE_LEADER" ("MCODE", "MLECTURER")
AS
SELECT "MCODE",
"MLECTURER"
FROM MODULE
WHERE MLECTURER = USER;
Check out Oracle Virtual Private Database or Oracle Label Security