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

正文內容

oracledba(ch)-wenkub

2023-02-10 03:37:10 本頁面
 

【正文】 表與視圖中增加新行 ) insert into emp values(8888,‘ abc’ ,‘ clerk’ ,0000,sysdate,2023,0,10)。 – for upfate select empno,sal,m from emp,dept where job=‘ CLERK’ and = and loc=‘ NEW YORK’ for update。 Oracle SQL, SQL*Plus and PL*SQL ? DML – Select (從一個或多個表或視圖中檢索數(shù)據(jù) ) select empno,ename,sal,deptno from emp where deptno=10。 – PL*SQL ? 是 Oracle的一種過程化的SQL語言。不能更新、插入、 刪除。 summary In this lesson, you should have learned how to: ? Explain database files: data files, control files, online redo logs ? Explain SGA memory structures: DB buffer cache, shared SQL pool, and redo log buffer ? Explain primary background processes: DBW0, LGWR, CKPT, PMON, SMON, and ARC0 ? Explain SQL processing steps: parse, execute, fetch 數(shù)據(jù)字典 數(shù)據(jù)字典 Data Dictionary ? 數(shù)據(jù)字典 – 數(shù)據(jù)字典是 Oracle數(shù)據(jù)庫的重要組成。它Oracle Server被用來作為內部的時間戳,來同步數(shù)據(jù)及保證數(shù)據(jù)讀一致性。 . 4 server記錄信息顯示事務已經(jīng)完成,鎖可以被釋放。 COMMITs 步驟 當 COMMIT 執(zhí)行時: 1 server在 redo log Buffer中放置一個 SCN作為mit記號 。 ) ? PGA(程序全局區(qū)) – 是內存中的區(qū)域,包含單個進程的數(shù)據(jù)和控制信息。 – ? Log Writer (LGWR) 負責將數(shù)據(jù)更改記錄由 redo log buffer寫到redo log files. – ? System Monitor (SMON) 檢查數(shù)據(jù)庫的一致性,必要的情況下,在數(shù)據(jù)庫打開時執(zhí)行恢復。 另外在 SGA中還有兩個可選的內存結構: ? Java pool: 用來存儲 Java代碼。 SGA包含如下內存結構: ? 共享池 (shared pool) 用來存儲最近執(zhí)行的 SQL語句和最近使用的數(shù)據(jù)字典 (data dictionary)的數(shù)據(jù)。Instance被看成使用各個操作系統(tǒng)的特定方法 instance 只能同時打開和使用一個 database 。 ? 在 Oracle數(shù)據(jù)庫創(chuàng)建時,初始參數(shù)文件的 DB_BLOCK_SIZE 確定 Oracle數(shù)據(jù)庫 Data block的大小。 ? 一個 extent 由一系列連續(xù)的 Oracle blocks組成。 區(qū)間 Extents 通過 extent 來給 segment分配空間。例如 , 為表分配的所有存儲空間就是就是一個 segment。 ? 一個數(shù)據(jù)文件只能屬于一個 tablespace。 – 除了 SYSTEM tablespace 或 有活動回滾段的 tablespace , tablespaces 可以被離線 (offline)。 – 存檔重做日志文件 是重做日志的備份用以恢復數(shù)據(jù)。一個數(shù)據(jù)庫需要至少一個控制文件。 –一個或者多個數(shù)據(jù)文件構成數(shù)據(jù)庫的邏輯存儲單元叫做表空間 (tablespace). ? 重作日志 (Redo logs) 包含對數(shù)據(jù)庫的修改記錄,可以在數(shù)據(jù)失敗后恢復。數(shù)據(jù)包含在用戶定義的表中,而且數(shù)據(jù)文件還包含數(shù)據(jù)詞典 (data dictionary),數(shù)據(jù)修改以前的映象(beforeimages of modified Data)索引 (indexes)和其他類型的結構 (other types of structures)。 特點 高性能、伸縮性 安全性:角色、權限、用戶 并發(fā)控制:表鎖定、行鎖定 海量數(shù)據(jù):表空間、空間數(shù)據(jù)構件 TB級 數(shù)據(jù)完整性:日志、回滾段 分布式數(shù)據(jù)庫:數(shù)據(jù)庫連接 Oracle 概述、特點 發(fā)展和構成 發(fā)展史 性能不如 sybase 分區(qū)技術支持分段的大型數(shù)據(jù)庫 面向對象 面向 inter 支持 java 、 webserver、 jdeveloper 9i portal 手機上網(wǎng) oracle體系結構 Oracle體系結構決定了數(shù)據(jù)庫如何使用內存、硬盤、 cpu和網(wǎng)絡 一個 Oracle server包括一個 Oracle實例 (instance)和幾個 Oracle數(shù)據(jù)庫文件 (database file). 實例 數(shù)據(jù)庫文件 Oracle instance 實例 = 內存分配 + 一組后臺進程 如果把 Oracle比作一部汽車, instance相當于汽車的發(fā)動機一樣 ,啟動 oracle前提應先啟動 instance..內存被分配,進程被啟動 SGA background process Oracle文件 一個 Oracle 數(shù)據(jù)庫是一個數(shù)據(jù)單位的集合。孟憲順 202331 Genersoft Inc. Oracle DBA Oracle ocp course content Architecture and Administration Oracle結構和維護: 1. Oracle 特點、結構 2. 創(chuàng)建數(shù)據(jù)庫 3. Oracle 數(shù)據(jù)庫的訪問 4. Managing an Oracle Instance 5. Maintaining the Control File 6. Maintaining Redo Log Files 7. Managing Tablespaces and Data Files 8. Managing Rollback Segments 9. Managing Users, privileges, roles 概述 ORACLE具有甲骨文之意,是全世界第二大軟件公司。 主要目的是為了儲存和讀取信息。一個數(shù)據(jù)庫中至少包含一個數(shù)據(jù)文件。一個數(shù)據(jù)需要至少 兩 個重作日志文件。 其它文件 ? 其他文件 – 參數(shù)文件 用來定義 Oracle實例的特性。 Oracle 數(shù)據(jù)庫邏輯與物理結構 Database Architecture 數(shù)據(jù)庫結構 (Database Architecture) Oracle 數(shù)據(jù)庫結構包括物理 (physical)和邏輯 (logical)結構 ? 物理 (physical)結構包括控制文件 (control files), 在線重作日志 (online redo log files), 和數(shù)據(jù)文件 (data files). ? 邏輯 logical結構包括表空間 (tablespaces), 段 (segments), 區(qū)間 (extents), 和數(shù)據(jù)塊 (data blocks). Oracle server 可以有條理的通過表空間以及段、擴展、數(shù)據(jù)塊控制磁盤空間 表空間 (Tablespaces) Oracle database 的數(shù)據(jù)存儲在表空間中。 – Tablespaces 可以在讀 /寫之間切換。 ? Oracle 服務為表空間創(chuàng)建一個數(shù)據(jù)文件,分配指定的磁盤空間再加上額外的一小部分開銷。 ? 一個 tablespace可能包含一個或多個 Segment . ? segment不能跨越 tablespace 。 ? 一個或多個 extents組成一個 segment. – 當一個 segment創(chuàng)建時,至少包含一個 extent 。 ? 一個 extent 不能跨越 data file, 但必須存在 data file中。 ? Data block的大小應該為操作系統(tǒng)塊的整數(shù)倍,以減少 I/O量。 System Global Area SGA是存儲數(shù)據(jù)庫進程共享的數(shù)據(jù)庫信息的內存區(qū)域。這些 SQL語句可能是被用戶遞交的也可能是存儲過程調用的。 ? Large pool: 用來存儲不與 SQL直接相關的大型內存結構。 – ? Process Monitor (PMON)用戶進程失敗時,進程監(jiān)控程序實現(xiàn)進程恢復。每個服務器進程分配一個 PGA, PGA由每個服務器進程獨占。 2 LGWR 執(zhí)行一個不間斷的寫操作包括所有的 redo log buffer寫到 redo log files及 mit記號。 數(shù)據(jù)緩沖信息獨立的由 DBW0執(zhí)行,可能在 mit前也可能在Commit后。使用 SCN 可以不依靠操作系統(tǒng)時間來檢驗一致性。它由一組只讀表組成。數(shù)據(jù)字典的改變會影響數(shù)據(jù)庫的正常運行。他有自己的程序結構, 有各種條件控制和循環(huán)控制。 ? 復雜的 select 語句: – group by 子句 select deptno,min(sal),max(sal) from emp group by deptno。 select empno,sal,m from emp,dept where job=‘ CLERK’ and = and loc=‘ NEW YORK’ for update of 。 – delete (從表與視圖中刪除行 ) delete from emp where deptno=10。 this allows any valid user to connect to the database and perform typical data access operations. Opening the database includes the following tasks: ? Opening the online data files ? Opening the online redo log files If any of the data files or online redo log files are not present when you attempt to open the database, the Oracle server returns an error. During this final stage, the Oracle server verifies that all the data files and online redo log files can be opened and checks the consistency of the database. If necessary, the System Monitor background process (SMON) initiates instance recovery. Starting Up To start up an instance, use the following mand: STARTUP [FORCE] [RESTRICT] [PFILE= filename] [OPEN [RECOVER][ database] |MOUNT |NOMOUNT] To open the database from STARTUP NOMOUNT to a MOUNT stage or from MOUNT to an OPEN stage, use the ALTER DATABASE mand: ALTER DATABASE { MOUNT | OPEN } ALTER DATABASE OPEN [READ WRITE| READ ONLY] Example: – Start up the instance and open the database: STARTUP PFILE=/DISK1/initU15. – Change the state of the database from NOMOUNT to MOUNT: ALTER DATABASE database MOUNT。 回滾表空間 用于 保存回滾段 不 要包含其他永久性數(shù)據(jù) CREATE TABLESPACE rbs DATAFILE ?DISK2/?SIZE 50M MINIMUM EXTENT 1M DEFAULT STORAGE (INITIAL 2M NEXT 2M MAXEXTENTS 500 PCTINCREASE 0) 。 Tablespace APP_ DATA
點擊復制文檔內容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1