User Tools

Site Tools


ads_linux

The Advantage Database Server on Linux

Unfortunately the ADS software was not written originally for Linux, and therefore there are several important differences to ADS for Windows (I have never used ADS for Novell Netware, and I have my doubts there will be any new installations).

The biggest difference is that the Linux filesystem is case sensitive, and therefore you have to put the option

LOWERCASE_ALL_PATHS=1

in the file ads.conf (the main configuration file).

The second problem is that even if your Linux server is running Samba, and can be resolved with both DNS and the Windows Network name resolution, the ADS RDD will not be able to find it (that is true also for the Advantage Data Architect). So you need to put the IP address in the ADS.INI of your application:

[your_linux_server]
LAN_IP=192.168.20.90
LAN_PORT=6262
USE_TCP_IP=1

This may be a problem if your server has more than one IP address and is used from different networks. In that case the only solution I have found was to set the environment variable

function SetAdsIni( oSysIni as IniFileSpec ) as string pascal
local cIPAddress as string
local cAdsIniLoc as string
	
cIPAddress := AllTrim( GetIPAddress( "your_server" ) )
if ! cIPAddress == ""
  cAdsIniLoc := oSysIni:GetString( "Settings", "AdsIniLoc_" + cIPAddress, "g:\alpifakt\192.168.1.0" ) 
  SetEnvironmentVariable( String2PSZ( "adsini_path" ), String2PSZ( cAdsIniLoc ) )
endif

Another problem is that the ADS daemon is not looking at the Linux group rights for its rights checking - so if the advantage user has not full write rights to the data directory and all parent directories, it will refuse to create and access database files in that directory. So, if you cannot or are not able to change the folders ownership, your best option will be to install the acl package (on Debian Linux) and use a command similar to

setfacl -m u:advantage:rwx /home/daten

to give the needed rights to the advantage user.

Last remark: since the Linux daemon has no user interface, you need to use the Advantage Data Architect ARC with the Tools - Remote Server Information to see the status of your server software.

And if you are installing on Debian Linux and the daemon refuses to start, you may have to install the libnss-nis package.

References: answers.sap.com/questions/13532423/ads-12-on-debian-bullseye.html

devzone.advantagedatabase.com/dz/webhelp/Advantage11.1/index.html?master_server_side_aliases.htm

devzone.advantagedatabase.com/dz/webhelp/Advantage11.1/index.html - see “Installing the Advantage Database Server Daemon for Linux” and “Advantage Linux Development Notes”

ads_linux.txt · Last modified: 2022/01/26 19:50 by wolfgangriedmann