Oracle and MS SQL Server both have tools to monitor performance and provide recommendations to slow running query.