Best practice for setting port on DBMonitor
Posted: Thu 04 Jun 2015 17:16
Going old school with DBMonitor here...
When multiple people open a DBmonitor session, right now the first session open captures ALL the messages because the port # is defaulted to 1000.
Is there a best practice to automatically set the OraSQLMonitor.DBMonitorOptions.Port each time an app runs so that each developer can see their messages on their monitor? Currently I am doing:
FPid: integer;
FPid := Integer(GetCurrentProcessID) mod MAXWORD; // This makes sure it is limited to Max Windows Ports
OraSQLMonitor.DBMonitorOptions.Port := FPid;
Then in a Oracle Information pop up I have, I have added the Port # information for the user to set in DBMonitor.
Problem is that this may get into standard TCP/IP Ports (21, 80, 8000, 8080, etc.)
Any thoughts on a better process?

When multiple people open a DBmonitor session, right now the first session open captures ALL the messages because the port # is defaulted to 1000.
Is there a best practice to automatically set the OraSQLMonitor.DBMonitorOptions.Port each time an app runs so that each developer can see their messages on their monitor? Currently I am doing:
FPid: integer;
FPid := Integer(GetCurrentProcessID) mod MAXWORD; // This makes sure it is limited to Max Windows Ports
OraSQLMonitor.DBMonitorOptions.Port := FPid;
Then in a Oracle Information pop up I have, I have added the Port # information for the user to set in DBMonitor.
Problem is that this may get into standard TCP/IP Ports (21, 80, 8000, 8080, etc.)
Any thoughts on a better process?