Oracle VIEW
CREATE
CREATE
CREATE OR REPLACE VIEW myview (vcol1, vcol2, vcol3) AS
SELECT tcol1, tcol2, tcol3
FROM mytable;
Read Only View
Read Only View
CREATE OR REPLACE VIEW myview (vcol1, vcol2, vcol3) AS
SELECT tcol1, tcol2, tcol3
FROM mytable
WITH READ ONLY;
Granting Access
Granting Access
GRANT SELECT on user1.view1 TO user2;
If view1 (owned by user1) references table3 owned by user3 then any grant to user2 will
ALTER
ALTER
TODO
DROP
DROP
DROP VIEW IF EXISTS myschema.myview CASCADE CONTSRAINTS;
Bibliography
Bibliography
https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/CREATE-VIEW.htmlhttps://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/ALTER-VIEW.htmlhttps://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/DROP-VIEW.htmlhttps://docs.oracle.com/en/database/oracle/oracle-database/23/dbseg/managing-security-for-definers-rights-and-invokers-rights.html
https://asktom.oracle.com/ords/f?p=100:11:0::::P11_QUESTION_ID:2368667693334
https://asktom.oracle.com/ords/f?p=100:11:0::::P11_QUESTION_ID:2368667693334