A read-only user account is a database account that can select from and query LeasePak tables, but cannot run Data Manipulation Language commands (insert, update, delete) or Data Definition Language commands (create, alter, drop) on the tables. In other words, a read-only user account has read access to LeasePak tables, but does not have write access.
LeasePak software does not require the existence of a read-only user account. After creating a LeasePak database, you may wish to create one or more read-only user accounts for performing ad hoc querying on the database outside of the LeasePak software.
% sqlplus / as sysdba
SQL> alter session set container = PDB_name;
SQL> show con_name
SQL> create user user_name identified by "password";
SQL> grant create session to user_name;
SQL> grant msir_LPdatabase_name to user_name;
SQL> alter user user_name default role msir_LPdatabase_name;
SQL> create or replace trigger user_name._logon after logon on user_name..schema
begin
execute immediate 'alter session set current_schema = LPdatabase_name';
end;
/