Quantcast
Channel: SCN: Message List - SAP Advantage Database Server
Viewing all 997 articles
Browse latest View live

Re: Longevity of ADS

$
0
0

Thanks for the feedback Chris - glad it helped alleviate concerns.

Regards, Mike


Slow startup on Windows Server 2008

$
0
0

Hello,

 

I have an application that has been working great until the customer moved it to Windows Server 2008. It only uses ADS_LOCAL_SEVER to access a table. It uses Advantage 10.1. I created some test code that simply tries to open a local connection.  It is taking over 90 seconds to complete the request. From other posts I saw other users having this issue and mentioned that IGMP must be turned on and that Power Management must be set to "High Performance".  I have done both of these to no avail.  What else can I try?

 

My ADS.INI

 

[SETTINGS]

MTIER_LOCAL_CONNECTIONS=1

ADS_SERVER_TYPE=1

 

 

My code snippet:

 

      myConnection := TAdsConnection.Create(nil);

      myConnection.AdsServerTypes := [stADS_LOCAL];

      myConnection.LoginPrompt := False;

      myConnection.Name := 'requestDb';

      myTable := TAdsTable.Create(nil);

      myTable.DatabaseName := myConnection.Name;

 

      logPath := 'c:\somepath';

 

      myConnection.ConnectPath := logPath;

      if myConnection.IsConnected = False then myConnection.IsConnected := True;

      myConnection.IsConnected := False;



The code is hanging a long time on myConnection.IsConnected := True;

Re: Slow startup on Windows Server 2008

$
0
0

Hello Jim,

 

There is not so much what can be done for the ALS to get it performer in compare to the ADS. But most ALS performance issues are related to Network and/or OS issues or settings. I'm not sure, if this could help in ALS, but it helps in the past for ADS with Version 10.x on Windows 2008, if you disbale the SMB2. May you can give them a try.

ADS Roadmap

$
0
0


Hello all - attached is an ADS Roadmap which highlights our current releases as well as some upcoming innovations (including v12 enhancements).

Regards, Mike

Re: ADS Roadmap

$
0
0

Thanks for the info Mike.

 

I will be sending that to customers today. Hopefully now I can get a bunch of them to upgrade from 10.x to 11 now.

 

Chris

ADS PHP 5.6 Driver, Linux Debian Jessie 8.1 - Error

$
0
0

Hello,

 

i believe, it exists a problem or PHP driver for ADS an current Debian and PHP 5.6.x

 

Here is my report (my english is bad, sorry):

 

 

i get an error while compile the PHP Driver for Advantage Database

 

These are my settings:

- Advantage PHP Driver Release 11.1 for Linux (11.10.0.22) from //devzone.advantagedatabase.com/

- Debian 8.1 Jessie

- PHP 5.6.9 (Source)

- our ADS Database Version 11.1

 

My commands:

$>./buildconf --force

 

$>./configure --prefix=/opt/php/5.6.9 --enable-mbstring --with-mysql --with-pdo-mysql --with-mysqli --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --with-libdir=lib64 --with-libxml-dir=/usr --enable-exif --enable-dba --with-gettext --enable-shmop --enable-sysvmsg --enable-wddx --enable-bcmath --enable-ftp --enable-intl --with-pspell --with-apxs2 --with-pdo_advantage --with-advantage=/usr/local/ads/php

 

$>make

 

/bin/bash /php-5.6.9/libtool --silent --preserve-dup-deps --mode=compile cc -I -Iext/pdo_advantage/ -I/php-5.6.9/ext/pdo_advantage/ -DPHP_ATOM_INC -I/php-5.6.9/include -I/php-5.6.9/main -I/php-5.6.9 -I/php-5.6.9/ext/date/lib -I/php-5.6.9/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/ads/php/include -I/php-5.6.9/ext/mbstring/oniguruma -I/php-5.6.9/ext/mbstring/libmbfl -I/php-5.6.9/ext/mbstring/libmbfl/mbfl -I/php-5.6.9/ext/sqlite3/libsqlite -I/usr/include/pspell -I/php-5.6.9/ext/zip/lib -I/php-5.6.9/TSRM -I/php-5.6.9/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -c /php-5.6.9/ext/pdo_advantage/pdo_advantage.c -o ext/pdo_advantage/pdo_advantage.lo

/php-5.6.9/ext/pdo_advantage/pdo_advantage.c:29:25: fatal error: pdo/php_pdo.h: Datei oder Verzeichnis nicht gefunden

#include "pdo/php_pdo.h"

                         ^

compilation terminated.

Makefile:1418: recipe for target 'ext/pdo_advantage/pdo_advantage.lo' failed

make: *** [ext/pdo_advantage/pdo_advantage.lo] Error 1

 

_______________________________________________________________________________________________________

 

I fix these problem in follow files:

/php-5.6.9/ext/pdo_advantage/pdo_advantage.c

/php-5.6.9/ext/pdo_advantage/advantage_driver.c

/php-5.6.9/ext/pdo_advantage/advantage_statement.c

 

i change these lines:

 

#include "pdo/php_pdo.h" -> #include "ext/pdo/php_pdo.h"

#include "pdo/php_pdo_driver.h" -> #include "ext/pdo/php_pdo_driver.h"

 

_______________________________________________________________________________________________________

 

Now again:

$>make             (without error)

$>make test

 

LOG:

=====================================================================

FAILED TEST SUMMARY

---------------------------------------------------------------------

DBA INIFILE handler test [ext/dba/tests/dba_inifile.phpt]

Capture SSL session meta array in stream context [ext/openssl/tests/session_meta_capture.phpt]

Basic bitwise stream crypto context flag assignment [ext/openssl/tests/stream_crypto_flags_001.phpt]

Server bitwise stream crypto flag assignment [ext/openssl/tests/stream_crypto_flags_003.phpt]

Specific crypto method for ssl:// transports. [ext/openssl/tests/streams_crypto_method.phpt]

SQLite3 open_basedir checks [ext/sqlite3/tests/sqlite3_21_security.phpt]

Test setlocale() function : usage variations - Setting all available locales in the platform [ext/standard/tests/strings/setlocale_variation2.phpt]

=====================================================================

 

 

=====================================================================

WARNED TEST SUMMARY

---------------------------------------------------------------------

zend multibyte (8) [ext/mbstring/tests/zend_multibyte-08.phpt] (warn: XFAIL section but test passes)

zend multibyte (10) [ext/mbstring/tests/zend_multibyte-10.phpt] (warn: XFAIL section but test passes)

zend multibyte (11) [ext/mbstring/tests/zend_multibyte-11.phpt] (warn: XFAIL section but test passes)

=====================================================================

 

 

$>make install

 

Installing PHP SAPI module:       apache2handler

/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules

/usr/share/apr-1.0/build/libtool --mode=install install libphp5.la /usr/lib/apache2/modules/

libtool: install: install .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so

libtool: install: install .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la

libtool: install: warning: remember to run `libtool --finish /php-5.6.9/libs'

chmod 644 /usr/lib/apache2/modules/libphp5.so

[preparing module `php5' in /etc/apache2/mods-available/php5.load]

Module php5 already enabled

Installing shared extensions:     /opt/php/5.6.9/lib/php/extensions/no-debug-non-zts-20131226/

Installing PHP CLI binary:        /opt/php/5.6.9/bin/

Installing PHP CLI man page:      /opt/php/5.6.9/php/man/man1/

Installing PHP CGI binary:        /opt/php/5.6.9/bin/

Installing PHP CGI man page:      /opt/php/5.6.9/php/man/man1/

Installing build environment:     /opt/php/5.6.9/lib/php/build/

Installing header files:          /opt/php/5.6.9/include/php/

Installing helper programs:       /opt/php/5.6.9/bin/

  program: phpize

  program: php-config

Installing man pages:             /opt/php/5.6.9/php/man/man1/

  page: phpize.1

  page: php-config.1

Installing PEAR environment:      /opt/php/5.6.9/lib/php/

[PEAR] Archive_Tar    - already installed: 1.3.12

[PEAR] Console_Getopt - already installed: 1.3.1

[PEAR] Structures_Graph- already installed: 1.0.4

[PEAR] XML_Util       - already installed: 1.2.3

[PEAR] PEAR           - already installed: 1.9.5

Wrote PEAR system config file at: /opt/php/5.6.9/etc/pear.conf

You may want to add: /opt/php/5.6.9/lib/php to your php.ini include_path

/php-5.6.9/build/shtool install -c ext/phar/phar.phar /opt/php/5.6.9/bin

ln -s -f /opt/php/5.6.9/bin/phar.phar /opt/php/5.6.9/bin/phar

Installing PDO headers:          /opt/php/5.6.9/include/php/ext/pdo/

 

_________________________________________________________________________________________________

 

Here is my test-script:

 

class DataAccessHelper {

 

 

    protected $configDnsRemote = 'advantage:Data Source=//xxx.xxx.xxx.xxx:2000/daten/software/db/db.add;ServerType=6;TrimTrailingSpaces=True';

    protected $configUserRemote = 'XXXXX';

    protected $configMagicRemote = 'XXXXX';

 

 

    protected $pdobRemote;

    private $error = false;

    public $dataOut = array();

 

 

    public function start(){

        try{

            $this->pdobRemote = new PDO($this->configDnsRemote,$this->configUserRemote, $this->configMagicRemote);

            $this->pdobRemote->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );

        } catch (PDOException $e){

            $this->error = true;

        }

        return $this->startStepOne();

    }

 

 

    private function startStepOne(){

        if($this->error){return false;}

        try{

            $getquery = $this->pdobRemote->query("SELECT * FROM datatable");

            $getquery->setFetchMode(PDO::FETCH_ASSOC);

            $result = $getquery->fetchAll();

        } catch (PDOException $e){

            return false;

        }

        $this->dataOut = $result;

        return true;

    }

}//class

 

 

$helper = new DataAccessHelper();

if ($helper->start()){

        print_r($helper->dataOut);

}

 

i run the script:

 

$> /opt/php/5.6.9/bin/php db-test.php56

 

i get the error:

 

"Segmentation Faults"   or in german "Speicherzugriffsfehler"

____________________________________________________________________________________________________

 

an error-stack created with strace as attachment.

 

 

THX for Help

____________________________________________________________________________________________________

 

We need an current Driver for ADS on Debian Jessie and PHP 5.6.x

 

best regards

Advantage Web Platform Release 11.1 for Linux

$
0
0

Where or When can i find a version of adsweb module

Advantage Web Platform Release 11.1

for Linux Apache 2.4 ?

 

thx

 

best regards

Henry Schorradt

Re: Advantage Web Platform Release 11.1 for Linux

$
0
0

At this time there is not a version available for Linux.   Only Windows with Apache is currently supported.

 

 

I do know that the Development team and Product Management have received requests for this however official plans have not yet been announced


Re: ADS PHP 5.6 Driver, Linux Debian Jessie 8.1 - Error

$
0
0

note:

 

on PHP 5.4.42 (Source)

compiling correct (after fix path to ext/pdo/* in files)

test-script running correct

 

on PHP 5.5.26 (Source)

compiling correct (after fix path to ext/pdo/* in files)

test-script running correct


on PHP 5.6.9 (Source)

compiling correct (after fix path to ext/pdo/* in files)

test-script error "segmentation fault"


on PHP 5.6.10 (Source)

compiling correct (after fix path to ext/pdo/* in files)

test-script error "segmentation fault"


What is with PHP 7 ?!


Thx

Re: RAD Studio XE8 support

$
0
0

We've solved things by our selves to get tDataset from Version10.x working under XE8. The only thing which has to be changed is following code in adsdata.pas:

 

Search for this:

 

function TAdsDataSet.BuildFilterString( poFields : TList;

bExactCompare : Boolean;

bCaseInsensitive : Boolean ) : string;

 

and change it to:

 

function TAdsDataSet.BuildFilterString( poFields : TList<TField>;

bExactCompare : Boolean;

bCaseInsensitive : Boolean ) : string;

 

Hope this helps others ...

Re: ADS PHP 5.6 Driver, Linux Debian Jessie 8.1 - Error

$
0
0

O.K.! I fixed the problem by my self.

 

Here is my patch for Debian Jessie 8.1 PHP 5.6.x

 

 

From f728b101e1a1f0a4497aeb1ce9487502d9f38bc1 Mon Sep 17 00:00:00 2001

From: Henry Schorradt <h.schorradt@kaphingst.de>

Date: Thu, 25 Jun 2015 13:44:56 +0200

Subject: [PATCH] Patch Debian 8.1 PHP 5.6.x

 

 

---

setup.files/pdo_ext/advantage_driver.c    | 4 ++--

setup.files/pdo_ext/advantage_statement.c | 4 ++--

setup.files/pdo_ext/pdo_advantage.c      | 4 ++--

setup.pl                                  | 4 ++--

4 files changed, 8 insertions(+), 8 deletions(-)

 

 

diff --git a/setup.files/pdo_ext/advantage_driver.c b/setup.files/pdo_ext/advantage_driver.c

index 90bf566..a77805f 100644

--- a/setup.files/pdo_ext/advantage_driver.c

+++ b/setup.files/pdo_ext/advantage_driver.c

@@ -30,8 +30,8 @@

#include "php.h"

#include "php_ini.h"

#include "ext/standard/info.h"

-#include "pdo/php_pdo.h"

-#include "pdo/php_pdo_driver.h"

+#include "ext/pdo/php_pdo.h"

+#include "ext/pdo/php_pdo_driver.h"

#include "php_pdo_advantage.h"

#include "php_pdo_advantage_int.h"

#include "zend_exceptions.h"

diff --git a/setup.files/pdo_ext/advantage_statement.c b/setup.files/pdo_ext/advantage_statement.c

index 2d3666e..1accc8a 100644

--- a/setup.files/pdo_ext/advantage_statement.c

+++ b/setup.files/pdo_ext/advantage_statement.c

@@ -49,8 +49,8 @@ typedef unsigned long long uint64_t;

#include "php.h"

#include "php_ini.h"

#include "ext/standard/info.h"

-#include "pdo/php_pdo.h"

-#include "pdo/php_pdo_driver.h"

+#include "ext/pdo/php_pdo.h"

+#include "ext/pdo/php_pdo_driver.h"

#include "php_pdo_advantage.h"

#include "php_pdo_advantage_int.h"

#include "zend_exceptions.h"

diff --git a/setup.files/pdo_ext/pdo_advantage.c b/setup.files/pdo_ext/pdo_advantage.c

index 12d06f3..8a10f6e 100644

--- a/setup.files/pdo_ext/pdo_advantage.c

+++ b/setup.files/pdo_ext/pdo_advantage.c

@@ -26,8 +26,8 @@

#include "php.h"

#include "php_ini.h"

#include "ext/standard/info.h"

-#include "pdo/php_pdo.h"

-#include "pdo/php_pdo_driver.h"

+#include "ext/pdo/php_pdo.h"

+#include "ext/pdo/php_pdo_driver.h"

#include "php_pdo_advantage.h"

#include "php_pdo_advantage_int.h"

#include "php_pdo_advantage_ver.h"

diff --git a/setup.pl b/setup.pl

index d28f792..66f25e6 100644

--- a/setup.pl

+++ b/setup.pl

@@ -1331,11 +1331,11 @@ sub Get32BitLibDir

    # if the architecture is 64-bit, and /usr/lib32 exists, return that directory

    if ( $architecture =~ "x86_64" )

      {

-      if ( ( -e "/usr/lib32/" ) &&

+      if ( ( -e "/usr/lib64/" ) &&

            ( ( -e "/etc/debian_version" ) ||

              ( -e "/etc/debian_release" ) ) )

          {

-        return "/usr/lib32/";

+        return "/usr/lib64/";

          }

      else

          {

--

1.9.5.msysgit.0

PHP Driver libadsodbc.so.11.10.0.22 - Timeout Tries

$
0
0

My Question:

 

Why the driver tries 10 times to establish the connection to 192.168.78.36 (Ads-Server IP)?

Why is there a timeout?

 

These connection attempts cost 10 seconds and are in a realtime-process not good .

 

 

$>strace /opt/php/5.6.10/bin/php db-ads.php56

 

...

munmap(0x7ffb041e7000, 4096)            = 0

socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4

bind(4, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.1.1")}, 16) = 0

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

sendto(4, "ADS ECHO", 8, 0, {sa_family=AF_INET, sin_port=htons(2000), sin_addr=inet_addr("192.168.78.36")}, 16) = -1 EINVAL (Invalid argument)

poll([{fd=4, events=POLLIN|POLLPRI}], 1, 1000) = 0 (Timeout)

close(4)

...

 

thx

Re: PHP Driver libadsodbc.so.11.10.0.22 - Timeout Tries

$
0
0

I'm not sure I quite understand the question. 

 

Are you getting an error that results in the retry?

 

Or is it after the "10 seconds" an error is being returned and the question is why does it take so long to return the error?

 

What is your PHP connection string?

 

Is a Connection cache being used?

 

 

 

 

Perhaps with the additional information we may be able to help suggest some changes to you, but I'm not sure the "community" would be able to answer any internal specific questions about the driver.  An official support incident may be more appropriate

Re: ADS Roadmap

$
0
0

Hello, Mike,

 

Just to be clear - the roadmap seems to indicate that the current build of ADS supports RAD Studio XE8 with its current component set. But the files available for download state that the available builds support only XE7.

 

Does the currently available builds of ADS "officially" support XE8 or not?

 

Thanks for a clarification.

 

Howard Fox

Re: ADS Roadmap

$
0
0

Hi Mike,

 

I assume that the the next SP is going to appear by next Tuesday?


Re: ADS Roadmap

$
0
0

Howard - the Today column indicates both SP22 (available) and SP24 (not out yet).  I've confirmed with Engineering that XE8 is not part of SP22 but will be part of SP24 targeted for release in July.  Hope that clears things up.

Regards, Mike

 

 


Re: ADS Roadmap

$
0
0

I've checked with Engineering - I've been told it will likely be around mid-July timeframe.

Regards, Mike


Re: ADS Roadmap

$
0
0

Thanks for the update Mike.


We've been holding off upgrading to XE8 because without our database support, it would have been kind of pointless ;-)

 

Could you also ask Engineering another question? 

 

Disclaimer- I know XE9 is on the roadmap for future.  And until it is actually released you can't provide dates.   

 

It appears to us in the community that there seems to be a new breath of life in ADS (which is fantastic, customers are ecstatic) so I am wanting to know if HOPEFULLY there will be quicker support for XE9 when it is released? 

 

If sp24 hits in mid-July, that's about 3 months after the release of XE8.  Embarcadero is steadily releasing every 6 months.  Now that things seem to be on track with ADS getting a new lease on life will there hopefully be more frequent updates when new software releases take place? 

 

I'm sure others have the same question related to to Visual Studio.


Thanks,

 

Chris

Re: ADS Roadmap

$
0
0

Chris - I'll pass on your feedback to Engineering re quicker support for XE# when they came out.  You're right though - I can't provide dates.  ;-)

Mike


Re: ADS Roadmap

$
0
0

Yep, I believe the penalty for providing dates before the product you need to support is released involves a large person-sized duffle bag, a collection of wooden bats, and some angry Engineers.

Viewing all 997 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>