【oracle18c安装-2】centos7 + oracle18c建库启动

情景设定: 在完成系列1文章当中,oracle18c数据库安装后,进行sqlplus / as sysdba,可以登录到oracle,但是在启动的时候,startup,发现启动异常。调试了半天,试了各种手动配置.ora文件,新建ctl等,都以失败告终,最后采用了dbca建立数据库方式解决。

首先复制一份$ORACLE_HOME/assistants/dbca/dbca.rsp 文件,按照文件说明,进行相应修改

[crsusr@rwsaa192 bin]$ cp $ORACLE_HOME/assistants/dbca/dbca.rsp orcl_dbca.rsp
[crsusr@rwsaa192 bin]$ vi $ORACLE_HOME/assistants/dbca/orcl_dbca.rsp
responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v20.0.0
gdbName=orcl
databaseConfigType=SI
RACOneNodeServiceName=
policyManaged=FALSE
createServerPool=
cardinality=
force=
pqPoolName=
pqCardinality=
createAsContainerDatabase=false
numberOfPDBs=
pdbName=
useLocalUndoForPDBs=false
pdbAdminPassword=
nodelist=
templateName=$ORACLE_HOME/assistants/dbca/templates/General_Purpose.dbc
oracleHomeUserPassword=
emConfiguration=
emExpressPort=5500
runCVUChecks=
dbsnmpPassword=
omsHost=
omsPort=
emUser=
emPassword=
dvConfiguration=
dvUserName=
dvUserPassword=
dvAccountManagerName=
dvAccountManagerPassword=
olsConfiguration=
datafileJarLocation=
datafileDestination=
recoveryAreaDestination=
diskGroupName=
asmsnmpPassword=
recoveryGroupName=
characterSet=AL32UTF8
nationalCharacterSet=
registerWithDirService=
dirServiceUserName=
dirServicePassword=
walletPassword=
listeners=
variablesFile=
variables=
initParams=
memoryPercentage=20
databaseType=
automaticMemoryManagement=FALSE
totalMemory=100000
[crsusr@rwsaa192 bin]$

第二步 DBCA静默建库
$ORACLE_HOME/bin/dbca -silent -createDatabase  -responseFile $ORACLE_HOME/assistants/dbca/orcl_dbca.rsp

sqlplus / as sysdba
shutdown immediate
startup

lsnrctl start

你可能感兴趣的:(oracle)