cancel
Showing results for 
Search instead for 
Did you mean: 

MaxDB GUI or CLI wouldn't start; ERR_SHMALLOCFAILED; RC 5

Former Member
0 Kudos

Hi,

We have our MaxDB (used for Content Server) updated recently from 7.6 to 7.9.

We have moved to Win2012 so had to update MaxDB as well. Everything was fine, but suddenly the MaxDB GUI or CLI wouldn't open. Content Server is still accessible fine though.

MaxDB Studio splash screen appears and that's it, wouldn't move further.

Below error when opening the DBMCLI:

Error - - - -

Can not open file 'G:\sapdb\SDB\data\wrk\dbmsrv_HOST.err'.

(System error 5; Access is denied.)

Error! Connection failed to node (local) for database SDB:

-24700,ERR_DBMSRV_NOSTART: Could not start DBM server.

-24832,ERR_SHMNOTAVAILABLE: Shared memory not available

-24827,ERR_SHMALLOCFAILED: ID G:\sapdb\SDB\data\wrk\SDB.dbm.shi, requested size

2608

2,Creating temporary shared memory file failed,  rc = 5.

Error - - - -

The error looks like permission issue, however, all permissions look fine. Using the same OS user that was used for the update.

Please advice.

Regards,

Naga

Accepted Solutions (1)

Accepted Solutions (1)

JamesZ
Advisor
Advisor
0 Kudos

Hi Naga,

Please run cmd as administrator and then run the same command.

Best regards,
James

Former Member
0 Kudos

Thanks James!

The CLI works fine. But even after running as Administrator, the GUI, MaxDB Database Studio still doesn't open, no error messages, only stays on the initial Splash Screen and that's it.

Can you help . . .

Regards,

Naga

JamesZ
Advisor
Advisor
0 Kudos

Hi Naga,

You are welcome.

Please remove <SID>.dbm.shi and <SID>.dbm.shm under directory /var/lib/sdb/dbm/ipc. Then try again.

Please do not worry about to delete these two files. The files will be automatically generated next time when you are connecting database. If gui is still not able to connect, can you show me a screenshot?

Best regards,
James

Former Member
0 Kudos

Hi James,

I renamed the files. But MaxDB Studio still doesn't open.

(For Prithviraj's message, UAC is already disabled, and log is not full.)

Running CLI as Administrator is fine now.

But opening GUI, MaxDB Studio, as Administrator also doesn't make any difference.

Only the initial splash screen below:

It stays there forever, nothing happens, no errors etc.

Don't know how to proceed from here!

Regards,

Naga

Former Member
0 Kudos

Hi,

Please run dbanalyzer.exe on command line to know what exactly is happening behind the splash screen.

This will give us the correct reason.

Regards,

Prithviraj.

Former Member
0 Kudos

Hi Prithviraj,

I cannot find much help on running this on CLI, options to use, where/what to check etc..

Can you help?

Regards,

Naga

JamesZ
Advisor
Advisor
0 Kudos

Hi Naga,

Please reinstall the database studio.  Please use maxdb installation manager to deinstall the tool.

Best regards,
James

Former Member
0 Kudos

Thanks a lot!

For now we are connecting to MaxDB GUI from the dev system. Will consider re-installing Studio on prd system.

Former Member
0 Kudos

The issue with MaxDB Studio unable to start was with JRE. MaxDB Studio need Java VM too which wasn't available on standard JRE installation. So we adapted our PATH environment variable with the SAP JVM path which is available under the DAA Diagnostic agent installation path.

Regards,

Naga

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Naga,

Please go through the below SCN, they have discussed two solutions in it.

1. Disable UAC

2. Overwrite log.

Hope this solves the issue.

Regards,

Prithviraj.