Connected to BD2 8.2 via JDBC, can we force an application off the
database?
We know we can use the snapshot functions to get a view over connected
users, that works find through a standard SQL call. Now I'd like to
select one of those users and force it off. You can imagine the simple
GUI action, select connected user - right-click - force - confirm and
bang, the user's off.
It's that last bit I'm having trouble with. I haven't yet identified a)
whether I can issue the command b) what command it would be and c) how
best to call that command.
Any advice on these will be greatly appreciated.
Mark 3 2219
marklawford wrote:
Connected to BD2 8.2 via JDBC, can we force an application off the
database?
We know we can use the snapshot functions to get a view over connected
users, that works find through a standard SQL call. Now I'd like to
select one of those users and force it off. You can imagine the simple
GUI action, select connected user - right-click - force - confirm and
bang, the user's off.
It's that last bit I'm having trouble with. I haven't yet identified a)
whether I can issue the command b) what command it would be and c) how
best to call that command.
I don't think there is a built-in SQL API. If it does exist (a lot was
added in DB2 9) is ought to be part of the sysproc.admin_c md() procedure
interface.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
IOD Conference http://www.ibm.com/software/data/ond...ness/conf2006/
Thanks, Serge. That does give me exactly what I want... but not until
v9.
Still, it's good to know it's around for the future.
Serge Rielau wrote:
marklawford wrote:
Connected to BD2 8.2 via JDBC, can we force an application off the
database?
We know we can use the snapshot functions to get a view over connected
users, that works find through a standard SQL call. Now I'd like to
select one of those users and force it off. You can imagine the simple
GUI action, select connected user - right-click - force - confirm and
bang, the user's off.
It's that last bit I'm having trouble with. I haven't yet identified a)
whether I can issue the command b) what command it would be and c) how
best to call that command.
I don't think there is a built-in SQL API. If it does exist (a lot was
added in DB2 9) is ought to be part of the sysproc.admin_c md() procedure
interface.
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
IOD Conference http://www.ibm.com/software/data/ond...ness/conf2006/
marklawford wrote:
Thanks, Serge. That does give me exactly what I want... but not until
v9.
Still, it's good to know it's around for the future.
Serge Rielau wrote:
>marklawford wrote:
>>Connected to BD2 8.2 via JDBC, can we force an application off the database?
We know we can use the snapshot functions to get a view over connected users, that works find through a standard SQL call. Now I'd like to select one of those users and force it off. You can imagine the simple GUI action, select connected user - right-click - force - confirm and bang, the user's off.
It's that last bit I'm having trouble with. I haven't yet identified a) whether I can issue the command b) what command it would be and c) how best to call that command.
I don't think there is a built-in SQL API. If it does exist (a lot was added in DB2 9) is ought to be part of the sysproc.admin_c md() procedure interface.
Cheers Serge
-- Serge Rielau DB2 Solutions Development IBM Toronto Lab
IOD Conference http://www.ibm.com/software/data/ond...ness/conf2006/
For the record here is the link confirming support for FORCE_APPLICATI ON
through SQL in DB2 9: http://publib.boulder.ibm.com/infoce...c/r0023574.htm
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
IOD Conference http://www.ibm.com/software/data/ond...ness/conf2006/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Konstantin Zakharenko |
last post by:
Hello,
Our QA team have running a lot of test scripts (for automated regression
testing), they run them on the different databases (Oracle/MS SQL).
Several of those tests are dependent on the current date/time. In order to
be
able to use them efficiently, we changed the current date/time on the QA
database server to a specific date/time before starting the scripts, so we
are sure the test scripts always run in the same environment.
|
by: pigeon |
last post by:
SSL only works when ms sql server has "force encryption option"
turned on...
If I turn that off, and try to have the client software request
encryption.. I get a ssl security error msg.
The thing is.. I had this working before I upgraded to sp3andsp4and
install my new cert (I did the upgrades at the same time)
|
by: royaltiger |
last post by:
I am trying to copy the inventory database in Building Access Applications
by John L Viescas but when i try to run the database i get an error in the
orders form when i click on the allocate button "Unexpected Error":3251
operation is not supported for this type of object.The demo cd has two
databases, one is called inventory and the other just has the tables for the
design called inventory data. When you run inventory the database works...
|
by: Next |
last post by:
Hi folks,
Years ago, it occurred to me that a lot of the trouble
of writing web browsers is caused by the upside-down
arrangement of things: Javascript code exists inside
a document, when really it should be the other way around.
And yet, although this seems fairly obvious to me,
having tried myself to write a web browser and given up,
I don't see a lot of movement by major web browser
projects in a direction that might TRULY fix the...
|
by: Polaris |
last post by:
Hi:
Anyone can explain the concept of "System Level Applications"? An example?
Thanks in Advance!
Polaris
| |
by: Rahul B |
last post by:
Hi,
When i do a "db2 list applications", i get the required applications
with their ip addresses.
However, some of the application Ids are ip addresses while some
application Ids are arbitrary(like GA500A2B.K105.014AC7050331) and of
the form "GA500%'.
Can somebody explain what are these indifferent application ids?
|
by: paulquinlan100 |
last post by:
Hi
I'm using automation in excel to insert a lot of data into an Access
DB. Its all working fine, apart from the fact that the data entry
people occasionally put "n/a" in the cells instead of 0, which
obviously access doesnt like being put into a number field.
I know i can put if statements around every variable to check, but is
there a way to force it to just put the default value for that
particular field (mostly 0, but sometimes it...
|
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= |
last post by:
I want to be able to place ASP.NET applications inside each other (nested).
The idea would be that I want to be able to have a docroot that contains the
normal Web.config and App_Code directory, etc.
But then, under that docroot, I'd like to be able to have the following:
1. Some kinf of ability to refer to paths to objects using the "~" notation
- or something like it, but being able to decide wheher I want to reference
the actual...
|
by: Josetta |
last post by:
Here is something really bizarre that is happening...let me see if I
can describe it.
I have a report which has two locations on it. Primary Location and
Secondary Location. I have both locations grouped. For example:
Primary Location (group header 1) is a city.
Secondary Location (group header 2) is a Street Address.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |