The ADS.ini is a different file, which you can create in the same folder where your executable is located or in C:\Windows. If you create this file in the C:\Windows folder, other ADS Application will be also use it.
In the ADS.ini file you need to insert following lines:
>>><<<
[Name of your Server machine]
LAN_IP= IP Address from your Server
LAN_PORT= i.e. 6262, which must be the same as you define in the Advantage Configuration Utility
[SETTINGS]
USE_TCP_IP=1
>>><<<
Important is, if you have a mapping on your IP address, you must insert the IP address in the [] instead of the Server name. After you have same the ADS.ini file, you must re-start your application. Please know, if you already installed the ARC on your Server machine, it will
be create an ADS.ini fine in the C:\Windows as default.
Re: connecting xharbour apps to ADS v10
Re: connecting xharbour apps to ADS v10
There was an ADS.INI file in c:\windows which I renamed ADS.INI.SAV and replaced with an ADS.INI file that contains nothing but the following: [XHARBOUR] LAN_IP=172.16.100.151 LAN_PORT=6262 [SETTINGS] USE_TCP_IP=1 The name of the server is XHARBOUR and the IP address is 172.16.100.151. I set the Lan Port to 6262 in the Advantage Configuration Utility and hit "Apply" which stopped and started the ADS. The applications behave exactly the same. Very, very slow. I'm going to make sure the IP V6 settings are disabled on this machine.
Re: connecting xharbour apps to ADS v10
The \windows\ads.ini now looks as follows: [172.16.100.151] LAN_IP=172.16.100.151 LAN_PORT=6262 [SETTINGS] USE_TCP_IP=1 I turned off IP V.6. Rebooted the machine. Still SLOW!!
Re: connecting xharbour apps to ADS v10
You mentioned installing the "ARC". What is the "ARC"?
Re: connecting xharbour apps to ADS v10
ARC is the Advantage Data Architect. I would suggest to install the ARC on your machine, which should use the same ADS.ini file. Try to open with the ARC only over the remote Server your Database and check, if this is working fast or not. If it should work fast, your issue looks to be have anything to do with xHarbour client. In such a case, please contact the provider of the client for ADS.
Re: connecting xharbour apps to ADS v10
I think Hakan's suggestions are great. Two other items I might suggest.
A) Be sure you are testing with multiple users from multiple machines. ADS will typically be slower for single user than multi user.
http://devzone.advantagedatabase.com/dz/content.aspx?Key=17&RefNo=980901-0452
B) If you are on Windows 2008 be sure to check the power settings for the server.
Link to Free Tables
How can I create a Dictionary that should provide access to free-table from multiple directories while allowing me to specify the Alias name for each table.
Re: Link to Free Tables
Hi Jack,
You are not able to create a Dictionary Link alias to a Free table directory in a Data Dictionary.
What you can do is specify the full path or relative path from the dictionary to the free table folders.
For example you could query the error log as a free table from a dictionary using the following
Select * from "c:\ads_err.adt" ads_error where ads_error.error_number > 10
Edgar
Re: Link to Free Tables
Seems like a View would work for me.
CREATE VIEW Table1 AS Select * From [C:\LocalData\Table1];
However, is there a way to create a View to a free "Encrypted" table. Using the above command raises error 5098.
Thanks
Re: Link to Free Tables
If you are using ADS 10.1 client or later (requires server or later) then you should be able to pass "extra parameters" and set the EncryptionPassword.
Help file for AdsConnect101 http://devzone.advantagedatabase.com/dz/WebHelp/Advantage11.1/ace_adsconnect101.htm
In ARC you can edit the connection properties and add this to ExtraConnectString
In Delphi the connection component should have a Connection String I belive
I'm not 100% sure this will work (is exposed) in all languages/drivers
WEB Platform for Linux (ver.12)
Hi all.
Are you going to support WEB platform for linux in ADS ver.12 ?
Many thanks.
Re: WEB Platform for Linux (ver.12)
I will ask the engineering for this and come asap back to you. In the maintime, you are welcome to post your feature request to http://feedback.advantagedatabase.com/
Re: WEB Platform for Linux (ver.12)
I get now the information, that it's not planned for v12. Please send your request to the feedback link, that I send you before.
Re: WEB Platform for Linux (ver.12)
It's not very nice
Re: WEB Platform for Linux (ver.12)
I've alredy filled the feedback link
ADS data loss
I’m posting this on behalf of a one of our clients. He is concerned there is a bug in Advantage Database Server that could lead to loss of data.
They have about 18 software packages all running and accessing Advantage on the cloud.
The Terminal Server is 2012 R2
The Data Server is 2008 R2
The Advantage Database Server is 11.10.0.22
On Sunday the 12th, the administrator made a change to the network share Advantage was using to access the tables. He unshared the old drive ( D: ) and path then he shared the new drive ( G: ) and path both the new and the old share where the same name. Advantage was still running at the time the network share was changed.
After the network share change, Advantage was still opening and writing data to the old network share on ( D: ) and not the new network share on ( G: ). Advantage seemed to be unaware the share path had changed.
They ran for a week like this then on Saturday the 18th the data server was restarted to another issue our tech support was having. On Monday the 20th, it was determined that the data was reverted back to Thursday the 16th, thereby missing Friday’s work. One of the software’s data was reverted back to Monday the 13th.
It appears that the act of “downing” the server on Saturday the 19th caused the data loss discovered on the 20th as Advantage was now looking at a different place since the share names were changed on the 12th.
The client is thinking that the tables were being cached in the Advantage memory and didn’t have an opportunity to write the data to disk when the data server was downed.
Any help would be appreciated.
Re: ADS data loss
How was the old and the new drive mapped, did you map to the UNC path or IP address?
Was the old and the new share used via Server-Side-Aliases? Are you able to reproduce this issue again and use now the ARC to verify, where the files will be open? If yes, please open a support incident, make some screenshots and provide more information about your environment and settings, so we can work on this issue directly.
Re: ADS data loss
Hi Hakan,
Thanks for your quick response.
The server’s local drives:
D:\XYZ
G:\XYZ
The network mapping:
T: -> \\Server1\XYZ
There are no Server-Side-Aliases.
I will not be able to reproduce this issue but, I did open a ticket.
Thanks
Re: ADS data loss
Hi Richard,
In the first view, it looks for me an issue with the Discovery Process.
Are you using an ADS.ini with Lan_IP/Port? If not, I would recommend to use this, to avoid Netbios issues. You can also use the Server-Side-Aliases to point the Server the right place of the files. This will also help to avoid such like behavior of the Discovery Process.
Is there a RUNSUM function?
Is there a RUNSUM function in Advantage Database which is able to show a running total of the numeric values of a column?