




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Linux系統(tǒng)oraclelOg手動創(chuàng)建實例【前言】以前一直使用 win2003做服務(wù)器,最近由于win2003服務(wù)器可能成了肉雞,決定轉(zhuǎn)到linux系統(tǒng)去部署工程。在網(wǎng)上搜索了一大堆資料,學(xué)習(xí)在 linux系統(tǒng)中部署多個oracle10g實例,一共加了 兩次實例,第一次加了一天多,查閱一大堆資料,也沒有創(chuàng)建成功,主要原因是對創(chuàng)建不熟悉;第 二次用了半天,添加成功。下面主要就是我添加第二次實例的經(jīng)驗。【創(chuàng)建步驟主要參考/la n0725/archive/2011/07/18/2109474.html 】【創(chuàng)建步驟:主要分為5步:創(chuàng)建實例目錄,創(chuàng)建密碼文
2、件,創(chuàng)建參數(shù)文件,創(chuàng)建建庫腳本并建庫,創(chuàng)建數(shù)據(jù) 字典。其中,需要特別注意 2點:目錄的權(quán)限,即用戶和所屬用戶組都要是oracle ??梢郧袚Q到已存在的oracle 用戶或者以root創(chuàng)建,然后賦權(quán)。*創(chuàng)建實例的時候指定編碼。下面以 Oracle .0為例,開始創(chuàng)建:說明:*此服務(wù)器上已經(jīng)有一個正常運行的oracle實例dw,開機自啟動,一個監(jiān)聽。已有一個用戶oracle,所屬用戶組root。* oracle 環(huán)境變量:ORACLE_SID=dw ORACLE_BASE=/home/oracle*新建的實例叫dbxqORACLE進程遇到錯誤或用戶手動 TRACEdbxq /adu
3、mp;mkdir -pdbxq /cdump;mkdir -pdbxq /pfile;mkdir -p1切換到oracle 用戶,創(chuàng)建實例目錄,這些目錄都是 時或數(shù)據(jù)存放需要的:【注意:下面的紅色地方必須為要新建的實例的名字。rootdb1 # su - oracleoracledb1 $ ORACLE_SID=dbxqoracledb1 $ export ORACLE_SIDoracledb1 $ echo $ORACLE_SIDdbxqoracledb1 $ mkdir -p $ORACLE_BASE/admi n/ $ORACLE_BASE/admin/dbxq /bdump;oracl
4、edb1 $ mkdir -p $ORACLE_BASE/admi n/ $ORACLE_BASE/admin/dbxq /udump;oracledb1 $ mkdir -p $ORACLE_BASE/admi n/ $ORACLE_BASE/oradata/ dbxq ;2創(chuàng)建密碼文件,紅色地方為密碼文件的名字, 規(guī)則是orapw+ 實例名,此時即為orapw dbxq ; password= 你要設(shè)置的密碼,用于 plsql登陸sysdba【注意:有可能不同的版本密碼文件所在位置不同,找到dbs目錄,并看里邊是否已經(jīng)有已經(jīng)存在的實例的密碼文件。以此例,此dbs目錄下已經(jīng)orapwdw 文
5、件?!縪raclece ntoscms oradata$orapwdfile=$ORACLE_BASE/product/10.2.0/db_1/dbs/orapwdbxq password= yourpwden tries=5 force=y3創(chuàng)建.ora參數(shù)文件,所在目錄和第 2步中的相同。文件名規(guī)則為init+實例名,此時即為init dbxq .ora。將已經(jīng)存在的實例的參數(shù)文件復(fù)制修改即可。比如,此目錄中已有一個已存在實例的參數(shù)文件,這里為ini tdw.ora 。oraclece ntoscms oradata$oraclece ntoscms dbs$cd $ORACLE_BASE
6、/product/10.2.0/db_1/dbs/cp in itdw.orain it dbxq .oraoraclece ntoscms dbs$ vi$ORACLE_BASE/product/10.2.0/db_1/dbs/in itdbxq.ora修改文件內(nèi)容,注意紅色地方都需要修改為我們新建的實例名dbxq【只修改紅色的地方,如果標有紅色的屬性缺少則要添加進去,其他地方如果與下面不同也沒必要修改或添加】?!咀⒁猓哼@些目錄都是在第一步中已經(jīng)建好的,都是應(yīng)該存在的。un do_tablespace的值需要記住,創(chuàng)建數(shù)據(jù)庫實例的時候需要用到】原文件內(nèi)容如下:部分注釋的有省略(#后面為注釋)
7、* Example INIT.ORA file for data-warehous ing applicati ons* This file is provided by Oracle Corporation to help you customize* your RDBMS installation for your data warehousing or* bus in ess in tellige nce applicati on. The primary purpose of this file* Database parameters* Database blocks should
8、be large in data warehouses. This improves* performa nce for operati ons in volvi ng large amounts of data.db_block_size = 8192*# Memory parameters*pga_aggregate_target = 30M#DEMO#pga_aggregate_target = 200M#SMALL#pga_aggregate_target = 3000M#MEDIUM#pga_aggregate_target = 6000M#LARGEdb cache size =
9、30M#DEMO#db cache size = 200M#SMALL#db cache size = 3000M#MEDIUM#db cache size = 6000M#LARGE# Shared pool size should be, in gen eral, equal to 5-10% of the# available memory. Data warehouses typically do not require as much# memory for shared pool as OLTP systems.shared_pool_size = 20M#DEMO#shared_
10、pool_size = 50M#SMALL#shared_pool_size = 400M#MEDIUM#shared_pool_size = 800M#LARGE*# Parallel Executi on parameters*# parameter may be in creased.parallel_threads_per_cpu = 4#SMALL#parallel_threads_per_cpu = 2 or 4#MEDIUM#parallel_threads_per_cpu = 2#LARGE*# Optimizer and query parameters*optimizer_
11、mode = choose* When using a star schema, set this parameter to true.star_tra nsformatio n_en abled = true* 10 parameters* Multiblock reads allow for the database to retrieve multiple* database blocks in a sin gle 10. In gen eral, a high multiblock read* count provides better performa nee, particular
12、ly for operati ons on* large volumes of data. Oracle supports 10s up to 1MB on many* platforms. Disk strip ing will also affect the value for multiblock* read count, since the stripe size should ideally be a multiple of* the IO size.* If you are gatheri ng optimizer system statistics (see DBMSSTAT.S
13、QL* for more information), then you should set this parameter to a high* value.*db_file_multiblock_read_co unt = 64* If you are not gathering optimizer system statistics, then you* should set this parameter to a lower value.db_file_multiblock_read_co unt = 16* Materialized view parameters* This para
14、meter en ables the use of materialized views for improved* query performa nee.query_rewrite_e nabled = true# This parameter determ ines the degree to which Oralce en forces# in tegrity rules duri ng query rewrite. In most data-warehouse# en vir onment, trusted is the appropriate sett ing.query_rewri
15、te _in tegrity = trusted*# Compatibility*# Other Parameters*#db_ name = MY_DB_NAMEdb_n ame=cmsIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II
16、II II II II II II II II II II II II II II II II II# Diag no stics and StatisticsIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II
17、 II II II II II II II II II II II IIbackground_dump_dest=/home/oracle/admin/Cms /bdumpcore_dump_dest=/home/oracle/admin/Cms /cdumpuser_dump_dest=/home/oracle/admin/cms /udumpIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If
18、IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# File Con figurati onIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II
19、 II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIcontrol_files=(/home/oracle/oradata/Cms /controlOl.ctl,/home/oracle/oradata/cms /control02.ctl,/home/oracle/oradata/Cms /control03.ctl)db_recovery_file_dest= /home/oracle/product/10.2.0/flash_
20、recovery_areadb_recovery_file_dest_size=2147483648If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II
21、 II II# Job QueuesIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIjob_queue_processes=10If I
22、f If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# Miscella neousIf If If If If If If If If If If
23、 If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIcompatible=.0If If If If If If If If If If If If If If If If If If I
24、f If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# Network Registratio nIf If If If If If If If If If If If If If If If If If If If If If If If If I
25、f If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II#local_liste ner=LISTENER_BLOGIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If
26、If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# Processes and Sessi onsIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If I
27、f If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIprocesses=150If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II
28、II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# SGA MemoryIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II
29、 II II II II II II II II II II II II II II II II II II II II II II II II II II II IIsga_target=605028352If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II
30、 II II II II II II II II II II II II II II II II II II II II# Security and Audit ingIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II I
31、I II II II II II II II II II II II II IIaudit_file_dest=/home/oracle/admin/Cms /adumpremote_login_passwordfile=EXCLUSIVEIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II I
32、I II II II II II II II II II II II II II II II II II II II II II II II II II# Shared ServerIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II
33、II II II II II II II II II II II II II II II IIdispatchers=(PROTOCOL=TCP) (SERVICE=cmsXDB)If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II I
34、I II II II II II II II II II II II II II II II# Sort, Hash Joins, Bitmap In dexesIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II I
35、I II II II II II II II II II II II IIPga_aggregate_target=201326592If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II
36、II II II II II II II II# System Man aged Undo and Rollback Segme ntsIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II
37、 II II II II II II II IIun do_ma nageme nt=AUTOun do_tablespace=UNDOTBS3# Define at least two control files by default#con trol files = (ora c on trol1, ora c on trol2)修改后如下:部分注釋已省略(#后面為注釋)oraclece ntoscms dbs$ vi in itmydb.ora*# Example INIT.ORA file for data-warehous ing applicati ons*# This file
38、is provided by Oracle Corporation to help you customize# your RDBMS installation for your data warehousing or# bus in ess in tellige nce applicati on. The primary purpose of this file# is to provide a start ing point for parameter sett ings in a# data-warehouse. This file is desig ned for release 9.
39、0.*# Database parameters*# Database blocks should be large in data warehouses. This improves# performa nee for operati ons in volvi ng large amounts of data. db_block_size = 8192# For a large data warehouse, db_files should be set to a large value. #db_files = 1000*# Memory parameters*pga_aggregate_
40、target = 30M#DEMO#pga_aggregate_target = 200M#SMALL#pga_aggregate_target = 3000M#MEDIUM#pga_aggregate_target = 6000M#LARGEdb cache size = 30M#DEMO#db cache size = 200M#SMALL#db cache size = 3000M#MEDIUM#db cache size = 6000M#LARGEshared_pool_size = 20M#DEMO#shared_pool_size = 50M#SMALL#shared_pool_s
41、ize = 400M#MEDIUM#shared_pool_size = 800M#LARGE*# Parallel Executi on parameters*parallel_threads_per_cpu = 4#SMALL#parallel_threads_per_cpu = 2 or 4#MEDIUM#parallel_threads_per_cpu = 2#LARGE*# Optimizer and query parameters*optimizer_mode = choose* When using a star schema, set this parameter to tr
42、ue. star_tra nsformatio n_en abled = true* 10 parameters*db_file_multiblock_read_co unt = 16* Materialized view parameters* This parameter en ables the use of materialized views for improved* query performa nee.query_rewrite_e nabled = true* This parameter determ ines the degree to which Oralce en f
43、orces* in tegrity rules duri ng query rewrite. In most data-warehouse* en vir onment, trusted is the appropriate sett ing.query_rewrite _in tegrity = trusted* Compatibility* Other Parameters*# This sect ion lists other parameters that, although not specific# to data warehous ing, are required for an
44、y Oracle database. By# un comme nting these parameters, this parameter file can be used# as a complete sta nd-al one in it.ora file.#db_ name = MY_DB_NAMEdb_n ame= dbxqIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII I
45、I II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# Diag no stics and StatisticsIf If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II
46、II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIbackground_dump_dest=/home/oracle/admin/dbxq /bdumpcore_dump_dest=/home/oracle/admin/dbxq /cdumpuser_dump_dest=/home/oracle/admin/dbxq /udumpIf If If If If If If If If If If If If If If If I
47、f If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# File Con figurati onIf If If If If If If If If If If If If If If If If If If If If If If If
48、 If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II IIcontrol_files=(/home/oracle/oradata/dbxq /control01.ctl,/home/oracle/oradata/dbxq /control02.ctl,/home/oracle/orada
49、ta/dbxq /control03.ctl)db_recovery_file_dest= /home/oracle/product/10.2.0/flash_recovery_area db_recovery_file_dest_size=2147483648If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If If IfII II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II II# Job QueuesIf If If If If If If If If If If
溫馨提示
- 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)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 退役重武器測試題及答案
- 2023-2024學(xué)年山西省太原市迎澤區(qū)三年級(上)期末數(shù)學(xué)試卷(含答案)
- 小黑子考試試題及答案
- 2025年消防設(shè)施操作員之消防設(shè)備高級技能押題練習(xí)試題A卷含答案
- 2019-2025年消防設(shè)施操作員之消防設(shè)備中級技能能力檢測試卷B卷附答案
- 2023年全國翻譯專業(yè)資格(水平)考試英語三級筆譯實務(wù)試題真題及答案
- 配電柜知識培訓(xùn)課件
- 卸妝膏護膚知識培訓(xùn)課件
- 小紅船讀后感
- 市場營銷策略制定服務(wù)協(xié)議
- 安全生產(chǎn)法律法規(guī)培訓(xùn)課件1
- 音樂教育:培養(yǎng)學(xué)生的審美能力與綜合藝術(shù)素養(yǎng)培訓(xùn)課件
- 2023低空數(shù)字航空攝影規(guī)范
- 大班-科學(xué)-變化的月亮-課件
- 高中學(xué)生物理學(xué)情分析【3篇】
- 培訓(xùn)課件 -低成本自動化的開展與案例(上)
- 急救車藥品一覽表
- 項目部成立文件示例1
- 強直性脊柱炎患者功能鍛煉組圖
- 新課程標準2022版綜合實踐
- 40篇英語短文搞定高考3500個單詞
評論
0/150
提交評論