Re: [firebird-support] Re: order by takes too long

2020-03-02 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Hello, > > ok, I guess I need to create a DESC index on TIMESTAMP of MY_TABLE. > I could verify this speeds it up from 1 minute to 1 second. > This works as long as MY_TABLE is a real table. > But now MY_TABLE is actually a View. > > Can I created a index on a view with firebird? No, but an

Re: [firebird-support] Unique Constraints and NULLs

2019-07-12 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello, > Are NULLs considered values for unique constraints on a table? No. NULL is not evaluated as part of a unique constraint. What you could do is to declare your column as NOT NULL and provide a DEFAULT value/clause for your column, using a value which your application interprets as

Re: [firebird-support] Page cache size in Firebird 3.0.4

2019-06-03 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> I am running SS FB 3.0.4 x64 in Windows 10 x64 with 16GB RAM. > > Database properties > > ODS Version 12 > Page size 16384 > Pages 437728 > Size on disk 6.68GB > Page buffers 10240 > Read only false > > Settings > > Dialect 3 > Default character set NONE > Sweep

Re: [firebird-support] Re: Issue with large table in FB 1.5 and 2.5

2019-05-31 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi Mark, > On 30-5-2019 16:14, Thomas Steinmaurer t...@iblogmanager.com > [firebird-support] wrote: >>> Also one further question  Do later versions of Firebird (ie. 3 or >>> 4) have any performance increase for cooperative garbage collection at >>> all?  Woul

Re: [firebird-support] Re: Issue with large table in FB 1.5 and 2.5

2019-05-30 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Also one further question  Do later versions of Firebird (ie. 3 or > 4) have any performance increase for cooperative garbage collection at > all?  Would I expect to see any performance improvement by any newer > version, or different server implementation here? Likely TRUNCATE TABLE ...

Re: [firebird-support] Recursive Relationship on Dictionary Table

2019-05-23 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > Hi, > > > Is this list allowed to post SQL queries ou links? Anyway if someone is > interested and can help me, I did a recent post on SO which has been a > great challenge to me, although it seems simple at first sight: > > >

Re: [firebird-support] FB 2.1 transaction question

2019-05-09 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> I have a program that uses Firebird 2.1. Most installation use the > embedded version so I prefer to stick with 2.1 since it does all I need. > > I have a question about transactions: if I start a transaction, I add or > modify some data, then the program gets an exception and it crashes, >

Re: [firebird-support] Get client-IP-Adress

2019-03-04 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello Josef, > Hi, > > > with our client software installed on a terminal server we like to get the > IP-Adress of the "real" client-computer connected to the database (the one > the > user sits in front of). > > > With Mon$Remote_Address from Mon$Attachments (using FB 2.5.8) we get the >

Re: [firebird-support] Trailing spaces behaviour

2018-03-20 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Alex, > Hi All, > > I have found strange behaviour concerning trailing spaces - following > strings are equal: > > 'ABC   ' = 'ABC' > > You can try the following query: > > /select/ > /  case when 'ABC   ' = 'ABC' then 1 else 0 end,/ > /  case when cast('ABC   ' as varchar(10)) = cast('ABC'

Re: AW: [firebird-support] Re: Trace not working

2018-03-19 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
>> Hmm... what do you mean ? > >> There should be almost instant message about trace started with trace ID, >> but then messages will appear only when some events happens in database. > > Well, I started the trace and the system prompted the message about trace > start > its ID. But there was

Re: [firebird-support] Moving DB from 32 bits to 64 bits

2017-11-14 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> I am only using some functions from the ib_udf.dll which is installed in > the \Firebird\Firebird_3_0\UDF  and have built a little functions > calling functions of that dll there is no problem I suppose ? If you are talking about a PSQL-based stored function (new feature in 3.0), then you

Re: [firebird-support] Firing event when deleting in MON$ATTACHMENTS

2017-10-23 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > Yes in my delphi application I registered the event name > I tried POST_EVENT in a stored procedure but without DELETE FROM > MON$ATTACHMENTS statement > sometimes it is fired sometimes not. I didn't understand why > > > When I write the event name like this : > > 1-POST_EVENT

Re: [firebird-support] Firing event when deleting in MON$ATTACHMENTS

2017-10-23 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello, > > I am deleting user connected with: > DELETE FROM MON$ATTACHMENTS WHERE MON$ATTACHMENT_ID = :ID_CONNECTION; > > I need to use POST_EVENT in order to notify user that he has been disconnected > but don't found a trigger for MON$ATTACHMENTS to do it. Can you please help > me > ? >

Re: [firebird-support] Background auditing of Firebird database transactions

2017-09-11 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hi, > Hi fellow Firebird users, > > Background: > > * Current Firebird version is 2.5 > > * Windows OS could be anything... > > * We are using C# with FirebirdClient ADO.NET Data Provider > > * The software we write extracts and monitors the Firebird database

Re: [firebird-support] Restore performance (gbak service_mgr) whilst activating indices

2017-09-08 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello Group, > > Sorry if this double posts, I received an error when Sending. > > I was provided with a largish (~27GB) Firebird 2.5 backup file (gbak) > yesterday. I have been restoring this on Windows 2012R2 running 2.5.6 Classic > using gbak with the -service_mgr switch. This particular VM

Re: [firebird-support] FreeAdhocUDF and Firebird 3 not working

2017-09-07 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > I have been using Firebird 2.5.7 64 bit on Windows 7 for sometime, also > using FreeAdhocUDF. I just installed Firebird 3.0.2.32703 64 bit and now > FreeAdhocUDF is no longer loading. > > I see that there is a support ticket in place for this exact bug, but so > far no resolution. This

Re: [firebird-support] Re: Sort error No free space found in temporary...

2017-09-04 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
single > server process. > > Regards, > Alexey Kovyazin > IBSurgeon > www.ib-aid.com > > > > > On 02.09.2017 20:46, Thomas Steinmaurer t...@iblogmanager.com > [firebird-support] wrote: >> >> Hi Thomas, >> >> > From what i can

Re: [firebird-support] Re: Sort error No free space found in temporary...

2017-09-02 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi Thomas, > From what i can read on the internet TempCacheLimit, is per server > process, and not per attachment. In SuperServer architecture, right, but if I remember correctly, you have mentioned in one of your first posts that you are using SuperClassic, right? >

Re: [firebird-support] Re: Sort error No free space found in temporary...

2017-09-02 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > Thanks for the advise Thomas I will increase the value. > After we changed TempCacheLimit to 567108864, we saw the problem once > under heavy load - for a very sourt perio this time. Increased TempCacheLimit value as a side-effect of serving more temp stuff through RAM instead of

Re: [firebird-support] Re: Sort error No free space found in temporary...

2017-09-01 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Hey Thomas > Thanks for the answer. The command output is this: > Max cpu time              unlimited            unlimited            seconds > Max file size             unlimited            unlimited            bytes > Max data size             unlimited            unlimited            bytes >

Re: [firebird-support] Sort error No free space found in temporary...

2017-09-01 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello Thomas, > Hey > The other day we had a major slowdown on a database - one server with a single > database. Some of our queries received this error: > Sort error No free space found in temporary directories operating system > directive open failed > All queries that received this error used

Re: [firebird-support] nbackup

2017-06-01 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello, > Hello, > > Is there a way to ask a database if someone is performing a nbackup? > > If it's in "the physical backup mode". > > I'm always paranoid if there is a power failure during a backup and it > gets stuck in that mode and I would like it to recover from such situation. > We

Re: [firebird-support] Table Size

2017-05-13 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Ed, FB TraceManager parses gstat output and give you table/index size (MB), percentage of total database size etc. but actually does not have charting in that area. Check out screens here: http://www.upscene.com/fb_tracemanager/media * Table Stats Monitoring, and * Index Stats Monitoring --

Re: [firebird-support] reset sysdba password without loose existing users

2017-03-27 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hi all, > > I need more help to archive this task. > > > I just copied the file flembed.dll and others in my directory(bin) > now i can connect to my database, with gsec or isql > > > but when i try to change de sysdba password in commande line, i got this > message : > > > SQL> alter

Re: [firebird-support] How non-SYSDBA user can see connections by other users?

2016-10-20 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> SYSDBA users can see other connected users using monitoring tables but is it > possible to implement such feature for non-SYSDBA users? Are there > event/triggers that act uppon connecting and disconnecting and which can > insert > usual database records. Triggers no MON$ tables are not

Re: [firebird-support] change /tmp/firebird lock dir default value

2016-10-13 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hi, > > > I’am running multiples instances of Firebird CS 2.5 x64. But all instances > uses the same “lock dir”. How I can change the "lock dir” default value > "/tmp/firebird”? > I will appreciate any help. To my understanding, this can get dangerous when you start to separate shared

Re: AW: [firebird-support] High number of NULL attachments

2016-10-04 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> fbclient.dll is bundled with the client application. If I remember correctly, you need a client library 2.1+ to get that information popping up in MON$ATTACHMENTS -- With regards, Thomas Steinmaurer http://www.upscene.com Professional Tools and Services for Firebird FB TraceManager, IB

Re: [firebird-support] Can merge return AffecterRows?

2016-09-28 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> hi,I am Nobuo Watanabe. > I use FireBird 2.5.6 and FireBird2.5.3. > > Firebird2.5Language Reference about 'merge command' says: > Currently, the ROW_COUNT variable returns the value 1, even if more than one > record is modified or inserted. For details and progress, refer to Tracker > ticket

Re: [firebird-support] Firebird 3 performances

2016-09-02 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello, > > > I am testing Firebird 3 in order to upgrade an application from Firebird 2.5 > and I would like to know if there are known cases of Firebird 3 performances > that are worse than Firebird 2.5. During my tests, it seems that bulk > insertions take longer in Firebird 3.

Re: [firebird-support] After update trigger: the same values for new.somefiled and old.somefield

2016-08-28 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello Sean, >>> For some reason they both have the new value and I can't figure out why. >>> If I didn't misread all the articles, I've found, completely, then >>> they should be different, shouldn't they? >>> >>> >>> I'm using Firebird 2.5.2.26539. >> >> Any chance that another trigger is

Re: [firebird-support] After update trigger: the same values for new.somefiled and old.somefield

2016-08-27 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > shouldn't the values of new.somefield and old.somefield be different in > an after update trigger, when the value of that field has definitely > changed? > > > For some reason they both have the new value and I can't figure out why. > If I didn't misread all the articles, I've found,

Re: [firebird-support] Transaction in limbo

2016-07-19 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hi > > I have a database, which have had to instances where there have been > Transactions in limbo. > I know how to fix this. > > I am on the other hand unsure why they appear. > What can cause this? > What should/could I check, so I can eliminate this from occuring. Something went wrong

Re: [firebird-support] FB 3 - Adding anew User

2016-06-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello Fabian, > Sorted after reading "Initializing the Security Database" from > http://www.firebirdsql.org/file/documentation/release_notes/Firebird-3.0.0-ReleaseNotes.pdf > at page 116. I think there is a small error on the documentation, where it > says > " isql -user sysdba employee", the

Re: [firebird-support] Re: Max RAM for Database Cache in SS FB 3.0 64bit is to small?

2016-06-02 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support] a écrit : >> trsk...@yahoo.com [firebird-support] schrieb am 02.06.2016 06:44: >> >>> Where I can download v3.0.1 ? >> >> 3.0.1 hasn't been released yet, but snapshot builds are available he

Re: [firebird-support] Re: Max RAM for Database Cache in SS FB 3.0 64bit is to small?

2016-06-02 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
trsk...@yahoo.com [firebird-support] schrieb am 02.06.2016 06:44: > Where I can download v3.0.1 ? 3.0.1 hasn't been released yet, but snapshot builds are available here: http://www.firebirdsql.org/en/snapshot-builds/ -- With regards, Thomas Steinmaurer http://www.upscene.com Professional

Re: [firebird-support] Re: FB 3.0, got problem when add field to Table with existing data

2016-06-02 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
>> What value must it have? Add a default clause to this statement. Or add > > the field as nullable, populate with data and then alter to NOT NULL. > > I have tried to add field as nullable, then tried to alter to not null. > > UPDATE TMP_RPT SET ID1 = '5'; Commit; > (This statement is OK) >

Re: [firebird-support] download link for fb 3 embedded?

2016-05-25 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> 25.05.2016 12:23, korkl...@yahoo.it [firebird-support] wrote: >> where are the embedded packages for fb3? > > Not exists anymore. Read Release Notes about changes in server architecture. While this is true, that people should first read the release notes, IMHO we should make the transition

Re: [firebird-support] database unavailable

2016-05-12 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello Bill, > Used IB 10 years ago. Porting an SQL Anywhere app to FB 2.5. Going well > until I try to connect a client to the database - "database unavailable." I > have shared the DB folder on my Windows 7 machine, can browse to it from a > client machine (Win 10) and see Full Control

Re: [firebird-support] IN OUT PARAMETERS

2016-05-12 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> In firebird is there an option to declare a parameter in a stored procedure > as an IN/OUT. (like ORACLE server has) > http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/parameter_declaration. > htm > > > > > > I want to send a parameter to a procedure, do some operation with it, and >

Re: [firebird-support] Why does "IF (NOT(EXISTS(SELECT 1..." not work as expected?

2016-05-11 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello 'stwizard', > > Thursday, May 12, 2016, 12:46:25 AM, you wrote: > >> Here is my simple Stored Procedure. It simply looks for any >> address in the ADDRESS table that starts with ‘0 ‘ as in “0 SE >> ADAMS ST” and COUNT(*) how many time it might have been used in >> PER_ADDRESS and if

Re: [firebird-support] Simply bad, new is not always better. FB3 and ODBC

2016-05-11 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
[snip] >> Also the post_event behaves different than the old firebird, the >> never changed mfc (c++) application gets it sometimes, in many cases >> not. Only the version of firebird is changed. > > Post_event was not changed in Firebird 3. Are you sure that your > customer's applications

Re: [firebird-support] EF6 - Why extra index created?

2016-05-09 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> I try the ordinary EF CodeFirst test with latest packages for new FB3. > > > >targetFramework="net452" /> >targetFramework="net452" /> > > > - > > public class Blog > { > public int id{ get; set; } > public string name { get; set;

Re: [firebird-support] Fast Slow Stored procedure

2016-05-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi Jack, > Hi Thomas > > I did a trace as you suggested. > The slow SP shows these 3 consecutive statements showing a 20 min gap of > no activity > > 2016-05-04T14:25:30.5020 (3268:061B51F8) EXECUTE_PROCEDURE_START > C:\MAGUSDB\FBDB\SAMPLE1.FDB (ATT_45, SYSDBA:NONE, NONE, TCPv4:127.0.0.1) >

Re: [firebird-support] Fast Slow Stored procedure

2016-05-03 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> What are the possible reason for a SP that normally runs in approx 20 seconds > then Occasionally takes 15 minutes, (or a method of trying to find the cause > of > the problem). > > > > Firebird Details > Server Version: WI-V2.5.5.26952 Firebird 2.5 32 bit Superserver, > CpuAffinityMask = 1

Re: [firebird-support] Firebird 3.0 and GDS32.DLL

2016-05-02 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello Michael, > Hi > > I have succesfully installed Firebird 3.0 on my home computer. > I can use our program. We have 3 main programs. Two are using IBX component > and > the last uses IBObjects. > On my local mashine it runs smoothly. > > I have then installed Firebird 3.0 alongside

Re: [firebird-support] Re: Migrating from Super Classic FB 2.5.2 to SuperServer FB 3.0 could have a problems

2016-05-01 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > This is the Query plan from SS FB 3.0 > > PLAN (GET_STCK NATURAL) > > and here is the Query plan from SC FB 2.5.2 > > PLAN (G_T3 NATURAL)(M_TT INDEX (RDB$PRIMARY2))(A INDEX (IDX_M_GD3))(A > INDEX (IDX_M_GD3))SORT (JOIN (B INDEX (TM_D), A INDEX (T2_T1), C INDEX > (RDB$PRIMARY25), D INDEX

Re: [firebird-support] SELECT WITH LOCK, WAIT transaction, deadlock

2016-04-29 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hi, > 2016. 04. 28. 21:22 keltezéssel, Ann Harrison aharri...@ibphoenix.com > [firebird-support] írta: >> Okay... What's the requirement that keeps you from using generators? > > I need number generators which give back sequence numbers without > skipping and repeating. But don't know how

Re: [firebird-support] SELECT WITH LOCK, WAIT transaction, deadlock

2016-04-28 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> 2016. 04. 28. 14:55 keltezéssel, Dimitry Sibiryakov s...@ibphoenix.com > [firebird-support] írta: >> 28.04.2016 13:41, Gabor Boros gaborbo...@yahoo.com [firebird-support] wrote: >>> The message is: >>> deadlock >>> update conflicts with concurrent update >>> concurrent transaction number is ...

Re: [firebird-support] FB 3.0, how to get IDENTITY of last inserted row

2016-04-27 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello Zoran, > > In FB 2.5 I am using > > insert into MyTable (col1, col2) values(val1, val2) returning Id > > where Id is autoinc column (sequence generator + before insert trigger). > > How do I do it in FB 3.0? It doesn’t like “returning Id”. It displays > this error: SQLDA error. Wrong number

Re: [firebird-support] conect flamerobin with Firebird3

2016-04-26 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Create a firebird 3 bd in another user who is not sysdba > and create a role called sysdba without permission > and when I try to connect from flamerobin you give me the following error > message > > *** IBPP::SQLException *** > Context: Database::Connect > Message: isc_attach_database failed >

Re: [firebird-support] How to get FB 3.0 x64 work as embeded version?

2016-04-26 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello James, > After FB 3.0 released, I am trying to immigrate my DB application to this new > version. > > > My DB app is running with embeded version before, so now I am still trying to > get it work under embeded mode. > I tried FB 3.0 x32, it works as embedded version well after I created a

Re: [firebird-support] Backup with admin rights is prohibited?

2016-04-25 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> 2016. 04. 22. 15:57 keltezéssel, Gabor Boros gaborbo...@yahoo.com > [firebird-support] írta: >> 2016. 04. 22. 15:37 keltezéssel, Dimitry Sibiryakov s...@ibphoenix.com >> [firebird-support] írta: >>> 22.04.2016 15:34, Gabor Boros gaborbo...@yahoo.com [firebird-support] wrote: Now tried to

Re: [firebird-support] Database performance slowdown

2016-04-20 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi Neil, > We are explicitly starting and committing our own transactions rather than > relying on any auto-commit behaviour. > > We are running Classic (sorry I should have told you that already). > > I'll get our devs to checkout the MON$ tables and see what additional info > can be gleaned

Re: [firebird-support] Installing Firebird 3.0 alongside Firebird 2.5 and 2.1

2016-04-20 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Michael, > >> I have a testserver currently running both Firebird 2.1 and 2.5. >> I need this to support and test various situations with different firebird >> versions. >> >> Now I would like to install Firebird 3.0 manually as well, so I can have 2.1, >> 2.5 and 3.0 on the same server. >>

Re: [firebird-support] Installing Firebird 3.0 alongside Firebird 2.5 and 2.1

2016-04-20 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Michael, > I have a testserver currently running both Firebird 2.1 and 2.5. > I need this to support and test various situations with different firebird > versions. > > Now I would like to install Firebird 3.0 manually as well, so I can have 2.1, > 2.5 and 3.0 on the same server. > 2.1 listens

Re: [firebird-support] Database performance slowdown

2016-04-18 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Neil, > We are investigating an issue with one of our systems where it gradually > slows down during the course of a day. > > We have our epos system that we write ourselves using Delphi XE2 and > the IBX components. How does your transaction model/layer look like in your client application

Re: [firebird-support] Re: Connecting to Firebird database from two or more pc with same username

2016-04-18 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> On Mon, Apr 18, 2016 at 10:03 AM, 'Thomas Steinmaurer' t...@iblogmanager.com > [firebird-support] <firebird-support@yahoogroups.com> wrote: > >> > On Thu, 14 Apr 2016 12:28:41 +0200 (CEST), 'Thomas Steinmaurer' >> > t...@iblogmanager.com [firebird-support]

Re: [firebird-support] Re: Connecting to Firebird database from two or more pc with same username

2016-04-18 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> On Thu, 14 Apr 2016 12:28:41 +0200 (CEST), 'Thomas Steinmaurer' > t...@iblogmanager.com [firebird-support] <firebird-support@yahoogroups.com> > wrote: >> >> >> Yep. If one want to have some sort of client login/user available on >> the server

Re: AW: [firebird-support] How to interprete gstat-results

2016-04-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hi Olaf, > Database "D:\INTERBASE\IFLS.GDB" > > Database header page information: > >Flags 0 > >Generation 2939162 > >System Change Number0 > >Page size 4096 You might consider increasing to 8K, especially when

Re: [firebird-support] How to interprete gstat-results

2016-04-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello @ll, > > > > we are using firebird 3.0 RC2 and have some questions about open > transactions. (Clients connect over odbc) The gstat output gives 7 > transactions between the oldest and the current transaction, if we look into > the monitoring table, we see only 10 transactions. The

Re: [firebird-support] Connecting to Firebird database from two or more pc with same username

2016-04-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> On 14/04/2016 08:26, 'Thomas Steinmaurer' t...@iblogmanager.com > [firebird-support] wrote: >> >> With a single user you basically can't distinguish people on the >> server side through CURRENT_USER etc. >> > We use one Firebird user for the web server, and the

Re: [firebird-support] Connecting to Firebird database from two or more pc with same username

2016-04-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello, > > Il 14/04/2016 09.26, 'Thomas Steinmaurer' t...@iblogmanager.com > [firebird-support] ha scritto: >> >> I guess you mean with the same Firebird user name? Or are you using >> Windows trusted authentication? >> > > Oops, sorry. I m

Re: [firebird-support] Connecting to Firebird database from two or more pc with same username

2016-04-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello, > If a user try to connect from two or more PC with same username, > Firebird accepts the connection but is safe without problems or is best > to avoid like the pest? I guess you mean with the same Firebird user name? Or are you using Windows trusted authentication? In general this

Re: [firebird-support] monitoring Table

2016-04-13 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hello Olaf, 'Checkmail' check_m...@satron.de [firebird-support] schrieb am 13.04.2016 14:38: > Hello, > > > > I've a problem with our database, firebird 3.0 RC2, some Clients (C++, > Microsoft Access over Firebird ODBC). There are 7 open transactions. But > in the monitoring Table, I

Re: [firebird-support] Cannot restore 32GB DB - fails at end, unusable. Any ideas please.

2016-04-12 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> There is 77GB free out of 148GB at the minute and it has restored 9GB so > far, final size ~33GB so on the surface looks adequate unless very large > temp files are created when the indexes are reactivated? Yes. This may happen, depending on the index size. Are you sure that temp space is

Re: [firebird-support] Cannot restore 32GB DB - fails at end, unusable. Any ideas please.

2016-04-12 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi! > gbak:activating and creating deferred index K_MERCURY_EMAIL > > gbak:cannot commit index K_MERCURY_EMAIL > > gbak: ERROR:operating system directive CreateFile failed Any chance that you are running out of disk where your TEMP directory is located? -- With regards, Thomas

Re: [firebird-support] [FB 2.1] Firebird engine seems to slow down on high load without utilizing hardware

2016-04-12 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hi Patrick, > Hi Thomas, nice to get a response from you. We already met in ~2010 in Linz at > your office :) > (ex. SEM GmbH, later Playmonitor GmbH) I know. XING (Big Brother) is watching you. Nice to see that you are still running with Firebird. ;-) > First, sorry for posting a mixed state

Re: [firebird-support] [FB 2.1] Firebird engine seems to slow down on high load without utilizing hardware

2016-04-12 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Thomas, >> >> I doubt, Firebird is IO-bound (limited by disk IO). >> > > Sorry, I don't understand your comment, can you please clarify what you > mean? I think, disk IO isn't the limiting factor in that environment. -- With regards, Thomas Steinmaurer http://www.upscene.com Professional

Re: [firebird-support] [FB 2.1] Firebird engine seems to slow down on high load without utilizing hardware

2016-04-12 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hi Patrick, > > If you say that problem occurred recently, I would suggest you to check > SAN disks health. > > However, these values > >>Average system IOPS under load read: 100 > >Average system IOPS under load write: 550 > >Backup Restore IOPS read: 1700 > >Backup Restore IOPS write: 250

Re: [firebird-support] [FB 2.1] Firebird engine seems to slow down on high load without utilizing hardware

2016-04-11 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Patrick, > recently we had some strange performance issues with our Firebird DB server. > > On high load, our server started to slow down. Select and update SQL > query times did go up by more than 500% on average, > > but reaching unreasonable high execution times at worst case. (several >

Re: [firebird-support] How can I prevent that my database can be opened with another security.fdb.

2016-04-11 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Dear all, > If blocking SYSDBA from connecting the database is the goal, than ones can > create a role with the name SYSDBA.Is there any minus about this? AFAIR, this needs to be done with a direct system table insertion in RDB$ROLES with 2.5 and earlier. I don't know if this has changed in

Re: [firebird-support] How can I prevent that my database can be opened with another security.fdb.

2016-04-11 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hi, > Dear all, > Though I don't have the same question as Roland, information below by Virna > Constantin (costel...@yahoo.com) is very useful.Thanks every one. > Regards,Tjioe > > Suggestion > event studies "on connect" > 1. an application with minimum rights connects to the database > 1 '. in 

Re: !!***SPAM***!! Re: [firebird-support] Firebird V3RC2 Primary Key question

2016-04-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Thanks for instructions. It does work. > > > > Is there a way to use created case insensitive collation as database wide > default? It would be easier for me not to specify collation for each and > every index definition. http://www.firebirdsql.org/refdocs/langrefupd25-ddl-charset.html This

Re: [firebird-support] Find rarely used or unused indices

2016-04-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > What is the best way to go about to find out about this? > > I have several projects that are using the FB database and I would like > to cleanup and remove all the indices that are just taking up space and > thus indirectly reduces performance? It is not that easy to clearly define the

Re: [firebird-support] Disable cache at all - future question

2016-03-25 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Hi, > is this possible to disable cache at all? > I mean that all go from and to “HDD” without RAM between. Checkout the FileSystemCacheThreshold configuration parameter in firebird.conf. Set it to 0 and also use a small page buffers value. Another area of RAM usage is for temporary data used

Re: [firebird-support] Temporarily disable constraints

2016-03-21 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hi, > Is it possible to temporarily disable a FK constraint? I have found a > couple of requests for this feature dated 2009 but these still show as > open. Did this functionality ever get implemented ? No. As Alan said, currently the only way is to dropping and re-creating. -- With

Re: [firebird-support] Ascending and Descending Index

2016-03-15 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hi. > > Is it possible to create an index like > > CREATE INDEX MYINDEX_IDX1 > ON MYTABLE (COLUMN1 ASCENDING, COLUMN2 DESCENDING ) No. You can't define ordering per index segment. -- With regards, Thomas Steinmaurer http://www.upscene.com Professional Tools and Services for Firebird FB

Re: [firebird-support] How write a query with a progressive sum field

2016-03-07 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Il 07/03/2016 11.32, Dimitry Sibiryakov s...@ibphoenix.com > [firebird-support] ha scritto: >> sum(saldo) over (order by data) > > Thank You for your response but I can't do: sum(SALDO) because SALDO is > not a field of my table. > > I badly explained myself: I have a table with only this

Re: [firebird-support] How write a query with a progressive sum field

2016-03-07 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> 07.03.2016 12:55, 'Thomas Steinmaurer' t...@iblogmanager.com > [firebird-support] wrote: >> Needless to say, 3.0 is in release candidate state. Not sure if Luigi wants >> to run 3.0 in >> production yet. ;-) > > Nothing prevents him from installing of a

Re: [firebird-support] How write a query with a progressive sum field

2016-03-07 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> 07.03.2016 12:29, Luigi Siciliano luigi...@tiscalinet.it [firebird-support] > wrote: >> Ok, I understand but, "over" is unknow in firebird 2.5.5. > > Upgrade to 3.0. Needless to say, 3.0 is in release candidate state. Not sure if Luigi wants to run 3.0 in production yet. ;-) -- With

Re: [firebird-support] How to optimize queries on field state

2016-02-03 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> I have a state machine (workflow) implemented on a table a couple of > million records and growing. > I have crated an index on the "state" field. The possible states are > very few (5 to 10). Obviously selectivity index is terrible. As I can > optimize the query? Hard to say without seeing an

Re: [firebird-support] CPU Affinity

2016-01-19 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
Hi! > Dear Friends. > > FirebirdSQL: 2.5.5 64bits > Operating System: Windows 2008 R2 Enterprise 64bits > Server: Dell Poweredge R620 > 32GB > 2 processors E5-2609 2.40 GHz >

Re: [firebird-support] When to use Firebird 3 Classic

2016-01-17 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> On 17-1-2016 00:07, Köditz, Martin martin.koed...@it-syn.de > [firebird-support] wrote: >> is there still a reason to use the Classic mode with Firebird 3? Since >> there is real SMP support with SuperServer I don’t think there can be >> advantages with ClassicServer. > > The main advantage of

Re: [firebird-support] Small Database with very very bad performance on LAN

2016-01-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Hallo, > > Il 08/01/2016 16.22, Tim Ward t...@telensa.com [firebird-support] ha scritto: >> What are your queries, query plans, query statistics? > > The queries are similar to: SELECT * FROM TABLE. > > Investigating for query plans, statistics, Buffers as suggested by > Thomas, I discovered the

Re: AW: [firebird-support] Architecture

2016-01-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Thanks. For some Years, we have had in use the superserver, but since we > have a quadcore CPU, we are using cs. > > UDFs can I replace with build in functions I guess you can imagine that you first need to do that before backing up and restoring? > Now, I have restored the database with 2.5,

Re: [firebird-support] Architecture

2016-01-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello Olaf, > Hello, > > I plan an update of firebird 2.1 cs 32 Bit with 32 Bit Server OS to > Firebird 2.5. Is there a 64 Bit OS recommend and a 64 Bit installation > of Firebird too? From an operational POV, a main factor with moving from 32-bit to 64-bit is if you are using (third-party)

Re: [firebird-support] Small Database with very very bad performance on LAN

2016-01-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello, > Hallo, > I have a small database (less 100MB) that works on Firebird 2.5.5 > SS64bit over a machine with Win7 64bit with 4GB Ram, CPU Pentium G620. > > I seems to work very well in local but with the 3 clients on LAN works > very bad. It is very very slow to open and navigate a

Re: AW: AW: AW: [firebird-support] Architecture

2016-01-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Yes, Thomas, > > it woks with 2.1. In the release notes of 2.5.X is written: > > Adding a value to a timestamp earlier than '16.11.1858 00:00:01' would throw > the error "value exceeds the range for valid timestamp". > > But where can I search 200 Tables... Read Paul's blog on using -v for the

Re: AW: AW: [firebird-support] Architecture

2016-01-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> now, the switches works fine, I had forget the Charset -fix_fss_d ISO8859_1 > > It works fine, but there is another problem to fix. Now I get the error, > that value exceeds the range for valid timestamps. How can I fix this issue? * When does that happen during the restore? * Does a backup

Re: [firebird-support] Firebird Download Malware

2016-01-04 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
>> I downloaded FB 2.5.5 from firebirdsql and my Microsoft Essentials >> detected it as a malware. > > I am facing the same problem. > The following file is affected: > http://sourceforge.net/projects/firebird/files/firebird-win64/2.5.5-Release/Firebird-2.5.5.26952_0_x64.exe/download > > This

[firebird-support] Dialect 1 vs. 3: DATE to VARCHAR CAST results in different date/time format

2015-12-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
Hello, Executing the following in both, dialect 1 and 3: select cast(current_timestamp as varchar(30))from rdb$database results in a string with a different date/time format. At least on Windows with Firebird 2.5 64-bit. Dialect 1: 7-DEC-2015 20:29:12.3820 Dialect 3: 2015-12-07 20:31:07.2280

Re: [firebird-support] Dialect 1 vs. 3: DATE to VARCHAR CAST results in different date/time format

2015-12-08 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> On 8-12-2015 09:52, Thomas Steinmaurer t...@iblogmanager.com > [firebird-support] wrote: >> Hello, >> >> Executing the following in both, dialect 1 and 3: >> >> select cast(current_timestamp as varchar(30))from rdb$database >> >> >> results i

Re: [firebird-support] Re: How much percentage of a database space is a table contents taking.

2015-11-30 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> Monday, November 30, 2015, 7:40:50 PM, Thomas Steinmaurer wrote: > >> That information is also available on the database header page, >> which can be extracted by gstat -h > > Unfortunately, that information is absent from gstat -h, hence my > advice to use isql SHOW DATABASE. I can't think why

Re: [firebird-support] Re: How much percentage of a database space is a table contents taking.

2015-11-29 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
rgilland1...@gmail.com [firebird-support] schrieb am 30.11.2015 05:10: > Thanks Helen, > > I finally taught myself how to use isql.exe in order to access this > information. > What a strange tool. > > > Then I found that both IBOConsole.exe and Upscene's Database Workbench show > this

Re: [firebird-support] How much percentage of a database space is a table contents taking.

2015-11-26 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
rgilland1...@gmail.com [firebird-support] schrieb am 27.11.2015 00:24: > Hi, > > > this is an output from ibexpert, no usage% column here either: > > > Kind Regards, > > > Robert. > > > Database "OP.FDB" > Database header page information: > Flags 0 >

Re: [firebird-support] How much percentage of a database space is a table contents taking.

2015-11-26 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hi Robert, you can do this easily with a tool such as IBExpert. Just run > Services / Database Statistics and this is the result: > > TableName SizeUsage% > CUSTOMER 11,960,320 0.295 > PARAMFIL 16,384 1 0.000 >

Re: [firebird-support] Re: Holding a connection open forever

2015-10-21 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> In response to your questions: > > What are the implications of holding a connection to the database open > forever (and running millions and millions of tiny transactions flat out > through that connection)? > > What difference would it make if we dropped the connection periodically? > > We had

Re: ODP: [firebird-support] Re: Holding a connection open forever

2015-10-21 Thread Thomas Steinmaurer t...@iblogmanager.com [firebird-support]
> you should identity this long running transaction. if you use fb2.5 than > this is simple by mon$TRANSACTIONS table MON$ tables are even in Firebird 2.1. -- With regards, Thomas Steinmaurer http://www.upscene.com/ Professional Tools and Services for Firebird FB TraceManager, IB LogManager,

Re: [firebird-support] How can I see which query within a stored procedure execution takes the longest time?

2015-10-14 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
'Louis van Alphen' lo...@nucleo.co.za [firebird-support] schrieb am 14.10.2015 10:09: > I think a tool like FBTraceManager from Thomas (Upscene) can do that for you Unfortunately not. The Trace API does not provide that level of granularity for PSQL code modules. This has been a long

Re: [firebird-support] invalid request BLR at offset 63 - functions (LTRIM,RTRIM,LRTRIM) not defined - module name/entrypoint not found

2015-10-13 Thread 'Thomas Steinmaurer' t...@iblogmanager.com [firebird-support]
> Hello Team, > > A few days back, I posted a message regarding 'Firebird BLR 623 invalid > request - LRTRIM is not defined - > module name or entrypoint could not be found' when I ran some stored > procedures that used either LTRIM > or LRTRIM functions (occasionally,though not always). > >

  1   2   >