RE: [U2] Unidata 7.1 / RedBack 4.2.6 / Connections dropping?
Andy Stopping while the dbpause is in effect and a RedBack request hits the system at the time? Otherwise - are you hitting a sync bottleneck with RFS? Of course - I hope you are not starting RedBack as root. Regards JayJay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Pflueger Sent: 22 July 2007 14:52 To: U2 User Group Mailing List Subject: [U2] Unidata 7.1 / RedBack 4.2.6 / Connections dropping? Hi all, We've recently implemented a workaround on our Solaris 9 (production) box to restartrgw on a daily basis...immediately following our backup script that essentially runs dbpause, breaks mirror, dbresume, backups the broken mirrored disk, and mirror resync. In addition, we're also running UD w/ RFS enabled. The problems that we are facing (hence why the workaround was implemented to restartrgw) was that RedBack would intermittently drop connections if it goes for 3-4 days or so without being restarted. By dropping connections I'm referring to anytime our apps that use RedBack (very few anymore that we're developing our apps with UniObjects) would result in unsuccessful db connection attempts. Restartrgw seems to solve the immediate issue as does restartrgw on a daily basis. Has anybody out there running a similar setup encountered such situations and is 'restartrgw' ultimately the best solution here? We are, in fact, also running REDBACK.GC via a process that runs nightly to keep garbage collection clean so I don't believe it's GC that is part of the problem. Not sure if this makes sense or not, but it seems to have started soon as we turned on RFS. TIA, Andy Pflueger --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Unidata 7.1 / RedBack 4.2.6 / Connections dropping?
Hi all, We've recently implemented a workaround on our Solaris 9 (production) box to restartrgw on a daily basis...immediately following our backup script that essentially runs dbpause, breaks mirror, dbresume, backups the broken mirrored disk, and mirror resync. In addition, we're also running UD w/ RFS enabled. The problems that we are facing (hence why the workaround was implemented to restartrgw) was that RedBack would intermittently drop connections if it goes for 3-4 days or so without being restarted. By dropping connections I'm referring to anytime our apps that use RedBack (very few anymore that we're developing our apps with UniObjects) would result in unsuccessful db connection attempts. Restartrgw seems to solve the immediate issue as does restartrgw on a daily basis. Has anybody out there running a similar setup encountered such situations and is 'restartrgw' ultimately the best solution here? We are, in fact, also running REDBACK.GC via a process that runs nightly to keep garbage collection clean so I don't believe it's GC that is part of the problem. Not sure if this makes sense or not, but it seems to have started soon as we turned on RFS. TIA, Andy Pflueger --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniData and RedBack
From Dave's original question: How else can a BASIC program tell if it is being called from the Web or not? I asked some other guys in support and they came up with this idea: If your database server is on Unix you can use @LOGNAME, since all RedBack sessions (responders) should be owned by a specific unix user. So you can say something like: IF @LOGNAME = redback THEN * do redback thing ELSE * do telnet thing END == For UniData Only == For windows, one might try the @user variables in UniData. There are 5, @USER0 thru @USER4. These are UniData session variables that a method Basic subroutine called by RedBack object could use to set redback into, and the called subroutines from the method Basic program could check. Code in method subroutine called directly by RedBack object: @USER0 = redback Code in subroutine called by method subroutine: IF @USER0 = redback THEN * do redback thing ELSE * do telnet thing END The @user solution should work for unix database server is well. This assumes you are not already using the @user variables in your application. Steve --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] UniData and RedBack
Is there a way to tell that a session is a RedBack session vs a UniData telnet session? I thought @USER.TYPE would tell me - but both UniData telnet and RedBack sessions return a 0. I was thinking RedBack would return a 2. How else can a BASIC program tell if it is being called from the Web or not? In our case, I have a routine that either needs to hand a 'message' back to the web subroutine and fall over, while if I'm sitting in front of a 'live user', they can make a choice and the process can continue. I don't want to re-write all the logic to make it 'message passing' (that's a 'someday' project!) - but I do have critical places that allowing a subroutine to know if it was running live or Memorex ...er... RedBack... would be useful. Thanks! David W. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniData and RedBack
David I've only used RedBack with UniVerse, but.. Why not create a specific user e.g. 'redback' and use that when you start the responders? Then you can check for that user name in your program. Brian Is there a way to tell that a session is a RedBack session vs a UniData telnet session? I thought @USER.TYPE would tell me - but both UniData telnet and RedBack sessions return a 0. I was thinking RedBack would return a 2. How else can a BASIC program tell if it is being called from the Web or not? In our case, I have a routine that either needs to hand a 'message' back to the web subroutine and fall over, while if I'm sitting in front of a 'live user', they can make a choice and the process can continue. I don't want to re-write all the logic to make it 'message passing' (that's a 'someday' project!) - but I do have critical places that allowing a subroutine to know if it was running live or Memorex ...er... RedBack... would be useful. Thanks! David W. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniData and RedBack
The 'NT Logon' for RedBack users appears to be System - Would that be the most 'reliable'/best approach? I could check @LOGNAME for that... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 05, 2007 9:37 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] UniData and RedBack David I've only used RedBack with UniVerse, but.. Why not create a specific user e.g. 'redback' and use that when you start the responders? Then you can check for that user name in your program. Brian Is there a way to tell that a session is a RedBack session vs a UniData telnet session? I thought @USER.TYPE would tell me - but both UniData telnet and RedBack sessions return a 0. I was thinking RedBack would return a 2. How else can a BASIC program tell if it is being called from the Web or not? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
{Blocked Content} RE: [U2] UniData and RedBack
Warning: This message has had one or more attachments removed Warning: (not named). Warning: Please read the AngelicHost-Attachment-Warning.txt attachment(s) for more information. When we use the AT command to create phantoms they come across as system. You may want to try some of the other @ variables - maybe @tty. hth Colin Alfke Los Angeles CA (this month) From: David Wolverton The 'NT Logon' for RedBack users appears to be System - Would that be the most 'reliable'/best approach? I could check @LOGNAME for that... -Original Message- From: brian at brianleach co uk mailto:[EMAIL PROTECTED] David I've only used RedBack with UniVerse, but.. Why not create a specific user e.g. 'redback' and use that when you start the responders? Then you can check for that user name in your program. Brian Is there a way to tell that a session is a RedBack session vs a UniData telnet session? I thought @USER.TYPE would tell me - but both UniData telnet and RedBack sessions return a 0. I was thinking RedBack would return a 2. How else can a BASIC program tell if it is being called from the Web or not? This is a message from the MailScanner E-Mail Virus Protection Service -- The original e-mail attachment winmail.dat was believed to be infected by a virus and has been replaced by this warning message. If you wish to receive a copy of the *infected* attachment, please e-mail helpdesk and include the whole of this message in your request. Alternatively, you can call them, with the contents of this message to hand when you call. At Thu Apr 5 10:27:24 2007 the virus scanner said: Could not parse Outlook Rich Text attachment Note to Help Desk: Look on the AngelicHost MailScanner in /home/virtual/site2/fst/var/spool/mail.quarantine/20070405 (message l35HRJUk026770). -- Postmaster MailScanner thanks transtec Computers for their support --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniData and RedBack
David, I don't know how reliable this is, just throwing it out there, but the redback sessions also don't have an IP address, whereas the telnet sessions from workstations do. !listuser -i We also start responders as user redback (unix), so that's what we use. Amy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Wolverton Sent: Thursday, April 05, 2007 8:05 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] UniData and RedBack The 'NT Logon' for RedBack users appears to be System - Would that be the most 'reliable'/best approach? I could check @LOGNAME for that... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 05, 2007 9:37 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] UniData and RedBack David I've only used RedBack with UniVerse, but.. Why not create a specific user e.g. 'redback' and use that when you start the responders? Then you can check for that user name in your program. Brian Is there a way to tell that a session is a RedBack session vs a UniData telnet session? I thought @USER.TYPE would tell me - but both UniData telnet and RedBack sessions return a 0. I was thinking RedBack would return a 2. How else can a BASIC program tell if it is being called from the Web or not? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] UniData and RedBack
Best bet is to add an Environment variable to the rgwresp.ini file and interrogate it from the UniData program. GETENV or similar by my vague recollection (been a while). Regards JayJay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Wolverton Sent: 05 April 2007 16:05 To: u2-users@listserver.u2ug.org Subject: RE: [U2] UniData and RedBack The 'NT Logon' for RedBack users appears to be System - Would that be the most 'reliable'/best approach? I could check @LOGNAME for that... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, April 05, 2007 9:37 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] UniData and RedBack David I've only used RedBack with UniVerse, but.. Why not create a specific user e.g. 'redback' and use that when you start the responders? Then you can check for that user name in your program. Brian Is there a way to tell that a session is a RedBack session vs a UniData telnet session? I thought @USER.TYPE would tell me - but both UniData telnet and RedBack sessions return a 0. I was thinking RedBack would return a 2. How else can a BASIC program tell if it is being called from the Web or not? --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/