Some confusion here I think.

- one would gather stats with ANALYSE or DBMS_STATS. Stats are not used by the RBO - so you don't want to do that.

- REBUILDing indexes is almost never required. (Search this forum or "Ask Tom" for opinions.) So you probably don't want to do that either.