firebird

How to calculate/validate captured data size on Wireshark

谁都会走 提交于 2019-12-24 09:41:33
问题 I want to monitor data size transferred into and out of my database. I'm using a Java client application & Firebird v2.5 database. Both are deployed locally on one machine. It turns out that Firebird does not provide any monitoring variable like "Bytes_received" or "Bytes_sent" that are available in MySQL. as discussed in Is there any way to monitor the size of data transfer In/Out of database So I set up some tools to capture the local traffic and analyse it. WireShark - to analyse the

Is there any way to monitor the size of data transfer In/Out of database

南笙酒味 提交于 2019-12-24 09:27:33
问题 I am developing a stock management system using Java Swing Framework and Firebird v2.5 My aim is to calculate the amount of data being transferred In/Out of the database for a defined interval. I've been searching online, found out that in MySQL they have these monitoring variables Like "Bytes_received" or "Bytes_sent" which can be used to get Session oriented or Global count for bytes being receive & sent respectively. Is there any better approach to calculate that? 来源: https://stackoverflow

Creating a connection with WildFly 10 and Jaybird 3.0 fails

拜拜、爱过 提交于 2019-12-24 09:12:24
问题 I have upgraded my Jaybird dependency in Wildfly 10 from Jaybird 2.2.11 to Jaybird 3.0.0-alpha-1. When I try to create a connection I now get the following stacktraces The first connection after startup (when testing in the admin console): 2016-08-27 10:50:45,354 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (External Management Request Threads -- 2) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to

DBGrid data not updated until restarting app or DB connection

天大地大妈咪最大 提交于 2019-12-24 08:48:48
问题 I am using Delphi 10.2.3 and Firebird 2.5.8. I have small table with 2 fields (id & text) which I edit within of a subform and use the data on my mainform. On the subform I use DBGrid & DBNavigator . On each use, I create the form and destroy it afterwards. On my subform I can see each time the updated data. After closing the subform I refresh my list within of my mainform but SELECT Id,Text FROM Tbl_Test shows me only the old data. I get the updated data only after restarting my program. Any

Error when connecting to Firebird database with NodeJS

Deadly 提交于 2019-12-24 08:17:33
问题 I'm trying to connect to a Firebird database with NodeJS, and I'm using the node-firebird package link here, and am having the following error when trying to connect. Error node index.js Error: Connection is closed. at exports.Connection.Connection._queueEvent (C:\Users\JEFTER\Documents\firebird-node-dev\node_modules\node-firebird\lib\index.js:3117:22) at exports.Connection.Connection.connect (C:\Users\JEFTER\Documents\firebird-node-dev\node_modules\node-firebird\lib\index.js:3152:10) at C:

Error -104 Unexpected end of command creating a Firebird stored procedure

南笙酒味 提交于 2019-12-24 07:47:04
问题 I want to create a stored procedure in Firebird: CREATE PROCEDURE CalcPvIncome ( BeginDate date, EndDate date, KwPrice decimal (2,2) ) RETURNS ( Total_PV_Production decimal (9,2), Total_Income decimal (9,2) ) AS BEGIN FOR SELECT SUM(ENERGY/1000), SUM((ENERGY/1000) * :KwPrice) FROM PVPROD WHERE proddate >= :BeginDate AND proddate <= :Enddate INTO :Total_PV_Production , :Total_Income DO BEGIN SUSPEND ; END END I get this error: Engine Code : 335544569 Engine Message : Dynamic SQL Error SQL

Firebird Events and Firewall Issue (TIBEvents)

此生再无相见时 提交于 2019-12-24 07:45:08
问题 I would use the power of Firebird Events with delphi application with TIBEvents component. The problem is the firewall, not every time have the correct role and when I try to register the events the application stops responding and I must wait... How can I do? I also try to call register function in a separated thread but with the same result. function RegisterEvents(data : Pointer) : Integer; begin with Form1 do begin DBOspitiEvent.Registered := true; end; end; //<-- AFTER THIS, APPLICATION

retrieve firebird users passwords

空扰寡人 提交于 2019-12-24 07:36:05
问题 My application currently is using the firebird security to logon for any user of my application. We are using Delphi7 and Firebird 2.1. Now we need to change this and we need to control de access by ourself. We are thinking about retrieve all users passwords from the database (as a conversion routine) and save the password inside our tables.... Is possible to do this? I'm trying to use the delphi component TIBSecurityService, but without success. Take a look: var i: integer; l: TStrings; pwd:

Python script stops, no errors giving

南楼画角 提交于 2019-12-24 07:31:39
问题 I have an python script that needs to be running all the time. Sometimes it can run for a hole day, sometimes it only runs for like an hour. import RPi.GPIO as GPIO import fdb import re con = fdb.connect(dsn='10.100.2.213/3050:/home/trainee2/Desktop/sms', user='sysdba', password='trainee') #connect to database cur = con.cursor() #initialize cursor pinnen = [21,20,25,24,23,18,26,19,13,6,27,17] #these are the GPIO pins we use, they are the same on all PI's! We need them in this sequence. status

entity framework won't import my firebird stored procedure

こ雲淡風輕ζ 提交于 2019-12-24 07:25:40
问题 I am using EF for .NET 4 and the firebird .NET provider 3.0.2.0 with Firebird 2.5. I have created a stored procedure as follows (DDL from IBEXPERT):- SET TERM ^ ; create or alter procedure GETNEWROWID returns ( ROWID ROWID) as begin /* Procedure Text */ rowid = (select gen_uuid() from rdb$database); suspend; end ^ SET TERM ; ^ /* Existing privileges on this procedure */ GRANT EXECUTE ON PROCEDURE GETNEWROWID TO SYSDBA; When I try and update my model, the SP is listed but when I select it, it