Oracle 的示例数据库模式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2080874/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Sample database schema for Oracle
提问by GTD
Are there any sample databases for Oracle like AdventureWorks for MS SQL? I've searched Oracle site but didn't find any sample database.
是否有适用于 Oracle 的示例数据库,例如适用于 MS SQL 的 AdventureWorks?我搜索了 Oracle 站点,但没有找到任何示例数据库。
回答by APC
The Oracle database installation includes scripts to install sample schemas. Find out more.
Oracle 数据库安装包括用于安装示例模式的脚本。 了解更多。
Many online examples use the extremely simple EMP and DEPT tables. These tables are not part of the documented schemas listed above. Finding the script for the beloved SCOTT/TIGER schema is harder than you might think. The demobld.sql
used to be under the sqlplus sub-directory. Then in 10g (I think) they moved the schema to $ORACLE_HOME/admin/rdbms/scott.sql
. In 11gR2 it's moved again, to $ORACLE_HOME/admin/rdbms/utlsampl.sql
.
许多在线示例使用极其简单的 EMP 和 DEPT 表。这些表不是上面列出的记录模式的一部分。找到心爱的 SCOTT/TIGER 模式的脚本比您想象的要困难。在demobld.sql
曾经是sqlplus的子目录下。然后在 10g(我认为)中,他们将架构移至$ORACLE_HOME/admin/rdbms/scott.sql
. 在 11gR2 中,它再次移动到$ORACLE_HOME/admin/rdbms/utlsampl.sql
.
回答by Shoban
回答by ExcessOperatorHeadspace
You can run Oracle Live SQL onlinewithout Oracle installed. Menu contains:
您可以在未安装Oracle 的情况下在线运行Oracle Live SQL。菜单包含:
- SQL Worksheet
- My Session
- Schema. Includes SCOTT, HR, Order Entry (OE) and others.
- Quick SQL
- My Scripts
- Code Library
- SQL 工作表
- 我的会话
- 架构。包括 SCOTT、HR、Order Entry (OE) 等。
- 快速SQL
- 我的脚本
- 代码库
Contains a search function, scripts, and tutorials.
包含搜索功能、脚本和教程。