You are on page 1of 90

Version 11.

Business Intelligence Data Warehouse Guide

Business Intelligence Data Warehouse Guide


Product version: 11.2
Release date: 10-22-15
Document identifier: AciDataWarehouseGuide1603081515
Copyright 1997, 2016 Oracle and/or its affiliates. All rights reserved.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are
protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy,
reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any
means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please
report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government,
the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the
hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable
Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and
adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or
documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S.
Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended
for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or
hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures
to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in
dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are
trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or
registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information about content, products, and services from third parties.
Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party
content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and
its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or
services, except as set forth in an applicable agreement between you and Oracle.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/
topic/lookup?ctx=acc&id=docacc.
Access to Oracle Support: Oracle customers that have purchased support have access to electronic support through My Oracle Support. For
information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.

Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Data Model for Oracle Business Intelligence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Key to Column Data Type Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Common Database Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Time Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
ARF_CAL_MOY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
ARF_CAL_DOW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
ARF_CAL_QOY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ARF_TIME_YEAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ARF_TIME_QTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
ARF_TIME_MONTH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ARF_TIME_WEEK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
ARF_TIME_DAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ARF_TIME_HOUR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
ARF_TIME_TOD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
ARF_TIME_INTERVAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Time Loaders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Time Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Time Dimension Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Internal User Directory Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ARF_IU_USER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
ARF_IU_ORG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
ARF_IU_DIR_LVL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Internal User Loaders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Internal User Jobs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Internal User Dimension Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
External User Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
ARF_USER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
ARF_ORGANIZATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
ARF_USER_AGENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Demographic Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
ARF_GENDER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
ARF_AGE_GROUP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
ARF_LANGUAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
ARF_MARITAL_STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
ARF_GEO_COUNTRY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
ARF_GEO_REGION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
ARF_DEMOGRAPHIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Segment Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
ARF_SEGMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
ARF_SEGCLSTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
ARF_SEGCLTR_MBRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Stimulus Group Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
ARF_STIMULUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
ARF_STIMGRP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ARF_STIMGRP_MBRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Site Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ARF_SITE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Unregistered Sites in Oracle Commerce Business Intelligence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Site Visit Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Site Visit Durations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Business Intelligence Data Warehouse Guide

iii

DURATION_SECONDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TOTAL_ELAPSED_DURATION_SECONDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SITE_VISIT_DURATION_SECONDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RESOURCE_DURATION_SECONDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Currency Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Referrer Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Registration Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Platform ERD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3. Core Commerce Database Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_CURRENCY_CONV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_CATEGORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_COUPON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_SKU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_PROMOTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_PROMOTION_USAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_PROMOGRP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_PROMOGRP_MBRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_SALES_CHANNEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_LINE_ITEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_RET_REASON_DISPOSITION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_RETURN_ITEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Commerce ERD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4. Commerce Service Center Database Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_CALL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Commerce Service Center ERD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5. Aggregated Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Aggregated Data Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_SITE_VISIT_MV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_SITE_VISIT_MV_HOUR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_SITE_VISIT_MV_VISITOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_REGISTRATION_MV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_LINE_ITEM_MV_PRODUCT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_LINE_ITEM_MV_SUPPL_ORDERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_LINE_ITEM_MV_UNIQUE_ORDERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_PROMOTION_USAGE_MV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ARF_CALL_MV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Refreshing Aggregated Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Refreshing Individual Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

iv

28
29
29
30
31
32
33
35
37
37
38
39
41
42
44
45
48
49
49
50
59
59
63
65
65
66
67
67
67
69
70
71
72
75
77
80
81
82
82
85

Business Intelligence Data Warehouse Guide

Introduction

This book provides information about the data warehouse component of Oracle Commerce Business
Intelligence and the information that it contains. Use it to understand the data when developing reports and
maintaining the data warehouse database.
The data warehouse is a relational data base optimized for reporting and analysis. It contains information
about the activity on your Oracle Commerce Platform products and Web sites. A data loader server extracts
information about product activity and stores it in the data warehouse.
Oracle ATG Web Commerce Business Intelligence includes a data model, analyses, and dashboards that run
in the Oracle Business Intelligence reporting tool. These analyses are based on the data gathered in the data
warehouse.
See information about configuring the data model and report definitions in Oracle Business Intelligence in the
Business Intelligence Installation and Configuration Guide.
See information about the Oracle Business Intelligence analyses and dashboards provided with Oracle ATG
Web Commerce in the Reports Guide.
See complete information about installing and using Oracle Business Intelligence in the documentation for
that product (http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/documentation/biee-087853.html).
The chapters of this book contain references to file paths in the installation directory of your Oracle ATG Web
Commerce software. This installation directory is identified as <ATG11dir>.

Data Model for Oracle Business Intelligence


Oracle Commerce Business Intelligence includes a data model for use with Oracle Business Intelligence. The data
model is an intermediate layer that connects the Oracle Commerce Platform data warehouse to the analyses in
Oracle Business Intelligence. The data model presents the data that is stored in the data warehouse to report
authors and it also defines calculations that are useful in reports. For example, the data warehouse contains
records of each visit to your Web sites and the data model includes a calculation that counts the number of site
visits and presents the total to report authors.
Each field in the data model includes a description field that explains the source of the data and how
calculations are performed. You can read those descriptions while browsing through the data model in the
Oracle Business Intelligence interfaces. See complete information about installing and using Oracle Business
Intelligence in the documentation for that product (http://www.oracle.com/technetwork/middleware/bienterprise-edition/documentation/bi-ee-087853.html).

1 Introduction

Key to Column Data Type Names


Database vendors sometimes use different names for similar data types. The table that follows shows the names
used in this document and the equivalents used by various database vendors.

This Guide

Oracle

MS-SQL

DB2

MySQL

char

char

char

char

char

varchar

varchar2

varchar

varchar

varchar

one-digit

number(1,0)

tinyint

numeric(1,0)

tinyint

tinyint

number(3,0)

tinyint

numeric(3,0)

tinyint

smallint

number(5,0)

smallint

smallint

smallint

integer

number(10,0)

integer

integer

integer

bigint

number(19,0)

bigint

bigint

bigint

numeric

number

numeric

numeric

numeric

datetime

date

datetime

timestamp

datetime

timestamp

timestamp

datetime

timestamp

datetime

1 Introduction

Common Database Tables

This chapter describes the data warehouse database tables created by the arf_ddl.sql script. These tables are
used for many Oracle Commerce Platform application reports. This chapter includes the following sections:
Time Tables (page 3)
Internal User Directory Tables (page 10)
External User Tables (page 12)
Demographic Tables (page 15)
Segment Tables (page 20)
Stimulus Group Tables (page 22)
Site Table (page 23)
Site Visit Table (page 26)
Currency Table (page 31)
Referrer Table (page 32)
Registration Table (page 33)
Platform ERD (page 35)
Each section includes a description of the tables and, if applicable, how the information is updated in the data
warehouse. Some tables contain information that should be regularly reloaded, while others contain static data.

Time Tables
The data warehouse tables used to store information about time are described in the following sections. It is
made up of ten tables, seven of which are used to store an instant in time and three which are used to store
auxiliary data.
The tables beginning with ARF_TIME store data about an instant in time. In essence they provide individual
access every piece of data that might be represented in a timestamp. This allows the same report query to
be used with multiple databases, which may have different date and time storage. It also improves report

2 Common Database Tables

performance; for example, there is no need to perform extraction functions on timestamp data to retrieve just
the month.

ARF_CAL_MOY
The ARF_CAL_MOY table stores names and other information for the twelve months of the year.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

SHORT_NAME_EN

varchar

No

Name of the month in short format; for


example:
NOV

LONG_NAME_EN

varchar

No

Name of the month in long format; for


example:
NOVEMBER

MONTH_OF_YEAR

tinyint

No

The number of the month within a year


(range 1-12), for example:
11

ARF_CAL_DOW
The ARF_CAL_DOW table stores names and order information for the seven days of the week. To change the day
on which your week begins, change the numeric data in the DAY_OF_WEEK column. By default the week begins
on Monday (1) and ends with Sunday (7).

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

SHORT_NAME_EN

varchar

No

Name of the day in short format; for


example:
WED

LONG_NAME_EN

varchar

No

Name of the day in long format; for


example:
WEDNESDAY

DAY_OF_WEEK

tinyint

No

The number of the day within a week


(range 1-7), for example:
4

2 Common Database Tables

ARF_CAL_QOY
This table stores names and other information for the years four quarters.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

QTR_OF_YEAR

tinyint

No

The number of the quarter within a year


(range 1-4), for example:
2

SHORT_NAME_EN

varchar

No

Name of the quarter in short form, for


example:
Q1

LONG_NAME_EN

varchar

No

Name of the quarter in long form, for


example:
Quarter 1

ARF_TIME_YEAR
The ARF_TIME_YEAR table stores the year part of an instant. There is one row for each year on which you want to
report.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

YEAR_OF_ERA

smallint

No

The year part of the instant. For


example:
2006

YEAR_TIMESTAMP

timestamp

No

A timestamp representing the


beginning of the year. By default this
is midnight (Coordinated Universal
Time) on 1 January.

ARF_TIME_QTR
This table stores quarter information for an instant. There is one row for each quarter of each year of interest for
reporting.

2 Common Database Tables

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

YEAR_ID

varchar

40

No

Foreign key to ARF_TIME_YEAR.ID


column.

QOY_ID

varchar

40

No

Foreign key to ARF_CAL_QOY.ID


column.

QTR_TIMESTAMP

timestamp

No

A timestamp representing the


beginning of the quarter. By default
this is midnight (Coordinated
Universal Time) on 1 January, 1 April,
1 July, and 1 October of each year.

QTR_OF_YEAR

tinyint

No

The number of the quarter within a


year (range 1-4), for example:
2

ARF_TIME_MONTH
The ARF_TIME_MONTH table stores the month part of an instant. There is one row for each month in each year
of interest for reporting.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

YEAR_ID

varchar

40

No

Foreign key to
ARF_TIME_YEAR.ID column.

QTR_ID

varchar

40

No

Foreign key to
ARF_TIME_QTR.ID column.

MOY_ID

varchar

MONTH_OF_YEAR

MONTH_TIMESTAMP

40

No

Foreign key to ARF_CAL_MOY.ID


column.

tinyint

No

Integer between 1 and 12, the


number of the month within a
year.

timestamp

No

A timestamp representing the


beginning of the month.

ARF_TIME_WEEK
The ARF_TIME_WEEK table stores the week part of an instant. There is one row for each week of each year of
interest for reporting.

2 Common Database Tables

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

YEAR_ID

varchar

40

No

Foreign key to ARF_TIME_YEAR.ID


column.

WEEK_OF_YEAR

tinyint

No

Integer between 1 and 53, the


number of the week within the year.

WEEK_TIMESTAMP

timestamp

No

A timestamp representing the


beginning of the week.

ARF_TIME_DAY
The ARF_TIME_DAY table is used to store the day part of an instant. There is one row for each day in one year.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

WEEK_ID

varchar

40

No

Foreign key to ARF_TIME_WEEK.ID


column.

MONTH_ID

varchar

40

No

Foreign key to ARF_TIME_MONTH.ID


column.

DOW_ID

varchar

40

No

Foreign key to ARF_CAL_DOW.ID


column.

DAY_TIMESTAMP

timestamp

No

Timestamp representing the


beginning of the day.

DAY_OF_WEEK

tinyint

No

Integer between 1 and 7, the number


of the day within the week.

DAY_OF_MONTH

tinyint

No

Integer between 1 and 31, the


number of the day within the month.

DAY_OF_YEAR

smallint

No

Integer between 1 and 366, the


number of the day within the year.

ARF_TIME_HOUR
The ARF_TIME_HOUR table stores the hour part of an instant. There is one row for each hour of one day.

2 Common Database Tables

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

DAY_ID

varchar

40

No

Foreign key to ARF_TIME_DAY.ID


column.

HOUR_TIMESTAMP

timestamp

No

Timestamp representing the


beginning of the hour.

HOUR_OF_DAY

tinyint

No

Integer between 0 and 23, the


number of the hour within the day.

ARF_TIME_TOD
This table has information about the time of day. There is one row for each minute of one day, representing clock
time.

Column Name

Type

ID

Length

Null Allowed

Description

int

No

Identifier; primary key.

HOUR_OF_DAY

tinyint

No

Integer between 0 and 23, indicating


the hour within the day.

MIN_OF_HOUR

tinyint

No

Integer between 0 and 59, the


number of the minute within the
hour.

MIN_OF_DAY

smallint

No

Integer between 0 and 1439, the


number of the minute within the
day.

HALFDAY_OF_DAY

tinyint

No

Either 0 (indicating AM) or 1


(indicating PM).

HOUR_OF_HALFDAY

tinyint

No

Integer between 0 and 11, indicating


the hour within a twelve-hour half
day.

ARF_TIME_INTERVAL
This table provides the time interval options that appear in the report prompts. By default, the table includes the
following calculated intervals:
Today
Yesterday
Week to Date

2 Common Database Tables

Last 14 Days
Month to Date
Quarter to Date
Year to Date
Prior Week to Date
Prior 14 Days
Prior Month to Date
Prior Quarter to Date
Prior Year to Date
Prior Year End
All

Column Name

Type

ID

int

NAME

varchar

NAME_EN

Length

Null Allowed

Description

No

Identifier; primary key.

254

No

Name of the interval in the default


language.

varchar

254

Yes

Name of the interval in English.

ABBREVIATION

varchar

Yes

Abbreviation for the interval in the


default language.

ABBREVIATION_EN

varchar

Yes

Abbreviation for the interval in


English.

START_TIMESTAMP

timestamp

No

Starting point for the interval.

END_TIMESTAMP

timestamp

No

End point for the interval.

Time Loaders
The global Nucleus component /atg/reporting/datawarehouse/loaders/TimeRepositoryLoader loads
time data into the data warehouse. The loadTime method can be used to load time data between two dates.
The component also contains operations used to load and lookup year, month, week, day and hour parts of the
instant.

Time Jobs
The global component /atg/reporting/datawarehouse/process/jobs/TimeRepositoryLoaderJob
periodically loads time data into the data warehouse. By default the job is scheduled to run every two weeks and
load two weeks of data into the data warehouse.

2 Common Database Tables

The TimeRepositoryLoaderJob can be configured to load time from a date in the past by changing the
startDate property. The frequency and the interval of time loaded by this job can be configured by changing
the duration property and the schedule property.

Time Dimension Handlers


A report summary service dimension handler to be used in conjunction with the time series
data in the data warehouse is available. The name of the class implementing this feature is
atg.reporting.summary.TimeRepositoryDimensionHandler and is packaged with the ARF.DW.base
module. This dimension handler can be used to summarize data on the hour (default), day, month, week, or year
level.

Internal User Directory Tables


This section describes the database tables that comprise the internal user directory.

ARF_IU_USER
The ARF_IU_USER table stores data about internal users. Internal users are users based within your company. For
example, customer service agents using Oracle Commerce Service Center are internal users, while customers at
an Oracle Commerce Core Commerce site are external users.

10

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

USER_ID

varchar

40

No

User ID.

LOGIN

varchar

40

No

Users login

FIRST_NAME

varchar

40

Yes

Users first name

LAST_NAME

varchar

40

Yes

Users last name

PARENT_ORG_ID

varchar

40

No

ID of the organization to which


the user belongs. Foreign key to
ARF_IU_ORG.ID.

DIR_LVL_ID

varchar

40

No

Identifies the level to which this


user belongs. Foreign key to
ARF_IU_DIR_LVL tables ID column.

LAST_UPDATED

timestamp

No

Date and time this record was last


updated.

DELETED

numeric

No

Indicates whether the record has


been deleted.

2 Common Database Tables

ARF_IU_ORG
The ARF_IU_ORG table stores data about internal organizations.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

ORG_ID

varchar

40

No

Organizations natural key.

NAME_EN

varchar

40

No

Name of the organization in English.

DESCRIPTION_EN

varchar

254

Yes

Description of the organization in


English.

PARENT_ORG_ID

varchar

40

Yes

Identifier of the parent organization,


if applicable. Foreign key to the ID
column of this table.

DIR_LVL_ID

varchar

40

No

Identifies the level of this


organization. Foreign key to the ID
column of the ARF_IU_DIR_LVL
column.

LAST_UPDATED

timestamp

No

Date this record was last updated

DELETED

numeric

No

Whether this record indicates deleted


organization.

ARF_IU_DIR_LVL
The ARF_IU_DIR_LVL table stores the levels of the hierarchy. By default, there are ten levels to which
organizations can be assigned.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

NAME_EN

varchar

40

No

Level name in English.

DPTH

smallint

No

Identifies the levels depth.

PARENT_ID

varchar

Yes

Parent level of this level, if applicable.


Foreign key to the ID column of this table.

2 Common Database Tables

40

11

Internal User Loaders


The global Nucleus service /atg/reporting/datawarehouse/loaders/InternalUserDirectoryLoader
loads user directory data into the data warehouse. The services loadUser method loads a user and its ancestors
into the data warehouse. The services loadOrganization method loads an organization and its ancestors into
the data warehouse.

Internal User Jobs


The global service /atg/reporting/datawarehouse/process/jobs/InternalUserDirectoryLoaderJob
periodically loads internal user directory data into the data warehouse. By default the service is scheduled to run
every night. This service is started as part of the ARF.DW.InternalUsers module.

Internal User Dimension Handlers


A report summary service dimension handler to be used in conjunction with the internal
user directory data in the data warehouse is available. The name of the class implementing
this feature is atg.reporting.summary.InternalUserDimensionHandler. A different
dimension handler as exists for handling internal organizations. The name of this class is
atg.reporting.summary.InternalOrganizationDimensionHandler. These two dimension handlers are
packaged with the ARF.DW.InternalUsers module.

External User Tables


This section describes the tables that hold information about the external users of your sites.

ARF_USER
The ARF_USER table contains information from the users profile.

12

Column Name

Type

ID

int

NUSER_ID

varchar

LOGIN

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

Natural key of user.

varchar

40

No

Users login.

FIRST_NAME

varchar

40

Yes

Users first name.

MIDDLE_NAME

varchar

40

Yes

Users middle name.

LAST_NAME

varchar

40

Yes

Users last name.

2 Common Database Tables

Column Name

Type

Length

Null Allowed

Description

EMAIL

varchar

255

Yes

Users email address.

DATE_OF_BIRTH

date

Yes

Users date of birth.

LANG_ID

smallint

No

Identifier of language from the


ARF_LANGUAGE table.

GENDER_ID

tinyint

No

Identifier of gender from the


ARF_GENDER table.

MARITAL_STATUS_ID

tinyint

No

Identifier of marital
status from the
ARF_MARITAL_STATUS table.

HOME_REGION_ID

smallint

No

Identifier of the region of the


users home address, from the
ARF_GEO_REGION table.

ORGANIZATION_ID

integer

No

Identifier of the users


organization. Foreign key to
the ARF_ORGANIZATION table.

RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the information


in this warehouse record
became effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent.
0 = No
1 = Yes

DELETED

one-digit

No

Indicates that this record has


been deleted.
0= No
1 = Yes

ARF_ORGANIZATION
The ARF_ORGANIZATION table stores information about user organizations. These organizations are used in
personalizing your sites. See Using Organizations and Roles in the Personalization Guide for Business Users.

2 Common Database Tables

13

Column Name

Type

ID

integer

NORGANIZATION_ID

varchar

PARENT_ORG_ID

integer

NAME

varchar

DESCRIPTION

varchar

RECORD_LAST_UPDATE

Length

Null Allowed

Description

No

Identifier; primary key.

No

The natural key for the


organization.

Yes

The parent of the organization


in the hierarchy of organizations
configured for your sites. Foreign
key to ARF_ORGANIZATION.ID.

254

No

The name assigned to the


organization.

254

Yes

A description of the organization.

timestamp

Yes

The date and time that the


organization record was last
changed.

RECORD_START_DATE

timestamp

Yes

The date and time that the


organization record was created.

RECORD_END_DATE

timestamp

Yes

The date and time that the


organization record was marked
as deleted. This value is null unless
the record is marked as deleted.

MOST_RECENT

one-digit

No

Indicates that this record is


the most recent record for the
organization.

40

0 = No
1 = Yes
DELETED

one-digit

No

Indicates that this record has been


deleted.
0= No
1 = Yes

ARF_USER_AGENT
The ARF_USER_AGENT table is reserved for future use.

14

Column Name

Type

ID

smallint

Length

Null
Allowed

Description

No

Reserved for future use.

2 Common Database Tables

Column Name

Type

Length

Null
Allowed

Description

USER_AGENT

varchar

254

No

Reserved for future use.

AGENT_NAME

varchar

40

No

Reserved for future use.

AGENT_DESCRIPTION

varchar

254

Yes

Reserved for future use.

BROWSER_NAME

varchar

40

No

Reserved for future use.

BROWSER_VERSION

varchar

20

No

Reserved for future use.

OPERATINGSYSTEM_NAME

varchar

40

No

Reserved for future use.

OPERATINGSYSTEM_VERSION

varchar

20

No

Reserved for future use.

OPERATINGSYSTEM_ARCHITECTURE

varchar

20

No

Reserved for future use.

PLATFORM_NAME

varchar

40

No

Reserved for future use.

SECURITY

varchar

20

No

Reserved for future use.

COMPATIBLE_FLAG

one-digit

No

Reserved for future use.

GECKO_FLAG

one-digit

No

Reserved for future use.

IS_ROBOT

one-digit

No

Reserved for future use.

IS_BROWSER

one-digit

No

Reserved for future use.

RECORD_LAST_UPDATE

timestamp

Yes

Reserved for future use.

RECORD_START_DATE

timestamp

Yes

Reserved for future use.

RECORD_END_DATE

timestamp

Yes

Reserved for future use.

Demographic Tables
This section describes the group of tables that provide demographic data for reports.

ARF_GENDER
The ARF_GENDER table is preloaded with three genders: male, female, and unspecified.

Column Name

Type

ID

tinyint

2 Common Database Tables

Length

Null Allowed

Description

No

Identifier; primary key.

15

Column Name

Type

Length

Null Allowed

Description

GENDER_NAME

varchar

40

No

Name of gender in the default


language.

GENDER_NAME_EN

varchar

40

Yes

Name of gender in English.

ARF_AGE_GROUP
The ARF_AGE_GROUP table defines ranges for age groups into which users can be categorized, and provides
names for the ranges.
To change the ranges of an age group, you can modify the AGE_MIN, AGE_MAX, AGE_GROUP_NAME and
AGE_GROUP_NAME_EN values. The default groups are:
Unspecified
0-17
18-24
25-34
35-44
45-54
55+

Column Name

Type

ID

tinyint

AGE_GROUP_NAME

varchar

AGE_GROUP_NAME_EN

varchar

AGE_MIN

AGE_MAX

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

Name of age group in the


default language.

40

Yes

Name of age group in English.

tinyint

No

Determines the lower boundary


for membership in the age
group.

tinyint

No

Determines the upper boundary


for membership in the age
group.

ARF_LANGUAGE
This table holds a list of languages that can be referenced by other tables. It uses the ISO 639-1 and 639-2 codes.

16

2 Common Database Tables

Column Name

Type

ID

smallint

LANG_NAME

varchar

LANG_NAME_EN

Length

Null Allowed

Description

No

Identifier; primary key.

254

No

Name of language in default


language.

varchar

254

Yes

Name of language in English.

ISO_639_1_ALPHA2

char

Yes

ISO 639-1 two-letter alphabetic


code for the language.

ISO_639_2_ALPHA3

char

No

ISO 639-1 three-letter


alphabetic code for the
language.

RECORD_START_DATE

timestamp

Yes

Date when the information in


this warehouse record became
effective.

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

ARF_MARITAL_STATUS
This table provides marital statuses that can be referenced by other tables. The default statuses provided are:
Unspecified
Married
Single

Column Name

Type

ID

tinyint

MARITAL_STATUS_NAME

varchar

MARITAL_STATUS_NAME_EN

varchar

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

Name of the status in the


default language.

40

Yes

Name of the status in


English.

ARF_GEO_COUNTRY
The ARF_GEO_COUNTRY table stores a list of countries for reference. It uses the ISO 3166 and FIPS codes. The
provided countries are:
Australia

2 Common Database Tables

17

Canada
China
France
Germany
Italy
Japan
Mexico
Russian Federation
South Africa
Spain
Switzerland
United Kingdom
United States
Unspecified

18

Column Name

Type

ID

smallint

COUNTRY_NAME

varchar

COUNTRY_NAME_EN

Length

Null Allowed

Description

No

Identifier; primary key.

254

No

Name of country in the default


language.

varchar

254

Yes

Name of country in English.

ISO3166_1_ALPHA2

char

Yes

ISO 3166 two-character


alphabetic code for the
country.

ISO3166_1_ALPHA3

char

Yes

ISO 3166 three-character


alphabetic code for the
country.

ISO3166_1_NUM3

smallint

Yes

ISO 3166 three-character


numeric code for the country.

FIPS10_4_CODE

char

Yes

FIPS four-digit code for the


country.

RECORD_START_DATE

timestamp

Yes

Date when the information in


this warehouse record became
effective

2 Common Database Tables

Column Name

Type

Length

RECORD_END_DATE

timestamp

Null Allowed

Description

Yes

Date when the information in


this warehouse record is no
longer effective.

ARF_GEO_REGION
The ARF_GEO_REGION table stores a list of regions for reference. It uses the ISO 3166 and FIPS codes. The
provided regions include all US states and Canadian provinces.

Column Name

Type

ID

Length

Null Allowed

Description

smallint

No

Identifier; primary key.

COUNTRY_ID

smallint

No

Identifier of the country of which


the region is a part (see the
ARF_GEO_COUNTRY (page
17) table).

REGION_NAME

varchar

254

No

Name of region in the default


language.

REGION_NAME_EN

varchar

254

Yes

Name of region in English.

ISO_3166_2_CODE

char

Yes

ISO 3166 two-character code for


the region.

FIPS10_4_CODE

char

Yes

FIPS code for the region.

RECORD_START_DATE

timestamp

Yes

Date when the information in


this warehouse record became
effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

ARF_DEMOGRAPHIC
This table contains one row for each possible combination of gender, age group, marital status, and region.

Column Name

Type

ID
GENDER_ID

2 Common Database Tables

Length

Null Allowed

Description

smallint

No

Identifier; primary key.

tinyint

No

Foreign key to ARF_GENDER.ID


column.

19

Column Name

Type

AGE_GROUP_ID

MARITAL_STATUS_ID

Length

Null Allowed

Description

tinyint

No

Foreign key to ARF_AGE_GROUP.ID


column.

tinyint

No

Foreign key to
ARF_MARITAL_STATUS.ID column.

REGION_ID

smallint

No

Foreign key to
ARF_GEO_REGION.ID column.

Segment Tables
The segment tables contain information about segments and segment clusters to which customers can belong.

ARF_SEGMENT
Customers are assigned to segments based on rules created in the Oracle Commerce Business Control Center.
Customers can be members of multiple segments. Segments are also known as profile groups.

Column Name

Type

ID

smallint

NSEGMENT_ID

varchar

SEGMENT_NAME

Length

Null Allowed

Description

No

Identifier; primary key.

254

No

Natural key of segment.

varchar

254

No

Name of segment.

SEGMENT_DESC

varchar

254

Yes

Description of segment.

RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the information


in this warehouse record
became effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent.
0 = No
1 = Yes

20

2 Common Database Tables

Column Name

Type

DELETED

one-digit

Length

Null Allowed

Description

No

Indicates that this record has


been deleted.
0= No
1 = Yes

ARF_SEGCLSTR
A segment cluster represents the group of segments of which a particular person is a member. For example,
Segment A
Segment B
Segment C
Segment D
Segment E
Segments B and D are a bold cluster, while C and E are an Italic cluster. There are 2^5 possible combinations of
two segments in this example; each potential cluster must have a unique name.
Since a person can belong to multiple segments, reporting sales by segment alone can give deceptive results.
Segment clusters show how users group themselves.

Column Name

Type

ID

int

NAME

varchar

HASH_VALUE

varchar

LENGTH

tinyint

Length

Null Allowed

Description

No

Identifier; primary key.

254

Yes

Segment cluster name.

256

No

Used during data loading.

No

Size of the cluster segment. In the example


used above, the length of the Bold segment
is 2.

ARF_SEGCLTR_MBRS
This table relates the individual segments to their cluster. It contains a row for each segment in a segment
cluster.

Column Name

Type

SEGCLSTR_ID

integer

2 Common Database Tables

Length

Null Allowed

Description

No

Foreign key to ARF_SEGCLSTR.ID column.


Primary key component.

21

Column Name

Type

SEGMENT_ID

smallint

MEMBER

tinyint

Length

Null Allowed

Description

No

Foreign key to ARF_SEGMENT.ID column.


Primary key component.
Indicates that the segment is a member of
the cluster. Primary key component.

Stimulus Group Tables


The stimulus group tables hold information about what motivated the customer to place an order, such as which
promotion might have prompted it.

ARF_STIMULUS
This table contains the list of stimuli that can be used in the system.

Column Name

Type

ID

smallint

NSTIMULUS_ID

varchar

STIMULUS_DESC

Length

Null Allowed

Description

No

Identifier; primary key.

254

No

Natural key for stimulus.

varchar

254

Yes

Name given to stimulus.

STIMULUS_TYPE

varchar

254

Yes

Type of stimulus.

RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the information


in this warehouse record
became effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent.
0 = No
1 = Yes

22

2 Common Database Tables

Column Name

Type

Length

DELETED

one-digit

Null Allowed

Description

No

Indicates that this record has


been deleted.
0= No
1 = Yes

ARF_STIMGRP
Orders have more than one stimulus, so as with segments, the list of all possible stimulus groups is determined
and stored in this table.

Column Name

Type

ID

int

NAME

varchar

HASH_VALUE

varchar

LENGTH

tinyint

Length

Null Allowed

Description

No

Identifier; primary key.

254

Yes

Stimulus group name.

256

No

Used during data loading.

No

Size of the stimulus group.

ARF_STIMGRP_MBRS
This table relates individual stimuli to stimulus groups.

Column Name

Type

STIMGRP_ID

STIMULUS_ID

Length

Null Allowed

Description

integer

No

Foreign key to ARF_STIMGRP.ID column.


Primary key component.

smallint

No

Foreign key to ARF_STIMULUS.ID column.


Primary key component.

Site Table
ARF_SITE
The ARF_SITE table stores information about the Oracle Core Commerce sites you have configured. See
information about the site configurations that are recorded in the table in the Multisite Administration Guide.

2 Common Database Tables

23

Column Name

Type

ID

smallint

NSITE_ID

varchar

NAME

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

The natural identifier of the site.

varchar

254

No

The name assigned to the site.


This value is used when no locale
is specified for a report.

NAME_EN

varchar

254

Yes

The name assigned to the


site. This value is used when
an English language locale is
specified for a report.

DESCRIPTION

varchar

254

Yes

A description of the site. This


description is used when no
locale is specified for a report.

DESCRIPTION_EN

varchar

254

Yes

A description of the site. This


description is used when an
English language locale is
specified for a report.

HOME_PAGE

varchar

254

Yes

The application context path of


the site. For example, /store.

LAUNCH_DATE

timestamp

Yes

The date and time that the site


was launched.

CLOSE_DATE

timestamp

Yes

The date and time that the site


was closed.

ENABLED

one-digit

No

Indicates whether the site is


enabled.
0= No
1 = Yes

24

CURRENCY_NAME

varchar

254

Yes

The name of the default currency


used by the site. For example,
United States Dollars.

CURRENCY_ALPHA3

char

Yes

The ISO currency code of the


default currency used by the site.
For example, USD.

LANGUAGE_NAME

varchar

254

Yes

The default language used by the


site. For example, English.

LANGUAGE_ALPHA2

char

Yes

The two-character ISO language


code of the default language
used by the site. For example, en.

2 Common Database Tables

Column Name

Type

Length

Null Allowed

Description

LANGUAGE_ALPHA3

char

Yes

The three-character ISO language


code of the default language
used by the site. For example,
eng.

DEFAULT_CATALOG_NAME

varchar

254

Yes

The name of the default catalog


that is configured for the site.

RECORD_LAST_UPDATE

timestamp

Yes

The date and time that the site


record was last changed.

RECORD_START_DATE

timestamp

Yes

The date and time that the site


record was created.

RECORD_END_DATE

timestamp

Yes

The date and time that the site


record was marked as deleted.
This value is null unless the
record is marked as deleted.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent record for the site.
0 = No
1 = Yes

DELETED

one-digit

No

Indicates that this record has


been deleted.
0= No
1 = Yes

Unregistered Sites in Oracle Commerce Business Intelligence


Oracle Commerce Platform Web sites may be registered or unregistered. Registered sites are configured
using the Site Administration utility in the Business Control Center. The Site Administration utility supports
multiple sites and it logs distinguishing information about each site that is loaded into the data warehouse.
See the Multisite Administration Guide. Unregistered sites are configured without using the Site Administration
utility. Only one unregistered site may be configured and Core Commerce does not log the distinguishing site
information that would be included in the data warehouse ARF_SITE (page 23) table.
If your site is unregistered, Oracle Commerce Business Intelligence will represent it with the default record in
the ARF_SITE table. The values in the default record will appear in reports that include site information. Default
values for the ARF_SITE table are shown below.

ID

NSITE_ID

NAME

NAME_EN

DESCRIPTION

DESCRIPTION_EN

Unregistered

Unregistered

Unregistered

The unregistered site

The unregistered site

2 Common Database Tables

25

Site Visit Table


The ARF_SITE_VISIT table stores information about visits to the commerce sites you have configured. The
table includes one row per visit to a site.

26

Column Name

Type

SITE_VISIT_ID

Length

Null

Description

bigint

No

Identifier; primary key.

START_TIMESTAMP

timestamp

Yes

The date and time that the HTTP


session started.

START_DAY_ID

varchar

No

Day the session began. Foreign key to


ARF_TIME_DAY.ID column.

START_TIME_ID

integer

No

Time the session began. Foreign key


to ARF_TOD.ID column.

END_DAY_ID

integer

No

Day on which the session ended.


Foreign key to ARF_TIME_DAY.ID
column.

END_TIME_ID

integer

No

Time at which the session ended.


Foreign key to ARF_TIME_TOD.ID
column.

START_VISIT_TIMESTAMP

timestamp

Yes

The date and time that the site visit


started.

SITE_VISIT_START_DAY_ID

varchar

No

Day the site visit began. Foreign key


to ARF_TIME_DAY.ID column.

SITE_VISIT_START_TIME_ID

integer

No

Time the site visit began. Foreign key


to ARF_TOD.ID column.

SITE_VISIT_END_DAY_ID

varchar

40

No

Day on which the site visit ended.


Foreign key to ARF_TIME_DAY.ID
column.

SITE_VISIT_END_TIME_ID

integer

40

No

Time at which the site visit ended.


Foreign key to ARF_TIME_TOD.ID
column.

VISIT_END_TIME_ID

integer

No

Time at which the user made the


last HTTP request in the session.
This is different from END_TIME_ID
when the session ends by timing out.
Foreign key to ARF_TIME_TOD.ID
column.

40

40

2 Common Database Tables

Column Name

Type

VISITOR_ID

integer

Length

Null

Description

No

User ID of visitor. Foreign key to


ARF_USER.ID column.
If visitor is anonymous, this is set to
Unspecified User.

STIMGRP_ID

smallint

No

Stimulus group associated with the


visit. Foreign key to ARF_STIMGRP.ID
column.

DEMOGRAPHIC_ID

smallint

No

Demographic which represents


the demographic profile of
this site visit. Foreign key to
ARF_DEMOGRAPHIC.ID.

SITE_ID

smallint

No

The site at which the visit took place.


Foreign key to ARF_SITE.ID.

ENTRY_SITE_ID

smallint

No

The first site visited during the


HTTP session in which this site
visit occurred. Foreign key to
ARF_SITE.ID.

EXIT_SITE_ID

smallint

No

The last site visited during the


HTTP session in which this site
visit occurred. Foreign key to
ARF_SITE.ID.

REFERRING_SITE_ID

smallint

No

The previous site visited during


the HTTP session in which this
site visit occurred. Foreign key to
ARF_SITE.ID.

SEQUENCE_NUM

tinyint

No

The rank order in which this site visit


took place during an HTTP session.

USER_AGENT_ID

smallint

No

The record in ARF_USER_AGENT that


is associated with the site visit.

REFERRER_ID

smallint

No

The record in ARF_REFERRER that is


associated with the site visit.

SESSION_ID

varchar

No

The identifier of the HTTP session


in which the visit occurred. The
session identifier is assigned by the
application server.

NUM_PAGE_VIEWS

smallint

No

Number of pages the visitor viewed


during the visit.

2 Common Database Tables

128

27

Column Name

Type

DURATION_SECONDS

smallint

Length

Null

Description

No

Duration of the HTTP


session in seconds. See
DURATION_SECONDS (page 28).

TOTAL_ELAPSED_DURATION_SECONDS
integer

No

The number of seconds that pass


between the first and last HTTP
requests in the HTTP session. See
TOTAL_ELAPSED_DURATION_SECONDS (page
29).

SITE_VISIT_DURATION_SECONDS

integer

No

The number of seconds that pass


between the first and last HTTP
requests in the site visit. See
SITE_VISIT_DURATION_SECONDS (page
29).

RESOURCE_DURATION_SECONDS

integer

No

The total number of seconds


that a user spends visiting one
site during an HTTP session. See
RESOURCE_DURATION_SECONDS (page
30).

Site Visit Durations


Oracle Commerce Business Intelligence records the duration of site visits in several ways. These duration
measurements are stored in columns of the ARF_SITE_VISIT table. The measurements in each column are
explained in the following sections.

DURATION_SECONDS
The DURATION_SECONDS column stores the entire length of the HTTP session in which a site visit occurs. If the
session ends by timing out, DURATION_SECONDS includes the time that passes after the last HTTP request.
The following diagram shows the period of time measured in the DURATION_SECONDS column.

28

2 Common Database Tables

TOTAL_ELAPSED_DURATION_SECONDS
The TOTAL_ELAPSED_DURATION_SECONDS column stores the number of seconds that pass between the first
and last HTTP requests of the HTTP session in which a site visit occurs. It does not matter which sites the first and
last HTTP response occur in.
The following diagram shows the period of time measured in the TOTAL_ELAPSED_DURATION_SECONDS
column.

SITE_VISIT_DURATION_SECONDS
The SITE_VISIT_DURATION_SECONDS column stores the number of seconds between the first and last HTTP
requests at a site during an HTTP session. A user may visit other sites and then return to the original site during

2 Common Database Tables

29

this period. If the HTTP session ends by timing out, SITE_VISIT_DURATION_SECONDS does not include the time
that passes after the last HTTP request.
The following diagram shows the period of time measured in the SITE_VISIT_DURATION_SECONDS column.

RESOURCE_DURATION_SECONDS
The RESOURCE_DURATION_SECONDS column stores the total number of seconds that a user spends at a site
during an HTTP session. Each site visit in the session is measured between the first HTTP request of a site visit
and one of the following events.
The user visits another site.
The user logs out of the site and the HTTP session ends.
The last HTTP request occurs before the session times out.
The following diagram shows the individual site visits that total the duration in RESOURCE_DURATION_SECONDS.

30

2 Common Database Tables

Currency Table
The ARF_CURRENCY table stores a list of currencies for reference. It uses the ISO 4217 codes. The provided
currencies are:
Australian Dollar
Canadian Dollar
Yuan Renminbi
Japanese yen
Mexican Peso
Russian Ruble
Rand
Swiss Franc
Pound Sterling
US Dollar
Euro
No Currency

Column Name

Type

ID

smallint

2 Common Database Tables

Length

Null Allowed

Description

No

Identifier; primary key.

31

Column Name

Type

Length

Null Allowed

Description

CURRENCY_NAME

varchar

254

No

Name of currency in the


default language.

CURRENCY_NAME_EN

varchar

254

Yes

Name of currency in English.

ISO4217_ALPHA3

char

No

ISO 4217 three-letter


alphabetic code for the
currency.

ISO4217_NUM3

smallint

Yes

ISO 4217 three-number


numeric code for the currency.

RECORD_START_DATE

timestamp

Yes

Date when the information in


this warehouse record became
effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

Referrer Table
The ARF_REFERRER table is reserved for future use.

32

Column Name

Type

ID

smallint

REFERRER_URL

varchar

REFERRER_SITE_NAME

Length

Null Allowed

Description

No

Reserved for future use.

254

No

Reserved for future use.

varchar

254

No

Reserved for future use.

REFERRER_SITE_DESCRIPTION

varchar

254

Yes

Reserved for future use.

REFERRER_URL_SCHEME

varchar

20

No

Reserved for future use.

REFERRER_URL_HOST

varchar

40

No

Reserved for future use.

REFERRER_URL_DOMAIN

varchar

40

No

Reserved for future use.

REFERRER_URL_DOMAIN_TYPE

varchar

20

No

Reserved for future use.

REFERRER_URL_PATH

varchar

254

No

Reserved for future use.

IS_SEARCH_ENGINE

one-digit

No

Reserved for future use.

RECORD_LAST_UPDATE

timestamp

Yes

Reserved for future use.

2 Common Database Tables

Column Name

Type

RECORD_START_DATE
RECORD_END_DATE

Length

Null Allowed

Description

timestamp

Yes

Reserved for future use.

timestamp

Yes

Reserved for future use.

Registration Table
The ARF_REGISTRATION table stores information about events in which users create accounts for the Core
Commerce sites you have configured.

Column Name

Type

REGISTRATION_ID

Null
Allowed

Description

smallint

No

Identifier, primary key

REGISTRATION_TIMESTAMP

timestamp

Yes

The date and time that the


registration occurred.

REGISTRATION_DAY_ID

varchar

No

The day on which the registration


occurred. Foreign key to
ARF_TIME_DAY.ID.

REGISTRATION_TIME_ID

integer

No

The time at which the registration


occurred. Foreign key to
ARF_TIME_TOD.ID.

REGISTRANT_ID

integer

No

The user who registered with your


sites. Foreign key to ARF_USER.ID.

STIMGRP_ID

integer

No

A motivating factor associated with


the registration. Foreign key to
ARF_STIMGRP.ID.

SEGCLSTR_ID

integer

No

The group of segments that the


registered user is a part of. Foreign
key to ARF_SEGCLSTR.ID.

DEMOGRAPHIC_ID

smallint

No

Information about the registered user


such as gender, age group, marital
status, and region. Foreign key to
ARF_DEMOGRAPHIC.ID.

SITE_ID

smallint

No

The site at which the registration took


place. Foreign key to ARF_SITE.ID.

2 Common Database Tables

Length

40

33

34

Column Name

Type

SITE_VISIT_ID

SESSION_ID

Length

Null
Allowed

Description

bigint

No

The site visit during which the


registration took place. Foreign key to
ARF_SITE_VISIT.SITE_VISIT_ID.

varchar

No

The identifier of the HTTP session


during which the registration
occurred. The session identifier is
assigned by the application server.

2 Common Database Tables

Platform ERD

2 Common Database Tables

35

36

2 Common Database Tables

Core Commerce Database Tables

This chapter describes the tables in the data warehouse that are used by Oracle Commerce Core Commerce.
Some of these tables are also used by Oracle Commerce Service Center. Tables are created by the
arf_dcs_ddl.sql script.
This chapter includes the following sections:
ARF_CURRENCY_CONV (page 37)
ARF_CATEGORY (page 38)
ARF_PRODUCT (page 41)
ARF_SKU (page 42)
ARF_PROMOTION (page 44)
ARF_PROMOTION_USAGE (page 45)
ARF_PROMOGRP (page 48)
ARF_PROMOGRP_MBRS (page 49)
ARF_SALES_CHANNEL (page 49)
ARF_LINE_ITEM (page 50)
ARF_RET_REASON_DISPOSITION (page 59)
ARF_RETURN_ITEM (page 59)
Commerce ERD (page 63)

ARF_CURRENCY_CONV
This table holds information used to convert currencies in customer orders.

3 Core Commerce Database Tables

37

Column Name

Type

Length

Null Allowed

Description

DAY_ID

varchar

40

No

Primary key component.


Foreign key to
ARF_TIME_DAY.ID

column.
SRC_CURRENCY_ID

smallint

No

Currency to be converted
from. Primary key
component. Foreign key
to ARF_CURRENCY.ID
column.

DST_CURRENCY_ID

smallint

No

Currency to be converted
to. Primary key
component. Foreign key
to ARF_CURRENCY.ID
column.

SRC_DST_CONV_RATE

double

No

Conversion rate from the


source to the destination
currency.
The field length is 19 digits,
with 7 digits to the left of
the decimal and 12 to the
right.

double

DST_SRC_CONV_RATE

No

Conversion rate from the


destination to the source
currency.
The field length is 19 digits,
with 7 digits to the left of
the decimal and 12 to the
right.

ARF_CATEGORY
This table stores category information from your product repository. There is one row per category.

38

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

NCATEGORY_ID

varchar

40

No

Natural ID for the category.

3 Core Commerce Database Tables

Column Name

Type

Length

Null Allowed

Description

NAME

varchar

254

No

Category name in the default


language.

NAME_EN

varchar

254

Yes

Category name in English.

DESCRIPTION

varchar

254

Yes

Category description in the


default language.

DESCRIPTION_EN

varchar

254

Yes

Category description in
English.

PARENT_CAT_ID

int

Yes

ID of the parent category, if


applicable. Foreign key to
ARF_CATEGORY.ID column.

RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the information


in this warehouse record
became effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent.
0 = No
1 = Yes

DELETED

one-digit

No

Indicates that this record has


been deleted.
0= No
1 = Yes

ARF_COUPON
This table stores information about the coupons configured in Core Commerce.

3 Core Commerce Database Tables

39

Column Name

Type

ID

int

NCOUPON_ID

varchar

NAME

Length

Null Allowed

Description

No

The identifier of the


coupon

40

No

The natural identifier of


the coupon

varchar

254

No

The name assigned to the


coupon

NAME_EN

varchar

254

Yes

The name assigned to the


coupon in English

START_DATE

timestamp

Yes

The time and date at


which the coupon
became usable

EXPIRATION_DATE

timestamp

Yes

The time and date at


which the coupon was no
longer usable

IS_BATCH

one-digit

No

A boolean value that


indicates whether the
coupon is serialized
0 = false
1 = true

40

NUMBER_OF_COUPONS

int

No

If the coupon is serialized,


the number of instances
that are in the batch

RECORD_LAST_UPDATE

timestamp

Yes

The time and date


at which this data
warehouse record was last
updated

RECORD_START_DATE

timestamp

Yes

The time and date


at which this data
warehouse record was
created

RECORD_END_DATE

timestamp

Yes

The time and date


at which this data
warehouse record was
marked for deletion

3 Core Commerce Database Tables

Column Name

Type

MOST_RECENT

one-digit

Length

Null Allowed

Description

No

A boolean value that


indicates whether this
record holds the most
recent information about
the coupon.
0 = false
1 = true

DELETED

one-digit

No

A boolean value that


indicates whether the
coupon has been deleted
0 = false
1 = true

ARF_PRODUCT
This table stores product information from your product repository. There is one row per product.

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

NPRODUCT_ID

varchar

40

No

Natural key of product.

NAME

varchar

254

No

Product name in the default


language.

NAME_EN

varchar

254

Yes

Product name in English.

DESCRIPTION

varchar

254

Yes

Product description in the


default language.

DESCRIPTION_EN

varchar

254

Yes

Product description in English.

PARENT_CAT_ID

int

Yes

ID of the products parent


category, if applicable. Foreign
key to ARF_CATEGORY.ID
column.

BRAND

varchar

Yes

The name of the brand


associated with the product.
This name is used when no
locale is specified for a report.

3 Core Commerce Database Tables

254

41

Column Name

Type

Length

Null Allowed

Description

BRAND_EN

varchar

254

Yes

The name of the brand


associated with the product.
This description is used when
an English language locale is
specified for a report.

RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the information


in this warehouse record
became effective

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent.
0 = No
1 = Yes

DELETED

one-digit

No

Indicates that this record has


been deleted.
0= No
1 = Yes

ARF_SKU
This table stores SKU information from your product repository. There is one row per SKU.

42

Column Name

Type

Length

Null Allowed

Description

ID

varchar

40

No

Identifier; primary key.

NSKU_ID

varchar

40

No

Natural key of SKU.

NAME

varchar

254

No

SKU name in the default


language.

NAME_EN

varchar

254

Yes

SKU name in English.

3 Core Commerce Database Tables

Column Name

Type

Length

Null Allowed

Description

DESCRIPTION

varchar

254

Yes

SKU description in the


default language.

DESCRIPTION_EN

varchar

254

Yes

SKU description in English.

PARENT_PROD_ID

int

Yes

ID of the SKUs parent


product. Foreign key
to ARF_PRODUCT.ID
column.

WHOLESALE_PRICE

double

Yes

Wholesale price of the


item represented by the
SKU.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LIST_PRICE

double

Yes

List price of the item


represented by the SKU.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

SALE_PRICE

double

Yes

Sale price of the item


represented by the SKU.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

ON_SALE

numeric or
tinyint

1 (for
numeric)

Yes

Indicates whether or not


the item is currently on
sale.
0 = No
1 = Yes

RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the


information in this
warehouse record became
effective

3 Core Commerce Database Tables

43

Column Name

Type

RECORD_END_DATE

MOST_RECENT

Length

Null Allowed

Description

timestamp

Yes

Date when the


information in this
warehouse record is no
longer effective.

one-digit

No

Indicates that this record


is the most recent.
0 = No
1 = Yes

DELETED

one-digit

No

Indicates that this record


has been deleted.
0= No
1 = Yes

ARF_PROMOTION
This table holds information about product promotions.

44

Column Name

Type

ID

smallint

NPROMO_ID

varchar

PROMO_NAME

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

Natural key of promotion.

varchar

254

No

Promotion name in the


default language.

PROMO_NAME_EN

varchar

254

Yes

Promotion name in English.

PROMO_DESC

varchar

254

Yes

Promotion description in the


default language.

PROMO_DESC_EN

varchar

254

Yes

Promotion description in
English.

PROMO_TYPE

varchar

254

Yes

Promotion type that appears


in the promotions item
descriptor, such as Item
Discount Amount Off.

3 Core Commerce Database Tables

Column Name

Type

Length

Null Allowed

Description

PROMO_ENABLED

numeric or
tinyint

Yes

Indicates that this promotion


is enabled.
0 = No
1 = Yes

PROMO_BEGIN_USABLE

timestamp

Yes

Date on which the promotion


can be used.

PROMO_END_USABLE

timestamp

Yes

Date on which the promotion


is no longer usable.

PROMO_GLOBAL

numeric or
tinyint

Yes

Indicates that this promotion


is global.

0 = No
1 = Yes
RECORD_LAST_UPDATE

timestamp

Yes

Date the record was last


updated.

RECORD_START_DATE

timestamp

Yes

Date when the information


in this warehouse record
became effective.

RECORD_END_DATE

timestamp

Yes

Date when the information in


this warehouse record is no
longer effective.

MOST_RECENT

one-digit

No

Indicates that this record is the


most recent.
0 = No
1 = Yes

DELETED

one-digit

No

Indicates that this record has


been deleted.
0= No
1 = Yes

ARF_PROMOTION_USAGE
This table holds information about transactions involving promotions.

3 Core Commerce Database Tables

45

46

Column Name

Type

PROMOTION_USAGE_ID

Length

Null
Allowed

Description

bigint

No

Identifier; primary key.

PROMOTION_ID

smallint

No

Identifier of the promotion


involved. Foreign key to
ARF_PROMOTION.ID.

USAGE_TIMESTAMP

timestamp

Yes

The date and time a promotion


transaction occurred.

DAY_ID

varchar

No

Day on which the transaction


occurred; foreign key to
ARF_TIME_DAY.ID.

TIME_ID

integer

No

Time at which the transaction


occurred; foreign key to
ARF_TIME_TOD.ID.

SKU_ID

integer

No

SKU to which the promotion


was applied; foreign key to
ARF_SKU.ID.

PRODUCT_ID

integer

No

Product to which the


promotion was applied; foreign
key to ARF_PRODUCT.ID.

CATEGORY_ID

integer

No

Category of the item to


which the promotion was
applied; foreign key to
ARF_CATEGORY.ID.

CUSTOMER_ID

integer

No

Customer for whom the


promotion was used; foreign
key to ARF_USER.ID.

SEGCLSTR_ID

integer

No

Segment cluster to which the


customer belongs; foreign key
to ARF_SEGCLSTR.ID.

BILLING_REGION_ID

smallint

No

Billing region for the


transaction; foreign key to
ARF_GEO_REGION.ID.

LOCAL_CURRENCY_ID

smallint

No

Local currency in which the


transaction occurred; foreign
key to ARF_CURRENCY.ID.

DEMOGRAPHIC_ID

smallint

No

Demographic to which the


customer belongs; foreign key
to ARF_DEMOGRAPHIC.ID.

40

3 Core Commerce Database Tables

Column Name

Type

SITE_VISIT_ID

Length

Null
Allowed

Description

bigint

No

ID of site visit in which the


promotion use occurred.

ORDER_ID

integer

No

ID of the order to which the


promotion was applied.

NORDER_ID

varchar

40

No

Natural identifier for the order


to which the promotion was
applied.

SESSION_ID

varchar

128

Yes

ID of the session in which the


promotion was used.

AGENT_ID

varchar

40

Yes

Agent involved in the


transaction, if any; foreign key
to ARF_IU_USER.ID.

ORIGIN_SALES_CHANNEL_ID

numeric

Yes

Identifier for sales channel


that originated the
order. Foreign key to
ARF_SALES_CHANNEL.ID

column.
SUBMIT_SALES_CHANNEL_ID

numeric

Yes

Identifier for sales channel


that completed the
order. Foreign key to
ARF_SALES_CHANNEL.ID

column.
QUANTITY

doubleprecision

LOCAL_NET_REVENUE

numeric

19

No

Quantity of items to which the


promotion applies.

No

Net revenue for the item to


which the promotion was
applied, in the local currency.
If the promotion is one that
applies to an entire order,
this value is the same as the
LOCAL_ORDER_NET_REVENUE

value.
LOCAL_ORDER_NET_REVENUE

numeric

19

No

Net revenue for the entire


order after applying the
promotion, in the local
currency.

LOCAL_DISCOUNT_AMOUNT

numeric

19

No

Effective amount of the


discount applied as a result
of the promotion, in the local
currency.

3 Core Commerce Database Tables

47

Column Name

Type

Length

Null
Allowed

Description

STANDARD_NET_REVENUE

numeric

19

No

Net revenue for the item to


which the promotion was
applied, in the standard
currency. If the promotion
is one that applies to
an entire order, this
value is the same as the
LOCAL_ORDER_NET_REVENUE

value.
STANDARD_ORDER_NET_REVENUE

numeric

19

No

Net revenue for the entire


order after applying the
promotion, in the standard
currency.

STANDARD_DISCOUNT_AMOUNT

numeric

19

No

Effective amount of the


discount applied as a result of
the promotion, in the standard
currency.

SITE_ID

smallint

No

The site at which the


transaction occurred. Foreign
key to ARF_SITE.ID.

COUPON_USAGE_ID

bigint

No

A unique identifier for this


use of a coupon. Set to 0 if no
coupon is associated with the
promotion usage.

COUPON_ID

int

No

The identifier of the coupon


record. This is a foreign key to
the ARF_COUPON table.

COUPON_CODE

varchar

Yes

The name assigned to the


coupon used.

ORGANIZATION_ID

int

Yes

The organization associated


with the promotion.

254

ARF_PROMOGRP
This table holds information about promotion groups.

48

3 Core Commerce Database Tables

Column Name

Type

ID

smallint

NAME

varchar

HASH_VALUE

varchar

LENGTH

smallint

Length

Null Allowed

Description

No

Identifier; primary key.

254

No

Name of the promotion group.

256

No

Used during data loading.

No

Size of the promotion group.

ARF_PROMOGRP_MBRS
This table relates the individual promotions to their promotion groups. It contains a row for each promotion in a
promotion group.

Column Name

Type

PROMO_GRP_ID

PROMOTION_ID

Length

Null Allowed

Description

smallint

No

Primary key component. Foreign key to


ARF_PROMOGRP.ID column.

smallint

No

Primary key component. Foreign key to


ARF_PROMOTION.ID column.

ARF_SALES_CHANNEL
This table contains one row for each channel through which an order can be placed. The channel is then
recorded as part of an individual line item. The default channels are:
Web
Call center

Column Name

Type

Length

Null Allowed

Description

ID

numeric
or tinyint

No

Identifier; primary key.

NCODE

integer

No

Natural key of sales channel.

NAME

varchar

254

No

Sales channel name in the default


language.

NAME_EN

varchar

254

Yes

Sales channel name in English.

3 Core Commerce Database Tables

49

Column Name

Type

Length

Null Allowed

Description

DESCRIPTION

varchar

254

Yes

Sales channel description in the default


language.

DESCRIPTION_EN

varchar

25

Yes

Sales channel description in English.

ARF_LINE_ITEM
This table contains one row for every line item in every order placed by customers. Note the following:
Discount refers to any amount subtracted from the price of the item or the order, such as coupons.
Tax and shipping costs are applied to an order. The pipeline processors that populate the data warehouse
allocate these costs across line items. See the Core Commerce Programming Guide for information on these
processors.
Local currency refers to the currency in which the customer pays; standard currency is the currency used for
reporting.

50

Column Name

Type

SUBMIT_TIMESTAMP

timestamp

SUBMIT_DAY_ID

varchar

SUBMIT_TIME_ID

Length

Null
Allowed

Description

Yes

The date and time an


order was submitted.

No

Day order was


submitted. Foreign key
to ARF_TIME_DAY.ID
column.

int

No

Time the order was


submitted. Foreign key
to ARF_TIME_TOD.ID
column.

SKU_ID

int

No

Identifier of SKU
ordered. Foreign key to
ARF_SKU.ID column.

PRODUCT_ID

int

No

Identifier for items


product. Foreign key
to ARF_PRODUCT.ID
column.

CATEGORY_ID

int

No

Identifier for items


category. Foreign key
to ARF_CATEGORY.ID
column.

40

3 Core Commerce Database Tables

Column Name

Type

CUSTOMER_ID

int

NCUSTOMER_ID

varchar

AGENT_ID

ORIGIN_SALES_CHANNEL_ID

Length

Null
Allowed

Description

No

Identifier for the


customer who made the
purchase. Foreign key to
ARF_USER.ID column.

40

Yes

The natural identifier of


the customer.

varchar

40

Yes

Identifier for the agent,


if any, who participated
in the order. Foreign key
to ARF_IU_USER.ID
column.

numeric or
tinyint

Yes

Identifier for sales channel


that originated the
order. Foreign key to
ARF_SALES_CHANNEL.ID

column.
SUBMIT_SALES_CHANNEL_ID

numeric or
tinyint

Yes

Identifier for sales channel


that completed the
order. Foreign key to
ARF_SALES_CHANNEL.ID

column.
STIM_GRP_ID

smallint

No

Reference to the group


of stimuli that may
have stimulated the
order. Foreign key to
ARF_STIMGRP.ID

column.
SEGCLSTR_ID

int

No

Identifier of segment
cluster of which
the customer is a
member. Foreign key
to ARF_SEGCLSTR.ID
column.

PROMOGRP_ID

int

No

Identifier of promotion
group that applies to the
line item. Foreign key
to ARF_PROMOGRP.ID
column.

BILLING_REGION_ID

smallint

No

Identifier for the region


of the customers billing
address. Foreign key to
ARF_GEO_REGION.ID

column.

3 Core Commerce Database Tables

51

Column Name

Type

SHIPPING_REGION_ID

smallint

Length

Null
Allowed

Description

No

Identifier for the region of


the customers shipping
address. Foreign key to
ARF_GEO_REGION.ID

column.
LOCAL_CURRENCY_ID

smallint

No

Currency in which
the line item was
purchased. Foreign key
to ARF_CURRENCY.ID
column.

DEMOGRAPHIC_ID

smallint

No

Foreign key to
ARF_DEMOGRAPHIC_ID

column, which provides


references to age, marital
status, etc.
SITE_VISIT_ID

bigint

No

ID of site visit.

ORDER_ID

int

No

ID of order. Surrogate key.

LINE_ITEM_ID

bigint

No

Identifier; primary key.


Surrogate key.

NORDER_ID

varchar

40

No

Natural key of order from


the Order repository.

NLINE_ITEM_ID

varchar

40

No

Natural key of line item


from the Order repository.

SESSION_ID

varchar

128

Yes

ID of the session in which


the order was placed.

QUANTITY

doubleprecision

No

Quantity of this line item


ordered.

IS_MARKDOWN

one-digit

No

Identifies whether the


item is subject to a
markdown. A marked
down item is sold at a
discount that is not part of
a promotion.
1 = Yes
0 = No
Defaults to 0.

52

3 Core Commerce Database Tables

Column Name

Type

LOCAL_UNIT_PRICE

LOCAL_GROSS_REVENUE

Length

Null
Allowed

Description

double

No

Unit price in the local


currency. The field length
is 19 digits, with 7 digits to
the left of the decimal and
12 to the right.

double

No

Revenue before
adjustments due to
discounts, taxes, and
shipping, in the local
currency. Equal to unit
price * quantity.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_DISCOUNT_AMOUNT

double

No

Any discount applied to


this specific line item, in
the local currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_MARKDOWN_DISC_AMOUNT

double

No

The amount of markdown


discount applied to this
line item in the local
currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_ORDER_TAX_ALLOC

double

No

Amount of tax on the


order that is allocated to
this line item, in the local
currency. The allocation
is determined by the
processing pipeline.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

3 Core Commerce Database Tables

53

Column Name

Type

LOCAL_ORDER_SHIPPING_ALLOC

double

Length

Null
Allowed

Description

No

Amount of shipping
on the order that is
allocated to this line
item. The allocation
is determined by the
processing pipeline.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_ORDER_DISCOUNT_ALLOC

double

No

Amount of any orderlevel discounts that


are allocated to this
line item, in the local
currency. The allocation
is determined by the
processing pipeline.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_NET_REVENUE

double

No

Revenue after
adjustments due to
discounts, taxes, and
shipping, in the local
currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_ORDER_NET_REVENUE

double

No

Revenue for the entire


order of which this
line item is a part, after
adjustments due to
discounts, taxes, and
shipping, in the local
currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

54

3 Core Commerce Database Tables

Column Name

Type

LOCAL_APPSMT_DBT_ALLOC_AMT

double

Length

Null
Allowed

Description

Yes

The amount allocated to


this line item from a debit
to the order made by a
Commerce Service Center
agent. The amount is in
the local currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_APPSMT_CDT_ALLOC_AMT

double

Yes

The amount allocated to


this line item from a credit
to the order made by a
Commerce Service Center
agent. The amount is in
the local currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

LOCAL_PRICE_OVERRIDE_AMT

double

Yes

Price override performed


by a Commerce Service
Center agent on a
commerce item in
the order, in the local
currency.

STANDARD_UNIT_PRICE

double

No

Unit price in the reporting


currency. The field length
is 19 digits, with 7 digits to
the left of the decimal and
12 to the right.

STANDARD_GROSS_REVENUE

double

No

Revenue before
adjustments due to
discounts, taxes, and
shipping, in the reporting
currency. Equal to unit
price * quantity.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

3 Core Commerce Database Tables

55

Column Name

Type

STANDARD_DISCOUNT_AMOUNT

double

Length

Null
Allowed

Description

No

Any discount applied to


this specific line item, in
the reporting currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_MARKDOWN_DISC_AMOUNT

double

No

The amount of markdown


discount applied to this
line item in the standard
currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_ORDER_TAX_ALLOC

double

No

Amount of tax on the


order that is allocated
to this line item, in the
reporting currency. The
allocation is determined
by the processing
pipeline.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_ORDER_SHIPPING_ALLOC

double

No

Amount of shipping
on the order that is
allocated to this line
item, in the reporting
currency. The allocation
is determined by the
processing pipeline.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

56

3 Core Commerce Database Tables

Column Name

Type

STANDARD_ORDER_DISCOUNT_ALLOC

double

Length

Null
Allowed

Description

No

Amount of any orderlevel discount that is


allocated to this line
item, in the reporting
currency. The allocation
is determined by the
processing pipeline.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_NET_REVENUE

double

No

Revenue after
adjustments due to
discounts, taxes, and
shipping, in the reporting
currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_ORDER_NET_REVENUE

double

No

Revenue for the entire


order of which this
line item is a part, after
adjustments due to
discounts, taxes, and
shipping, in the reporting
currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_APPSMT_DBT_ALLOC_AMT

double

Yes

The amount allocated to


this line item from a debit
to the order made by a
Commerce Service Center
user. The amount is in the
reporting currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

3 Core Commerce Database Tables

57

Column Name

Type

STANDARD_APPSMT_CDT_ALLOC_AMT

double

Length

Null
Allowed

Description

Yes

The amount allocated to


this line item from a credit
to the order made by a
Commerce Service Center
user. The amount is in the
reporting currency.
The field length is 19
digits, with 7 digits to the
left of the decimal and 12
to the right.

STANDARD_PRICE_OVERRIDE_AMT

double

Yes

Price override performed


by a Commerce Service
Center agent on a
commerce item in the
order, in the reporting
currency

SUBMITTED_SITE_ID

smallint

No

The site on which the


order was submitted.
Foreign key to
ARF_SITE.ID.

ORIGIN_SITE_ID

smallint

No

The site on which the


order was originally
created. Foreign key to
ARF_SITE.ID.

ITEM_SITE_ID

smallint

No

The site on which the


item was added to the
order. Foreign key to
ARF_SITE.ID.

IS_COUPON_APPLIED

one-digit

No

A boolean value that


indicates whether a
coupon was applied to
the purchase transaction
0 = false
1 = true

ORGANIZATION_ID

58

int

Yes

Indicates an individual
organization used during
the creation of orders.

3 Core Commerce Database Tables

ARF_RET_REASON_DISPOSITION
This table stores the potential reasons for which customer returns are accepted. Reasons and dispositions are
configured using Commerce Service Center.

Column Name

Type

ID

int

NREASON_ID

varchar

DESCRIPTION

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

Natural key for the return reason.

varchar

254

Yes

Return reason description in the


default language.

DESCRIPTION_EN

varchar

254

Yes

Return reason description in English.

DISPOSITION

one-digit

Yes

Defaults to 0.

ARF_RETURN_ITEM
This table contains data about returned items.

Column Name

Type

SUBMIT_TIMESTAMP

timestamp

SUBMIT_DAY_ID

varchar

SUBMIT_TIME_ID

Null
Allowed

Description

Yes

The date and time a return was


submitted.

No

Identifier of the day on which the


return was submitted. Foreign key
to ARF_TIME_DAY.ID column.

int

No

Identifier of the time at which the


return was submitted. Foreign key
to the ARF_TIME_TOD.ID column.

SKU_ID

int

No

SKU of the item being returned.


Foreign key to the ARF_SKU.ID
column.

PRODUCT_ID

int

No

Product being returned. Foreign key


to the ARF_PRODUCT.ID column.

CUSTOMER_ID

int

No

Customer returning the product.


Foreign key to the ARF_USER.ID
column.

3 Core Commerce Database Tables

Length

40

59

Column Name

Type

LOCAL_CURRENCY_ID

smallint

NRETURN_ID

varchar

NORIGINAL_ORDER_ID

Length

Null
Allowed

Description

No

Currency in which the return


was made. Foreign key to the
ARF_CURRENCY.ID column.

40

No

Natural key of the return.

varchar

40

No

Natural key of the order in which


the returned item was purchased.

NEXCHANGE_ORDER_ID

varchar

40

Yes

When a user returns an item and


exchanges it for another item, the
exchange is considered a new order,
which is referenced by this column.

RETURN_ITEM_ID

bigint

No

Identifier. Primary key for this table.

NRETURN_ITEM_ID

varchar

No

Natural key for the return.

QUANTITY

doubleprecision

No

Quantity of the item returned.

EXCHANGE

one-digit

No

Indicates that the return was made


as part of an exchange.

40

1 = Yes
0 = No
Defaults to 0.
RETURN_SALES_CHANNEL

numeric
or tinyint

No

Channel through which the return


was performed. Foreign key to
ARF_SALES_CHANNEL.ID column.

AGENT_ID

varchar

40

No

Agent involved in the return, if any.


Foreign key to ARF_IU_USER.ID
column.

RETURN_REASON_ID

int

No

Reason for which the item was


returned. Foreign key to the
ARF_RET_REASON_DISPOSITION.ID

column.

60

ITEM_SITE_ID

smallint

No

The site on which the returned item


was added to the order. Foreign key
to ARF_SITE.ID.

SUBMITTED_SITE_ID

smallint

No

The site on which the order for


the returned item was submitted.
Foreign key to ARF_SITE.ID.

3 Core Commerce Database Tables

Column Name

Type

LOCAL_ITEM_REFUND

Null
Allowed

Description

double

No

Refund amount for the item in the


local currency.

LOCAL_TOTAL_REFUND

double

No

Total refund for this line item


including all adjustments, in the
local currency.

LOCAL_TOTAL_ADJ_ALLOC

double

No

Total adjustments allocated for this


return, including shipping, fees,
taxes, etc., in the local currency.

LOCAL_SHIPPING_REFUND_ALLOC double

No

Amount of shipping on the return


that is allocated to this line item, in
the local currency. The allocation
is determined by the processing
pipeline

LOCAL_TAX_REFUND_ALLOC

double

No

Amount of tax on the return that


is allocated to this line item, in
the local currency. The allocation
is determined by the processing
pipeline

LOCAL_OTHER_REFUND_ALLOC

double

No

Amount of any additional refund


not accounted for elsewhere that
is allocated to this line item, in the
local currency.

LOCAL_RETURN_FEE_ALLOC

double

No

Amount of any return fee applied to


this line item, in the local currency.
The allocation is determined by the
processing pipeline

STD_ITEM_REFUND

double

No

Refund amount for the item in the


reporting currency.

STD_TOTAL_REFUND

double

No

Total refund for this line item,


including all adjustments, in the
standard currency.

STD_TOTAL_ADJ_ALLOC

double

No

Total adjustments allocated for this


return, including shipping, fees,
taxes, etc., in the standard currency.

STD_SHIPPING_REFUND_ALLOC

double

No

Amount of shipping on the return


that is allocated to this line item,
in the standard currency. The
allocation is determined by the
processing pipeline

3 Core Commerce Database Tables

Length

61

62

Column Name

Type

STD_TAX_REFUND_ALLOC

Length

Null
Allowed

Description

double

No

Amount of tax on the return that


is allocated to this line item, in the
standard currency. The allocation
is determined by the processing
pipeline

STD_OTHER_REFUND_ALLOC

double

No

Amount of any additional refund


not accounted for elsewhere that
is allocated to this line item, in the
reporting currency.

STD_RETURN_FEE_ALLOC

double

No

Amount of any return fee applied


to this line item, in the standard
currency. The allocation is
determined by the processing
pipeline

3 Core Commerce Database Tables

Commerce ERD

3 Core Commerce Database Tables

63

64

3 Core Commerce Database Tables

Commerce Service Center Database


Tables

This chapter describes the tables in the data warehouse that are used by Oracle Commerce Service Center. This
application also uses tables described in the Core Commerce Database Tables (page 37) and Common Database
Tables (page 3) chapters.
This chapter includes the following section:
ARF_CALL (page 65)
Commerce Service Center ERD (page 66)

ARF_CALL
This table includes information about calls received by the Commerce Service Center.

Column Name

Type

ID

number

NCALL_ID

varchar

RECEIVED_DAY_ID

varchar

RECEIVED_TIME_ID

number

Length

Null Allowed

Description

No

Identifier; primary key.

40

No

Natural ID for the call.

40

No

Day the call was


received; foreign key to
ARF_TIME_DAY.ID.

No

Time the call was


received; foreign key to
ARF_TIME_TOD.ID.

CUSTOMER_ID

number

AGENT_ID

varchar

4 Commerce Service Center Database Tables

40

No

Customer involved in the call;


foreign key to ARF_USER.ID.

No

Agent involved in the


call; foreign key to
ARF_IU_USER.ID.

65

Column Name

Type

Length

Null Allowed

Description

END_DAY_ID

varchar

40

No

Day the call ended; foreign key


to ARF_TIME_DAY.ID.

END_TIME_ID

number

No

Time the call ended; foreign key


to ARF_TIME_TOD.ID.

TOTAL_CALL_TIME_SECONDS

number

No

Duration of the call in seconds.

Commerce Service Center ERD

66

4 Commerce Service Center Database Tables

Aggregated Data

The data warehouse includes aggregated data that is calculated based on the data stored in the transaction fact
tables. Components running on the data warehouse loader server refresh the calculated data at regular intervals
so that it is available for reports. Performing intensive calculations before they are needed improves the speed of
the queries that use the calculated data.
The aggregated data calculations are presented as virtual tables by materialized views in Oracle Database
schemas. Other supported database products provide views or other comparable functions to make aggregated
data available. See Aggregated Data Tables (page 67).
The views that contain aggregated data include columns that group the data according to related dimensional
information. For example, the ARF_SITE_VISIT_MV view includes a DAY_ID column. Each value in this
grouping column represents one calendar day. The calculations in each row are restricted to data associated
with the calendar day in the DAY_ID column. Multiple grouping columns in a view restrict the calculations to the
data that is associated with the dimensional information in each grouping column.
See information about the data warehouse loader server components that refresh the aggregated data in
Refreshing Aggregated Data (page 82).

Aggregated Data Tables


This section provides information about the view virtual tables that hold aggregated data in the data
warehouse.

ARF_SITE_VISIT_MV
The ARF_SITE_VISIT_MV view provides aggregated data about site visits. The calculated values are based on
information in the ARF_SITE_VISIT table. The values in each row are constrained to a particular day and site.

Column Name

Type

NUM_VISITS

numeric

5 Aggregated Data

Length

Null
Allowed

Description

Yes

The number of site visits that


correspond to the day and site.
This value counts rows in the
ARF_SITE_VISIT table.

67

Column Name

Type

Length

Null
Allowed

Description

DAY_ID

varchar

40

No

A reference to a value in the


ARF_TIME_DAY.ID column.

DAY_TIMESTAMP

timestamp

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.
SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

TOTAL_NUM_PAGE_VIEWS

numeric

Yes

The number of Web site


page views for the day
and site. This value sums
ARF_SITE_VISIT.NUM_PAGE_VIEWS

column values that correspond to


the grouping column values.
TOTAL_DURATION_SECONDS numeric

Yes

The total length of HTTP


sessions, in seconds, for the
day and site. This value sums
ARF_SITE_VISIT.DURATION_SECONDS

column values that correspond to


the grouping column values.
TOTAL_VISIT_DURATION_SECONDS
numeric

Yes

The total length of the periods


between the first and last HTTP
requests in Web site visits for
the day and site. This value sums
ARF_SITE_VISIT.SITE_VISIT_DURATION_SECONDS

column values that correspond to


the grouping column values.
TOTAL_ELAPSED_DURATION_SECONDS
numeric

Yes

The total length of the periods


between the first and last HTTP
requests in HTTP sessions for
the day and site. This value sums
ARF_SITE_VISIT.TOTAL_ELAPSED_DURATION_SECONDS

column values that correspond to


the grouping column values.
TOTAL_RES_DURATION_SECONDS
numeric

Yes

The total time that Web site


visitors spend visiting a site
for the day. This value sums
ARF_SITE_VISIT.RESOURCE_DURATION_SECONDS

column values that correspond to


the grouping column values.

68

5 Aggregated Data

ARF_SITE_VISIT_MV_HOUR
The ARF_SITE_VISIT_MV_HOUR table provides aggregated data about site visits. The calculated values are
based on information in the ARF_SITE_VISIT table. The values in each row are constrained to a particular hour,
day, and site.

Column Name

Type

NUM_VISITS

numeric

DAY_ID

varchar

DAY_TIMESTAMP

timestamp

Length

40

Null
Allowed

Description

Yes

The number of site visits that


correspond to the hour, day, and
site. This value counts rows in the
ARF_SITE_VISIT table.

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.
HOUR_OF_DAY

tinyint

No

A reference to a value in the


ARF_TIME_TOD.HOUR_OF_DAY

column.
SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

TOTAL_NUM_PAGE_VIEWS

numeric

Yes

The number of Web site


page views for the hour, day,
and site. This value sums
ARF_SITE_VISIT.NUM_PAGE_VIEWS

column values that correspond to


the grouping column values.
TOTAL_DURATION_SECONDS numeric

Yes

The total length of HTTP sessions,


in seconds, for the hour, day,
and site. This value sums
ARF_SITE_VISIT.DURATION_SECONDS

column values that correspond to


the grouping column values.
TOTAL_VISIT_DURATION_SECONDS
numeric

Yes

The total length of the periods


between the first and last HTTP
requests in Web site visits for the
hour, day, and site. This value sums

ARF_SITE_VISIT.SITE_VISIT_DURATION_SECON

column values that correspond to


the grouping column values.

5 Aggregated Data

69

Column Name

Type

Length

TOTAL_ELAPSED_DURATION_SECONDS
numeric

Null
Allowed

Description

Yes

The total length of the periods


between the first and last HTTP
requests in HTTP sessions for the
hour, day, and site. This value sums
ARF_SITE_VISIT.TOTAL_ELAPSED_DURATION_SECONDS

column values that correspond to


the grouping column values.
TOTAL_RES_DURATION_SECONDS
numeric

Yes

The total time that Web site


visitors spend visiting a site for
the hour and day. This value sums
ARF_SITE_VISIT.RESOURCE_DURATION_SECONDS

column values that correspond to


the grouping column values.

ARF_SITE_VISIT_MV_VISITOR
The ARF_SITE_VISIT_MV_VISITOR view provides aggregated data about site visits. The calculated values
are based on information in the ARF_SITE_VISIT table. The values in each row are constrained to a particular
external user, day, and site.

Column Name

Type

NUM_VISITS

numeric

DAY_ID

varchar

DAY_TIMESTAMP

timestamp

Length

40

Null
Allowed

Description

Yes

The number of site visits that


correspond to the day, site and
user. This value counts rows in the
ARF_SITE_VISIT table.

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.

70

SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

VISITOR_ID

integer

No

A reference to a value in the


ARF_USER.ID column.

5 Aggregated Data

Column Name

Type

TOTAL_NUM_PAGE_VIEWS

numeric

Length

Null
Allowed

Description

Yes

The number of Web site


page views for the user, day,
and site. This value sums
ARF_SITE_VISIT.NUM_PAGE_VIEWS

column values that that


correspond to the grouping
column values.
TOTAL_DURATION_SECONDS

numeric

Yes

The total length of HTTP


sessions for the user, day,
and site. This value sums
ARF_SITE_VISIT.DURATION_SECONDS

column values that correspond to


the grouping column values.
TOTAL_VISIT_DURATION_SECONDS
numeric

Yes

The total length of the periods


between the first and last HTTP
requests in Web site visits for the
user, day, and site. This value sums

ARF_SITE_VISIT.SITE_VISIT_DURATION_SECON

column values that correspond to


the grouping column values.
TOTAL_ELAPSED_DURATION_SECONDS
numeric

Yes

The total length of the periods


between the first and last HTTP
requests in HTTP sessions for the
user, day, and site. This value sums

ARF_SITE_VISIT.TOTAL_ELAPSED_DURATION_SE

column values that correspond to


the grouping column values.
TOTAL_RES_DURATION_SECONDS
numeric

Yes

The total time that Web site


visitors spend visiting a site for
the user and day. This value sums

ARF_SITE_VISIT.RESOURCE_DURATION_SECONDS

column values that correspond to


the grouping column values.

ARF_REGISTRATION_MV
The ARF_REGISTRATION_MV view provides aggregated data about external user registration events. The
calculated values are based on information in the ARF_REGISTRATION table. The values in each row are
constrained to a particular day and site.

5 Aggregated Data

71

Column Name

Type

NUM_REGISTRATIONS

numeric

DAY_ID

varchar

DAY_TIMESTAMP

timestamp

Length

40

Null
Allowed

Description

Yes

The number of external


registrations that correspond to
the day and site. This value counts
rows in the ARF_REGISTRATION
table.

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.
SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

ARF_LINE_ITEM_MV_PRODUCT
The ARF_LINE_ITEM_MV_PRODUCT view provides aggregated data about line items associated with customer
purchases. The calculated values are based on information in the ARF_LINE_ITEM table. The values in each row
are constrained to a particular day, site, sales channel, segment cluster, internal agent, and product.

Column Name

Type

NUM_LINE_ITEMS

numeric

SUBMIT_DAY_ID

varchar

DAY_TIMESTAMP

timestamp

Length

40

Null
Allowed

Description

Yes

The number of line items


in customer purchases that
correspond to the day, site,
sales channel, segment cluster,
internal agent, and product.
This value counts rows in the
ARF_LINE_ITEM table.

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.

72

SUBMIT_SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

SUBMIT_SALES_CHANNEL_ID

tinyint

Yes

A reference to a value in the


ARF_SALES_CHANNEL.ID column.

5 Aggregated Data

Column Name

Type

SEGMENTCLUSTER_ID

integer

AGENT_ID

varchar

PRODUCT_ID

TOTAL_QUANTITY

Length

Null
Allowed

Description

No

A reference to a value in the


ARF_SEGCLSTR.ID column.

Yes

A reference to a value in the


ARF_IU_USER.ID column.

integer

No

A reference to a value in the


ARF_PRODUCT.ID column.

numeric

Yes

The number of product items


for the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums

40

ARF_LINE_ITEM.QUANTITY

column values that correspond to


the grouping column values.
TOTAL_STD_UNIT_PRICE

numeric

Yes

The total price of the product items


for the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums
ARF_LINE_ITEM.STANDARD_UNIT_PRICE

column values that correspond to


the grouping column values.
TOTAL_STD_NET_REVENUE

numeric

Yes

The total revenue after


adjustments due to discounts,
taxes, and shipping for the day,
site, sales channel, segment
cluster, internal agent, and
product. This value sums
ARF_LINE_ITEM.STANDARD_NET_REVENUE

column values that correspond to


the grouping column values.
TOTAL_STD_GROSS_REVENUE

numeric

Yes

The total revenue before


adjustments due to discounts,
taxes, and shipping for the day,
site, sales channel, segment
cluster, internal agent, and
product. This value sums
ARF_LINE_ITEM.STANDARD_GROSS_REVENUE

column values that correspond to


the grouping column values.

5 Aggregated Data

73

Column Name

Type

TOTAL_STD_DISCOUNT

numeric

Length

Null
Allowed

Description

Yes

The total discounts applied


for the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums
ARF_LINE_ITEM.STANDARD_DISCOUNT_AMOUNT

column values that correspond to


the grouping column values.
TOTAL_STD_MARKDOWN_DISCOUNT
numeric

Yes

The total markdown discounts


applied for the day, site,
sales channel, segment
cluster, internal agent, and
product. This value sums
ARF_LINE_ITEM.STANDARD_MARKDOWN_AMOUNT

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_SHIP_ALLOC
numeric

Yes

The total order shipping costs


for the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums
ARF_LINE_ITEM.STANDARD_ORDER_SHIPPING_ALLOC

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_TAX_ALLOCnumeric

Yes

The total of order tax amounts


for the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums
ARF_LINE_ITEM.STANDARD_ORDER_TAX_ALLOC

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_DSCNT_ALLOC
numeric

Yes

The total of order-level


discounts applied for the day,
site, sales channel, segment
cluster, internal agent, and
product. This value sums
ARF_LINE_ITEM.STANDARD_ORDER_DISCOUNT_ALLOC

column values that correspond to


the grouping column values.
TOTAL_STD_APPSMT_CRED_ALLOC
numeric

Yes

The total of appeasement credits


applied by internal agents for
the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums
ARF_LINE_ITEM.STANDARD_APPSMT_CDT_ALLOC_AMT

column values that correspond to


the grouping column values.

74

5 Aggregated Data

Column Name

Type

Length

TOTAL_STD_APPSMT_DEBIT_ALLOC
numeric

Null
Allowed

Description

Yes

The total of appeasement debits


applied by internal agents for
the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums

ARF_LINE_ITEM.STANDARD_APPSMT_DBT_ALLOC_

column values that correspond to


the grouping column values.
TOTAL_STD_PRICE_OVERRIDE numeric

Yes

The total value of price overrides


applied by internal agents for
the day, site, sales channel,
segment cluster, internal agent,
and product. This value sums

ARF_LINE_ITEM.STANDARD_PRICE_OVERRIDE_AM

column values that correspond to


the grouping column values.

ARF_LINE_ITEM_MV_SUPPL_ORDERS
The ARF_LINE_ITEM_MV_SUPPL_ORDERS view provides aggregated data about customer purchase
transactions, or orders. The calculated values are based on information in the ARF_LINE_ITEM table. The values
in each row are constrained to a particular day, site, and customer order.

Column Name

Type

NUM_LINE_ITEMS

numeric

SUBMIT_DAY_ID

varchar

DAY_TIMESTAMP

timestamp

Length

40

Null
Allowed

Description

Yes

The number of line items


in customer purchases that
correspond to the day, site, and
order. This value counts rows in the
ARF_LINE_ITEM table.

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.
SUBMIT_SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

ORDER_ID

integer

No

The identifier of a particular


customer purchase transaction.

5 Aggregated Data

75

Column Name

Type

TOTAL_QUANTITY

TOTAL_STD_UNIT_PRICE

Length

Null
Allowed

Description

numeric

Yes

The number of product items for


the day, site, and order. This value
sums ARF_LINE_ITEM.QUANTITY
column values that correspond to
the grouping column values.

numeric

Yes

The total price of the product


items for the day, site, and
order. This value sums
ARF_LINE_ITEM.STANDARD_UNIT_PRICE

column values that correspond to


the grouping column values.
TOTAL_STD_NET_REVENUE

numeric

Yes

The total revenue after


adjustments due to discounts,
taxes, and shipping for the day,
site, and order. This value sums
ARF_LINE_ITEM.STANDARD_NET_REVENUE

column values that correspond to


the grouping column values.
TOTAL_STD_GROSS_REVENUE

numeric

Yes

The total revenue before


adjustments due to discounts,
taxes, and shipping for the day,
site, and order. This value sums
ARF_LINE_ITEM.STANDARD_GROSS_REVENUE

column values that correspond to


the grouping column values.
TOTAL_STD_DISCOUNT

numeric

Yes

The total discounts applied for the


day, site, and order. This value sums
ARF_LINE_ITEM.STANDARD_DISCOUNT_AMOUNT

column values that correspond to


the grouping column values.
TOTAL_STD_MARKDOWN_DISCOUNT
numeric

Yes

The total markdown discounts


applied for the day, site,
and order. This value sums
ARF_LINE_ITEM.STANDARD_MARKDOWN_AMOUNT

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_SHIP_ALLOC
numeric

Yes

The total order shipping


costs for the day, site, and
order. This value sums
ARF_LINE_ITEM.STANDARD_ORDER_SHIPPING_ALLOC

column values that correspond to


the grouping column values.

76

5 Aggregated Data

Column Name

Type

TOTAL_STD_ORDER_TAX_ALLOCnumeric

Length

Null
Allowed

Description

Yes

The total of order tax


amounts for the day, site,
and order. This value sums
ARF_LINE_ITEM.STANDARD_ORDER_TAX_ALLOC

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_DSCNT_ALLOC
numeric

Yes

The total of order-level discounts


applied for the day, site,
and order. This value sums

ARF_LINE_ITEM.STANDARD_ORDER_DISCOUNT_AL

column values that correspond to


the grouping column values.
TOTAL_STD_APPSMT_CRED_ALLOC
numeric

Yes

The total of appeasement credits


applied by internal agents for the
day, site, and order. This value sums

ARF_LINE_ITEM.STANDARD_APPSMT_CDT_ALLOC_

column values that correspond to


the grouping column values.
TOTAL_STD_APPSMT_DEBIT_ALLOC
numeric

Yes

The total of appeasement debits


applied by internal agents for the
day, site, and order. This value sums

ARF_LINE_ITEM.STANDARD_APPSMT_DBT_ALLOC_

column values that correspond to


the grouping column values.
TOTAL_STD_PRICE_OVERRIDE numeric

Yes

The total value of price overrides


applied by internal agents for the
day, site, and order. This value sums

ARF_LINE_ITEM.STANDARD_PRICE_OVERRIDE_AM

column values that correspond to


the grouping column values.

ARF_LINE_ITEM_MV_UNIQUE_ORDERS
The ARF_LINE_ITEM_MV_UNIQUE_ORDERS view provides aggregated data about line items and
orders associated with customer purchases. The calculated values are based on information in the
ARF_LINE_ITEM_MV_SUPPL_ORDERS table. The values in each row are constrained to a particular day, site, sales
channel, segment cluster, internal agent, and product.

5 Aggregated Data

77

Column Name

Type

NUM_LINE_ITEMS

numeric

Length

Null
Allowed

Description

Yes

The number of line items


in customer purchases that
correspond to the day and site.
This value counts rows in the
ARF_LINE_ITEM_MV_SUPPL_ORDERS

table.
NUM_ORDERS

numeric

Yes

The number of line items


in customer purchases that
correspond to the day and site. This
value counts unique, or distinct,
ORDER_ID column values in the
ARF_LINE_ITEM_MV_SUPPL_ORDERS

table.
SUBMIT_DAY_ID

varchar

DAY_TIMESTAMP

timestamp

40

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.
SUBMIT_SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

TOTAL_QUANTITY

numeric

Yes

The number of product items


for the day and site. This value
sums ARF_LINE_ITEM.QUANTITY
column values that correspond to
the grouping column values.

TOTAL_STD_UNIT_PRICE

numeric

Yes

The total price of the product items


for the day and site. This value sums
ARF_LINE_ITEM.STANDARD_UNIT_PRICE

column values that correspond to


the grouping column values.
TOTAL_STD_NET_REVENUE

numeric

Yes

The total revenue after


adjustments due to discounts,
taxes, and shipping for the
day and site. This value sums
ARF_LINE_ITEM.STANDARD_NET_REVENUE

column values that correspond to


the grouping column values.

78

5 Aggregated Data

Column Name

Type

TOTAL_STD_GROSS_REVENUE numeric

Length

Null
Allowed

Description

Yes

The total revenue before


adjustments due to discounts,
taxes, and shipping for the
day and site. This value sums
ARF_LINE_ITEM.STANDARD_GROSS_REVENUE

column values that correspond to


the grouping column values.
TOTAL_STD_DISCOUNT

numeric

Yes

The total discounts applied for


the day and site. This value sums
ARF_LINE_ITEM.STANDARD_DISCOUNT_AMOUNT

column values that correspond to


the grouping column values.
TOTAL_STD_MARKDOWN_DISCOUNT
numeric

Yes

The total markdown


discounts applied for the
day and site. This value sums
ARF_LINE_ITEM.STANDARD_MARKDOWN_AMOUNT

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_SHIP_ALLOC
numeric

Yes

The total order shipping costs for


the day and site. This value sums

ARF_LINE_ITEM.STANDARD_ORDER_SHIPPING_ALLO

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_TAX_ALLOC
numeric

Yes

The total of order tax amounts for


the day and site. This value sums
ARF_LINE_ITEM.STANDARD_ORDER_TAX_ALLOC

column values that correspond to


the grouping column values.
TOTAL_STD_ORDER_DSCNT_ALLOC
numeric

Yes

The total of order-level


discounts applied for the
day and site. This value sums

ARF_LINE_ITEM.STANDARD_ORDER_DISCOUNT_ALLO

column values that correspond to


the grouping column values.
TOTAL_STD_APPSMT_CRED_ALLOC
numeric

Yes

The total of appeasement credits


applied by internal agents for
the day and site. This value sums

ARF_LINE_ITEM.STANDARD_APPSMT_CDT_ALLOC_AM

column values that correspond to


the grouping column values.

5 Aggregated Data

79

Column Name

Type

Length

TOTAL_STD_APPSMT_DEBIT_ALLOC
numeric

Null
Allowed

Description

Yes

The total of appeasement debits


applied by internal agents for
the day and site. This value sums
ARF_LINE_ITEM.STANDARD_APPSMT_DBT_ALLOC_AMT

column values that correspond to


the grouping column values.
TOTAL_STD_PRICE_OVERRIDEnumeric

Yes

The total value of price overrides


applied by internal agents for
the day and site. This value sums
ARF_LINE_ITEM.STANDARD_PRICE_OVERRIDE_AMT

column values that correspond to


the grouping column values.

ARF_PROMOTION_USAGE_MV
The ARF_PROMOTION_USAGE_MV view provides aggregated data about purchases that involve promotions. The
calculated values are based on information in the ARF_PROMOTION_USAGE table. The values in each row are
constrained to a particular day, site, and promotion.

Column Name

Type

NUM_PROMOS_USED

numeric

DAY_ID

varchar

DAY_TIMESTAMP

timestamp

Length

40

Null
Allowed

Description

Yes

The number of purchases that


involve the promotion and that
correspond to the day and site.
This value counts rows in the
ARF_PROMOTION_USAGE table.

No

A reference to a value in the


ARF_TIME_DAY.ID column.

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.

80

SITE_ID

smallint

No

A reference to a value in the


ARF_SITE.ID column.

PROMOTION_ID

smallint

No

A reference to a value in the


ARF_PROMOTION.ID column.

5 Aggregated Data

Column Name

Type

TOTAL_QUANTITY

numeric

Length

Null
Allowed

Description

Yes

The number of purchased


items for the day, site, and
promotion. This value sums
ARF_PROMOTION_USAGE.QUANTITY

column values that correspond to


the grouping column values.
TOTAL_STD_DISCOUNT

numeric

Yes

The total amount of discounts


applied as a result of the
promotion for the day
and site. This value sums

ARF_PROMOTION_USAGE.STANDARD_DISCOUNT_AM

column values that correspond to


the grouping column values.
TOTAL_STD_ORD_NET_REVENUEnumeric

Yes

The total value of purchases


that involve the promotion,
minus the discounts applied as
a result of the promotion for the
day and site. This value sums

ARF_PROMOTION_USAGE.STANDARD_ORDER_NET_R

column values that correspond to


the grouping column values.
TOTAL_STD_NET_REVENUE

numeric

Yes

The total value of the items


that involve the promotion,
minus the discounts applied as
a result of the promotion for the
day and site. This value sums

ARF_PROMOTION_USAGE.STANDARD_NET_REVENUE

column values that correspond to


the grouping column values.

ARF_CALL_MV
The ARF_CALL_MV view provides aggregated data about calls received by the Commerce Service Center. The
calculated values are based on information in the ARF_CALL table. The values in each row are constrained to a
particular day and customer service agent.

Column Name

Type

NUM_CALLS

numeric

5 Aggregated Data

Length

Null
Allowed

Description

Yes

The number of customer service


calls that correspond to the day and
customer service agent. This value
counts rows in the ARF_QUERY
table.

81

Column Name

Type

Length

Null
Allowed

Description

DAY_ID

varchar

40

No

A reference to a value in the


ARF_TIME_DAY.ID column.

DAY_TIMESTAMP

timestamp

No

A reference to a value in the


ARF_TIME_DAY.DAY_TIMESTAMP

column.
AGENT_ID

varchar

TOTAL_CALL_TIME_SECONDS

numeric

40

No

A reference to a value in the


ARF_IU_USER.ID column.

Yes

The total length, in seconds,


of the customer service calls
for the day and customer
service agent. This value sums
ARF_QUERY.RESPONSE_TIME

column values that correspond to


the grouping column values.

Refreshing Aggregated Data


Update the aggregated data in the views after the data warehouse loader server completes loading new
reporting information. The /atg/reporting/datawarehouse/refresh/RefreshService component on
the data warehouse server is configured to update the aggregated data according to a schedule. By default, it
updates the aggregated data every day at 06:00 server time.
Set the schedule property of the /atg/reporting/datawarehouse/refresh/RefreshService if you need
to alter the time that this component updates your aggregated data. The RefreshService component uses
the Oracle Commerce Core Platform scheduling services. See information about the scheduling services and
configuring a schedule in the Platform Programming Guide.

Refreshing Individual Views


The /atg/reporting/datawarehouse/refresh/RefreshService component invokes a list of other
components that refresh individual views. If you need finer control of the refreshing schedule for individual
views, set the schedule property of one of the individual refresh launchers. The individual view refresh launcher
components are:
/atg/reporting/datawarehouse/refresh/sitevisit/SiteVisitRefreshLauncher
/atg/reporting/datawarehouse/refresh/registration/RegistrationRefreshLauncher
/atg/reporting/datawarehouse/refresh/call/CallRefreshLauncher
/atg/reporting/datawarehouse/refresh/lineitem/LineItemRefreshLauncher
/atg/reporting/datawarehouse/refresh/promotionusage/PromotionUsageRefreshLauncher

82

5 Aggregated Data

Remove an individual view refresh launcher component from the list that atg/reporting/datawarehouse/
refresh/RefreshService invokes if you schedule it individually. The list of individual view refresh launcher
components is stored in the refreshables property of atg/reporting/dataware.

5 Aggregated Data

83

84

5 Aggregated Data

Index

unregistered, 25
stimulus tables, 22

T
time tables, 3

U
unregistered sites, 25
users
external, tables for, 12
internal, tables for, 10

A
aggregated data, 67

C
Commerce Service Center
tables, 65
Core Commerce
tables, 37
currency table, 31

D
data model, 1
data warehouse, 1
demographic tables, 15

E
external user tables, 12

I
internal user tables, 10

M
materialized views, 67

P
platform tables, 3

R
referrer table, 32
registration table, 33

S
segment tables, 20
site table, 23
site visit table, 26
site visits
duration, 28
sites

Index

85

86

Index