




已閱讀5頁,還剩27頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
Oracle DB Installation for Suse VM背景:本想在家里研究一下hibernate 源代碼,做個數(shù)據(jù)操作的實驗。但發(fā)現(xiàn)以前裝的 windows 版 Oracle 不能啟動了。于是就有了做個Oracle VM 的沖動。接下來就是虛擬機的制作的操作步驟,跟 大家分享一下。本機環(huán)境:OS :win7 cpu: P7350 memory:4G hard driver:250G目的:安裝 Oracle DB for Linux,以后也要會安裝weblogic 或websphere。無娛樂目的。相關(guān)工具:openSUSE-11.1-DVD-i586.iso 下載路徑 /Oracle DB for LinuxSecureCRT telnet工具Xmanager4 圖形界面登陸工具ftp 工具plsqldeveloper操作步驟:一、安裝Oracle VM VirtualBox需要在Oracle 官網(wǎng)下載,但必須先要注冊一個賬號然后默認安裝。比較簡單,操作略。1 新建虛擬機2 分配內(nèi)存越多越好3 創(chuàng)建虛擬硬盤為以后使用方便,建議創(chuàng)建固定大小的虛擬應(yīng)硬盤,雖然前期比較耗時。4 配置網(wǎng)絡(luò)為以后suse能在線升級,建議選擇橋連接方式5 配置存儲加載SUSE.iso,一定要按圖所示加載,并且其他保持默認狀態(tài)。否則安裝系統(tǒng)時不能正常光盤引導(dǎo)。6 啟動VM 配置好后,可以啟動虛擬器;并正式在創(chuàng)建的虛擬機上安裝suse 系統(tǒng)。二、 安裝 Suse VM1 開始安裝2 建議選擇GNONE desktop3 省略簡單部署,可根據(jù)個人愛好配置4 創(chuàng)建文件系統(tǒng)4.1 添加PVPV 俗稱物理卷,可以理解是一塊硬盤此步驟的意義是單純創(chuàng)建一塊硬盤,為以后創(chuàng)建VG所用。4.2 創(chuàng)建VGVG 俗稱卷組,VG可以包含多個PV,本次穿件的VG只包含一個PV,即sda3本次操作完成了 datavg的創(chuàng)建,如圖所示。43 創(chuàng)建LVLV 俗稱邏輯卷,將會被文件系統(tǒng)使用本次操作創(chuàng)建了 /oracle 的文件系統(tǒng)。其意義是在卷組datavg 上劃分了所有的空間,創(chuàng)建了邏輯卷 lv_oracle,然后把邏輯卷 mount 到/oracle 目錄上。5 創(chuàng)建其他用戶6 安裝前確認在正式開始安裝suse前,一定要確認系統(tǒng)安裝的包是否全面,因為默認安裝將會有很多包沒包含進來,所以一定要查看software 選上自己需要的包。其次一定要調(diào)整系統(tǒng)的空間分配,建議/root 調(diào)整到10G左右。最后一定要設(shè)置root的初始密碼。三 安裝Oracle 數(shù)據(jù)庫1 配置網(wǎng)絡(luò)建議設(shè)定一個固定IP。關(guān)閉 suse 系統(tǒng)的防火墻2 開始安裝DB以上兩種方式都可以2.1 選擇高級安裝2.2 默認3.3 ORACLE_BASE ORACLE_HOME3.4 執(zhí)行腳本切換到root 用戶,執(zhí)行如下腳本3.5 配置profileecho You execute nowest profile. /etc/profileexport ORACLE_BASE=/oracleexport ORACLE_HOME=$ORACLE_BASE/app/oracle/product/11.1.0/db_1export ORACLE_SID=frankdbexport ORA_NLS33=$ORACLE_HOME/nls/dataexport NLS_LANG=american_america.AL32UTF8PATH=$PATH:$ORACLE_HOME/lib:$ORACLE_HOME/binPS1=whoami:$PWD set -o vialias l=ls -lF因為.profile 系統(tǒng)不會自動創(chuàng)建,所以需要手工創(chuàng)建。內(nèi)容如上。3.6 創(chuàng)建監(jiān)聽執(zhí)行 lsnrctl stop lsnrctl start 啟停監(jiān)聽3.7 創(chuàng)建實例3.7.1 創(chuàng)建 ORACLE_SID=frankdb3.7.2 創(chuàng)建文件系統(tǒng)3.7.3 劃分SGA PGA根據(jù)內(nèi)存大小配置3.8 配置內(nèi)核用文本編輯器編輯/etc/sysctl.conf文件,將以下內(nèi)容復(fù)制到該文件中:kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 6553600net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 26214為了提高在linux系統(tǒng)上運行軟件的性能,必須對oracle用戶設(shè)置下列shell 限定 加入下面的行到文件/etc/security/limits.conf(如果沒有的話,需要加上)oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 655363.8 創(chuàng)建用戶- Create tablespace-Create TABLESPACE for Data tableCREATE TABLESPACE DATA_HBMDATAFILE /oracle/oradata/frankdb/DBdata/DATA_HBM.dbf size 100MAUTOEXTEND ONEXTENT MANAGEMENT localUNIFORM SIZE 1MSEGMENT SPACE MANAGEMENT AUTO/-Create TABLESPACE for index of Data table CREATE TABLESPACE IDX_HBMDATAFILE /oracle/oradata/frankdb/DBdata/IDX_HBM.dbf size 100MAUTOEXTEND ONEXTENT MANAGEMENT localUNIFORM SIZE 1MSEGMENT SPACE MANAGEMENT AUTO/- Create the user create user HBMUSER IDENTIFIED BY hbmuser default tablespace DATA_HBM temporary tablespace TEMP profile DEFAULT password expire quota unlimited on data_hbm quota unlimited on idx_hbm quota unlimited on users; - Grant/Revoke object privileges grant select on DBA_COL_COMMENTS to HBMUSER;grant select on DBA_CONSTRAINTS to HBMUSER;grant select on DBA_CONS_COLUMNS to HBMUSER;grant select on DBA_DATA_FILES to HBMUSER;grant select on DBA_DEPENDENCIES to HBMUSER;grant select on DBA_ERRORS to HBMUSER;grant select on DBA_INDEXES to HBMUSER;grant select on DBA_IND_COLUMNS to HBMUSER;grant select on DBA_JOBS to HBMUSER;grant select on DBA_JOBS_RUNNING to HBMUSER;grant select on DBA_OBJECTS to HBMUSER;grant select on DBA_SEQUENCES to HBMUSER;grant select on DBA_SOURCE to HBMUSER;grant select on DBA_SYNONYMS to HBMUSER;grant select on DBA_TABLES to HBMUSER;grant select on DBA_TAB_COLUMNS to HBMUSER;grant select on DBA_TRIGGERS to HBMUSER;grant select on DBA_VIEWS to HBMUSER;grant execute on DBMS_ALERT to HBMUSER;grant execute on DBMS_APPLICATION_INFO to HBMUSER;grant execute on DBMS_DEFER_SYS to HBMUSER;grant execute on DBMS_LOB to HBMUSER;grant execute on DBMS_LOCK to HBMUSER;grant execute on DBMS_PIPE to HBMUSER;grant execute on DBMS_REFRESH to HBMUSER;grant execute on DBMS_RLS to HBMUSER;grant execute on DBMS_SESSION to HBMUSER;grant execute on DBMS_SQL to HBMUSER;grant execute on DBMS_SYSTEM to HBMUSER;grant execute on DBMS_UTILITY to HBMUSER;grant execute on UTL_FILE to HBMUSER;grant select on V_$DATABASE to HBMUSER;grant select on V_$INSTANCE to HBMUSER;grant select on V_$LOCK to HBMUSER;grant select on V_$LOCKED_OBJECT to HBMUSER;grant select on V_$LOG to HBMUSER;grant select on V_$LOGFILE to HBMUSER;grant select on V_$PARAMETER to HBMUSER;grant select on V_$PROCESS to HBMUSER;grant select on V_$ROLLNAME to HBMUSER;grant select on V_$SESSION to HBMUSER;grant select on V_$SESSTAT to HBMUSER;grant select on V_$SQL to HBMUSER;grant select on V_$STATNAME to HBMUSER;grant select on V_$SYSSTAT to HBMUSER;grant select on V_$TIMER to HBMUSER;- Grant/Revoke role privileges grant connect to HBMUSER;grant exp_full_database to HBMUSER;grant imp_full_database to HBMUSER;grant resource to HBMUSER;grant role_finware to HBMUSER;- Grant/Revoke system privileges grant create any directory to HBMUSER;grant create any sequence to HBMUSER;grant create any synonym to HBMUSER;grant create any type to HBMUSER;grant create database link to HBMUSER;grant create library to HBMUSER;grant create procedure to HBMUSER;grant create public synonym to HBMUSER;grant create sequence to HBMUSER;grant create session to HBMUSER;grant create table to HBMUSER;grant create trigger to HBMUSER;grant create view to HBMUSER;grant debug any procedure to HBMUSER;grant debug connect session to HBMUSER;grant unlimited tablespace to HBMUSER;3
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 產(chǎn)品設(shè)計與制造委托協(xié)議
- 規(guī)范業(yè)務(wù)流程管理的規(guī)章制度研究
- 化妝品行業(yè)產(chǎn)品配方與生產(chǎn)流程手冊
- 關(guān)于電商訂單處理系統(tǒng)升級后的優(yōu)化方向
- 高效率辦公解決方案與實施步驟
- 四川川藏醫(yī)藥服務(wù)有限公司勞派1名銷售內(nèi)勤筆試參考題庫附帶答案詳解
- 溫州浙江溫州甌海區(qū)招聘編外工作人員筆試歷年參考題庫附帶答案詳解
- 清遠2025年廣東清遠連平縣隆街鎮(zhèn)人民政府招聘編外人員筆試歷年參考題庫附帶答案詳解
- 2024年二級建造師考試《礦業(yè)工程管理與實物》真題及答案
- 蝦皮倉庫工作流程
- 科室如何做好護理質(zhì)控
- 危重患者營養(yǎng)支持教學(xué)課件
- 《主題三 我的畢業(yè)季》說課稿-2023-2024學(xué)年六年級下冊綜合實踐活動遼師大版
- 投行估值模型-洞察分析
- 鐵死亡與腦缺血再灌注損傷
- 內(nèi)鏡粘膜下剝離術(shù)(ESD)
- 智能POS硬件設(shè)計
- 2025重慶交通開投集團招聘27人高頻重點提升(共500題)附帶答案詳解
- 2024年河南省對口升學(xué)真題學(xué)前教育類語文
- 二級營銷員考試題及參考答案
- 部編版道德與法治二年下冊《我能行》說課稿共2課時(附教學(xué)反思)課件
評論
0/150
提交評論