tpt-oracle
tpt-oracle copied to clipboard
New script to create SQL baseline from AWR and some changes in the hint.sql
v$sql_hint was a new feature in 11.2. Unfortunately, I don’t have any 11.2 databases left to verify but I checked on 12.1 and the column exists on 12.1
At least 11.2, not sure about the stuff below 11.2. Just tested it successfully on 11.2.0.1.
11.2 support is good enough. I am even thinking of defaulting to 12.1+ support by default and people still running TPT scripts on older versions would have to comment out the fancy new columns that they don't have - or perhaps use a cloned script with "11" suffix its name, in the cases where 12c+ has a great new column that's not available in 11.2...
This way I don't have to add too much dynamic complexity into these scripts. Another major piece of work (for 12c+) would be to convert the scripts from using dba_ to cdb_ views with the right container filtering logic, so that one would be able to run queries at CDB level too, but yet join to the right object names, etc in appropriate containers.
I'll merge the change, thanks!
You can create a version in github Each version can have supported DB list. So older version of DB could be using older scripts while with newer versions you only support new DBs.