To use WRITE_NOS, you need the following privileges in Advanced SQL Engine.
- Log on to the database as an administrative user with the required privileges to create users and grant privileges.
- Create a user, if not already done. For example:
CREATE USER nos_usr FROM dbc AS PERMANENT=30e8 PASSWORD=user_password;
- Grant the necessary privileges to the user. The user may need some or all of the following, depending on which queries the user runs. To run the examples the user needs the following privileges:
GRANT CREATE TABLE on nos_usr to nos_usr; GRANT EXECUTE FUNCTION on TD_SYSFNLIB.READ_NOS to nos_usr; GRANT EXECUTE FUNCTION on TD_SYSFNLIB.WRITE_NOS to nos_usr; GRANT CREATE AUTHORIZATION on nos_usr to nos_usr; GRANT CREATE FUNCTION ON nos_usr to nos_usr;