oracle19c安装向导空白页,【配置安装】Oracle静默建库for 12c&19c CDB

Oracle

静默建库

for 12c&19c CDB

12c&19c

在静默建库对比

11g

,有变化的参数主要是创建

CDP

。其他地方变化不大。做一遍,踩踩坑。

使用静默dbca

创建数据库有两种方法:

1

)一种是根据

oracle

自身的数据库模板创建数据库(建议),数据库模板位置

$ORACLE_HOME/assistants/dbca/templates/*.dbc

ORACLE

为我们提供了几个

dbc

模板:

Data Warehouse

数据仓库

Transaction Processing

事务处理

General Purpose

一般用途

2)

另一种是根据模板文件

该模板文件位于oracle

解压目录下

database/response/

dbca.rsp

文件,

当然我们也可以通过复制这个模板文件来修改其中的内容来建立定制的数据库

本文以第一种方法举例。

注意在使用dbca

命令的时候各个同级别的参数的必要性,有些是必要的,有些是不必要的。具体可参考

dbca -help

。静默模式使用

dbca

创建数据库,在执行过程中不存在交互信息,所有的信息、错误和告警都会写在日志里。在结果时屏幕会打印出日志的位置。

建库脚本如下:

$ dbca -silent -createDatabase -templateName /u01/app/oracle/product/1

9

.

3

.0/db_1/assistants/dbca/templates/General_Purpose.dbc

-responseFile NO_VALUE

-gdbName

prod

-sid

prod

-createAsContainerDatabase TRUE

-numberOfPDBs

2

-pdbName pdb

-pdbAdminPassword

oracle

-sysPassword oracle -systemPassword oracle -redoLogFileSize 50 -storageType FS  -datafileDestination

'/u01/app/oracle/oradata/prod' -enableArchive true -archiveLogDest '/archivelog'

-sampleSchema false -characterset ZHS16GBK -nationalCharacterSet AL16UTF16

-emConfiguration NONE

-automaticMemoryManagement false -totalMemory 2048 -databaseType OLTP

[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.

CAUSE:

a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].

b.The password entered is a keyword that Oracle does not recommend to be used as password

ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.

[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.

CAUSE:

a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].

b.The password entered is a keyword that Oracle does not recommend to be used as password

ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.

[WARNING] [DBT-06208] The 'PDBADMIN' password entered does not conform to the Oracle recommended standards.

CAUSE:

a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].

b.The password entered is a keyword that Oracle does not recommend to be used as password

ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.

Prepare for db operation

8% complete

Copying database files

31% complete

Creating and starting Oracle instance

32% complete

36% complete

40% complete

43% complete

46% complete

Completing Database Creation

51% complete

53% complete

54% complete

Creating Pluggable Databases

58% complete

63% complete

77% complete

Executing Post Configuration Actions

100% complete

Database creation complete. For details check the logfiles at:

/u01/app/oracle/cfgtoollogs/dbca/prod.

Database Information:

Global Database Name:prod

System Identifier(SID):prod

Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/prod/prod0.log" for further details.

参数解释如下:

-silent:

静默模式

-templateName:

指定数据库创建模板位置

-responseFile

:

是否使用响应文件

-gdbName: global database name

-sid:

指定数据库

SID

(

system identifier

)

-

createAsContainerDatabase

:

是否创建

CDB

true

为创建

CDB

-numberOfPDBs

:

创建

PDB

的数量

-pdbName

: PDB

名字,如果创建多个

PDB

,该名字为前缀名

-pdbAdminPassword

: PDB

管理员密码

-

sysPassword

: sys

用户密码

-systemPassword

: system

用户密码

-redoLogFileSize

:

指定

redo

日志大小

-

storageType

:

存储类型:

FS

为文件系统,

ASM

ASM

磁盘形式,如果使用

ASM

存储,还需要指定

-diskGroupName

-recoveryGroupName

-datafileDestination

:

数据文件路径

-enableArchive:

是否启用归档

-archiveLogDest:

归档路径

-sampleSchema

:

是否创建用例模板

-characterset

:

指定字符集

-nationalCharacterSet

:

指定国家字符集

-emConfiguration

:

是否创建

em

-automaticMemoryManagement

是否启动

AMM

true

代表启动

AMM,false

代表启动

ASMM

-

totalMemory

:

指定实例占用内存大小,

PGA

SGA

会自动分配

-databaseType

:

可选

MULTIPURPOSE|DATA_WAREHOUSING|OLTP

---- end ----

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值