ワークロード・インテリジェンスの使用を開始する前に、適切な権限を持つデータベース・ユーザーを作成する必要があります。
例14-1に、ワークロード・インテリジェンスを使用可能なデータベース・ユーザーを作成する方法を示します。
例14-1 ワークロード・インテリジェンスのデータベース・ユーザーの作成
create user workintusr identified by password;
grant create session to workintusr;
grant select,insert,alter on WI$_JOB to workintusr;
grant insert,alter on WI$_TEMPLATE to workintusr;
grant insert,alter on WI$_STATEMENT to workintusr;
grant insert,alter on WI$_OBJECT to workintusr;
grant insert,alter on WI$_CAPTURE_FILE to workintusr;
grant select,insert,alter on WI$_EXECUTION_ORDER to workintusr;
grant insert,update,delete,alter on WI$_FREQUENT_PATTERN to workintusr;
grant insert,delete,alter on WI$_FREQUENT_PATTERN_ITEM to workintusr;
grant insert,delete,alter on WI$_FREQUENT_PATTERN_METADATA to workintusr;
grant select on WI$_JOB_ID to workintusr;
grant execute on DBMS_WORKLOAD_REPLAY to workintusr;