ORACLE not available; Shared memory realm does not exist [message #460578] |
Sat, 12 June 2010 14:47 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
Here's the background-
ORACLE was working perfectly on Windows 7 since Jan 2010. A couple of days ago I ran a procedure which was to update a table with 1000 columns. The procedure worked fine till it created a few thousand records and then it slowed down terribly. I closed the SQL Plus command line tool (CTRL C) and tried to restart and then tried to logon to get the following errors-
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Then I used the Start Database tool (net start OracleTNSListener), but it showed "System 5 error". So after researching online I created Admin profile for WINDOWS 7 and logged in as an administrator. In the INIT.ORA file I increasd the SGA_TARGET to 5G and PGA to 3G.
After doing that the above service is running but I'm still getting the ORA-01034 and ORA-27101.
Using cmd prompt in Windows and entering commands sqlplus -> Username: " / as sysdba" gives an insufficient privileges error.
Please let me know if you can help any way.
Thanks.
|
|
|
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460583 is a reply to message #460582] |
Sat, 12 June 2010 15:39 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
Thanks BlackSwan-
I used your suggestion related to "/ as sysdba". I can log on under my user name. Now I'm trying to handle the following error-
ORA-44412: XE edition memory parameter invalid or not specified
Currently referring the following post for this error, but first would try reducing the SGA size as you said.[threadID=427479 on Oracle Forums]
|
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460585 is a reply to message #460584] |
Sat, 12 June 2010 15:59 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
OK after reducing e SGA and PGA to 2 and 1 gig resp., didn't help.
So far I'm able to log in "/ as sysdba" under my user ID with the response "Connected to an idle instance." but "startup" gives foll. response "ORA-44412: XE edition memory parameter invalid or not specified"
What should be the argument for SET command?
|
|
|
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460589 is a reply to message #460588] |
Sat, 12 June 2010 16:07 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
Gotcha-
ACPath=C:\Program Files\Lenovo\Access Connections\
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Bhushan\AppData\Roaming
asl.log=Destination=file;OnFirstLog=command,environment
CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BHUSHAN-PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Bhushan
LOCALAPPDATA=C:\Users\Bhushan\AppData\Local
LOGONSERVER=\\BHUSHAN-PC
MINITAB_LICENSE_FILE=C:\Program Files\Minitab 15\
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Win dowsPow
erShell\v1.0\;C:\Program Files\Lenovo\Access Connections\;C:\Program Files\Common Files\DivX Shared\;C:\Program Files\QuickTime\QTSystem\;C:
\Program Files\Common Files\Lenovo;C:\Program Files\SSH Communications Security\SSH Secure Shell
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files\Java\jre6\lib\ext\QTJava.zip
RR=C:\Program Files\Lenovo\Rescue and Recovery
SESSIONNAME=Console
SWSHARE=C:\SWSHARE
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Bhushan\AppData\Local\Temp
TMP=C:\Users\Bhushan\AppData\Local\Temp
TVT=C:\Program Files\Lenovo
TVTCOMMON=C:\Program Files\Common Files\Lenovo
TVTPYDIR=C:\Program Files\Common Files\Lenovo\Python24
USERDOMAIN=Bhushan-PC
USERNAME=Bhushan
USERPROFILE=C:\Users\Bhushan
windir=C:\Windows
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460590 is a reply to message #460589] |
Sat, 12 June 2010 16:16 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
>Path=C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;
32-bit Windows!
open a Windows command window
COPY the lines below
cd C:\oraclexe\app\oracle\product\10.2.0\server\dbs
sqlplus
/ as sysdba
create pfile from spfile;
exit
dir /Q
PASTE lines above into command window
COPY commands & results then PASTE all back here
there should be a file names "initXE.ora" in this folder now.
manually edit it to correct bad parameter
find file "alert_XE.log" file & inspect it contents.
It will report the error.
After you change "initXE.ora, then do as follows:
sqlplus
/ as sysdba
startup pfile='initXE.ora'
exit
This should start the DB
[Updated on: Sat, 12 June 2010 16:22] Report message to a moderator
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460592 is a reply to message #460590] |
Sat, 12 June 2010 16:26 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
The pfile was not created, foll. is the transcript.
COMMANDS-
sqlplus
/ as sysdba
RESPONSE-
Connected to an idle instance.
COMMAND-
create pfile from spfile;
RESPONSE-
ERROR at line 1:
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
COMMAND-
exit
RESPONSE-
Disconnected
COMMAND-
C:\oraclexe\app\oracle\product\10.2.0\server\dbs>dir /Q
RESPONSE-
Volume in drive C is SW_Preload
Volume Serial Number is C859-7283
Directory of C:\oraclexe\app\oracle\product\10.2.0\server\dbs
12/15/2009 02:42 PM <DIR> BUILTIN\Administrators .
12/15/2009 02:42 PM <DIR> NT AUTHORITY\SYSTEM ..
06/11/2010 12:59 AM 2,560 BUILTIN\Administrators SPFILEXE.ORA
1 File(s) 2,560 bytes
2 Dir(s) 27,559,718,912 bytes free
C:\oraclexe\app\oracle\product\10.2.0\server\dbs>
|
|
|
|
|
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460777 is a reply to message #460669] |
Mon, 14 June 2010 13:53 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
Some respite-
Following is the output after giving the physical location of the files:
Volume in drive C is SW_Preload
Volume Serial Number is C859-7283
Directory of C:\oraclexe\app\oracle\product\10.2.0\server\dbs
06/14/2010 02:38 PM <DIR> BUILTIN\Administrators .
06/14/2010 02:38 PM <DIR> NT AUTHORITY\SYSTEM ..
06/14/2010 02:38 PM 862 BUILTIN\Administrators mypfile.ora
06/14/2010 12:25 AM 2,560 BUILTIN\Administrators SPFILEXE.ORA
2 File(s) 3,422 bytes
2 Dir(s) 26,902,044,672 bytes free
Should we manually change the myfile.ora for sga_target as I think that is a bad param.? Or is there anything particular when you said the following:
> find file "alert_XE.log" file & inspect it contents.
> It will report the error.
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #460780 is a reply to message #460777] |
Mon, 14 June 2010 14:50 |
bhushan5
Messages: 11 Registered: June 2010 Location: Pittsburgh
|
Junior Member |
|
|
Got it! Just so anyone else facing the same problem finds this-
The sum of PGA and SGA shouldn't be more than 1G (and mention the params in bytes)
ORACLE instance started.
Total System Global Area 620756992 bytes
Fixed Size 1288940 bytes
Variable Size 167773460 bytes
Database Buffers 448790528 bytes
Redo Buffers 2904064 bytes
Database mounted.
Database opened.
Thank you BlackSwan.
|
|
|
|
|
|
|
|
|
|
|
Re: ORACLE not available; Shared memory realm does not exist [message #648239 is a reply to message #648238] |
Fri, 19 February 2016 02:46 |
|
Michel Cadot
Messages: 68728 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:how do I start my database?
You have to first fix the error in your parameter file:
Quote:ORA-44412: XE edition memory parameter invalid or not specified.
Quote:SQL> start spfile=C:\oraclexe\app\oracle\product\10.2.0\server\database\initXE.ora
SP2-0310: unable to open file "spfile=C:\oraclexe\app\oracle\product\10.2.0\server\database\initXE.ora"
1/ If this is a pfile (init.ora) then it is not a spfile
2/ Does the file exist?
dir C:\oraclexe\app\oracle\product\10.2.0\server\database
type C:\oraclexe\app\oracle\product\10.2.0\server\database\initXE.ora
dir C:\oraclexe\app\oracle\product\10.2.0\server\dbs
Before, Please read How to use [code] tags and make your code easier to read.
[Updated on: Fri, 19 February 2016 02:47] Report message to a moderator
|
|
|