- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: TNSNAMES File.
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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-23-2009 07:04 AM
тАО01-23-2009 07:04 AM
Re: TNSNAMES File.
Most OpenVMS editor will create a variable length record file, which will fail unless the output file is re-converted
VIM works, and can be handy in the parenthesis matching.
Also if you used say 'perl' to script an edit, that would work.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 05:15 AM
тАО01-26-2009 05:15 AM
Re: TNSNAMES File.
Does this mean that I am ok if I edit with "$ edit/tpu", i.e. use EVE editor. Or do you recomment converting after every edit anyway.
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 05:40 AM
тАО01-26-2009 05:40 AM
Re: TNSNAMES File.
I'm not, and I have very little trouble
(except with new files).
> Try editing a stream_lf version of a file
> [...]
Yes. Let's do that. (Did you?)
1. Create a file using an editor:
alp $ edit /tpu orig.txt
[...]
2. Notice that it's not Stream_LF:
alp $ write sys$output f$file_attributes( "orig.txt", "rfm")
VAR
3. Convert it to Stream_LF (under a different
name):
alp $ write sys$output f$file_attributes( "orig.txt", "rfm")
VAR
alp $ convert orig.txt stmlf.txt /fdl = sys$input:
RECORD
FORMAT stream_lf
Exit <--- Ctrl/Z
4. Verify the format of the converted file:
alp $ write sys$output f$file_attributes( "stmlf.txt", "rfm")
STMLF
5. Edit the Stream-LF file, and save it under
yet another name (so it can't inherit any
attributes from a previous version):
alp $ edit /tpu stmlf.txt /output = stmlf_2.txt
[...]
6. See what happened:
alp $ write sys$output f$file_attributes( "stmlf_2.txt", "rfm")
STMLF
7. Act amazed.
That's on VMS V7.3-2 (Alpha), but find me a
system where it fails.
> Or do you recomment converting after every
> edit anyway.
I recommend running a quick test, and then
relaxing. DIRE /FULL is a quick (if noisy)
way to check a file's record format, too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 05:43 AM
тАО01-26-2009 05:43 AM
Re: TNSNAMES File.
EDIT/TPU should be fine.
I created a dummy file using an FDL to set the STREAM_LF format.
Record format: Stream_LF, maximum 0 bytes, longest 0 bytes
Record attributes: Carriage return carriage control
Then I used edit/tpu to modify the file, and checked the file attributes with DIR/FULL
Record format: Stream_LF, maximum 0 bytes, longest 37 bytes
Record attributes: Carriage return carriage control
After you do any work on your TNSNAMES.ORA file, just make sure that you check that the file still has the correct record format.
Duncan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 06:27 AM
тАО01-26-2009 06:27 AM
Re: TNSNAMES File.
Dave.
- « Previous
-
- 1
- 2
- Next »