Skip to Content
0
Former Member
Jun 12, 2009 at 01:45 PM

This application has failed to start because SapNi.dll was not found

47 Views

On the advice, good advice, of Melanie and Lars, here is a new thread for my question.

I'm assisting with a migration of SAPDB, on Windows Server 2003, to MaxDB 7.6.xx on Solaris 10 SPARC.

I can connect to my SAP DB 7.3.0.35 using Database Manager 7.4.3.23 as superdba. Now I'm trying to use the dbmcli.

I go to the server and pop open a cmd prompt and try it via dbmcli:

dbmcli -d sdb -u superdba,<password>

And I get a Windows dialog box that says

This application has failed to start because SapNi.dll was not found. Re-installing the application may fix this problem.

Hello,

actually, the SUPERDBA user only has ONE valid password. Although he is able to perform admin tasks and to execute SQL statements, there are not two passwords for this user!

So if you are able to connect with that user with dbmcli and not with sqlcli or loadercli, there seems to be something wrong with your system/users. Maybe the user called SUPERDBA on your system is not really the SYSDBA but a 'normal' dbm user.

When you connect with that user with dbmcli, please execute the following commands:

sql_execute select user from dual

sql_execute select SYSDBA from dual

sql_execute select * from users

Can you also connect with user control with dbmcli? You might want to check the default password (control).

Regarding the ni.dll problem: If I understand that correctly, you installed Database Studio locally on your PC. Did you also install any othe MaxDB software on that server? When you try to use dbmcli to connect to a remote database, you'll have to specify the -n <hostname> option. Or did you get that dll error on the database server itself?

Database Studio cannot be used to administer databases of version 7.3. You'll have to use DBMGUI or dbmcli for that.

Best regards, Melanie

Hi Melanie, Thanks for the response.

I cannot use dbmcli at the moment. I get the Windows dialog box saying

This application has failed to start because SapNi.dll was not found. Re-installing the application may fix this problem.

I am using dmcli on the Windows 2003 Server with my SAP DB 7.3 installed. Here is the version of dbmcli that I'm using.

C:\sapdb\SDB\db\bin>dbmcli -V

OK

version,os,dbroot,logon,code,swap

"7.6.06","WIN32","C:\Program Files\sdb\7606",True,ASCII,2

I'm going to try to do what the error message tells me and uninstall and re-install my DB management applications.

Thanks,

Rich