Showing posts with label Install Oracle SH schema. Show all posts
Showing posts with label Install Oracle SH schema. Show all posts

Tuesday, November 29, 2011

Installing Oracle Sample Sales (SH) schema on XE

The short answer is, it won't work on XE. You'll need an enterprise edition.

Anyway, here is what I found:

I am on Oracle 11g XE and I couldn't locate the sh_main.sql in the ...oracle\product\11.2.0\server\demo\schema\ folder.

I downloaded the global schema 11g from here.

Uncompressed the file and ran an import of the .dmp file that was enclosed.


C:\Users\..\Downloads\global-11g-schema-1-128202>imp userid=system/<pwd>  fromuser=global touser=global file='global_11g_source.dmp' buffer=65000

Import: Release 11.2.0.2.0 - Production on Tue Nov 29 16:37:07 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Export file created by EXPORT:V11.01.00 via conventional path
import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing GLOBAL's objects into GLOBAL
. . importing table                      "ACCOUNT"         24 rows imported
. . importing table                  "CHANNEL_DIM"          3 rows imported
. . importing table                 "CUSTOMER_DIM"         61 rows imported
. . importing table                   "PRICE_FACT"       2523 rows imported
. . importing table         "PRODUCT_CHILD_PARENT"         48 rows imported
. . importing table                  "PRODUCT_DIM"         36 rows imported
. . importing table                     "TIME_DIM"        120 rows imported
. . importing table                   "UNITS_FACT"     299446 rows imported
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE BITMAP INDEX "UNITS_FACT_IDX_1" ON "UNITS_FACT" ("MONTH_ID" )  PCTFR"
 "EE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 917504 FREELISTS 1 FREELIST G"
 "ROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING"
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Bit-mapped indexes
IMP-00017: following statement failed with ORACLE error 20000:
 "BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"UNITS_FACT_IDX_1"',NULL,NULL,NULL,"
 "203,99,108,1,1,203,1,0); END;"
IMP-00003: ORACLE error 20000 encountered
ORA-20000: INDEX "GLOBAL"."UNITS_FACT_IDX_1" does not exist or insufficient priv
ileges
ORA-06512: at "SYS.DBMS_STATS", line 4455
ORA-06512: at "SYS.DBMS_STATS", line 9464
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE BITMAP INDEX "UNITS_FACT_IDX_2" ON "UNITS_FACT" ("ITEM_ID" )  PCTFRE"
 "E 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 196608 FREELISTS 1 FREELIST GR"
 "OUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING"
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Bit-mapped indexes
IMP-00017: following statement failed with ORACLE error 20000:
 "BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"UNITS_FACT_IDX_2"',NULL,NULL,NULL,"
 "43,17,36,1,1,43,1,0); END;"
IMP-00003: ORACLE error 20000 encountered
ORA-20000: INDEX "GLOBAL"."UNITS_FACT_IDX_2" does not exist or insufficient priv
ileges
ORA-06512: at "SYS.DBMS_STATS", line 4455
ORA-06512: at "SYS.DBMS_STATS", line 9464
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE BITMAP INDEX "UNITS_FACT_IDX_3" ON "UNITS_FACT" ("SHIP_TO_ID" )  PCT"
 "FREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 131072 FREELISTS 1 FREELIST"
 " GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING"
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Bit-mapped indexes
IMP-00017: following statement failed with ORACLE error 20000:
 "BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"UNITS_FACT_IDX_3"',NULL,NULL,NULL,"
 "61,8,61,1,1,61,1,0); END;"
IMP-00003: ORACLE error 20000 encountered
ORA-20000: INDEX "GLOBAL"."UNITS_FACT_IDX_3" does not exist or insufficient priv
ileges
ORA-06512: at "SYS.DBMS_STATS", line 4455
ORA-06512: at "SYS.DBMS_STATS", line 9464
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE BITMAP INDEX "UNITS_FACT_IDX_4" ON "UNITS_FACT" ("CHANNEL_ID" )  PCT"
 "FREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 131072 FREELISTS 1 FREELIST"
 " GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "USERS" LOGGING"
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Bit-mapped indexes
IMP-00017: following statement failed with ORACLE error 20000:
 "BEGIN  DBMS_STATS.SET_INDEX_STATS(NULL,'"UNITS_FACT_IDX_4"',NULL,NULL,NULL,"
 "15,8,3,2,5,15,1,0); END;"
IMP-00003: ORACLE error 20000 encountered
ORA-20000: INDEX "GLOBAL"."UNITS_FACT_IDX_4" does not exist or insufficient priv
ileges
ORA-06512: at "SYS.DBMS_STATS", line 4455
ORA-06512: at "SYS.DBMS_STATS", line 9464
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE DIMENSION "CHANNEL_DIMENSION" LEVEL "TOTAL" IS ("CHANNEL_DIM"."TOTAL"
 "_ID") LEVEL "CHANNEL" IS ("CHANNEL_DIM"."CHANNEL_ID") HIERARCHY "PRIMARY" ("
 ""CHANNEL" CHILD OF "TOTAL") ATTRIBUTE "TOTAL" LEVEL "TOTAL" DETERMINES "CHA"
 "NNEL_DIM"."TOTAL_DSC" ATTRIBUTE "CHANNEL" LEVEL "CHANNEL" DETERMINES "CHANN"
 "EL_DIM"."CHANNEL_DSC""
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Materialized view rewrite
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE DIMENSION "CUSTOMER_DIMENSION" LEVEL "TOTAL" IS ("CUSTOMER_DIM"."TOT"
 "AL_ID") LEVEL "REGION" IS ("CUSTOMER_DIM"."REGION_ID") LEVEL "WAREHOUSE" IS"
 " ("CUSTOMER_DIM"."WAREHOUSE_ID") LEVEL "MARKET_SEGMENT" IS ("CUSTOMER_DIM"."
 ""MARKET_SEGMENT_ID") LEVEL "account" IS ("CUSTOMER_DIM"."ACCOUNT_ID") LEVEL"
 " "SHIP_TO" IS ("CUSTOMER_DIM"."SHIP_TO_ID") HIERARCHY "SHIPMENTS" ("SHIP_TO"
 "" CHILD OF "WAREHOUSE" CHILD OF "REGION" CHILD OF "TOTAL") HIERARCHY "segme"
 "nt" ("SHIP_TO" CHILD OF "account" CHILD OF "MARKET_SEGMENT" CHILD OF "TOTAL"
 "") ATTRIBUTE "TOTAL" LEVEL "TOTAL" DETERMINES "CUSTOMER_DIM"."TOTAL_DSC" AT"
 "TRIBUTE "REGION" LEVEL "REGION" DETERMINES "CUSTOMER_DIM"."REGION_DSC" ATTR"
 "IBUTE "WAREHOUSE" LEVEL "WAREHOUSE" DETERMINES "CUSTOMER_DIM"."WAREHOUSE_DS"
 "C" ATTRIBUTE "MARKET_SEGMENT" LEVEL "MARKET_SEGMENT" DETERMINES "CUSTOMER_D"
 "IM"."MARKET_SEGMENT_DSC" ATTRIBUTE "account" LEVEL "account" DETERMINES "CU"
 "STOMER_DIM"."ACCOUNT_DSC" ATTRIBUTE "SHIP_TO" LEVEL "SHIP_TO" DETERMINES "C"
 "USTOMER_DIM"."SHIP_TO_DSC""
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Materialized view rewrite
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE DIMENSION "PRODUCT_DIMENSION" LEVEL "TOTAL" IS ("PRODUCT_DIM"."TOTAL"
 "_ID") LEVEL "class" IS ("PRODUCT_DIM"."CLASS_ID") LEVEL "FAMILY" IS ("PRODU"
 "CT_DIM"."FAMILY_ID") LEVEL "ITEM" IS ("PRODUCT_DIM"."ITEM_ID") HIERARCHY "p"
 "rimary" ("ITEM" CHILD OF "FAMILY" CHILD OF "class" CHILD OF "TOTAL") ATTRIB"
 "UTE "TOTAL" LEVEL "TOTAL" DETERMINES "PRODUCT_DIM"."TOTAL_DSC" ATTRIBUTE "c"
 "lass" LEVEL "class" DETERMINES "PRODUCT_DIM"."CLASS_DSC" ATTRIBUTE "FAMILY""
 " LEVEL "FAMILY" DETERMINES "PRODUCT_DIM"."FAMILY_DSC" ATTRIBUTE "ITEM" LEVE"
 "L "ITEM" DETERMINES "PRODUCT_DIM"."ITEM_DSC""
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Materialized view rewrite
IMP-00017: following statement failed with ORACLE error 439:
 "CREATE DIMENSION "TIME_DIMENSION" LEVEL "TOTAL" IS ("TIME_DIM"."TOTAL_ID") "
 "LEVEL "CALENDAR_YEAR" IS ("TIME_DIM"."CALENDAR_YEAR_ID") LEVEL "CALENDAR_QU"
 "ARTER" IS ("TIME_DIM"."CALENDAR_QUARTER_ID") LEVEL "FISCAL_YEAR" IS ("TIME_"
 "DIM"."FISCAL_YEAR_ID") LEVEL "FISCAL_QUARTER" IS ("TIME_DIM"."FISCAL_QUARTE"
 "R_ID") LEVEL "month" IS ("TIME_DIM"."MONTH_ID") HIERARCHY "CALENDAR" ("mont"
 "h" CHILD OF "CALENDAR_QUARTER" CHILD OF "CALENDAR_YEAR" CHILD OF "TOTAL") H"
 "IERARCHY "FISCAL" ("month" CHILD OF "FISCAL_QUARTER" CHILD OF "FISCAL_YEAR""
 " CHILD OF "TOTAL") ATTRIBUTE "TOTAL" LEVEL "TOTAL" DETERMINES "TIME_DIM"."T"
 "OTAL_DSC" ATTRIBUTE "CALENDAR_YEAR" LEVEL "CALENDAR_YEAR" DETERMINES "TIME_"
 "DIM"."CALENDAR_YEAR_DSC" ATTRIBUTE "CALENDAR_QUARTER" LEVEL "CALENDAR_QUART"
 "ER" DETERMINES "TIME_DIM"."CALENDAR_QUARTER_DSC" ATTRIBUTE "FISCAL_YEAR" LE"
 "VEL "FISCAL_YEAR" DETERMINES "TIME_DIM"."FISCAL_YEAR_DSC" ATTRIBUTE "FISCAL"
 "_QUARTER" LEVEL "FISCAL_QUARTER" DETERMINES "TIME_DIM"."FISCAL_QUARTER_DSC""
 " ATTRIBUTE "month" LEVEL "month" DETERMINES "TIME_DIM"."MONTH_DSC""
IMP-00003: ORACLE error 439 encountered
ORA-00439: feature not enabled: Materialized view rewrite
About to enable constraints...
Import terminated successfully with warnings.

ShareThis

Meebo

Labels

2012 (1) Adobe Reader (1) Analysis Services (4) Analytic Functions (1) APEX Web Service (1) Apple (1) Aptana (1) Architecture (1) ASP.NET MVC3 (2) Azure (3) Azure Data Market (1) Azure Data Marketplace (4) Best Practices Analyzer (1) Best States in America (US) for Business–CNBC–Excel 2013 Web App Interactive (1) BI for .NET (1) Big Data (2) Bluefish (1) Boise (1) Butternut (1) C# (3) C# Introduction (1) Chow (1) Chrome (1) Chrome Remote Desktop (1) Chromium (1) Cliplets (1) Cloud 9 IDE (1) Cloudon MS Office iPad app (1) Code (1) CodeAcademy (1) CoffeeCup (1) Command (1) communicator (1) Community Edition (1) compiz (1) Contracts (1) Country Region Reference Data (1) Creating presentations using deck.js (1) Crescent (1) Data Explorer (2) Data Mining (2) Data Modeling (1) Data Quality (1) Data Quality Service (1) DataTables (1) Date (1) DAX (1) deck.js (1) Decrypt Files (1) Demo (1) Denali (6) Detect Categories (1) Dropbox (1) Eclipse IDE for Java EE Developers (1) Editor (1) Enter password for keyring 'default' to unlock on Ubuntu (1) Entity Framework 4.0 (1) error (1) ERwin (3) excel (1) Excel 2010 (2) Excel 2013 (1) Excel Services (1) Filezila (1) Format (1) Free (5) free ebooks (2) Free training (2) Fusion Tables (1) Getaround.com (1) Google (2) Google Cloud Connect for Microsoft Office (1) Google Currents (1) Google Docs (1) Google Graph Calculator (1) Hadoop (2) Hadoop for Microsoft Windows (1) Highlight (1) Hive (2) How to embed a Google Book Preview in Blogger? (1) How to embed word (1) HP Envy Spectre (1) HP Z1 Workstation (1) HTML (1) HTML-Kit (1) HTML5 (1) HTML5 animation using Mugeda tool (1) HTML5 Video (1) iBooks (1) Improvement (1) Inspiration (1) Install (1) Install Oracle SH schema (1) Installation (1) Installing (1) Installing Android Apps on Windows using bluestacks (1) Installing EntityFrameWork (1) Integration Services (1) iOS5 (1) iPad (2) iPhone (1) Issue (1) JavaScript (7) jQuery (5) Kinect (1) Knockout.js (1) Komodo Edit (1) Komodo IDE (1) Kompozer (1) Language Change (1) Learn SQL Server 2012 (1) Learn Windows Azure (1) Lego Building Blocks (1) Lifebrowser (1) LightSwitch (2) LINQ Oracle (1) Managing Project (1) mds (1) Menus using CSS3 (1) Microsoft (2) Microsoft BI (6) Microsoft Research (1) Microsoft's Future Vision on Productivity (1) Model first (1) mongodb (1) Motivation (2) Movie (1) MS Office (1) MSDN (1) NASA (1) nautilus-open-terminal (1) Netbeans (1) Netflix (2) Notepad++ (1) NuGet Package Manager (1) OBIEE (4) OData (2) ODP.NET (1) Office (2) Office 2013 (1) Office 2013 Quick Start Guides (1) Office Diagnostics (1) Office Tips and Tricks (1) Office Touch Guide (1) Office365 (2) Omnibox (1) Open ssh (1) ORA Errors (1) ORA-12514 (1) Oracle (1) Oracle 11g Express Edition Options Not Included (1) Oracle 11g Invisible Indexes (1) Oracle 11g New Features (1) Oracle 11g Read Only tables (1) Oracle APEX (2) Oracle Cloud (1) Oracle Data Pump (1) Oracle Express (1) Oracle Express 11g (2) oracle java 7 (1) Oracle Learning Library (1) Oracle OData (1) Oracle Open World 2011 (1) Oracle Pivot and Unpivot (1) Oracle Prebuilt VM Appliances (1) Oracle SQL Developer (1) Oracle Virtual Columns (1) Oracle XML DB (1) Outlook 2010 (3) Performance (1) PerformancePoint Services (2) Personal (1) Phonegap (1) Picture (1) PluralSight (1) Power View (2) PowerPivot (14) powerpoint in a site or a blog (1) PowerShell (1) Prettyprint (1) prezi (1) Project Juneau (1) Python (1) Rainbow (1) Recipe (1) Recorder (1) Rent (1) Reporting Services (2) Resources (1) RIA Services (1) Ruby (1) Samsung Galaxy S III (ATT) with Android 4.1 Jelly Bean (2) Screen Capture (1) Search (2) Security (1) Self Service BI (4) Server Error (1) Seth Godin (1) Setup (1) SharePoint (1) SharePoint 2010 (9) SharePoint 2010 Training (1) SharePoint BI Performance Point (3) Shell Scripting (1) Shutter (1) Silverlight (1) Skydrive (1) SOA (2) Social Network (1) Soup (1) SP2-0750 (1) Spotify (1) SQL Azure (1) SQL Server 2008 R2 (1) SQL Server 2008 R2 Reporting Services (1) SQL Server 2012 (5) sql server denali data quality services (1) SQL Server Virtual Labs (2) SQL*Plus error (1) Squash (1) SSAS Tabular (1) Storing and Retrieving XML data in Oracle 11g (1) Tabular (1) TechEd 2012 (1) TED (1) Terminator (1) Texmaker (1) Thunderstorm (1) TimeTo365.com (1) Tip (1) Tips (1) Tips and Tricks (1) Training (1) Ubuntu (1) Ubuntu 11.04 (1) Ubuntu Oracle (1) unrar (1) Vertica (2) Vertica VM appliance (1) video.js (1) VirtualBox (1) Visio 2010 crashes (1) Visio Services (2) Visual Studio 11 Developer Preview Training Kit (1) Visual Studio 2010 (1) Visual Studio 2010 and .NET Framework 4 Training Kit (1) Visual Studio Express 2012 (1) VLC (1) VM (1) WCF (1) Web Stack (1) WebMatrix (1) Webucator (1) What is new in SQL Server 2012 Analysis Services (1) Whole Foods Boise ID (1) Why won’t Microsoft Lync 2010 start (1) Windows 2008R2 SP1 (1) Windows 7 (1) Windows 8 Charms (1) Windows 8 Consumer Preview Demo (1) Windows 8 Contracts (1) Windows 8 Metro Apps (3) Windows 8 Touch Language (1) Windows 8 Video Driver issue/problem (1) Windows App Store (1) windows azure (3) Windows Phone 7 (1) Windows Phone Development (1) Wine (1) Word 2010 (1) Word 2013 (1) Word PDF Reflow (1) Work (1) zip (1) ZoomIt v4.2 (1)

Disclaimer

This blog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. My blog comes with no guarantees, and the content might contain errors. Expect to find a repeat of information that you can find in other blogs and sites. This is mainly for my future reference, It is my way of documenting things. I give due credit to contents, images, information sourced from product demos and other external sources wherever possible.