If i got it right if the table name is going to be dynamic, try using a weak ref cursor, which would solve ur problem.
HTH
-dharma