oracle 11g数据库启动错误总结
1.啟動(dòng)數(shù)據(jù)庫時(shí)提示ORA-00845:?MEMORY_TARGET?not?supported?on?this?system
??(在oracle?11g中新增的內(nèi)存自動(dòng)管理的參數(shù)MEMORY_TARGET,它能自動(dòng)調(diào)整SGA和PGA,這個(gè)特性需要用到/dev/shm共享文件系統(tǒng),而且要求/dev/shm必須大于MEMORY_TARGET,如果/dev/shm比MEMORY_TARGET小就會(huì)報(bào)錯(cuò))
圖:
解決方法:
[root@centos ~]# df -h
Filesystem ? ? ? Size ?Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root ? ?25G ? 11G ? 14G ?45% /
tmpfs ? ? ? ? ? 1.0G ?751M ?274M ?74% /dev/shm ? ? --是因?yàn)閭€(gè)值小了
/dev/sda1 ? ? ? ?485M ? 30M ?430M ? 7% /boot
/dev/sr0 ? ? ? ? 3.6G ?3.6G ? ? 0 100% /media/CentOS_6.4_Final
[root@centos ~]# mount -o remount,size=2G /dev/shm ? ?--修改大小,就不會(huì)報(bào)錯(cuò)了
[root@centos ~]# df -h
Filesystem ? ? Size ?Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root ?25G ? 11G ? 14G ?45% /
tmpfs ? ? ? ? ? ? ? ? 2.0G ?751M ?1.3G ?37% /dev/shm
/dev/sda1 ? ? ? ? ? ? ? 485M ? 30M ?430M ? 7% /boot
/dev/sr0 ? ? ? ? ? ? ? 3.6G ?3.6G ? ? 0 100% /media/CentOS_6.4_Final
[root@centos ~]#
測(cè)試:
2.啟動(dòng)oracle出現(xiàn)(oracle 11g)
[oracle@rac1 database]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Sun Sep 18 13:09:15 2016
Copyright (c) 1982, 2013, Oracle. ?All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL> startup
ORA-29760: instance_number parameter not specified
SQL>?
解決方法:
[oracle@rac1 database]$?export ORACLE_SID=racdb1 ?--指定正確的SID號(hào)
3.啟動(dòng)oem控制界面出錯(cuò)
[oracle@centos ~]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. ?All rights reserved.
https://centos:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ...
... ?Stopped.
[oracle@centos ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. ?All rights reserved.
https://centos:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control
....................................................................................
......... failed.
------------------------------------------------------------------
Logs are generated in directory /home/oracle/app/oracle/product/11.2.0/dbhome_1/centos_orcl/sysman/log
[oracle@centos ~]$ tailf ?-n 3 ?/home/oracle/app/oracle/product/11.2.0/dbhome_1/centos_orcl/sysman/log/emdctl.trc ? ?--查看最后3行日志,提示路由和主機(jī)錯(cuò)誤
2014-01-23 14:54:47,568 Thread-3032057536 WARN ?http: nmehl_connect_internal: connect failed to (centos:1158): No route to?
host (error = 113)
2014-01-23 15:02:50,071 Thread-3032803008 WARN ?http: nmehl_connect_internal: connect failed to (centos:3938): No route to?
host (error = 113)
2014-01-23 15:02:50,073 Thread-3032803008 ERROR main: nmectla_agentctl: Error connecting to https://centos:3938/emd/main.?
Returning status code 1
解決方法:
[root@centos ~]# ifconfig eth1 ? ?--檢查服務(wù)器的路由和主機(jī)IP地址,最好設(shè)置為靜態(tài)的
eth1 ? ? ?Link encap:Ethernet ?HWaddr 08:00:27:5C:4A:F6
inet addr:2.2.2.114 ?Bcast:2.2.2.255 ?Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe5c:4af6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST ?MTU:1500 ?Metric:1
RX packets:88220 errors:0 dropped:0 overruns:0 frame:0
TX packets:43011 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6611001 (6.3 MiB) ?TX bytes:29439365 (28.0 MiB)
[root@centos ~]# route ?-n
Kernel IP routing table
Destination ? Gateway ? ? ?Genmask ? ? ?Flags Metric Ref ? ?Use Iface
2.2.2.0 ? ?0.0.0.0 ? ? ? 255.255.255.0 ? U ? ? 1 ? ? ?0 ? 0 eth1
0.0.0.0 ? ?2.2.2.1 ? ? ? 0.0.0.0 ? ? ?UG ? ?0 ? ? ?0 ? ?0 eth1
[root@centos ~]#
測(cè)試:
[oracle@centos ~]$ emctl start dbconsole ? ? --啟動(dòng)成功了
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. ?All rights reserved.
https://centos:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ........ started.
------------------------------------------------------------------
Logs are generated in directory /home/oracle/app/oracle/product/11.2.0/dbhome_1/centos_orcl/sysman/log
[oracle@centos ~]$
4.控制文件丟失(由于控制文件丟失,數(shù)據(jù)庫無法啟動(dòng))
[oracle@centos ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Sat Jan 25 09:31:04 2014
Copyright (c) 1982, 2009, Oracle. ?All rights reserved.
Enter user-name: / as sysdba
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area ?661209088 bytes
Fixed Size ? ? ? ? ?1338560 bytes
Variable Size ? ? ? ? 494928704 bytes
Database Buffers ? ? ?159383552 bytes
Redo Buffers ? ? ? ? ? ?5558272 bytes
ORA-00205: error in identifying control file, check alert log for more info
SQL>
解決方法:
[oracle@centos ~]$ ll app/oracle/oradata/orcl/control011.ctl ? --查看兩個(gè)控制文件名
-rw-r----- 1 oracle oinstall 9748480 Jan 25 09:30 app/oracle/oradata/orcl/control011.ctl
[oracle@centos ~]$ ll app/oracle/flash_recovery_area/orcl/control02.ctl
-rw-r-----. 1 oracle oinstall 9748480 Jan 25 09:30
app/oracle/flash_recovery_area/orcl/control02.ctl
[oracle@centos ~]$ vim app/oracle/product/11.2.0/dbhome_1/dbs/initorcl.ora ?--打開配置文件看是否控制文件名寫對(duì)了沒有
*.control_files='/home/oracle/app/oracle/oradata/orcl/control01.ctl','/home/oracle/app/oracle/flash_recovery_area/orcl/control02.ctl' ? ?--第一個(gè)控制文件名錯(cuò)了,改對(duì)就可以了
測(cè)試:
[oracle@centos ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Sat Jan 25 09:42:31 2014
Copyright (c) 1982, 2009, Oracle. ?All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
5.啟動(dòng)em控制臺(tái)報(bào)錯(cuò):Environment?variable?ORACLE_SID?not?defined.?Please?define?it.
C:\Documents and Settings\Administrator>emctl start dbconsole
Environment variable ORACLE_SID not defined. Please define it.
解決方法:
C:\Documents and Settings\Administrator>set oracle_sid=orcl
C:\Documents and Settings\Administrator>emca -config dbcontrol db -repos recreate
EMCA 開始于 2009-11-13 11:03:30
EM Configuration Assistant 10.2.0.1.0 正式版
版權(quán)所有 (c) 2003, 2005, Oracle。保留所有權(quán)利。
輸入以下信息:
數(shù)據(jù)庫 SID: orcl
已為數(shù)據(jù)庫 orcl 配置了 Database Control
您已選擇配置 Database Control, 以便管理數(shù)據(jù)庫 orcl
此操作將移去現(xiàn)有配置和默認(rèn)設(shè)置, 并重新執(zhí)行配置
是否繼續(xù)? [yes(Y)/no(N)]: y ? ? ? ? ?--輸入y確定
監(jiān)聽程序端口號(hào): 1521 ? ? ? --輸入端口
SYS 用戶的口令: ? ? ? ? ? ?--輸入密碼
DBSNMP 用戶的口令:
SYSMAN 用戶的口令:
通知的電子郵件地址 (可選):
通知的發(fā)件 (SMTP) 服務(wù)器 (可選):
-----------------------------------------------------------------
已指定以下設(shè)置
數(shù)據(jù)庫 ORACLE_HOME ................ C:\oracle\product\10.2.0\db_4
數(shù)據(jù)庫主機(jī)名 ................ hzdx
監(jiān)聽程序端口號(hào) ................ 1521
數(shù)據(jù)庫 SID ................ orcl
通知的電子郵件地址 ...............
通知的發(fā)件 (SMTP) 服務(wù)器 ...............
-----------------------------------------------------------------
是否繼續(xù)? [yes(Y)/no(N)]: y
2009-11-13 11:04:36 oracle.sysman.emcp.EMConfig perform
信息: 正在將此操作記錄到 C:\oracle\product\10.2.0\db_4\cfgtoollogs\emca\orcl\emc
a_2009-11-13_11-03-30-上午.log。
2009-11-13 11:04:44 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段時(shí)間)...
2009-11-13 11:05:08 oracle.sysman.emcp.EMReposConfig dropRepository
信息: 正在刪除 EM 資料檔案庫 (此操作可能需要一段時(shí)間)...
2009-11-13 11:06:43 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功刪除資料檔案庫
2009-11-13 11:06:44 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在創(chuàng)建 EM 資料檔案庫 (此操作可能需要一段時(shí)間)...
2009-11-13 11:10:13 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功創(chuàng)建資料檔案庫
2009-11-13 11:18:10 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在啟動(dòng) Database Control (此操作可能需要一段時(shí)間)...
2009-11-13 11:18:50 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: 已成功啟動(dòng) Database Control
2009-11-13 11:18:50 oracle.sysman.emcp.EMDBPostConfig performConfiguration
警告: 無法創(chuàng)建 Database Control 快捷方式
2009-11-13 11:18:50 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息: >>>>>>>>>>> Database Control URL 為 http://hzdx:1158/em <<<<<<<<<<<
已成功完成 Enterprise Manager 的配置
EMCA 結(jié)束于 2009-11-13 11:18:50
測(cè)試:
轉(zhuǎn)載于:https://blog.51cto.com/tongcheng/1354118
總結(jié)
以上是生活随笔為你收集整理的oracle 11g数据库启动错误总结的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: puppet结构图一例
- 下一篇: 解耦HTML、CSS和JavaScrip