国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > Oracle > 正文

Oracle學習筆記(六)

2020-07-26 14:31:49
字體:
來源:轉載
供稿:網友
一、oracle
oracle服務器有Oracle instace 和Oracle database
instance有memory structure 和 background process 組成。
memory structure包括shared pool、 SGA(System Global Area).

SGA包括:Database buffer cache 和 Redo log buffer cache.
show sga;
show parameter shared;
show parameter db_cache;
show parameter log;
alter system set shared_pool_size=65M;

Process 包括User process、Server process、Background process;
databasey有data file 和 log file 和 control file組成。


database邏輯結構:表空間(tablespaces)、段(segments)、分區(extents)、塊(blocks)

ODCA(Oracle Database Configuration Assistant)
:創建數據庫
:配置數據庫選項
:刪除數據庫
:管理數據庫模板

二、管理數據庫實例
1、創建和管理初始參數文件initialization parameter files
系統參數文件system parameter file――spfilesid,spfile
初始參數文件init parameter file――initsid.ora
放置位置在oracle安裝目錄下database文件下
參數分:顯示參數explicit、隱式參數implicit、動態、靜態
2、configure omf
v$system_parameter動態性能表
創建spfile
create spfile from pfile
create spfile='d:/spfile.ora' from pfile;

創建表空間
create tablespace test1 datafile='d:/12.dbf' size 3M;

3、開啟和關閉數據庫
開啟數據庫Starting Up a Database
shutdown、nomount、mount、open
nomount――startup instance
used to create db,create controlfile
mount――open controlfile
used to change log mode,rename file,db recovery...
startup [nomount|mount|open]
pfile=
restrict
recovery
force

修改數據庫指令( alter database command)
1、改變數據庫從nomount狀態為mount;
alter database db_01 mount;
2、打開一個只讀的數據庫
alter database db_01 open read only;

關閉數據庫Shutting Down the Database
shutdown mode:normal、transactional、immediate、abort
4、監視和使用diagnostic files
alter log file――alertsid.log
background tace file、use trace files

三、創建一個Oracle數據庫
1、使用ODCA(oracle database configuration assistant)創建數據庫
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 龙泉市| 厦门市| 波密县| 江西省| 泗水县| 麻城市| 新晃| 东兴市| 文成县| 电白县| 泉州市| 鄂托克旗| 晋江市| 满城县| 上蔡县| 斗六市| 蚌埠市| 金湖县| 兴化市| 广灵县| 莱芜市| 龙泉市| 永宁县| 红河县| 恩平市| 福州市| 山西省| 上饶县| 阿尔山市| 河津市| 九龙坡区| 大安市| 莲花县| 武定县| 西充县| 伊宁市| 岑巩县| 常熟市| 晋江市| 墨竹工卡县| 长岛县|