当前位置: 移动技术网 > IT编程>数据库>Oracle > Linux:oracle11.2.0dbca静默建库

Linux:oracle11.2.0dbca静默建库

2019年08月16日  | 移动技术网IT编程  | 我要评论

1、关闭防火墙

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动

2、切换用户
su - oracle
3、编辑静默安装文件
vim $oracle_home/inventory/response/dbca.rsp
4、修改配置文件

#以下参数不要更改
[general] 
responsefile_version = "11.2.0"
operation_type = "createdatabase"

#以下参数必须设置
[createdatabase]
gdbname = "orcl"
templatename = "general_purpose.dbc"

#以下参数不设置则使用默认值,建议设置
characterset = "zhs16gbk" #数据库字符集,根据需要设置
totalmemory = "1024"  #实例内存,默认为系统40%,可不设置

5、安装

$oracle_home/bin/dbca -silent -responsefile $oracle_home/inventory/response/dbca.rsp 

输入完命令后,xshell窗口会自动clean,然后输入sys密码,回车后继续输入system密码(页面上看不到文字,可能是bug)

作者:onlooker
来源:三无青年博客
原文:https://www.35youth.cn/702.html
版权声明:本文为博主原创文章,转载请附上博文链接!

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网