1 oracle的安裝常識(oracle10g和oracle11g的版本差别):
a 安裝目錄都不要有中文和空格
b oracle10g支援winxp 不支援win7,8和vista;oracle11g支援所有版本
2 oralce伺服器:由oracle執行個體和oracle資料庫組成
oracle資料庫:磁盤上實體檔案的集合
a 當配置了oracle_home時,可以通過
echo$oracle_home來檢視oracle的安裝目錄
b bin目錄(存放exe工具)、位置:f:\app\to-to\product\11.2.0\dbhome_1\bin
c lib目錄(oracle依賴的lib)、位置:f:\app\to-to\product\11.2.0\dbhome_1\lib
d oradate目錄(控制檔案,資料檔案,日志檔案所在位置:):f:\app\to-to\oradata
e sqldeveloper:f:\app\to-to\product\11.2.0\dbhome_1\sqldeveloper
oracle執行個體:抽象的實體檔案的記憶體映像,讀到記憶體中了
3 oracle叢集
cluster oracle一個oracle資料庫可以映射出多個執行個體。
好處:
a負載均衡
b失敗遷移
4 關于oracle10g相關服務和使用者相關
a scott預設使用者密碼為tiger
b oracleserviceorcl:oracle背景程序服務
c oracleoradb10g_home1tnslistener:監聽伺服器,對應的端口号:1521
e oracleoradb10g_home1isql*plus: web版本的sqlplus工具
5560 b/s架構(11g去掉)
f sqlplus工具
5 如果在安裝資料庫的是沒有将使用者解鎖,可以手動解鎖賬号和設定密碼,設定方式是:
a以管理者身份登入
密碼認證方式:sqlplussys/password as sysdba;
主機認證方式:sqlplus / assysdba (前提:作業系統的使用者即為資料庫管理者)
b解鎖
alter user scottaccount unlock; (scott為使用者名)
c改密碼
alter user scottidentified by pass123 (這裡的paas123為新密碼)