1 | 運行dbca | cd /xxxx/ . ./dbca |
2 | 界面1:welcome | 點擊“next” |
3 | 界面2:operations | 選擇“create a database”,點擊“next” |
4 | 界面3:database template | 選擇“custom database”,點擊“next” |
5 | 界面4:database identication |
global database name = mydemo.world 點擊“next” |
6 | 界面5:management option | 取消“configure the database with enterprise manager” 取消“use database control for database management”下的報警和備份選項 點擊“next” |
7 | 界面6:database credential | 選擇“use the same password for all account” password = passwd confirm password = passwd 點擊“next” |
8 | 界面7:storage option | 選擇“file system”,點擊“next” |
9 | 界面8:database file location |
選擇“use common location for all database files” 點擊“next” |
10 | 界面9:recovery configuration | 選擇“specify flash recovery area” flash recovery area = /xxxxx/backup/flash_recovery flash recovery area size = 2048 點擊“next” |
11 | 界面10:database content | 點擊“next” |
12 | 界面11:initialization parameter | MEMORY: 選擇“custom” shared memory management 選擇“automatic” shared pool = 200 buffer cache = 24 java pool = 48 large pool = 50 SIZE: processes = 350 CHARACTER SETS: choose from the list of character sets 選擇“ZHS16GBK” CONNECTION MODE: 選擇“dedicated server mode” |
13 | 界面12:database storage |
修改controlfile、datafile、logfile的路徑爲 注意:sysaux表空間需要調整到500M,否則在執行建庫腳本的時候可能會報錯。 |
14 | 界面13:create database | 選擇“save information to a shell script”,點擊“finish” |
15 | 執行創建數據庫腳本 | cd $HOME_BASE/admin/mydemo 執行下面腳本前,在init.ora文件裏,添加如下文本,將sga大小設置爲500M ########################################### # SGA Memory ########################################### sga_target=524288000 然後執行下面腳本 . ./mydemo.sh |
16 | 檢查創建數據庫的log | cd $HOME_BASE/admin/mydemo grep ORA- *.log |
17 | 關閉所有datafile的自動擴展 | alter database datafile '/xxxx/mydemo/data/oradata/mydemo/tools01.dbf' autoextend off; alter database tempfile '/xxxx/mydemo/data/oradata/mydemo/temp01.dbf' autoextend off; 數據庫中所有的表空間都需要執行alter autoextend off語句 |
18 | 實施oracle patch |
cd 4883174 $ORACLE_HOME/OPatch/opatch apply |
Create a database (oracle 10G)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.