Sponsored Content
Top Forums UNIX for Advanced & Expert Users Question related to UNIX and Oracle DB Post 302865731 by solaris_1977 on Saturday 19th of October 2013 01:58:49 PM
Old 10-19-2013
If I check 1558 port is being used by which process (through a script), I get this output.
Code:
root@dsapid02-dt3d02:/# /tmp/check_port
Enter port you would like to know pid for: 1558
---------------------------------------------
Port: 1558 is being used by PID: 1330 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID: 5569 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:23183 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID: 6411 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:17983 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID: 2958 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:28607 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:21057 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:17826 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:29999 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID: 1888 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:11236 /t3/apps/Oracle/Middleware/10.3.5/jdk160_24/bin/java -server -Xms2048m -Xmx2048
---------------------------------------------
Port: 1558 is being used by PID:13689 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:20985 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID: 1672 java T3LinkValidator
---------------------------------------------
Port: 1558 is being used by PID:23303 java T3LinkValidator
^Croot@dsapid02-dt3d02:/# ps -ef | grep T3LinkValidator | wc -l
      22
root@dsapid02-dt3d02:/#

Are you asking me this one ?
Yes, I can run "netstat -p" on my server.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

A Question related to the net

well, I was suggested to remove the contents of the cache as i get out of the browser netscape from the .netscape folder. is that really necessary? if so what are the rest to be done? can anybody please tell me?:rolleyes: (8 Replies)
Discussion started by: sskb
8 Replies

2. UNIX for Dummies Questions & Answers

Question related to Emailing from UNIX

Hi All, I would like to write a script which sends an email to clients. mailx -s "TEST" $EMAIL_RECIPIENTS < FILE ...will send an email to EMAIL_RECIPIENTS with TEST as the subject and FILE as the body. Now I have a another CONTROL_FILE which is constant all the times (FILE in the above... (1 Reply)
Discussion started by: jingi1234
1 Replies

3. UNIX for Dummies Questions & Answers

oracle related

Plz. help me for returning set of values from oracle to unix array? (1 Reply)
Discussion started by: harsh_kats
1 Replies

4. UNIX for Advanced & Expert Users

One Question related to alias

Hello, I have created following alias in csh lab 'rlogin -l user23 complab23' but problem is complab23 does not allow automatic login by checking .rhosts file. So after typing lab on command line I have to type complicate password and if wrong password is typed thrice then account gets... (4 Replies)
Discussion started by: neerajrathi2
4 Replies

5. UNIX for Advanced & Expert Users

DOS messaging question - related to UNIX process problem

Hi, This is a strange request. I know there is some sort of crude DOS tool that allows you to communicate to another PC either using its IP adress or PC name. But I can't remember where aor what its called, any ideas? Reason for asking here, Someone has telnet'd on a UNIX server I have... (0 Replies)
Discussion started by: nhatch
0 Replies

6. Solaris

RBAC related question.....

I am referring Bill Calkins(SCSA exam prep) for RBAC..actually i wanted to make a normal user to get the privilege to run a command through authorization, not through profile files... This is the exact steps given by Bill calkins.. 1.roleadd -m -d /export/home/adminusr -c... (11 Replies)
Discussion started by: saagar
11 Replies

7. Shell Programming and Scripting

having df command related question

Hi All, When i have run the below command its showing 90% which is critical for production. for this i need the answer of some below question please help me for that. 1) i want to delete some unwanted files. how can i know the unwanted files ?Is it there any way of knowing this?? 2)and... (2 Replies)
Discussion started by: aish11
2 Replies

8. Shell Programming and Scripting

awk related question

awk "/^<Mar 31, 2012 : /,0" /app/blah.log can someone please help me figure out why the above command isn't pulling anything out from the log? basically, i want it to pull out all records, from the very first line that starts with the date "Mar 31, 2012" and that also has a time immediately... (4 Replies)
Discussion started by: SkySmart
4 Replies

9. Shell Programming and Scripting

need downloading related help...but its not related to unix

Hi All, I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file See the below link- http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs- Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies

10. UNIX for Dummies Questions & Answers

Question related to 'ps'

If I run a script called 'abc.sh' and then execute the following : ps -ef | grep 'abc.sh' I always get two rows of output, one for the executing script, and the other for the grep command that I have triggered after the pipe. Questions: Why does the second row turn up in the results. My... (10 Replies)
Discussion started by: jawsnnn
10 Replies
NDB(6)								   Games Manual 							    NDB(6)

NAME
ndb - Network database DESCRIPTION
The network database consists of files describing machines known to the local installation and machines known publicly. The files comprise multi-line tuples made up of attribute/value pairs of the form attr=value or sometimes just attr. Each line starting without white space starts a new tuple. Lines starting with # are comments. The file /lib/ndb/local is the root of the database. Other files are included in the database if a tuple with an attribute-value pair of attribute database and no value exists in /lib/ndb/local. Within the database tuple, each tuple with attribute file identifies a file to be included in the database. The files are searched in the order they appear. For example: database= file=/lib/ndb/common file=/lib/ndb/local file=/lib/ndb/global declares the database to be composed of the three files /lib/ndb/common, /lib/ndb/local, and /lib/ndb/global. By default, /lib/ndb/local is searched before the others. However, /lib/ndb/local may be included in the database to redefine its ordering. Within tuples, pairs on the same line bind tighter than pairs on different lines. The program ndb/cs (see ndb(8)) and the library routine ipinfo (see ndb(2)) perform searches for information relative to a particular host. Ndb/cs resolves meta-addresses of the form $attribute by returning the value from the attribute=value most closely related to the resolving host. The attribute-value pair comes from the tuple for the system, its subnet, or its network with the system tuple having precedence, subnet next, and network last. A number of attributes are meaningful to programs and thus reserved. They are: sys system name dom Internet domain name ip Internet address ether Ethernet address dk Datakit address bootf file to download for initial bootstrap ipnet Internet network name ipmask Internet network mask ipgw Internet gateway auth authentication server to be used fs file server to be used tcp a TCP service name udp a UDP service name il an IL service name port a TCP, UDP, or IL port number restricted a TCP service that can be called only by ports numbered less that 1024 proto a protocol supported by a host. The pair proto=il is needed by cs (see ndb(8)) in tuples for hosts that support the IL protocol. 9P parameters for the 9P file protocol, in particular whether the server authenticates (9P=auth). The file /lib/ndb/auth is used during authentication to decide who has the power to `speak for' other users; see auth(6). EXAMPLES
A tuple for the CPU server, spindle. sys = spindle dom=spindle.research.att.com bootf=/mips/9powerboot ip=135.104.117.32 ether=080069020677 dk=nj/astro/spindle proto=il Entries for the network mh-astro-net and its subnets. ipnet=mh-astro-net ip=135.104.0.0 ipmask=255.255.255.0 fs=bootes.research.att.com ipgw=r70.research.att.com auth=p9auth.research.att.com ipnet=unix-room ip=135.104.117.0 ipgw=135.104.117.1 ipnet=third-floor ip=135.104.51.0 ipgw=135.104.51.1 Mappings between TCP service names and port numbers. tcp=sysmon port=401 tcp=rexec port=512 restricted tcp=9fs port=564 FILES
/lib/ndb/local first database file searched /lib/ndb/global second database file searched SEE ALSO
dial(2), ndb(2), ndb(8), bootp(8), ipconfig(8), con(1) NDB(6)
All times are GMT -4. The time now is 03:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy