Re: [firebird-support] FB3.0.5 - freeze during shutdown

2020-01-25 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
icq:199 118 333 skype:skopaliks e-mail:skopa...@elektlabs.cz http://www.elektlabs.cz On 25.01.20 18:43, Slavomir Skopalik skopa...@elektlabs.cz [firebird-support] wrote: Hi all, I have a dump file for this situations (160MB): RESTOREFB3    Sat Jan 25 18:33:19 2020     Shutting down the server

[firebird-support] FB3.0.5 - freeze during shutdown

2020-01-25 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi all, I have a dump file for this situations (160MB): RESTOREFB3    Sat Jan 25 18:33:19 2020     Shutting down the server with 11 active connection(s) to 1 database(s), 0 active service(s) RESTOREFB3    Sat Jan 25 18:33:29 2020     JProvider::shutdown:     Firebird shutdown is still in

Re: [firebird-support] Re: Is this a bug in ROUND function?

2019-08-29 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
For exact numbers you have to use exact numeric types. Double is float point type with all advantages and disadvantages. Look here https://en.wikipedia.org/wiki/Double-precision_floating-point_format Just for fun, try this: 1e20 + 1 + 1 - 1e20 + 1 Slavek Ing. Slavomir Skopalik Executive

Re: [firebird-support] Firebird cluster

2018-08-22 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
On 20.8.2018 23:28, Dimitry Sibiryakov s...@ibphoenix.com [firebird-support] wrote: > 20.08.2018 22:07, Slavomir Skopalik skopa...@elektlabs.cz [firebird-support] > wrote: >> Any other solution that will work? > It depends on what kind of cluster and for what purpose is needed. Simple

[firebird-support] Firebird cluster

2018-08-20 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi all, customers asking for clustering solution. I found this one: https://www.evidian.com/products/high-availability-software-for-application-clustering/firebird-high-availability-synchronous-replication-failover/ Do somebody experience with that, any reason to do not used? Any other

Re: [firebird-support] Automation tools?

2017-08-15 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi, we are using combination of bat and SQL. In bat file we are generating SQL and vice versa. Some example: @SET sql=s1.sql @ECHO SET TERM ^^; >%sql% @ECHO EXECUTE BLOCK AS>>%sql% @ECHO DECLARE VARIABLE s VARCHAR(1000);>>%sql% @ECHO BEGIN>>%sql% @ECHO s = 'CREATE USER %3 PASSWORD

Re: [firebird-support] Always use BIGINT?

2017-07-02 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi, I test general impact of compression and I found that for FB 2.5 and FB3 is critical to take another DB page from cache. Also any cache miss significantly reduce performance. With current compression and if we have a number lest say 0x3337 stored in three columns. BIGINT it will be

Re: [firebird-support] Always use BIGINT?

2017-06-30 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi, advantage of SmallInt vs INT vs BIGINT is data density (keep record shortest as possible). If you have one column, it is irrelevant, if you have ten columns, you will see speed improvement. Slavek Ing. Slavomir Skopalik Executive Head Elekt Labs s.r.o. Collection and evaluation of

Re: [firebird-support] Improve remote query speed on Windows Server 2012 VPS

2017-04-14 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
And did you update client library as well? please run this sql in isql and post here result: select * from Mon$Attachments and for sure select rdb$get_context('SYSTEM','ENGINE_VERSION') from rdb$database Slavek Ing. Slavomir Skopalik Executive Head Elekt Labs s.r.o. Collection and evaluation

Re: [firebird-support] Basic Start

2017-03-15 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi, I never used embedded, but seems to be, that you using wrong dll name. Try to read this topic: https://www.codeproject.com/Articles/9445/Embedded-Firebird-Full-Featured-Embedded-Database

Re: [firebird-support] Basic Start

2017-03-14 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Yes, look here: public static void CreateDatabase(string connectionString, int pageSize = 4096, bool forcedWrites = true, bool overwrite = false) { CreateDatabaseImpl(connectionString, pageSize, forcedWrites, overwrite); } As connection string you can use file name. Look for example here:

Re: [firebird-support] internal Firebird consistency check (applied differences will not fit in record (177), file: sqz.cpp line: 127)

2017-02-20 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Try 3.0.2, probably another situation related to http://tracker.firebirdsql.org/browse/CORE-5392 Slavek Ing. Slavomir Skopalik Executive Head Elekt Labs s.r.o. Collection and evaluation of data from machines and laboratories by means of system MASA (http://www.elektlabs.cz/m2demo)

Re: [firebird-support] Re: How to get a list of columns from another select

2017-01-25 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
It is depend on language and frame work that you using. In delphi: if not result.Prepared then result.Prepare; // Check params consitency if Length(Params)>0 then begin if result.Params.Count<>Length(Params) then Slavek Ing. Slavomir Skopalik Executive Head Elekt Labs

Re: [firebird-support] Re: How to get a list of columns from another select

2017-01-25 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi, Dimitri is right. If you just prepare statement (ANYONE) server will return record structure including names and data types. Also, you task is not problem to solve without prepare. Just at first iteration read the names and put to output before data. Slavek Ing. Slavomir Skopalik

Re: [firebird-support] Firebird : join table from two database

2017-01-12 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi, look at my example that I'm using for preparing two DB fou join into one big. My be it will help you. -- Prepare data table for replication -- Ensure that data in both databases are unique -- No overlap during replication will occur CREATE OR ALTER PROCEDURE Repl$SynchronizeDataTable(

Re: [firebird-support] info

2017-01-05 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
We have another tables that contain definition of each relation and each field. Data for this tables are automatically generated from case tool like this: EXECUTE BLOCK AS BEGIN --definition fields for entity: USERFUNCTIONS IF (EXISTS(SELECT 1 FROM rdb$relations where rdb$relation_name =

Re: [firebird-support] Re: Firebird 3.0 - invalid transaction handle (expecting explicit transaction start).

2016-06-17 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi Roland, in some cases we did this to log all transaction starts commits (see script below). Set GenMonTransactions to value less 1 will activate log function. You can simply to change to log transaction commits or rollbacks as well. And in application you can easy log transaction id

Re: [firebird-support] Replication SW experience

2015-11-29 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi Helen, sorry for question too specific to ibReplicator. I still looking for replication SW, because all SW mentioned here (ibReplicator, symmetricds, CopyCat) has some issues. Or experience with writing it by self from someone who already did it. Thank you for understanding. Slavek Ing.

Re: [firebird-support] Replication SW experience

2015-11-28 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Thank you, I was try and I found few problems. 1. I failed to set up replication on Db Event (in manual is mentioned). Any idea how to do with IBreplicator? 2. I failed to transfer all table operation. Only last values are transfered. This fail, if is circular link between records like record A

Re: ODP: Re: [firebird-support] Replication SW experience

2015-11-26 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
te is older > regards,Karol Bieniaszewski > > > Pozdrawiam > > ---- Oryginalna wiadomość > Od: "Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]" > <firebird-support@yahoogroups.com> > Data: 26.11.2015 12:46 (GMT+01:00) >

[firebird-support] Replication SW experience

2015-11-25 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi all, we are preparing new project with bidirectional replication. Customer idea is to have master database in head quoter and slave databases on production plant (to solve network performance and availability issues). Witch replication SW you can recommend for this bidirectional replication?

[firebird-support] What is recommended modeling tools for Firebird

2015-06-16 Thread Slavomir Skopalik skopa...@elektlabs.cz [firebird-support]
Hi All, we are looking for new modeling tool that will replace our unsupported CaseStudio2. I was made quick look at http://www.modelsphere.org/ and http://www.toad-data-modeler.com/enu/default.aspx but I not sure that is right choice. We needs: -model diagram with sub models -user scripting