溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

使用dbca靜默方式安裝實(shí)例

發(fā)布時(shí)間:2020-08-12 03:50:13 來源:網(wǎng)絡(luò) 閱讀:1462 作者:三國冷 欄目:數(shù)據(jù)庫

   安裝數(shù)據(jù)庫實(shí)例的方法有兩種,一種是使用dbca安裝,另外一種是使用create database命令手動(dòng)安裝。dbca安裝有兩種方式,一種是圖形化界面安裝(交互式),另外一種是靜默安裝(非交互式)。本文主要介紹dbca靜默安裝。

語法:

dbca  [-silent | -progressOnly | -customCreate] {<command> <options> }  | { [<command> [options] ] -responseFile  <response file > } [-continueOnNonFatalErrors <true | false>]


#通過以下創(chuàng)建數(shù)據(jù)庫

    -createDatabase

-templateName <現(xiàn)有模板的名稱>#模板的位置:$ORACLE_HOME/assistants/dbca/templates

[-cloneTemplate]

-gdbName <全局?jǐn)?shù)據(jù)庫名>

[-policyManaged|-adminManaged <策略管理或管理員管理數(shù)據(jù)庫,默認(rèn)為管理員管理數(shù)據(jù)庫>]

[-createServerPool <創(chuàng)建將由要?jiǎng)?chuàng)建的數(shù)據(jù)庫使用的ServerPool>]

[-force <強(qiáng)制創(chuàng)建serverpool。 這可能影響已在運(yùn)行的數(shù)據(jù)庫>]

-serverPoolName <一個(gè)serverPool創(chuàng)建服務(wù)器池時(shí)的名稱,以及使用serverpool時(shí)的逗號(hào)分隔的serverPool名稱列表>

-[cardinality <指定要?jiǎng)?chuàng)建的新serverPool的基數(shù),默認(rèn)是合格節(jié)點(diǎn)的數(shù)量>]

[-sid <數(shù)據(jù)庫系統(tǒng)標(biāo)識(shí)符>]

[-sysPassword <SYS 賬戶的密碼>]

[-systemPassword <SYSTEM 賬戶的密碼>]

[-emConfiguration <CENTRAL|LOCAL|ALL|NOBACKUP|NOEMAIL|NONE>#OEM相關(guān)

-dbsnmpPassword <DBSNMP 賬戶的密碼>

-sysmanPassword <SYSMAN 賬戶的密碼>

[-hostUserName <EM備份作業(yè)的主機(jī)用戶名>

-hostUserPassword <EM備份作業(yè)的主機(jī)用戶密碼>

-backupSchedule <每日備份計(jì)劃的格式為hh:mm>]

[-smtpServer <用于電子郵件通知的發(fā)送郵件(SMTP)服務(wù)器>

-emailAddress <電子郵件通知的電子郵件地址>]

[-centralAgent <Enterprise Manager central agent home>]]

[-disableSecurityConfiguration <ALL|AUDIT|PASSWORD_PROFILE|NONE>#禁用安全

[-datafileDestination <所有數(shù)據(jù)庫文件的目標(biāo)目錄> |  -datafileNames <一個(gè)包含數(shù)據(jù)庫對(duì)象(如控制文件,表空間,重做日志文件和spfile)的文本文件到名稱=值格式中對(duì)應(yīng)的原始設(shè)備文件名映射.>]#數(shù)據(jù)文件的位置

[-redoLogFileSize <每個(gè)重做日志文件的大?。ㄒ哉鬃止?jié)為單位)>]

[-recoveryAreaDestination <所有恢復(fù)文件的目標(biāo)目錄>]

[-datafileJarLocation  <數(shù)據(jù)文件jar的位置,僅用于克隆數(shù)據(jù)庫創(chuàng)建>]

[-storageType < FS | ASM > 

[-asmsnmpPassword     <ASMSNMP ASM監(jiān)控密碼>]

 -diskGroupName   <數(shù)據(jù)庫區(qū)域磁盤組名稱>

 -recoveryGroupName       <恢復(fù)區(qū)磁盤組名>

[-characterSet <數(shù)據(jù)庫字符集>]

[-nationalCharacterSet  <國家字符集>]

[-registerWithDirService <true | false> 

-dirServiceUserName    <目錄服務(wù)的用戶名>

-dirServicePassword    <目錄服務(wù)的密碼 >

-walletPassword    <數(shù)據(jù)庫錢包的密碼 >]

[-listeners  <用于配置數(shù)據(jù)庫的偵聽器列表>]

[-variablesFile   <模板中變量的變量 - 值對(duì)的文件名>]]

[-variables  <逗號(hào)分隔的名稱=值對(duì)列表>]

[-initParams <逗號(hào)分隔的名稱=值對(duì)列表>]

[-memoryPercentage <Oracle的物理內(nèi)存百分比>]

[-automaticMemoryManagement ]#是否使用AMM

[-totalMemory <分配給Oracle的內(nèi)存(MB)>]

[-databaseType <MULTIPURPOSE|DATA_WAREHOUSING|OLTP>]]#數(shù)據(jù)庫類型


#通過指定以下參數(shù)配置數(shù)據(jù)庫

Configure a database by specifying the following parameters:

-configureDatabase

-sourceDB    <源數(shù)據(jù)庫 sid>

[-sysDBAUserName     <有sysdba權(quán)限的用戶>

-sysDBAPassword     <有sysdba權(quán)限用戶的密碼>]

[-registerWithDirService|-unregisterWithDirService|-regenerateDBPassword <true | false> 

-dirServiceUserName    <目錄服務(wù)的用戶名>

-dirServicePassword    <目錄服務(wù)的密碼>

-walletPassword    <數(shù)據(jù)庫錢包的密碼 >]

[-disableSecurityConfiguration <ALL|AUDIT|PASSWORD_PROFILE|NONE>

[-enableSecurityConfiguration <true|false>

[-emConfiguration <CENTRAL|LOCAL|ALL|NOBACKUP|NOEMAIL|NONE>

-dbsnmpPassword <DBSNMP user password>

-symanPassword <SYSMAN user password>

[-hostUserName <Host user name for EM backup job>

-hostUserPassword <Host user password for EM backup job>

-backupSchedule <Daily backup schedule in the form of hh:mm>]

[-smtpServer <Outgoing mail (SMTP) server for email notifications>

-emailAddress <Email address for email notifications>]

[-centralAgent <Enterprise Manager central agent home>]]


#使用現(xiàn)有數(shù)據(jù)庫創(chuàng)建模板

-createTemplateFromDB

-sourceDB    <源數(shù)據(jù)庫 <host>:<port>:<sid>>

-templateName      <模板名稱>

-sysDBAUserName     <有sysdba權(quán)限的用戶>

-sysDBAPassword     <有sysdba權(quán)限用戶的密碼>

[-maintainFileLocations <true | false>]


#使用現(xiàn)有數(shù)據(jù)庫創(chuàng)建復(fù)制模板

-createCloneTemplate

-sourceSID    <源數(shù)據(jù)庫 sid>

-templateName      <模板名稱>

[-sysDBAUserName     <有sysdba權(quán)限的用戶>

-sysDBAPassword     <有sysdba權(quán)限用戶的密碼>]

[-maintainFileLocations <true | false>]

[-datafileJarLocation       <以壓縮格式放置數(shù)據(jù)文件的位置>]


#通過指定以下參數(shù)來生成腳本以創(chuàng)建數(shù)據(jù)庫

-generateScripts

-templateName <模板名稱>

-gdbName <全局?jǐn)?shù)據(jù)庫名>

[-scriptDest       <所有腳本文件的位置>]

#刪除數(shù)據(jù)庫

-deleteDatabase

-sourceDB    <源數(shù)據(jù)庫 sid>

[-sysDBAUserName     <有sysdba權(quán)限的用戶>

-sysDBAPassword     <有sysdba權(quán)限用戶的密碼>]

Query for help by specifying the following options: -h | -help



-------------------------------------------------------------------------------------------

案例:

1、創(chuàng)建數(shù)據(jù)庫實(shí)例

dbca -silent -createDatabase -templateName General_Purpose.dbc  -gdbname ora11g -sid ora11g -responseFile NO_VALUE -characterSet AL32UTF8 -nationalCharacterSet AL16UTF16 -memoryPercentage 30 -emConfiguration NONE -sysPassword asd -systemPassword asd

#Xshell環(huán)境中執(zhí)行,不指定密碼會(huì)清屏。

2、創(chuàng)建模板

dbca -silent -createTemplateFromDB -sourceDB ora11g -templateName temp_ora11g -sysDBAUserName sys -sysDBAPassword asd

#創(chuàng)建的模板在$ORACLE_HOME/assistants/dbca/templates

3、刪除實(shí)例

dbca -silent -deleteDatabase -sourceDB orcl


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI