1、問題:由于TOMCAT連接數(shù)據(jù)庫報錯,報錯的內(nèi)容為“連接不上數(shù)據(jù)庫,大概意思就是oracle內(nèi)存不足”;
2、解決方法:更改oracle SGA和PGA內(nèi)存。
3、在使用ORACLE10G OEM 修改SGA大小之后,重啟服務,數(shù)據(jù)庫ORCL啟動不起來了。
4、解決方法:
C:Documents and SettingsAdministrator>sqlplus/nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 星期五 12月 30 17:28:492011
Copyright (c) 1982, 2004, Oracle. All rightsreserved.
SQL> conn mali/fulong
ERROR:
ORA-01034: ORACLE not available
ORA-27101:shared memory realm does not exist

C:Documents and SettingsAdministrator>lsnrctl start
C:Documents andSettingsAdministrator>setORACLE_SID=orcl
C:Documents andSettingsAdministrator>sqlplus/nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 星期五 12月 30 17:31:002011
Copyright (c) 1982, 2004, Oracle. All rightsreserved.
SQL> conn mali/fulong assysdba
已連接到空閑例程。
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: ????????????????'G:ORACLEPRODUCT10.1.0DB_1DATABASEINITORCL.ORA
'
報的錯誤:沒有找到“G:ORACLEPRODUCT10.1.0DB_1DATABASEINITORCL.ORA”的啟動文件。
將G:oracleproduct10.1.0adminorclpfileinit.ora.87200684741文件拷貝到G:ORACLEPRODUCT10.1.0DB_1DATABASEinit.ora.87200684741,并將init.ora.87200684741文件名修改成INITORCL.ORA。
SQL> startup
ORACLE 例程已經(jīng)啟動。
Total System Global Area 180355072 bytes
FixedSize788028 bytes
VariableSize143915460 bytes
DatabaseBuffers33554432 bytes
RedoBuffers2097152 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
一切解決了!
愛華網(wǎng)

