- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- find an unused port for oracle ?
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
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
тАО10-30-2003 03:04 AM
тАО10-30-2003 03:04 AM
How do I find on a server, what port will be unused? I can look right now with "netstat -a", but that will only show me what is being used right now. I can also look with "lsof -i TCP:port#", but I have to scan every port. And, again, it only tells me right now.
Then I should write the port in /etc/services, shouldn't I? Does entering the port in /etc/services ENSURE that no other application, which may scan for a port to use, will use that port?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 03:14 AM
тАО10-30-2003 03:14 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 03:14 AM
тАО10-30-2003 03:14 AM
Re: find an unused port for oracle ?
Yes you can preserve ports in the /etc/services file, I use the 3000 range for applications. Take a look at next doc.
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000024673233
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 03:21 AM
тАО10-30-2003 03:21 AM
Re: find an unused port for oracle ?
You can put what you like in /etc/services for documentation but that doesn't reserve it, and oracle doesn't use that file.
Assuming you are the sysadmin it's up to you to allocate and manage ports.
If it helps, here we use 1527 for hp hosted databases, 1521 for those on Sun.
Why the difference? Don't ask me, I'm not the sysadmin!!
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 03:22 AM
тАО10-30-2003 03:22 AM
Re: find an unused port for oracle ?
...netstat -a | grep 1521
and it isn't being used right now, I should assign it to this oracle instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 03:24 AM
тАО10-30-2003 03:24 AM
Re: find an unused port for oracle ?
/etc/services are used for documentation as well as configuration files. Most of the applications avoid hardcoding the port number by either reading from a conf file or from /etc/services itself by the gethostby* list of routines.
HTH,
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 03:30 AM
тАО10-30-2003 03:30 AM
Re: find an unused port for oracle ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2003 04:07 AM
тАО10-30-2003 04:07 AM
Re: find an unused port for oracle ?
I view /etc/services as a reservation file, though some services really need entries to work correctly.
Oracle does not need an /etc/servics entry to function correctly. Oracle simply refuses to comply with Unix convention and reserver ports by putting entries in /etc/services.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com