Cost-Based Oracle Fundamentals