catch which sql consume temp tablespace
Our database got temp tablespace full. I want catch and save which sql consume so much temp tablespace. So if any way I can do:
1. set up a trigger, when temp tablepsace usage up to 90%, fire this trigger.
2. in the trigger, catch all current sql which is consuming temp tablespace, and which one is the most consumer.
Thanks in advance,
Kelvin