安裝完資料庫後,檢視使用者的資訊:
select * from DBA_USERS;
2. 為scott使用者解鎖:
alter user scott account unlock;
3. 為scott使用者設定密碼:
alter user scott identified by abc;
4. oracle的實體存儲結構,包括3部分:資料檔案(*.dbf),控制檔案(*.ctl),重做日志檔案(簡稱日志檔案)。
5. 查詢資料檔案的表結構:desc dba_data_files;
6. 查詢資料檔案的動态資訊,通過資料字典視圖 v$datafile:
select file#,name,checkpoint_change# from v$datafile;
7. 查詢控制檔案的資訊,通過資料字典 v$controlfile :
select name from v$controlfile;
8. 查詢日志檔案的資訊,通過資料字典 v$log :
select group#, status from v$log;
9. 參數檔案pfile,伺服器參數檔案spfile;資料庫啟動時,先搜尋spfile,如果未找到,搜尋pfile。
10. 邏輯存儲結構的機關構成:資料塊、區、段、表空間、資料庫。