Create a database (oracle 10G)

1运行dbcacd /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
sid = mydemo

点击“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”
database file location = /xxxxx/mydemo/data/oradata/mydemo

点击“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 parameterMEMORY:
选择“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的路径为
/xxxx/data/oradata/mydemo

注意: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检查创建数据库的logcd $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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值