The Oracle OLAP Java API documentation contains many examples that are fragments of the complete code that produces the results shown in the documentation. From this page you can download a compressed file that contains the Java source files that have the complete code for the examples.
To get the example programs for Oracle OLAP 11g Release 2 (11.2), or for earlier releases, see the appropriate section of this page. Be sure to get the examples that correspond to the version of the Oracle OLAP documentation and Oracle Database that you are using.
Note: The examples for the different releases are based on the version of the Global sample schema that was in use at the time. To successfully run the example programs, you must have installed the appropriate version of the Global sample schema. Be sure to select the appropriate sample schema from the Sample Schemas & Code section of the Oracle OLAP Downloads page.
The examples appear in the following documents.
To view those documents, see OLAP Documentation for 11.2.
To download the example programs, select Download the Example Programs for 11g Release 2 (11.2).
To download the javadoc for the Oracle OLAP Java API in 11g Release 2 (11.2), which you can include in your IDE, select olap_api_doc.jar.
The examples appear in the following documents.
To view those documents, see OLAP Documentation for 11.1.
To download the example programs, select Download the Example Programs for 11g Release 1 (11.1).
For versions 10.2.0.3 and later, the examples appear in the following documents.
To view those documents, see OLAP Documentation for 10.2.
To download the example programs, select Download the Example Programs for 10g Release 2.