【oracle】靜默安裝oracle軟體和資料庫之二
本文記錄如何靜默建立資料庫,可以使用靜默檔案可以選擇無響應檔案安裝
1 編輯建立資料庫的響應檔案:
dbca.rsp
ESPONSEFILE_VERSION = "10.0.0"
OPERATION_TYPE = "createDatabase"
GDBNAME = "kbbi.RAC"
SID = "kbbi"
TEMPLATENAME = "kbbi.dbt"
SYSPASSWORD = "kbbi123"
SYSTEMPASSWORD = "kbbi123"
DATAFILEDESTINATION ="/opt/app/oracle/oradata"
RECOVERYAREADESTINATION="/opt/app/oracle/flash_recovery_area"
STORAGETYPE=FS
CHARACTERSET = "ZHS16GBK"
DATABASETYPE = "OLTP"
MEMORYPERCENTAGE = "40"
SCRIPTDESTINATION ="/opt/app/oracle/admin/kbbi/scripts"
EMCONFIGURATION="LOCAL"
2 也可以執行如下命令直接不使用響應檔案來建立資料庫:
oracle@RAC:/home/oracle/10201_database>dbca -silent -createDatabase \
> -templateName /home/oracle/10201_database/New_Database.dbt \ --這個是必須指定的建立資料庫的模板。
> -gdbName kbbi \
> -sid kbbi \
> -sysPassword system123 \
> -systempassword system123 \
> -datafileDestination /opt/app/oracle/oradata \
> -storageType FS \
> -characterSet zhs16gbk \
> -memoryPercentage 60 \
> -recoveryAreaDestination /opt/app/oracle/flash_recovery_area \
> -databaseType MULTIPURPOSE
Creating and starting Oracle instance
1% complete
4% complete
Creating database files
8% complete
Creating data dictionary views
9% complete
10% complete
12% complete
13% complete
14% complete
15% complete
17% complete
18% complete
20% complete
21% complete
Adding Oracle JVM
22% complete
28% complete
34% complete
40% complete
42% complete
Adding Oracle Data Mining
43% complete
44% complete
46% complete
Adding Oracle Text
47% complete
49% complete
50% complete
Adding Oracle XML DB
52% complete
53% complete
54% complete
58% complete
Adding Oracle Intermedia
59% complete
60% complete
71% complete
Adding Oracle OLAP
72% complete
73% complete
74% complete
75% complete
Adding Oracle Spatial
76% complete
77% complete
78% complete
83% complete
Adding Enterprise Manager Repository
84% complete
86% complete
88% complete
Completing Database Creation
89% complete
90% complete
91% complete
95% complete
99% complete
100% complete
Look at the log file "/opt/app/oracle/10.2/db/cfgtoollogs/dbca/kbbi/kbbi.log" for further details.
進行登入測試:
oracle@RAC:/home/oracle/10201_database>sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 7 23:01:44 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-710466/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【oracle】靜默安裝oracle軟體和資料庫之三Oracle資料庫
- 【oracle】靜默安裝oracle軟體和資料庫之一Oracle資料庫
- oracle 11g資料庫軟體靜默安裝Oracle資料庫
- 靜默安裝oracle軟體Oracle
- 靜默安裝ORACLE 軟體Oracle
- Oracle 11g靜默安裝軟體+手工建立資料庫Oracle資料庫
- 【配置安裝】靜默安裝Oracle資料庫軟體12c&19cOracle資料庫
- Oracle資料庫靜默安裝實踐Oracle資料庫
- 靜默方式安裝、升級oracle(一): 安裝oracle軟體Oracle
- 靜默方式安裝、升級oracle(三): 升級資料庫軟體及資料庫Oracle資料庫
- 靜默安裝Oracle12.2資料庫Oracle資料庫
- 靜默安裝Oracle11g資料庫Oracle資料庫
- 【DBCA -SILENT】靜默方式安裝11gR2 oracle資料庫軟體Oracle資料庫
- oracle靜默安裝Oracle
- Oracle 靜默安裝Oracle
- 靜默方式安裝、升級oracle(二): 建立資料庫Oracle資料庫
- 靜默安裝ORACLE(文件)Oracle
- Oracle 12C 單例項資料庫靜默安裝Oracle單例資料庫
- 11gR2 靜默安裝RAC 叢集和資料庫軟體資料庫
- 在CentOS-6.7上靜默安裝Oracle 11g及靜默建立資料庫CentOSOracle資料庫
- windows下Oracle靜默安裝所需orcl.dbc-----之二WindowsOracle
- 靜默安裝資料庫介質和建立資料庫資料庫
- 【配置上線】靜默安裝資料庫Oracle 11gR2資料庫Oracle
- 靜默安裝oracle11gR2軟體並且手動建庫Oracle
- 靜默安裝oracle時報錯Oracle
- ORACLE 11.2.0.4靜默安裝Oracle
- Oracle靜默安裝(單機)Oracle
- Oracle靜默安裝說明Oracle
- oracle靜默安裝raw裝置Oracle
- 資料庫靜默安裝總結資料庫
- 靜默建立oracle資料庫及克隆資料庫Oracle資料庫
- oracle 11.2.0.4 靜默安裝加手工建庫(-)Oracle
- Windows 7平臺靜默安裝11.2.0.4軟體及靜默建庫Windows
- 【oracle】靜默安裝 oracle 11gr2Oracle
- 免安裝oracle軟體連線oracle資料庫Oracle資料庫
- oracle 19C 靜默安裝Oracle
- oracle 12c 靜默安裝Oracle
- Oracle 11g 靜默安裝Oracle