emca時提示主機名不能有下劃線並且不能超過32個字元
EMCA stops with "Hostname should not contain underscore _ in it and it should not be longer than 32 characters" [ID 1265731.1]
Information in this document applies to any platform.
In the $ORACLE_HOME/cfgtoollogs/emca//emca_YYYY-MM-DD_HH-MM-SS-AM.log
2. set the following environment variable to only the short hostname:
In our example:
4. Recreate the DB Console following the creation steps in
[@more@]
Applies to:
Enterprise Manager Grid Control - Version: 10.2.0.4 to 11.2.0.2 - Release: 10.2 to 11.2Information in this document applies to any platform.
Symptoms
EMCA or DBCA fails to install EM database console due to a server hostname of over 32 characters.In the $ORACLE_HOME/cfgtoollogs/emca/
Oct 4, 2010 9:23:47 AM oracle.sysman.emcp.EMConfig perform
SEVERE:
Invalid Hostname
myhost.office.reading.berkshire.unitedkingdom.oracle.com Hostname should
not contain underscore _ in it and it should not be longer than 32
characters.
Refer to the log file at $ORACLE_HOMEcfgtoollogsdbcaemConfig.log for more details.
Oct 4, 2010 9:23:47 AM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Invalid Hostname
myhost.office.reading.berkshire.unitedkingdom.oracle.com
Hostname should not contain underscore _ in it and it should not be
longer than 32 characters.
at oracle.sysman.emcp.ParamsManager.checkValidHostname(ParamsManager.java:2598)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:191)
at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:176)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:170)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:449)
at java.lang.Thread.run(Thread.java:595)
Cause
Hostname.domain is too long and the EMCA command does not allow a hostname.domain to be than greater than 32 characters.Solution
1. Drop the DB Console objects (if created), using2. set the following environment variable to only the short hostname:
ORACLE_HOSTNAME= or
In our example:
Linux/Unix: export ORACLE_HOSTNAME=myhost
or
Windows: set ORACLE_HOSTNAME=myhost
3. Ensure that the hosts file has the full entry of the IP address, hostname, hostname.domain. In our example, this would be:
10.123.123.123 myhost myhost.office.reading.berkshire.unitedkingdom.oracle.com
Note:
- hosts file on unix is located in /etc/hosts
- hosts file on for windows in at c:windowssystem32driversetchosts
4. Recreate the DB Console following the creation steps in
References
- How To Drop, Create And Recreate DB Control In A 10g/11g Database[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1055272/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux修改主機名(靜態主機名、臨時主機名)Linux
- Linux hosts主機名不對Linux
- 如何修改mac 下主機名、電腦名、區域網主機名Mac
- 可以獲取 model 並並且可以 dd (),但是 return 時為 null,且不能呼叫方法Null
- CentOS 7 下修改主機名CentOS
- 記錄一個HttpClient超時連線配置不生效的問題排查過程HTTPclient
- 去掉超連結的下劃線
- 正則關於特殊字元下劃線_的 校驗字元
- 小程式如何封裝提示元件並且使用封裝元件
- word空格處不顯示下劃線
- 金蝶K3 WISE 14.3增加自定義欄位提示“名稱不能為特殊字元”bug修復字元
- win10系統下ftp連線失敗提示“連線已超時”怎麼辦Win10FTP
- Word下劃線不顯示解決方法
- 那些年走過下劃線的坑
- mac透過網線連線主機(fnOS)Mac
- python3判斷給定的字串是否只包含字母、數字、中劃線或者下劃線中的一個或多個,並且以字母或數字開頭(正規表示式)Python字串
- mysql 支援索引字元超過 767MySql索引字元
- 以下哪個不能反映儀器的實時狀態? 執行,維修,待機,超時
- MAC修改主機名、計算機名Mac計算機
- 為何不能在Oracle表名稱中使用特殊字元?RFOracle字元
- 極思維上線時間不長,先過來支援一下
- CSS 多行文字超連結下劃線動效CSS
- FileZilla 連結伺服器提示 20 秒連線超時伺服器
- unknown host 主機名
- 更改域計算機名時提示“帳戶已經存在”計算機
- django 內建server 外網不能訪問, 報連線超時DjangoServer
- 11g裡建立OEM時的一個坑“emca -config dbcontrol db -repos recreate”
- 讀取檔案,每行不超過100個字元,輸出每行中字母最多的單詞的字母數字元
- Linux中主機名的作用是什麼?如何配置主機名?Linux
- Python 中的單下劃線和雙下劃線Python
- Swoole 5 將移除 PSR-0 下劃線風格類名
- 【Python】單下劃線與雙下劃線的區別Python
- Linux7修改主機IP及主機名Linux
- create-react-app中使用antd並且改變主題ReactAPP
- ngnix的windows路徑不能有中文Windows
- ubuntu修改主機名稱Ubuntu
- linux主機名的修改Linux
- win10 主機名修改方法_win10怎麼改主機名Win10
- 產生10個長度不超過10的字串字串