How do I grant a privilege in Oracle?
Once connected as SYSTEM , simply issue the CREATE USER command to generate a new account.
- CREATE USER books_admin IDENTIFIED BY MyPassword;
- GRANT CONNECT TO books_admin;
- GRANT CONNECT, RESOURCE, DBA TO books_admin;
- GRANT CREATE SESSION GRANT ANY PRIVILEGE TO books_admin;
- GRANT UNLIMITED TABLESPACE TO books_admin;
How do I create a materialized view?
CREATE MATERIALIZED VIEW defines a materialized view of a query. The query is executed and used to populate the view at the time the command is issued (unless WITH NO DATA is used) and may be refreshed later using REFRESH MATERIALIZED VIEW .
Do you need to grant create Materialized View privilege?
Check the user who will own the materialized views has the correct privileges. At minimum they will require the CREATE MATERIALIZED VIEW privilege. If they are creating materialized views using database links, you may want to grant them CREATE DATABASE LINK privilege also.
Can a materialized view log be created in Oracle?
If you omit schema, then Oracle Database assumes the master table is contained in your own schema. Oracle Database creates the materialized view log in the schema of its master table. You cannot create a materialized view log for a table in the schema of the user SYS.
Can a materialized view be created on a master table?
If you own the master table, you can create an associated materialized view log if you have the CREATE TABLE privilege.
How to create Materialized View with query rewrite enabled?
To create the materialized view with query rewrite enabled, in addition to the preceding privileges: If the schema owner does not own the master tables, then the schema owner must have the GLOBAL QUERY REWRITE privilege or the QUERY REWRITE object privilege on each table outside the schema.