Oracle 学习之数据仓库(一)导入Oracle 11g Global samples schema
admin
2023-05-07 22:42:04
0


Oracle 11g 提供了数据仓库的示例schema,可以通过如下链接下载示例安装文件。

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


将下载的文件上传至Oracle服务器,并解压。

[oracle@localhost ~]$ mkdir global_11g_schema     
[oracle@localhost ~]$ 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

[oracle@localhost ~]$ ls
global_11g_install.sql  global_11g_readme.html  global_11g_remove.sql  global_11g_source.dmp  Templates
[oracle@localhost 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 2015

Copyright (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 2015

Copyright (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 Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Export file created by EXPORT:V11.01.00 via conventional path
import done in AL32UTF8 character set and AL16UTF16 NCHAR character set
import 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 imported
About to enable constraints...
Import terminated successfully without warnings.

SQL>

脚本会创建一个global用户,根据提示为global设置一个密码。

输入数据库的system用户密码,用来登录数据库以建立global用户。


相关内容

热门资讯

“点热成电”,挖掘能源金矿 “十五五”规划纲要提出,深入实施能源安全新战略,加快构建清洁低碳安全高效的新型能源体系,建设能源强国...
新能源车企激战大电量时代 “量... 时报财经图库/供图 证券时报记者 叶玲珍 作为车企角逐的主战场,电池容量军备竞赛日趋白热化。中国汽车...
以方透露内塔尼亚胡曾秘访阿联酋... 以色列方面5月13日透露,以总理内塔尼亚胡在以色列对伊朗发动大规模军事行动期间曾秘密访问阿联酋,并称...
英伟达、谷歌、苹果均创市值历史... 【CNMO科技消息】5月14日,CNMO科技注意到,美东时间周三,美股三大指数涨跌不一,纳指和标普5...
商业化探索持续深入 “AI+教... 来源:滚动播报 (来源:经济参考报) 人工智能通识课堂上,教师发出指令几分钟后,学生手绘的卡通人物就...
偷拍男子是否会被清出公务员拟录... 近日,南京审计大学一名在校研究生顾某某因涉嫌偷拍女生隐私,引发关注。顾某某已被国家税务总局江苏省税务...
乌克兰首都基辅传出爆炸声 △乌克兰首都基辅(资料图)当地时间14日,乌克兰首都基辅传出爆炸声,此前基辅拉响防空警报。(总台记者...
移动空调制冷一会就停止了 原因可能是空调正在开启启动模式,移动空调存在逐步启动模式,在空调开启过程中会逐步启动保证空调的正常运...
排水管怎么安装 首先需关闭上水阀,然后将软管用扳手拧下来装上三通,注意需要按一个内部带丝扣的一面,然后在三通上接上原...
净水器滤芯正确顺序图 以常规的欧吉分五级过滤瓶为例,前三级是初次过滤,主要是PP棉、颗粒活性炭、块状活性炭、树脂等。通常组...