Granting privileges on materialized views

To grant privileges on materialized views, log in as:
  • The materialized view owner

  • The owner of the Schema that contains the materialized view

  • The Security Administrator

  • The SUPER.SUPER user if the Security Administrator group is empty

For more information on privileges, see the HPE NonStop SQL/MX Reference Manual.

Procedure

  1. Log on to the NonStop SQL/MX Database Manager.
  2. In the navigation tree, select Database > My Systems > Catalogs > Schemas.
  3. Select the required schema.
  4. Expand the Materialized Views folder and select the required materialized view.
  5. Right-click on a materialized view, and select Grant/Revoke Privileges.

    The Grant option is selected by default.

  6. In the Grantee section, select Public to grant privileges to all users.

    Or, select Specified Users option to grant privileges to specific users.

    If Specified Users option is selected, the user grid is enabled.

  7. Optional. In the user grid, select the required user name to select a user.

    Or, press Ctrl and click the desired user names to select multiple users.

  8. Optional. To grant privileges on behalf of some other user, select By User option and select the user name in the corresponding drop-down menu.
  9. Optional. Select With Grant Option to grant the privileges and allow the grantees to grant the privileges to other users.
  10. Click Grant.