I assume you want to know how many records a query will return, without actually fetching all of them. You could do a select count(*) from ().
For Oracle prior to 9.2 - no way, Oracle does not support such feature, for 9.2/10 you may use scrollable cursors (as Marco has mentioned) but their...