User Tools

Site Tools


ads_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ads_linux [2022/01/26 19:14] – created wolfgangriedmannads_linux [2022/01/26 19:50] (current) wolfgangriedmann
Line 4: Line 4:
  
 The biggest difference is that the Linux filesystem is **case sensitive**, and therefore you have to put the option  The biggest difference is that the Linux filesystem is **case sensitive**, and therefore you have to put the option 
-''LOWERCASE_ALL_PATHS=1''+<code>LOWERCASE_ALL_PATHS=1</code>
 in the file ads.conf (the main configuration file). 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: 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]+<code>[your_linux_server]
 LAN_IP=192.168.20.90 LAN_IP=192.168.20.90
 LAN_PORT=6262 LAN_PORT=6262
-USE_TCP_IP=1''+USE_TCP_IP=1</code>
 This may be a problem if your server has more than one IP address and is used from different networks. 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 In that case the only solution I have found was to set the environment variable
-''function SetAdsIni( oSysIni as IniFileSpec ) as string pascal+<code>function SetAdsIni( oSysIni as IniFileSpec ) as string pascal
 local cIPAddress as string local cIPAddress as string
 local cAdsIniLoc as string local cAdsIniLoc as string
Line 22: Line 22:
   cAdsIniLoc := oSysIni:GetString( "Settings", "AdsIniLoc_" + cIPAddress, "g:\alpifakt\192.168.1.0"   cAdsIniLoc := oSysIni:GetString( "Settings", "AdsIniLoc_" + cIPAddress, "g:\alpifakt\192.168.1.0"
   SetEnvironmentVariable( String2PSZ( "adsini_path" ), String2PSZ( cAdsIniLoc ) )   SetEnvironmentVariable( String2PSZ( "adsini_path" ), String2PSZ( cAdsIniLoc ) )
-endif''+endif</code>
  
-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 +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  
 +<code>setfacl -m u:advantage:rwx /home/daten</code> 
 +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:
 +[[https://answers.sap.com/questions/13532423/ads-12-on-debian-bullseye.html|answers.sap.com/questions/13532423/ads-12-on-debian-bullseye.html]]
 +
 +[[https://devzone.advantagedatabase.com/dz/webhelp/Advantage11.1/index.html?master_server_side_aliases.htm|devzone.advantagedatabase.com/dz/webhelp/Advantage11.1/index.html?master_server_side_aliases.htm]]
 +
 +[[https://devzone.advantagedatabase.com/dz/webhelp/Advantage11.1/index.html|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.1643224440.txt.gz · Last modified: 2022/01/26 19:14 by wolfgangriedmann