Oracle 學習之資料倉儲(一)匯入Oracle 11g Global samples schema

來源:互聯網
上載者:User

標籤:global_11g_schema


Oracle 11g 提供了資料倉儲的樣本schema,可以通過如下連結下載樣本安裝檔案。

http://www.oracle.com/technology/products/bi/olap/doc_sample_schemas/global_11g_schema.zip


將下載的檔案上傳至Oracle伺服器,並解壓。

[[email protected] ~]$ mkdir global_11g_schema     [[email protected] ~]$ unzip -d global_11g_schema global_11g_schema.zip Archive:  global_11g_schema.zip  inflating: global_11g_schema/global_11g_remove.sql    inflating: global_11g_schema/global_11g_source.dmp    inflating: global_11g_schema/Templates/CHANNEL.XML    inflating: global_11g_schema/Templates/CUSTOMER.XML    inflating: global_11g_schema/Templates/GLOBAL.XML    inflating: global_11g_schema/Templates/GLOBAL_MV.XML    inflating: global_11g_schema/Templates/PRICE_CUBE.XML    inflating: global_11g_schema/Templates/PRODUCT.XML    inflating: global_11g_schema/Templates/TIME.XML    inflating: global_11g_schema/Templates/UNITS_CUBE.XML    inflating: global_11g_schema/global_11g_install.sql    inflating: global_11g_schema/global_11g_readme.html


使用sqlplus 運行global_11g_install.sql

[[email protected] ~]$ lsglobal_11g_install.sql  global_11g_readme.html  global_11g_remove.sql  global_11g_source.dmp  Templates[[email protected] global_11g_schema]$ sqlplus /nolog @global_11g_install.sql SQL*Plus: Release 11.2.0.4.0 Production on Thu Sep 10 09:44:17 2015Copyright (c) 1982, 2013, Oracle.  All rights reserved.Enter the password for the user GLOBAL: Enter the password for the user SYSTEM: Connected.User created.Grant succeeded.Connected.Import: Release 11.2.0.4.0 - Production on Thu Sep 10 09:44:26 2015Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsExport file created by EXPORT:V11.01.00 via conventional pathimport done in AL32UTF8 character set and AL16UTF16 NCHAR character setimport server uses WE8MSWIN1252 character set (possible charset conversion)export client uses WE8MSWIN1252 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 importedAbout to enable constraints...Import terminated successfully without warnings.SQL>

指令碼會建立一個global使用者,根據提示為global設定一個密碼。

輸入資料庫的system使用者密碼,用來登入資料庫以建立global使用者。


本文出自 “叮咚” 部落格,請務必保留此出處http://lqding.blog.51cto.com/9123978/1694384

Oracle 學習之資料倉儲(一)匯入Oracle 11g Global samples schema

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.