Oracle 11g Express Edition 安装及常见问题

对于一个Oracle初学者来说,使用Oracle 11g Express Edition 版本感觉足够了,而且感觉安装过程好像简单很多的样子。

下载压缩文件,解压,找到setup.exe双击安装,除了改改安装路径,其他一路默认。

安装完毕使用普通用户登录Oracle, 普通用户名/密码: scott/tiger

由于普通用户默认被锁定,所以需要进行如下操作解锁:

+ 首先用system用户登入:SQL>conn sys/密码 as sysdba

+导入scott.sql脚本(可以在oracle的安装目录中查找),例如我本机的路径,导入就可以写成:@H:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql

+ 其次输入: alter user scott identified by tiger;  --修改scott密码

+ alter user scott account unlock;  --解锁用户

+ conn scott/tiger (以scott用户登录)

 show user (看看当前用户是否是scott)

SELECT * FROM emp;

那么我们就可以查看到emp表的完整内容。为了更好的显示表的内容,可以设置显示属性:

SET LINESIZE 300;

至此Oracle安装完毕,可以全力出发开始Oracle探索和开发之旅!

参考:

在 Windows 下安装 Oracle 11g XE (Express Edition)

Oracle 11g Express Edition 在Window上的安装

Oracle 11g Express 安装和使用教程

猜你喜欢

转载自my.oschina.net/u/553266/blog/1621914
今日推荐