本篇內(nèi)容主要講解“怎么解決oracle 12c靜默安裝的使用問題”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強(qiáng)。下面就讓小編來帶大家學(xué)習(xí)“怎么解決oracle 12c靜默安裝的使用問題”吧!
創(chuàng)新互聯(lián)公司服務(wù)項目包括周村網(wǎng)站建設(shè)、周村網(wǎng)站制作、周村網(wǎng)頁制作以及周村網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,周村網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到周村省份的部分城市,未來相信會繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!一:一定先創(chuàng)建監(jiān)聽,然后建庫,否則報錯:
[oracle@tvy-mysql-cdsp-01 database]$ dbca -silent -createDatabase -responseFile /media/database/response/dbca.rsp
[WARNING] [DBT-06801] Specified Fast Recovery Area size (2,780 MB) is less than the recommended value.
CAUSE: Fast Recovery Area size should at least be three times the database size (2,730 MB).
ACTION: Specify Fast Recovery Area Size to be at least three times the database size.
[FATAL] [DBT-07505] Selected listener (LISTENER) does not exist.
ACTION: Specify an existing listener.
二:當(dāng)內(nèi)存大于4G的時候,需要automaticMemoryManagement=FALSE
[oracle@tvy-mysql-cdsp-01 database]$ dbca -silent -createDatabase -responseFile /media/database/response/dbca.rsp
[WARNING] [DBT-06801] Specified Fast Recovery Area size (2,780 MB) is less than the recommended value.
CAUSE: Fast Recovery Area size should at least be three times the database size (2,730 MB).
ACTION: Specify Fast Recovery Area Size to be at least three times the database size.
[FATAL] [DBT-11211] The Automatic Memory Management option is not allowed when the total physical memory is greater than 4GB.
CAUSE: The current total physical memory is 125GB.
三:只能在特定的pdb數(shù)據(jù)庫創(chuàng)建用戶,不能在cdb創(chuàng)建用戶,除非你創(chuàng)建 公用用戶(開頭必須是字母+##)
create user c##liuwenhe identified by test;
否則會報錯!
SQL> create user liuwenhe identified by "liuwenhe#123";
create user liuwenhe identified by "liuwenhe#123"
*
ERROR at line 1:
ORA-65096: invalid common user or role name
SQL> alter session set container=BHDB_PDB ;
Session altered.
SQL> create user liuwenhe identified by "liuwenhe#123";
User created.
四:oracle 19c 無法動態(tài)注冊監(jiān)聽(原因未知)解決辦法:使用靜態(tài)注冊曲線救國,
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = bhdb_pdb)
(ORACLE_HOME = /data/u01/app/oracle/product/12.2.0.1/db_1)
(SID_NAME = bhdb)
)
(SID_DESC =
(GLOBAL_DBNAME = bhdb_pdb2)
(ORACLE_HOME = /data/u01/app/oracle/product/12.2.0.1/db_1)
(SID_NAME = bhdb)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = slave15.happycfc.net)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
五:低版本客戶端連接高版本的oracle 12c 由于版本不兼容導(dǎo)致連接不上
Oracle11g 客戶端,鏈接Oracle12C 2.*數(shù)據(jù)庫服務(wù), 出現(xiàn)的版本不兼容問題
使用PLSQ報錯
Oracle12c連接問題ORA-28040
解決辦法:
在配置文件中添加如下語句
vi $ORACLE_HOME/network/admin/sqlnet.ora
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
解釋:
SQLNET.ALLOWED_LOGON_VERSION_SERVER:控制可以連接到12c數(shù)據(jù)庫的客戶端版本(client —>orace 12c db )
SQLNET.ALLOWED_LOGON_VERSION_CLIENT:控制12c數(shù)據(jù)庫可以連到哪些版本的數(shù)據(jù)庫(orace 12c db —>其它版本的oracle db),例如:控制通過DB LINK可連接到哪些版本的oracle庫。
該參數(shù)用來限制可以連接到數(shù)據(jù)庫服務(wù)器上的最小客戶端版本,比如設(shè)置值為10,即10g,11g等以上客戶端版本可以連接到數(shù)據(jù)庫服務(wù)器上。在沒有指定的時候是用默認(rèn)值的,導(dǎo)致低版本連接不上高版本的數(shù)據(jù)庫。說白了解決兼容性問題就是讓高版本的額數(shù)據(jù)庫服務(wù)也能讓低版本的額數(shù)據(jù)庫來連接。
六:安裝oracle 18c開始,Oracle希望你把安裝包解壓到$ORACLE_HOME目錄下,否則靜默安裝的時候會拋出下面的錯誤
./runInstaller -silent -responseFile /data/oracle18c/oracle_software/install/response/db_install2.rsp -ignorePrereqFailure
Launching Oracle Database Setup Wizard...
[FATAL] [INS-35954] The installer has detected that the Oracle home location provided in the response file is not correct.
CAUSE: The Database Oracle home is the location from where the installer is executed. It has been detected that the value set in the response file is different (/data/oracle18c/product). Value expected is: /data/oracle18c/oracle_software
ACTION: It is not required to specify ORACLE_HOME in the response file for Database installation. Alternatively, set it to the location of the installer (/data/oracle18c/oracle_software).
解決辦法:解壓的時候直接解壓到oracle_home:
unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME
七:oracle 18c 開始應(yīng)答文件路徑發(fā)生變化,具體如下:
軟件$ORACLE_HOME/install/response/db_install.rsp
監(jiān)聽$ORACLE_HOME/assistants/netca/netca.rsp
建庫$ORACLE_HOME/assistants/dbca/dbca.rsp
到此,相信大家對“怎么解決oracle 12c靜默安裝的使用問題”有了更深的了解,不妨來實際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!