not sure how what I wrote here is considered rude. You may want to stay away from personal attacks on a public forum as well. If you wish to call me or someone else names/epitaphs, you might want to do that via a personal mail/msg or a phone call, I'm sure my number is on one of the threads out there. Doing it on a public forum such as this just makes you seem rather unprofessional and future employers may run across it when they google your name.
Also, just googling OPTHINTs for dynamic SQL you come across this link on IDUG asking your same question. A few of the responses to this thread are useless, but if you scroll down just a bit Glen Sanderson gives a detailed step by step here at: http://www.idug.org/p/fo/et/thread=18320