- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Why are DCL.EXE and command tables opened twice?
Operating System - OpenVMS
1753635
Members
5755
Online
108798
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2008 01:14 PM
тАО01-29-2008 01:14 PM
Why are DCL.EXE and command tables opened twice?
Just noticed this issue on my VMS 7.3-2 and earlier systems. It's not causing a problem but I'm curious - is this a bug; some optimization for the more-common case; or what?
When a process logs in, if its command tables are not DCLTABLES (either via SYSUAF setting or via LOGIN's /TABLES=xtables qualifier), then the process will have two channels open for both SYS$SYSTEM:DCL.EXE and SYS$SHARE:xtables.EXE. When DCLTABLES.EXE is used there is only one channel each.
PLEASE SIGN ON--GOODMAN/NOCOMMAND/TABLES=DCLTABLES
Password:
$ ANALYZE/SYSTEM !from another process
SDA> SHOW PROCESS/CHANNEL GOODMAN
Process active channels
Channel CCB Window Status Device/file accessed
0010 7FF60000 00000000 AX38$DKA0:
0050 7FF60080 00000000 Busy LTA159:
0070 7FF600C0 00000000 LTA159:
00A0 7FF60120 822370C0 AX38$DKA0:[VMS$COMMON.SYSEXE]
DCL.EXE;1 (section file)
00B0 7FF60140 81DA6540 AX38$DKA0:[VMS$COMMON.SYSLIB]
DCLTABLES.EXE;178 (section file)
Total number of open channels : 5.
--------------------------------------------
$ SET DEFAULT SYS$COMMON:[SYSLIB]
$ COPY DCLTABLES.EXE NEWTABLES.EXE
$ INSTALL ADD SYS$SHARE:NEWTABLES/OPEN/HEAD/SHARE
PLEASE SIGN ON--GOODMAN/NOCOMMAND/TABLES=NEWTABLES
Password:
$ ANALYZE/SYSTEM !from another process
SDA> SHOW PROCESS/CHANNEL GOODMAN
Process active channels
Channel CCB Window Status Device/file accessed
0010 7FF60000 00000000 AX38$DKA0:
0050 7FF60080 00000000 Busy LTA161:
0070 7FF600C0 00000000 LTA161:
00A0 7FF60120 822370C0 AX38$DKA0:[VMS$COMMON.SYSEXE]
DCL.EXE;1 (section file)
00B0 7FF60140 822370C0 AX38$DKA0:[VMS$COMMON.SYSEXE]
DCL.EXE;1 (section file)
00C0 7FF60160 81B18580 AX38$DKA0:[VMS$COMMON.SYSLIB]
NEWTABLES.EXE;1 (section file)
00D0 7FF60180 81B18580 AX38$DKA0:[VMS$COMMON.SYSLIB]
NEWTABLES.EXE;1 (section file)
Total number of open channels : 7.
When a process logs in, if its command tables are not DCLTABLES (either via SYSUAF setting or via LOGIN's /TABLES=xtables qualifier), then the process will have two channels open for both SYS$SYSTEM:DCL.EXE and SYS$SHARE:xtables.EXE. When DCLTABLES.EXE is used there is only one channel each.
PLEASE SIGN ON--GOODMAN/NOCOMMAND/TABLES=DCLTABLES
Password:
$ ANALYZE/SYSTEM !from another process
SDA> SHOW PROCESS/CHANNEL GOODMAN
Process active channels
Channel CCB Window Status Device/file accessed
0010 7FF60000 00000000 AX38$DKA0:
0050 7FF60080 00000000 Busy LTA159:
0070 7FF600C0 00000000 LTA159:
00A0 7FF60120 822370C0 AX38$DKA0:[VMS$COMMON.SYSEXE]
DCL.EXE;1 (section file)
00B0 7FF60140 81DA6540 AX38$DKA0:[VMS$COMMON.SYSLIB]
DCLTABLES.EXE;178 (section file)
Total number of open channels : 5.
--------------------------------------------
$ SET DEFAULT SYS$COMMON:[SYSLIB]
$ COPY DCLTABLES.EXE NEWTABLES.EXE
$ INSTALL ADD SYS$SHARE:NEWTABLES/OPEN/HEAD/SHARE
PLEASE SIGN ON--GOODMAN/NOCOMMAND/TABLES=NEWTABLES
Password:
$ ANALYZE/SYSTEM !from another process
SDA> SHOW PROCESS/CHANNEL GOODMAN
Process active channels
Channel CCB Window Status Device/file accessed
0010 7FF60000 00000000 AX38$DKA0:
0050 7FF60080 00000000 Busy LTA161:
0070 7FF600C0 00000000 LTA161:
00A0 7FF60120 822370C0 AX38$DKA0:[VMS$COMMON.SYSEXE]
DCL.EXE;1 (section file)
00B0 7FF60140 822370C0 AX38$DKA0:[VMS$COMMON.SYSEXE]
DCL.EXE;1 (section file)
00C0 7FF60160 81B18580 AX38$DKA0:[VMS$COMMON.SYSLIB]
NEWTABLES.EXE;1 (section file)
00D0 7FF60180 81B18580 AX38$DKA0:[VMS$COMMON.SYSLIB]
NEWTABLES.EXE;1 (section file)
Total number of open channels : 7.
I have one, but it's personal.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2008 03:39 PM
тАО01-29-2008 03:39 PM
Re: Why are DCL.EXE and command tables opened twice?
Jess,
The simple answer is "because" ;-)
Longer answer - I think it has to do with the way a process is started. You begin with DCLTABLES, then switch to the other tables, effectively by recursing into DCL.EXE with the new table. So, yes a kind of optimization for the common case.
Simple experiment - what do you get if you login and SET COMMAND/TABLE=NEWTABLES ?
If you want a complete explanation, you'll need to dig into the sources to see how login /TABLES is implemented (and be warned, it probably isn't very pretty, or easy to follow!)
Please ask yourself why you're using an alternate table. It's mostly just making work for yourself maintaining compatibility through upgrades. If you're doing it for "security" by deleting commands you don't want people to be able to execute... DON'T (or at least don't let anyone who knows what they're doing log into your "secured" accounts ;-)
The simple answer is "because" ;-)
Longer answer - I think it has to do with the way a process is started. You begin with DCLTABLES, then switch to the other tables, effectively by recursing into DCL.EXE with the new table. So, yes a kind of optimization for the common case.
Simple experiment - what do you get if you login and SET COMMAND/TABLE=NEWTABLES ?
If you want a complete explanation, you'll need to dig into the sources to see how login /TABLES is implemented (and be warned, it probably isn't very pretty, or easy to follow!)
Please ask yourself why you're using an alternate table. It's mostly just making work for yourself maintaining compatibility through upgrades. If you're doing it for "security" by deleting commands you don't want people to be able to execute... DON'T (or at least don't let anyone who knows what they're doing log into your "secured" accounts ;-)
A crucible of informative mistakes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2008 05:33 PM
тАО01-29-2008 05:33 PM
Re: Why are DCL.EXE and command tables opened twice?
I imagine it's using the image activator to map the tables and VMS doesn't have a clean way to rundown just that image.
I'm looking for marbles all day long.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP