对于一个Oracle初学者来讲,使用Oracle 11g Express Edition 版本感受足够了,并且感受安装过程好像简单不少的样子。html
下载压缩文件,解压,找到setup.exe双击安装,除了改改安装路径,其余一路默认。sql
安装完毕使用普通用户登陆Oracle, 普通用户名/密码: scott/tigerexpress
因为普通用户默认被锁定,因此须要进行以下操做解锁:oracle
+ 首先用system用户登入:SQL>conn sys/密码 as sysdbaapp
+导入scott.sql脚本(能够在oracle的安装目录中查找),例如我本机的路径,导入就能够写成:@H:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sqlide
+ 其次输入: alter user scott identified by tiger; --修改scott密码spa
+ alter user scott account unlock; --解锁用户.net
+ conn scott/tiger (以scott用户登陆)server
show user (看看当前用户是不是scott)htm
SELECT * FROM emp;
那么咱们就能够查看到emp表的完整内容。为了更好的显示表的内容,能够设置显示属性:
SET LINESIZE 300;
至此Oracle安装完毕,能够全力出发开始Oracle探索和开发之旅!
参考:
在 Windows 下安装 Oracle 11g XE (Express Edition)