11gR2 單例項dbca靜默建庫
dbca [-silent | -progressOnly | -customCreate] {<command> <options> } | { [<command> [options] ] -responseFile <response file > } [-continueOnNonFatalErrors <true | false>]
Please refer to the manual for details.
You can enter one of the following command:
Create a database by specifying the following parameters:
-createDatabase
-templateName <name of an existing template in default location or the complete template path>
[-cloneTemplate]
-gdbName <global database name>
[-sid <database system identifier>]
[-sysPassword <SYS user password>]
[-systemPassword <SYSTEM user password>]
[-emConfiguration <CENTRAL|LOCAL|ALL|NONE> ------->>>>是否配置EM
-dbsnmpPassword <DBSNMP user password>
-sysmanPassword <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>]
[-centralAgent <Enterprise Manager central agent home>]]
[-disableSecurityConfiguration <ALL|AUDIT|PASSWORD_PROFILE|NONE>
[-datafileDestination <destination directory for all database files
[-redoLogFileSize <size of each redo log file in megabytes>] ------>>>>redolog大小,一般預設就是50M
[-recoveryAreaDestination <destination directory for all recovery files>]
[-datafileJarLocation <location of the data file jar, used only for clone database creation>]
[-storageType < FS | ASM > ----->>>>設定儲存型別是ASM還是檔案系統
[-asmsnmpPassword <ASMSNMP password for ASM monitoring>]
-diskGroupName <database area disk group name>
-recoveryGroupName <recovery area disk group name>
[-characterSet <character set for the database>] ----->>>>資料庫字符集
[-nationalCharacterSet <national character set for the database>] ------>>>>國家語言字符集
[-registerWithDirService <true | false>
-dirServiceUserName <user name for directory service>
-dirServicePassword <password for directory service >
-walletPassword <password for database wallet >]
[-listeners <list of listeners to configure the database with>]
[-variablesFile <file name for the variable-value pair for variables in the template>]]
[-variables <comma separated list of name=value pairs>]
[-initParams <comma separated list of name=value pairs>]
[-sampleSchema <true | false> ] ------->>>>是否安裝例項程式,就是那個scott使用者
[-memoryPercentage <percentage of physical memory for Oracle>]
[-automaticMemoryManagement ]
[-totalMemory <memory allocated for Oracle in MB>]
[-databaseType <MULTIPURPOSE|DATA_WAREHOUSING|OLTP>]]
Configure a database by specifying the following parameters:
-configureDatabase
-sourceDB <source database sid>
[-sysDBAUserName <user name with SYSDBA privileges>
-sysDBAPassword <password for sysDBAUserName user name>]
[-registerWithDirService|-unregisterWithDirService|-regenerateDBPassword <true | false>
-dirServiceUserName <user name for directory service>
-dirServicePassword <password for directory service >
-walletPassword <password for database wallet >]
[-disableSecurityConfiguration <ALL|AUDIT|PASSWORD_PROFILE|NONE>
[-enableSecurityConfiguration <true|false>
[-emConfiguration <CENTRAL|LOCAL|ALL|NONE>
-dbsnmpPassword <DBSNMP user password>
-sysmanPassword <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>]
[-centralAgent <Enterprise Manager central agent home>]]
Create a template from an existing database by specifying the following parameters:
-createTemplateFromDB
&xTZN^�Q ����,d8��U-'��4�z���/�]�� ��T��{�� 9�)��I�QE|�a�z��K����D�r�N̶��R�Nda_w.�ydcoD�>`���Um�߅�qqR��I�1��\�ӆ^ 5�:�)n�� �dK�,�1��¡��"�W���aa���ys���i�g9���V��K��E���V��G���d�:JC�q��2��YL4��!�� -sysDBAUserName <user name with SYSDBA privileges>
-sysDBAPassword <password for sysDBAUserName user name>
[-maintainFileLocations <true | false>]
Create a clone template from an existing database by specifying the following parameters:
-createCloneTemplate
-sourceSID <source database sid>
-templateName <new template name>
[-sysDBAUserName <user name with SYSDBA privileges>
-sysDBAPassword <password for sysDBAUserName user name>]
[-maintainFileLocations <true | false>]
[-datafileJarLocation <directory to place the datafiles in a compressed format>]
Generate scripts to create database by specifying the following parameters:
-generateScripts
-templateName <name of an existing template in default location or the complete template path>
-gdbName <global database name>
[-scriptDest <destination for all the scriptfiles>]
Delete a database by specifying the following parameters:
-deleteDatabase
-sourceDB <source database sid>
[-sysDBAUserName <user name with SYSDBA privileges>
-sysDBAPassword <password for sysDBAUserName user name>]
Query for help by specifying the following options: -h | -help
例子如下:
下面-redoLogFileSize 50預設也是以M為單位,不要加上M了,否則會報錯。
-automaticMemoryManagement
-totalMemory <memory allocated for Oracle in MB>
如果上面兩個引數同時加了,也會報錯。我的例子中只加了個-totalMemory
下面的這個東西就是咱們在建庫的時候選擇的模板,general purpose還是Data warehouing還是custom。
General_Purpose.dbc
這個東西在這下面$ORACLE_HOME/assistants/dbca/templates
[[email protected] templates]$ pwd
/u01/app/oracle/11g/assistants/dbca/templates ----我的ORACLE_HOME是/u01/app/oracle/11g/
[[email protected] templates]$ ls -ltr
total 301548
-rw-r--r-- 1 oracle oinstall 11489 May 1 08:24 New_Database.dbt ------自定義的模板
-rw-r--r-- 1 oracle oinstall 5104 Aug 24 12:08 Data_Warehouse.dbc -----資料倉庫的模板
-rw-r--r-- 1 oracle oinstall 4984 Aug 24 12:08 General_Purpose.dbc ----general purpose的模板
-rwxr-xr-x 1 oracle oinstall 1507328 Aug 27 12:45 example.dmp
-rwxr-xr-x 1 oracle oinstall 21741568 Aug 27 12:45 example01.dfb
-rwxr-xr-x 1 oracle oinstall 9748480 Aug 27 12:46 Seed_Database.ctl
---這個就是恢復的種子資料庫的控制檔案
-rwxr-xr-x 1 oracle oinstall 275750912 Aug 27 12:46 Seed_Database.dfb
-----這個就是種子資料庫的備份片,加上控制檔案就能恢復出一個數據庫來
-rw-r----- 1 oracle oinstall 5028 Oct 30 11:29 orcl.dbc
[[email protected] ~]$ dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname ora11g -sid ora11g -sysPassword oracle -systemPassword oracle -responseFile NO_VALUE -datafileDestination /u01/app/oracle/oradata/ora11g -redoLogFileSize 50 -recoveryAreaDestination
/u01/app/oracle/fast_recovery_area -storageType FS -characterSet ZHS16GBK -nationalCharacterSet AL16UTF16 -sampleSchema true -memoryPercentage 30 -totalMemory 200 -databaseType OLTP -emConfiguration NONE
Copying database files
1% complete
3% complete
11% complete
18% complete
26% complete
37% complete
Creating and starting Oracle instance
40% complete
45% complete
50% complete
55% complete
56% complete
57% complete
60% complete
62% complete
Completing Database Creation
66% complete
70% complete
73% complete
85% complete
96% complete
100% complete
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/ora11g/ora11g.log" for further details.
[[email protected] ~]$
-datafileDestination /u01/app/oracle/oradata/ora11g ---->>>>我這個路徑多加了個ora11g,其實它會自己建立目錄,不用指定名字,我加了之後就會在這下面再建一個ora11g,
只需要給他指定目錄即可/u01/app/oracle/oradata/,他自動會建以例項名的目錄,存放資料庫檔案。
如果引數較多,覺得麻煩,可以搞一個responseFile方便。
總之,圖形介面也是調的命令,用圖形介面能做到的事情,命令介面一樣可以做到,只是使用習慣的問題。
順便說下,想看官檔在這裡:
Administrator's Guide --->>>Creating and Configuring an Oracle Database--->>>Creating a Database with DBCA
有些人幹了N年了,也考了OCM,就會查個Metalink,連官檔在電腦上都沒有離線存一份,更不要說有多麼熟悉官檔了,一旦沒有網路,MOS上沒有相應案例,手機查不到,官檔哪個地方不知道,那就等著被鄙視吧。
現在11gR2的官檔基本上已經不更新了,最新版是E11882_01,最新的是11.2.0.4的,11204也新加了一些功能。下載地址在這裡:
相關推薦
11gR2 單例項dbca靜默建庫
[[email protected] ~]$ dbca -help dbca [-silent | -progressOnly | -customCreate] {<command> <options> } | { [<comma
Oracle11gR2手工建庫(附DBCA靜默建庫)
參考官方文件:E25494-03 環境:CentOS6.5 Oracle11.2.0.4 1. 指定Oracle SID [[email protected] ~]$ echo $ORACLE_SID orcl 2. 設定環境變數 [[email
oracle11.2.0.1靜默安裝之dbca靜默建庫
1) 生成響應檔案:[[email protected] response]$ cp netca.rsp ../netca.rsp^C[[email protected] response]$ pwd/home/oracle/database/respon
靜默建庫和刪除數據庫
dbca 靜默建庫 很多時候客戶現場或測試環境不一定有xm等圖形工具,新建庫或刪除庫需要通過命令行進行。靜默建庫:[email protected]/* */>select * from v$version where rownum<2; BANNER -----------
oracle 靜默建庫、建監聽
oracle靜默建庫經本人測試如果靜默建模版,在其它的數據庫服務器裏面調用需要拷到數據庫的絕對路徑,為了實施方便,這邊使用圖形化建模。建模版,CMD命令窗口輸入dbca 選擇需要建模的數據庫實例 需要用模版時拷貝三個到其它機器上 3.靜默建
[oracle部署實施] 基於centos7靜默安裝oracle 11gr2單實例數據庫
ons gen 用戶 etc bootp .cn linu settings firewall 基於centos7靜默安裝oracle 11gr2單實例數據庫 1.vmware最小化安裝centos7 分配20G硬盤+2G內存+nat網絡 400mboot+4Gswap
dbca創建數據庫
dbca創建數據庫 dbca創建數據庫dbca創建數據庫xhost +su - oracle dbca步驟1:步驟2:步驟3:步驟4:步驟5:步驟6:步驟7:步驟8:步驟9:步驟10:步驟11:步驟12:步驟13:步驟14:步驟15:到這裏為止,dbc
oracle 11g rac dbca建庫時提示創建監聽
oracle 監聽 listener oracle rac Oracle 11g rac dbca建庫時提示創建監聽在安裝oracle 11g rac時,使用dbca建庫的過程中提示需要創建監聽:Default Listener "LISTENER" is not configured in
DBCA建庫出錯ORA-00600: internal error code, arguments
eno domain following ldo news bsp cat err idc 正常步驟安裝完成Oralce,通過dbca建庫,報錯如下圖所示: Oracle安裝日誌中報錯如下: [Thread-40] [ 1999-12-15 12:23:54.0
Linux下dbca創建數據庫實例
字符類型 進入 ise connected log tex edi 11.2 最大的 配置好監聽我們可以用dbca創建數據庫了首先還是用vnc鏈接到oracle用戶桌面設置環境變量 [oracle@oracle-learn ~]$ export LANG=en_US 啟動d
11204RAC-dbca建庫指令碼
SET VERIFY OFFconnect "SYS"/"&&sysPassword" as SYSDBAset echo onspool /u01/app/oracle/admin/qpdb/scripts/postDBCreation.log append@/u01/app/oracle/
oper-O11gR2+ASM+RAC使用duplicate快速複製一個庫到單例項
環境: 源庫:O11gR2+ASM+RAC+rhel6.4 目標庫:O11gR2+rhel6.4單例項 步驟 1、配置靜態監聽 源庫:/u01/app/11.2.0/grid_1/network/admin/listener.ora SID_LIST_LISTENER = (SID_LI
DBCA建庫找不到ASM磁碟一例
start resource: Name: ora.rac.db, node: null, filter: null, msg CRS-5017: The resource action "ora.rac.db start" encountered the following error: ORA-01078
正式生產庫,配置雙節點的RAC + 單例項的 DATAGUARD
正式生產庫,配置DATAGUARD RAC+單例項DATAGUARD 配置 RAC 兩節點: 192.1.0.101 rac1 192.1.0.102 rac2 儲存:ASM DB_UNIQUE_NAME= racdb 例項:racdb1; racdb
Linux下靜默安裝 oracle參考連結(for單例項、for RAC叢集)
1. http://www.dbdream.com.cn/2012/03/03/linux%e7%8e%af%e5%a2%83%e4%b8%8b%e9%9d%99%e9%bb%98%e5%bb%ba%e5%ba%93oracle11gr2/ 2.http://www.dbd
oracle 11g + ASM dbca 建庫問題解決心得
環境AIX 6.1 ,oracle11g ASM ASM例項安裝完成,並能正常啟動,ASM盤組能夠檢測到。 oracle軟體正常安裝。 然後DBCA建庫的時候,在選擇檔案儲存為止的時候選擇ASM磁碟,然後圖形介面上不顯示盤組, 手動輸入 +datadg 開始提示ORA
Oracle DB 使用DBCA建立單例項ASM資料庫用作恢復目錄資料庫
1) 使用 DBCA 啟動建立單例項ASM資料庫,可用作恢復目錄資料庫。 [[email protected] ~]$ dbca 2) 在“Welcome(歡迎)”頁上,單擊“Next (下一步)”。 3) 在“Operations(操作)”頁上,選中“
oracle 12c RMAN異機恢復還原RAC叢集(ASM)為單例項庫(檔案系統)記錄
CONFIGURE CONTROLFILE AUTOBACKUP ON備份集準備 backup database format '/home/databak/whole_%d_%U'; backup spfile format '/home/databak/spfile_%
dbca -silent -responsefile 建庫由於tmpfs太小報錯ORA-27102: out of memory
錯誤資訊:[[email protected] ~]$ dbca -silent -responsefile dbca.rsp Copying database files 1% complete 2% complete 4% complete 12% compl
oracle單例項靜默安裝
背景:對於在linux系統安裝oracle,起初比較頭痛於圖形化介面安裝,費時費力,後來找到了靜默安裝的方法,效率提高了不只一倍,現在分享給大家1、做好安裝oracle的初始化工作包括建使用者、oracle base目錄、依賴包、環境變數等,我寫了sh指令碼#########