How to run AWR in PDB/CDB
We went to CDB last year, dunno why this didnt come up before. Im logged into my instance, I try to run an AWR with dbms_workload_repository.awr_sql_report_text
but theres no AWR snaps there. ok so I check "select * from DBA_HIST_SNAPSHOT" and yep, none there. Ok must be a different method so I logon to host, sqlplus / as sysdba. run @?/rdbms/admin/awrrpt and now I can see all the snaps for all the PDBs so I have to run it that way.,
Question is, do I now need to run them always as sysdba, is there a way that if Im logged into my instance I can call it with the old dbms_workload_repository commands?