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

首頁 > 開發(fā) > 綜合 > 正文

用OMF來簡化數(shù)據(jù)庫管理

2024-07-21 02:12:43
字體:
供稿:網(wǎng)友

oracle9i帶來了許多令人興奮的新特性,操作系統(tǒng)級別上的oracle的自動管理文件——即oracle managed files(omf)——就是其中之一。在oracle9i出現(xiàn)之前,dba必須在卸載表空間時手工移除數(shù)據(jù)文件(datafile)并在創(chuàng)建新的表空間之前仔細檢查文件的位置。

為了理解omf是如何工作的,讓我們首先定義一個叫著db_cteate_file_dest的新參數(shù)。

alter system set db_create_file_dest='/u01/oradata/prod';

 
一旦設(shè)置好了db_cteate_file_dest參數(shù),我們就可以創(chuàng)建表空間而無須指定文件名。

createtablespace
   omf1
datafile size 100m
locally managed;

文件創(chuàng)建之后,oracle就可以分配和命名這些文件。oracle omf使用如下的命名轉(zhuǎn)換慣例。默認的文件大小為100m,并按如下格式命名:

where
%u is a unique 8 digit code
%g is the log file group number
%t is the tablespace name

controlfiles        ora_%u.ctl
redo log files             ora_%g_%u.log
datafiles                  ora_%t_%u.dbf
temporary datafilesora_%t_%u.tmp

oracle9i omf工具還有一個新的警告日志消息(alert log message),它用來告訴我們omf數(shù)據(jù)文件何時發(fā)生了改動。下面是關(guān)于警告日志的一個例子。

fri mar 23 01:44:46 2001
create tablespace omf1 datafile size 10m autoextend off
fri mar 23 01:44:47 2001
created oracle managed file /databases/ed25/omf1/ora_omf1_xcp6rg84.dbf
completed: create tablespace omf1 datafile size 10m autoexte
fri mar 23 01:45:45 2001
drop tablespace omf1
fri mar 23 01:45:45 2001
deleted oracle managed file /databases/ed25/omf1/ora_omf_xcp6rg84.dbf
completed: drop tablespace omf1

 

中國最大的web開發(fā)資源網(wǎng)站及技術(shù)社區(qū),
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 星子县| 嫩江县| 沂水县| 山阴县| 文化| 林芝县| 平凉市| 类乌齐县| 吴旗县| 黑龙江省| 桂林市| 平潭县| 怀化市| 筠连县| 万盛区| 铅山县| 贵溪市| 大城县| 久治县| 栾川县| 抚宁县| 富平县| 锡林浩特市| 克山县| 赤壁市| 五家渠市| 威信县| 常德市| 甘泉县| 梅河口市| 海宁市| 连城县| 囊谦县| 海门市| 连江县| 新河县| 金门县| 蓬溪县| 漳平市| 报价| 射洪县|