Oracle 12c 靜默安裝
下載指令碼
wget https://raw.githubusercontent.com/spdir/oracle-single-install/master/oracle_install.sh && chmod +x oracle_install.sh
指令碼使用安裝前配置(root使用者執行,儘量為純淨環境)
安裝前請將Oracle 12C安裝包放置在/tmp目錄下
系統需要具備512MB的交換分割槽
並配置好以下資訊
本機IP地址 HostIP
Oracle使用者密碼 OracleUserPasswd 預設為oracle.com
Oracle資料庫管理員密碼 ORACLE_DB_PASSWD 預設為
Oracle SID/ServerName SID 預設為 oriedb
是否安裝例項 IS_INSTANCE
0-不安裝例項
1-安裝單例項
2-安裝cdb : 因為CDB在初始化過程中需要輸入引數,需要手動初始化,具體步驟會在最後進行提示
專案地址:gitee: https://gitee.com/spdir/oracle-single-install
github: https://github.com/spdir/oracle-single-install
我自己的安裝報錯:
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-09-28_04-34-03PM. Please wait …[FATAL] [INS-32038] The operating system group specified for central inventory (oraInventory) ownership is invalid.
CAUSE: User performing installation is not a member of the operating system group specified for central inventory(oraInventory) ownership.
A log of this session is currently saved as: /tmp/OraInstall2018-09-28_04-34-03PM/installActions2018-09-28_04-34-03PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location.報錯原因:作業系統指定使用者組無效
解決方案:刪除oracle 使用者及其屬組,重建後解決。
原貼附下:https://www.cnblogs.com/zhichaoma/p/9288739.html#undefined