oracle聽課筆記

2022-12-07 10:45:02 字數 6348 閱讀 3686

1 oracle簡單介紹一下

ocp11g培訓課程+考試代號

第一步獲取oca

step 1 - pass this exam---->1z051

oracle database 11g: sql fundamentals i--->書寫sql能力learn to:

retrieve row and column data from tables with the select reports of sorted data from multiple dml statements to manage data.

use ddl statements to manage database reports of restricted data.

step 2 - pass this exam---052

oracle database 11g: administration i ----》dba1管理員1learn to:

install oracle grid infrastructure.----》安裝grid軟體create and manage users.

install and configure an oracle database.

create and manage storage structures.---->asm儲存administer the oracle database.

understand the oracle database architecture and how its components work and interact withone another.----》建議看書:concepts或者推薦tom大師

oracle_database_9i10g11g程式設計藝術深入資料庫體系結構(第二版)pdf及涉及源**

perform backup and recovery.備份恢復

oca第二步驟獲取ocp

step 2 - complete training --參加培訓

step 3 - pass this exam

oracle database 11g: administration ii---dba2管理員2

learn to:

diagnose and repair data failures with flashback technology.閃回技術閃回事物

manage space to optimize database storage so you can respond to growing space requirements.空間管理(搜尋壓縮映象)

monitorandmanagemajordatabasecomponents,includingmemory,performanceandresources.

記憶體管理效能(優化監視)資源管理

secure the **ailability of your database through appropriate backup and recovery strategies.備份與恢復(完全恢復不完全恢復)

automate dba tasks with the scheduler.(作業排程視窗)

最後乙個步驟就必須提交表單hands onstep 4 - complete this form

最後獲取ocp

重點:如何搭建學習環境(自我學習)介紹環境:

vm+redhat5.8(64)+oraclegrid+oracle11gr2(64)+介紹工具sqldeveloperplsqldeveloper

sqlplus +em(grid control)

**oraclre軟體

--->download---database ---->

oracle database 11g release 2enterprise edition

按照我思路你可以再三種平台搭建學習環境

oracle database 11g release 2 (11.2.0.1.0) for linux x86-64安裝介質

oracle grid infrastructure 11g release 2 (11.2.0.1.0) for linux x86-64grid軟體

問題:怎麼裝

幫助手冊----》oracle database 11g documentation看官方手冊

**手冊----》產品**旁邊解壓---》安裝說明

database installation guide for linux

1 overview of oracle database installation概述database storage options資料儲存?

file system檔案系統?

oracle automatic storage managementasm (建議我們學習都是基於asm)

裸裝置2 oracle database preinstallation requirements(必須完成)一步步走

this chapter describes the tasks that you must必須complete before you start oracle universal

installer (oui).(oracle軟體的安裝工具是圖形)

his guide contains information required to install oracle database 11g release 2 (11.2).

2.1 about installing the linux operating system完成linux系統安裝

ssh is required for an oracle grid infrastructure installation. openssh should be included in command:# rpm -qa |grepssh

你必須安裝

2.2 logging in to the system as root

before you install the oracle software, you must complete several tasks as the root user. to log inas the root user, complete one of the following procedures:安裝oracle軟體前必須用root登陸,然後完成一些任務

安裝linux系統的時候要求安裝x-window

root登陸測試圖形是否可以顯示

借助乙個命令xclok顯示小鐘用於測試圖形是否正常顯示

安裝前用的root配置開始安裝必須用oracle軟體擁有者安裝比如oracle軟體----》oracle

su - oraclexclock失敗!!!!!

原因是root沒有允許怎麼允許

xhost ip或者主機名後者+(+代表所有)

總結:root配置然後xhost +

su - oracle開始安裝oracle軟體

問:如果我們服務上沒有顯示怎麼能顯示圖形可以吧圖形顯示到我們筆記本

先解決網路通訊問題

1看服務ip位址192.168.2.1(網絡卡模式host-only )(網絡卡模式橋接)

2看我們win7的ip位址應該配置vmnet1 192.168.2.111物理網絡卡測試ping 192.168.2.1

如何做遠端連線---借助ssh---22借助工具(記錄日誌)putty

securecrt

xmanager enterprise 3

login as: root

[email protected]'s password:

last login: wed may 22 05:26:00 2013 from 192.168.2.111

把圖形顯示到筆記本上1借助x-manager

安裝xmanager3.0(注意輸入sn)

2開啟xmanager--passive檢視:0.0

3使用putty連線

root登陸(任何使用者登陸都必須按照下面來操作)

export display=你要把圖形顯示地方(筆記本)192.168.2.111 + :0.0

export display=192.168.2.111:0.0xhost +xclock測試

研究xmanager

2.3 checking the hardware requirements硬體檢查

2.3.1 memory requirements記憶體minimum: 1 gb of ram

recommended: 2 gb of ram or more

?to determine the ram size, enter the following command:

swap分割槽

ramswap1-2g1.5倍2-16相等》16g16g

to determine the size of the configured swap space, enter the following command:# grepswaptotal /proc/meminfo

to determine the **ailable ram and swap space, enter the following command:# free -m

automatic memory management自動記憶體管理

starting with oracle database 11g, the automatic memory management feature requires moreshared memory (/dev/shm)and file descriptors

/dev/shm ---》可以通過把資料存在/dev/shm---->直接讀寫記憶體file descriptors---》檔案個數

the size of the shared memory must be at least the greater of the memory_max_target andmemory_target parameters for each oracle instance on the computer.

什麼叫自動記憶體管理----——》記憶體的管理交給oracle --->設定引數memory_targetmemory_max_target

學習方法:查資料

乙個引數-----什麼意義怎麼設定?-----》reference ---》ctrl+fmemory_target

memory_target specifies the oracle system-wide usable memory. the database tunes memoryto the memory_target value, reducing or enlarging the sga and pga as needed.

the size of the shared memory must be at least the greater of the memory_max_target andmemory_target parameters for each oracle instance on the computer.

/dev/shm》memory_target

to determine the amount of shared memory **ailable, enter the following command:# df -h /dev/shm/預設你記憶體一半預設1g如果我把memory_target=5g

ora-00845: memory_target not supported on this systemora-01078: failure in processing system parameters

通常需要擴充套件/dev/shmfor example:臨時

# mount -t tmpfsshmfs -o size=10g /dev/shm

,addanentryin/etc/fstabsimilar to the following:vim /etc/fstab

shmfs /dev/shmtmpfs size=10g 0

檔案描述符

* of descriptors for each process must be at least 512. if file descriptors are not sized correctly,you see an ora-27123 error from various oracle processes and potentially linux error emfile(too many open files)in non-oracle processes.

2.3.2 system architecture

to determine if the system architecture can run the software, enter the following command:# uname -m

x86_64

Oracle學習筆記

一 sys使用者和system使用者 oracle安裝會自動的生成sys使用者和system使用者 1 sys使用者是超級使用者,具有最高許可權,具有sysdba角色,有create database的許可權,該使用者預設的密碼是change on install 2 system使用者是管理操作員...

ORACLE學習筆記總結2019

oracle 資料庫基於 客戶 伺服器 系統結構 client server 此概念將應用程式的處理劃分到兩個系統中,即客戶端系統和伺服器系統 伺服器系統執行資料庫相關的所有活動,客戶端系統執行與使用者進行互動的活動 客戶端使用者程式向 資料庫伺服器 傳送請求並接收資訊,與此種方式與資料庫進行互動,...

oracle課程第六天筆記

pl sql 基礎 pl sql procedural language sql 是oracle在標準的sql語言上的擴充套件。pl sql不僅允許潛入sql語言,還可以定義變數和常量,允許使用條件語句和迴圈語句,允許使用例外處理各種錯誤,這樣使得它的功能變得更加強大。1 過程 函式 觸發器是pl ...