SAS® 9.1 OLAP Server Administrator’s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS ® 9.1 OLAP Server: Administrator’s Guide. Cary, NC: SAS Institute Inc. SAS® 9.1 OLAP Server: Administrator’s Guide Copyright © 2004, SAS Institute Inc., Cary, NC, USA All rights reserved. Produced in the United States of America. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc. U.S. Government Restricted Rights Notice. Use, duplication, or disclosure of this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in FAR 52.227–19 Commercial Computer Software-Restricted Rights (June 1987). SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513. 1st printing, January 2004 SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit the SAS Publishing Web site at support.sas.com/pubs or call 1-800-727-3228. SAS® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and product names are registered trademarks or trademarks of their respective companies. Contents
What’s New v Overview v Details v
Chapter 1 R OLAP Introduction and Overview 1 What Is OLAP? 1 What Is a Cube? 2 Understanding the Cube Structure 3 What Is SAS OLAP Server? 3 About Cube Metadata Storage 4 Why You Should Use Cubes 4 Analyzing Your Data 5
Chapter 2 R Installing and Administering SAS OLAP Server 7 Installing and Configuring SAS OLAP Server 8 Monitoring OLAP Server Performance 27 Changing an OLAP Server Configuration 28 Optimizing OLAP Server 31 Monitoring and Administering Sessions—SAS OLAP Server Monitor Plug-In 34 Securing Cubes 35 Cubes and the Metadata Server 38 Understanding Change Management in SAS OLAP Cube Studio 39 Accessing OLAP Cubes from SAS: SQL Pass-Through Facility for OLAP 40
Chapter 3 R Building and Updating Cubes 45 Background 45 Building a Cube from a Detail Table 48 Building a Cube from a Summary Table 55 Building a Cube from a Star Schema 61 Updating a Cube 67 Refreshing Cube Metadata 67 Defining Member Properties 68 Defining Multiple Hierarchies for a Dimension 69 Defining Ragged Hierarchies for a Dimension 70 Manually Tuning Cube Aggregates 73 Multiple Language Support and Dimension Table Translations 74 Adding SAS System Options to a Cube 75 Specifying Tuning and Performance Options in Cube Aggregations 76
Chapter 4 R Using SAS OLAP Cubes 79 Using a Cube with ADO MD 79 Using a Cube with OLE DB for OLAP 79 iv
Using a Cube with Additional SAS Software 80 Using a Cube with Third-Party Clients 80
Chapter 5 R Transitioning from SAS OLAP Server Release 8.2 to SAS 9.1 85 Conversion and Migration Issues from Release 8.2 to SAS 9.1 85 Comparing OLAP Functionality in SAS 8 and SAS 9.1 86 Comparing PROC MDDB Code and PROC OLAP Code 89
Appendix 1 R The OLAP Procedure 91 The OLAP Procedure 92 Syntax: OLAP Procedure 92 PROC OLAP Statement 92 METASVR Statement 97 DIMENSION Statement 99 LEVEL Statement 102 PROPERTY Statement 103 HIERARCHY Statement 105 MEASURE Statement 107 AGGREGATION Statement 110 DROP_AGGREGATION Statement 112 DEFINE Statement 113 USER_DEFINED_TRANSLATIONS Statement 115 Tables Used to Define Cubes 119 Naming Guidelines for SAS OLAP Server 120 Loading Cubes 121 Maintaining Cubes 125 Specialized Syntax Options for PROC OLAP 127
Appendix 2 R Recommended Reading 129 Recommended Reading 129
Glossary 131
Index 139 v
What’s New
Overview
The SAS OLAP Server enables users to develop and deploy scalable Online Analytical Processing (OLAP) applications. In addition, automated data loading and cube building is available through the use of a new administration interface called the SAS OLAP Cube Studio, which was developed using Java technology. OLAP queries are performed using the Multidimensional Expressions (MDX) query language in client applications that are connected to the OLAP Server by using the SQL Pass-Through Facility for OLAP, which is designed to process MDX queries within the PROC SQL environment. open access technologies such as OLE DB for OLAP, ADO MD, and Java.
Note: This section describes the features of the SAS OLAP Server that are new or enhanced since SAS 8.2. R
Details