freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

oraclesg讀書筆記-文庫吧資料

2025-06-04 22:06本頁面
  

【正文】 據(jù)基表來創(chuàng)建的視圖,簡化基表的信息, a. 數(shù)據(jù)庫中所有模式對象的定義(包括表,視圖,索引,聚簇,同義詞,序列,存儲過程,函數(shù),包,觸發(fā)器等。通過監(jiān)控診斷文件來管理實例: 1. 按時間的順序記錄了數(shù)據(jù)庫的錯誤信息,如壞塊,ora600,ora3113,數(shù)據(jù)庫的啟動信息,日志切換信息,表空間創(chuàng)建和刪除信息等,位置也是由參數(shù)background_dump_dest決定。數(shù)據(jù)庫的關(guān)閉: Shutdown mode A I T NAllow new connection no no no noWait until current sessions end no no no yesWait until current transactions end no no yes yesForce a checkpoint and close files no yes yes yes Shutdown 數(shù)據(jù)庫的用戶必須具有sysoper權(quán)限或者sysdba權(quán)限正常shutdown(not abort)執(zhí)行一個完全checkpoint,將數(shù)據(jù)頭的s同步到數(shù)據(jù)庫的結(jié)束s,將buffer cache中的內(nèi)容寫入數(shù)據(jù)文件,回滾未提交的事務(wù),釋放資源,下次啟動無須做實例恢復。SQL select checkpoint_change,last_change from v$datafile。SQL alter database open read only。第二個必須進行實例恢復,所以沒法read only打開(*)v$datafile中的last_change是無窮大應(yīng)該是針對非只讀模式打開的SQL startup mountORACLE 例程已經(jīng)啟動。alter database open read only*第 1 行出現(xiàn)錯誤:ORA16005: 數(shù)據(jù)庫需要恢復SQL alter database open。NVL(LAST_CHANGE,0) 0 0 0 0棉花糖ONE(372368042) 21:50:39很明顯,第一個不用做實例恢復,所以alter database open read only就直接打開了棉花糖ONE(372368042) 21:52:07SQL select nvl(last_change,0) from v$datafile。Total System Global Area 167772160 bytesFixed Size 1247876 bytesVariable Size 75498876 bytesDatabase Buffers 83886080 bytesRedo Buffers 7139328 bytes數(shù)據(jù)庫裝載完畢。數(shù)據(jù)庫已經(jīng)打開。SQL startup forceORACLE 例程已經(jīng)啟動。LAST_CHANGE 1146688 1146688 1146688 1146688SQL alter database open read only。Total System Global Area 167772160 bytesFixed Size 1247876 bytesVariable Size 75498876 bytesDatabase Buffers 83886080 bytesRedo Buffers 7139328 bytes數(shù)據(jù)庫裝載完畢。數(shù)據(jù)庫已更改。Total System Global Area 167772160 bytesFixed Size 1247876 bytesVariable Size 75498876 bytesDatabase Buffers 83886080 bytesRedo Buffers 7139328 bytes數(shù)據(jù)庫裝載完畢。ORACLE 例程已經(jīng)關(guān)閉。 4. Read only open 不做實例恢復的測試 SQL shutdown immediate數(shù)據(jù)庫已經(jīng)關(guān)閉。SQL alter database datafile 4 online。SQL alter database datafile 4 offline。SQL alter database open read only。SQL startup mountORACLE 例程已經(jīng)啟動。已經(jīng)卸載數(shù)據(jù)庫。 //這里能直接online說明剛才的recover 起作用了表空間已更改。數(shù)據(jù)庫已經(jīng)打開。SQL startup ORACLE 例程已經(jīng)啟動。已經(jīng)卸載數(shù)據(jù)庫。完成介質(zhì)恢復。數(shù)據(jù)庫已更改。Total System Global Area 167772160 bytesFixed Size 1247876 bytesVariable Size 75498876 bytesDatabase Buffers 83886080 bytesRedo Buffers 7139328 bytes數(shù)據(jù)庫裝載完畢。ORACLE 例程已經(jīng)關(guān)閉。SQL shutdown immediate數(shù)據(jù)庫已經(jīng)關(guān)閉。2. 對離線的數(shù)據(jù)表空間做恢復SQL alter tablespace users offline immediate。SQL alter database datafile 4 online。SQL recover datafile 4。alter database datafile 4 online*第 1 行出現(xiàn)錯誤:ORA01113: 文件 4 需要介質(zhì)恢復ORA01110: 數(shù)據(jù)文件 4: 39。數(shù)據(jù)庫已更改。Total System Global Area 167772160 bytesFixed Size 1247876 bytesVariable Size 75498876 bytesDatabase Buffers 83886080 bytesRedo Buffers 7139328 bytes數(shù)據(jù)庫裝載完畢。ORACLE 例程已經(jīng)關(guān)閉。SQL shutdown immediate數(shù)據(jù)庫已經(jīng)關(guān)閉。 只讀打開數(shù)據(jù)庫1. 允許用戶查詢2. 如果是使用本地管理的臨時表空間則可以做磁盤排序操作3. 只讀模式允許對數(shù)據(jù)文件進行offline和online ,同時可以對離線的表空間或者數(shù)據(jù)文件做恢復,以及一些不產(chǎn)生redo的操作 第三個以前沒搞過做個test1. 對離線的數(shù)據(jù)文件做恢復 SQL alter database datafile 4 offline drop。 對于已經(jīng)登陸的用戶不受影響,以后登陸的用戶就要具有restricted session權(quán)限才能登陸。 啟動的語法 Startup [force],[restrict],[mount] ,[pfile] ,[nomount],[recover] 1. 不帶參數(shù)的startup就是直接啟動到open狀態(tài)2. startup force =shutdown abort +startup 3. startup restrict 只允許有restricted session的用戶才能登陸mount,啟動到mount狀態(tài) 4. pfile 手工指定啟動參數(shù)文件5. nomount 啟動到nomount狀態(tài)6. recover 啟動過程進行介質(zhì)恢復 (這參數(shù)還沒用過)、受限模式下的數(shù)據(jù)庫1. 原來是以restrict模式打開數(shù)據(jù)庫的,只有具有restricted session權(quán)限的用戶才能登陸。如果控制文件的s大于數(shù)據(jù)文件的s,則直接recover database。 介質(zhì)恢復和實例恢復: 介質(zhì)恢復:Oracle啟動過程中會判斷是否要做介質(zhì)恢復(利用歸檔,備份或者是redo),oracle 比較控制文件的s和數(shù)據(jù)頭的s如果不一致則要進行介質(zhì)恢復。NAME TYPE VALUE db_create_file_dest string3.Oracle 的啟動過程(1)nomount : (,或者手工指定pfile的位置) b. 分配sga c. 啟動后臺進程 d. 和跟蹤文件 必須在nomount狀態(tài)下做的操作A. 創(chuàng)建數(shù)據(jù)庫B. 重建控制文件 (2) mount : 通過參數(shù)文件中的control_files讀取控制文件,同時獲取日志文件和數(shù)據(jù)文件的位置信息(不檢查存在性) 必須在mount狀態(tài)下做的操作a. 移動數(shù)據(jù)文件和日志文件 (這里指alter database rename的方式)b. 啟動和關(guān)閉歸檔c. 啟動閃回d. Recover database 。數(shù)據(jù)庫已經(jīng)打開。ORACLE 例程已經(jīng)啟動。SQL show parameter db_create_file_dest。*39。)。SQL select name from v$datafile where ts=(select ts from v$tablespace where name=39。SQL create tablespace test。G:\oracle\product\\oradata39。(2) 二進制格式的spfile: 由oracle服務(wù)器維護,可以查看但是絕對不能用手工修改(可能導致系統(tǒng)啟不來),要通過alter system的方式修改,存放位置于pfile類似,參數(shù)scope可以取三個值,memory,spfile,both. Both是默認值,即參數(shù)的修改既對當前實例也對spfile生效Spfile 有些啟動參數(shù)沒法通過both,可以設(shè)置為scope=spfile,下次啟動后生效Memory 參數(shù)的修改只對當前實例有效(3)通過pfile創(chuàng)建spfile Create spfile from pfile=’實際位置’(4) 通過spfile創(chuàng)建pfile Create pfile=’實際位置‘ from spfile 。: oracle nomount的過程中必須讀取參數(shù)文件并從中獲取實例啟動的一些信息。Orapwd 工具可以創(chuàng)建口令文件,參數(shù)unix下是放在dbs下,windows是放在database下,參數(shù)file=口令文件所在的路徑 ,entries最多存儲幾個具有sysdba或者sysoper的用戶,password是sysdba或者sysoper的密碼。Os 認證 :,= (NTS)。10g 編程藝術(shù)二Oracle Universal Installer : 用來安裝,升級或者刪除軟件Oracle database configuration assistant : 用來創(chuàng)建刪除或者修改數(shù)據(jù)庫的屬性Password file utility :口令文件創(chuàng)建工具Sqlplus : 訪問數(shù)據(jù)庫的工具Oracle Enterprise Manager : 具有圖形用戶界面的工具,用來管理,監(jiān)控和調(diào)整一個或者多個數(shù)據(jù)庫Oracle的認證模式 數(shù)據(jù)庫的邏輯結(jié)構(gòu): 1. 數(shù)據(jù)庫由表空間組成2. 表空間由段組成3. 段由區(qū)組成4. 區(qū)由連續(xù)的塊組成5. 塊是io的最小單位Dml語句的處理過程1. 查找要修改的數(shù)據(jù),如果在buffer cache中不存在則從數(shù)據(jù)文件讀取2. 服務(wù)器進程給需要修改的行加鎖,同時通過rollback segment或者undo 提供讀一致性,和回滾事務(wù)3. 將數(shù)據(jù)塊修改成新值。(1)回滾事務(wù)(2)釋放鎖 (3)釋放資源 (4)重啟死亡的調(diào)度器。 (2) lgwr (必須) :負責將log buff
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1