但是这里已经不存在mksample.sql脚本了,里面的脚本都不能用于创建oracle demo.
oracle在oracle11gR2中提供了独立的500多MB安装文件,用于安装示例:
需要下载安装的安装包的名是:Oracle Database 11g Release 2 Examples
oracle对该安装包的解释是:
Contains examples of how to use the Oracle Database. Download if you are new
to Oracle and want to try some of the examples presented in the Documentation。
如果仅需要hr用户,用于演示可以从这个链接下载:
http://st-curriculum.oracle.com/obe/jdev/obe11jdev/11/common/files/sample_schema_scripts.zip
把下载文件解压在hr目录下,用FileZilla传进虚拟机中
hr_cre.sql hr_main.sql hr_popul.sql
SQL> @hr_main.sql
注另外常用到的scott用户的创建脚本位于:%ORACLE_HOME%\rdbms\admin\scott.sql
在linux下oracle11gR2中scott.sql并不在此目录中。