Find the number of connections coming through a listener
Hi,
We have 10 listeners on our database. How to find out at runtime , how many users are accessing through a specific listener.
Is v$dispatcher the view needed to query.
Please guide.
Thanks.
A-K wrote:
Hi,
But through service name how do i find th specific listener port. I have multiple entries of different ports across my service name in the tns file.
Below is what my TNS entry looks like,
PRODDB =
(DESCRIPTION=
(ADDRESS_LIST=(PROTOCOL=TCP)(HOST = 192.19.100.10) (PORT=1520)))
(ADDRESS_LIST=(PROTOCOL=TCP)(HOST = 192.19.100.10) (PORT=1521)))
(ADDRESS_LIST=(PROTOCOL=TCP)(HOST = 192.19.100.11) (PORT=1522)))
(ADDRESS_LIST=(PROTOCOL=TCP)(HOST = 192.19.100.11) (PORT=1523)))
(ADDRESS_LIST=(PROTOCOL=TCP)(HOST = 192.19.100.11) (PORT=1524)))
(ADDRESS_LIST=(PROTOCOL=TCP)(HOST = 192.19.100.15) (PORT=1530)))
(CONNECT_DATA = SID = PRODDB))
Her for one ip there are more than one ports assigned.
RegardsDo not see tnsnames.ora file,please run lsnrctl status or lsnrctl service from the server then you will see all services which registered on listener.
Similar Messages
-
Finding the number of connected components in a graph
I don't know haow many people have seen this problem posted on c.d.o.m, but here is the essence
given an equivalence relation, e.g.
x y
1 1
2 2
2 1
1 2
3 3
find the number of equivalence classes. In this example equivalence classes are {1,2} and {3}.The idea: Label all the graph nodes with distinct primes. Find all simple paths in the graph weighted with product of nodes. Find the skyline of all maximal products. Count them.
Implementation (swithced to boolean vectors instead of primes)
create table input as (
select 1 x, 2 y from dual
union
select 2, 3 from dual
union
select 2, 4 from dual
union
select 6, 7 from dual
union
select 8, 9 from dual);
with TC as (
select connect_by_root(x) x, y
from (
select x,y from input
union
select y,x from input
) connect by nocycle x = prior y
), weightedNodes as (
select node, power(2,rownum-1) code
from (select x node from input
union select y node from input )
select count(distinct code) from (
select x,y,sum(code) code from (
select distinct pre.x, pre.y mid, post.y from TC pre, TC post
where pre.y=post.x
), weightedNodes
where node = mid
group by x,y
drop table input; -
How to find the number of users connected to database from OS level(Linux)
Hi All,
Could anyone know , how to find the number of users connected to database without connecting with sql*plus
is there any command to find it?
example we have 10 databases in one server, how to find the number of users connected to particular database without connecting to database(v$session)?
oracle version:- 10g,11g
Operating System:- OEL4/OEL5/AIX/Solaris
any help will be appreciated.
Thanks in advance.
Thank you.
Regards,
Rajesh.Excellent.
Tested, works as long as you set the ORACLE_SID first ( to change databases )
ps -ef | grep $ORACLE_SID | grep "LOCAL=NO" | awk '{print $2}' | wc -l
Thanks!
select OSUSER
from V$SESSION
where AUDSID = SYS_CONTEXT('userenv','sessionid')
and rownum=1;Best Regards
mseberg -
How to find the number of ODBC connections to Oracle Database
Hi All,
How to find the number of ODBC connections and all connections to the Database in last week. Are there any views to get this information?
Thanks in advance,
MahiWhat Ed said is true that Oracle doesn't note which type of protocol is connecting to the database, however, you can see which program is accessing the database.
For example: if you already know of a user using ODBC, you can verify as:
select username, osuser, terminal, program from v$session where username = 'SCOTT'
USERNAME OSUSER TERMINAL PROGRAM
SCOTT IUSR_SRV231 SRV231 w3wp.exe
SCOTT IUSR_SRV231 SRV231 w3wp.exe
2 rows selected.Assuming that you can confirm the progam noted in the above (example) is the one using ODBC, then you can change the query such as:
SQL> select username, osuser, terminal, program from v$session where program = 'w3wp.exe';
USERNAME OSUSER TERMINAL PROGRAM
SCOTT IUSR_SRV231 SRV231 w3wp.exe
SCOTT IUSR_SRV231 SRV231 w3wp.exe
2 rows selected.Just for kicks, I checked our listener.log file, but there was no reference of odbc in it either.
Hope this helps... -
How to find the number of fetched lines from select statement
Hi Experts,
Can you tell me how to find the number of fetched lines from select statements..
and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
Thanks in advance
santoshHi,
Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
For ex:
data: itab type mara occurs 0 with header line.
Select * from mara into table itab.
Write: Sy-tabix.
This will give you the number of entries that has been selected.
I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
Hope this helps,
Sudhi
Message was edited by:
Sudhindra Chandrashekar -
How to Find the number of Databases in a server.
HI,
Please tell me how to find the number of Databases are in a server . when the DB is not up.
ps -ef | grep ora_
This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
Cheers,
Gobi.Hi,
[oracle@oralinux admin]$ lsnrctl status
LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-01169: The listener has not recognized the password
[oracle@oralinux admin]$
Plz give me the solution.
Cheers ,
Gobi. -
How do I find the number of contacts in a smart group?
How do I find the number of contacts in a smart group in Contacts?
Hi,
To get the depth using JMS you must create a QueueBrowse and browse the entire queue. Its generally horribly inefficient if you want to do it with any regularity.
In Hermes I have had to write plugins that open separate connections to providers using their non-JMS APIs or JMX and get that kind of information that way.
Look at the getDepth() method in this JBoss plugin for an example that uses JMX:
http://cvs.sourceforge.net/viewcvs.py/hermesjms/Hermes4/src/java/hermes/ext/jbossmq/JBossMQAdmin.java?view=markup
And here is one for WebSphereMQ that uses one of its many APIs..
http://cvs.sourceforge.net/viewcvs.py/hermesjms/Hermes4/src/java/hermes/ext/mq/MQSeriesAdmin.java?view=markup
Colin.
http://hermesjms.com -
How to find the number of pending messages in a Queue
All,
Is there a way to find the number of pending messages in a given QUEUE to be picked by the queue reader?
My reader is not picking all the messages as many sent by my writer, i am not sure where they are getting lost? or if the JMS implementation is buffering them and does not flush until it does not have enough to throw out ( which any way does not make sense!!).
Please help.
ChandraYou're right in thinking that the behaviour you describe looks wrong.
Take a look at the QueueBrowser interface which can be used to inspect a queue. You get one using QueueSession.createBrowser(Queue). The QueueBrowser allows you to scan a queue without consuming the messages. However note that the state of the queue may change while you're observing it through the QueueBrowser so what you see might not always be a 100% accurate representation of the queue at any given time.
Other things to check:
- message selectors - are you setting a message selector on your queue receiver which is resulting in not all of the messages 'matching'.
- expired messages - are you setting a time-to-live on the messages that you publish.
Hope this helps,
David Ingham
http://www.arjuna.com -
Can I find the number of times the recorded meeting has been viewed?
In Adobe Connect is it possible to find the number of views after a recorded meeting is made public? Under meeting dashboard it keeps track of these views for 30 days but I can not seem to find anywhere under the reports where this information is located.
If you move the recordings to the Content Library, then you can pull the standard content reports for it, which will tell you number of views.
-
Can't locate email content? All of a sudden my email content has disappeared from inside MacMail? The actual emails are coming through but I am unable to view them in the content area! Nothing has been done to have changed this?
Please read this whole message before doing anything.
This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
Step 1
The purpose of this step is to determine whether the problem is localized to your user account.
Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
Test while logged in as Guest. Same problem?
After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
Step 2
The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Please take this step regardless of the results of Step 1.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2. -
Need help in finding the number of occurrences of a pattern.
Hi All,
I need help in finding the number of occurrences of a pattern in a table's column's data.
Consider sample data - one row's column from a table:
"S-S-S-A-S-S-P-S-S-B-S-A-P-S-S-C"
My requirement is:
I should get the count of S's which are immediately preceded by A or P.
for the above data i should get count as 3+2+1=6 (S-S-S-A, S-S-P, S-A)
The pattern data is stored as VARCHAR2 type.
Thanks in advance,
Girish G
Edited by: Girish G on Jul 21, 2011 11:22 PMI am sure there exists a better way then this one:
SQL> with dt as
2 (select 'S-S-S-A-S-S-P-S-S-B-S-A-P-S-S-C' str from dual)
3 SELECT SUM(Regexp_count(Regexp_substr(str, '(S\-?)+(A|P)+', 1,
4 Regexp_count(str, '(S\-?)+(A|P)+') - (
5 LEVEL - 1 )), 'S')) len
6 FROM dt
7 CONNECT BY LEVEL <= Regexp_count(str, '(S\-?)+(A|P)+')
8 /
LEN
6 -
I am a teacher. My Macbook has had no problem all year long connecting to the school's wireless until yesterday. My computer tells me I am connected, but does not let me use the internet at all.
Things I've tried:
- Restarting
- Running Network Diagnostics (I get to the point where it says my internet appears to be working correctly... but it's not)
- Pinging websites like Google (no success)
- Checking to see that other people's Macbooks are connecting, no problem (they are)
- Checking to see if a browser other than Safari works (Firefox does not)
At home, my computer works fine. But at school (work), I've got nothing. Weirder still, in my Mac Mail, I have my Gmail and my school email set up. The school email (i.e. the local network) is coming through to Mac Mail and working normally, but my Gmail is not working, just like the internet.
Any thoughts about what to try next?Howdy TrumpetCharlie,
We've an article that can help get your WiFi working normally again.
Wi-Fi: How to troubleshoot Wi-Fi connectivity
http://support.apple.com/kb/HT4628
Cheers,
Allen -
ive forgotten my security questions for my apple id, it keeps saying that it has sent an email to me with the information but the email is not coming through ????
Check the AppleCare number for your country here:
http://support.apple.com/kb/HE57
Call them up, and let them know you would like to be transferred to the Account Security Team. -
To find the number of j2ee engines configured to the middleware system
Hi,
How to find the number of j2ee engines configured to the middleware system.
Regards,
HarithaHi Haritha,
Adding to what Rahul mentioned.
We have a J2EE stack connected to ABAP stack by using JCO...
We have two JCO generated to connect ABAP stack and J2EE stack.
Cheers,
Karthick -
How to find the number of occurence of a string
String str="The AR tech seeks experienced candidates in java,jsp. The candidates should have atleast 1 year of experience in the specified skills.";
here i need to find the number of occurence of the string "experience".
how to find it out?String str="The AR tech seeks experienced candidates in java,jsp. The candidates should have atleast 1 year of experience in the specified skills.";
String findStr = "experience";
int count = 0;
int index = 0;
while(index != -1) {
index = str.indexOf(findStr, (count == 0 ? 0 : index + findStr.length()));
if(index != -1) {
count++;
Maybe you are looking for
-
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
-
How to add generic USB printer
Hi-we have an old Samsung ML 6060 laser printer that we have had networked via ethernet to 2 macs and a PC. Has always worked fine. Now we have added a new HP photo printer to our system and have it hooked up via the ethernet. Since we don't have eno
-
I had to delete everything on my phone to do the update so how and I suppose to get my photos back I backed them up on aug 21 someone please help
-
How do I transfer the data from one iPad to another
How do I transfer all of the data from one ipad to another one?
-
when i compile my program i get error message that says "myfile.java uses or overrides a deprecated API. Recompile with -deprecation for details." what does this mean and how do i fix it ? thanx trin