Oracle 11g Express Edition 安裝及常見問題

對於一個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)

Oracle 11g Express Edition 在Window上的安裝

Oracle 11g Express 安裝和使用教程

相關文章
相關標籤/搜索