How prevent REMOTE LISTENER register on SCAN LISTENER
Hi All,
Oracle Database 11.2.0.3
How prevent remote registration on SCAN Listener?
I need to know if there is a way of prevent one instance register on listener using remote_listener parameter without affect incoming connection of client.
These parameter below is not enough to meet my tests:
tcp.validnode_checking = YES
tcp.excluded_nodes = {list of IP addresses}
tcp.invited_nodes = {list of IP addresses}The tcp.excluded_nodes and tcp.invited_nodes parameters deny and enable specific client IP addresses from making connections to the Oracle listener.
Levi Pereira
Yes, I posted about that 4 days ago:
Re: Local Listener Validity in 11gR2
I have not yet had an opportunity test it, have you successfully tested the procedures? Basically it forces all registration event to occur over IPC/TCPS. I have seen the original test case for this, and while yes, it is true that you can connect if this is not in place, it is a very complex man-in-the-middle vulnerability requiring access to your [hopefully firewalled] database server.
Similar Messages
-
Password for SCAN Listener.
Hi Team,
Is any one know how to set the password for SCAN listener in 11gr2?
Is it similar way as normal..!
Regards,
Manoharuser7439393 wrote:
Hi Team,
Is any one know how to set the password for SCAN listener in 11gr2?
Is it similar way as normal..!
Regards,Do you understand that why SCAN listener is there in the first place? This is not to going to be any use for client communication . The only time it would come into the picture is when there would be a resolution requirement for a local listener. Now, the question for you is, why you even want to set a password for it? Did you see the entry in the listener.ora which says that these listeners are added by an agent which means, there is nothing that you need to do for them?
Aman.... -
How to failover SCAN VIP and SCAN Listener from one node to another?
Environment:
O.S : HP-UX B.11.31 U ia64
RDBMS: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
It is a 2 Node RAC.
Question:
How to failover the SCAN VIP and SCAN LISTENER running on node 1 to node 2?
What is the relation between standard LISTENER and SCAN LISTENER ?
Why do we need LISTENER, when we have SCAN LISTENER ?
When I tried with SRCVTL STOP LISTENER , I thought the SCAN LISTENER adn SCAN IP will failover, but it did not?
Also please clarify if I use SRVCTL RELOCATE SCAN -i 1 -n Node1
Actalluy I am trying that by moving the SCAN listeners so that when I do PSU 7 patching on 1 node, no incoming attempt to connect will spawn
a process and thereby opening files in $ORACLE_HOME (which would prevent the patch from occurring)
Please clarify my queries.
Thanks, Sivaprasad.SHi Sivaprasad,
1. The following link will help you for SCAN VIP and SCAN LISTENER failover from 1 node to another.
http://heliosguneserol.wordpress.com/2012/10/19/how-to-relocate-scan_listener-from-one-node-to-another-node-on-rac-system/
http://oracledbabay.blogspot.co.uk/2013/05/steps-to-change-scan-ip-address-in.html
2. The Standard LISTENER is specific for particular node for which it is running. It cannot be relocated as its specific for the node its running. SCAN listeners are not replacements for the node listeners.A new set of cluster processes called scan listeners will run on three nodes in a cluster (or all nodes if there are less than 3). If you have more than three nodes, regardless of the number of nodes you have, there will be at most three scan listeners. So no relation for standard LISTENER and SCAN LISTENER.
3. Hmmm. let me put it in easy way for this question. All the RAC services like, asm, db , services, nodeapps registers with this SCAN_LISTENER. So if any of these services (asm, db , services, nodeapps) got down/not running, the SCAN_LISTENER will know the down status, and if any client requests to access the node/service which is down, the SCAN_LISTENER will redirect the client request to the least loaded node. So here all these process will happen without the knowledge of client. And As usual the standard LISTENER looks only for incoming request to connect with the database. So we need both LISTENER and SCAN LISTENER.
4. If you provide SRCVTL STOP LISTENER, it stops the default listener on the specified node_name, or the listeners represented in a given list of listener names, that are registered with Oracle Clusterware on the given node. No failover will happen under this case.
5. Yes you can relocate if you want to relocate the scan.
Hope this helps!!
Regards,
Pradeep. V -
Why scan listener has only 1 instance registered ?
hi all ,
i met this problem these days
my environment RAC03 has 2 nodes : RAC03A and RAC03B
using "lsnrctl services" checked the local listener, i found there are too many request established on RAC03A, but RAC03B has quite few request……
then i checked the scan listener
RAC03A —————————————————————————————————————
[grid@F5PRAC03A:/u01/app/11.2.0/grid/network/admin]$ lsnrctl status listener_scan1
LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 11-MAR-2013 13:01:35
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
Alias LISTENER_SCAN1
Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
Start Date 07-MAR-2013 16:14:16
Uptime 3 days 20 hr. 47 min. 20 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/11.2.0/grid/log/diag/tnslsnr/F5PRAC03A/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.27.125.81)(PORT=1521)))
Services Summary...
Service "F5PPERF" has 1 instance(s).
Instance "F5PPERF1", status READY, has 1 handler(s) for this service...
Service "F5PPERFXDB" has 1 instance(s).
Instance "F5PPERF1", status READY, has 1 handler(s) for this service...
The command completed successfully
RAC03B ———————————————————————————————————————
[grid@F5PRAC03B:/home/grid]$ lsnrctl status listener_scan1
LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 11-MAR-2013 13:25:13
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
Alias LISTENER_SCAN1
Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
Start Date 05-FEB-2013 10:11:51
Uptime 34 days 3 hr. 13 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/11.2.0/grid/log/diag/tnslsnr/F5PRAC03B/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.27.125.81)(PORT=1521)))
Services Summary...
Service "F5PPERF" has 1 instance(s).
Instance "F5PPERF2", status READY, has 1 handler(s) for this service...
Service "F5PPERFXDB" has 1 instance(s).
Instance "F5PPERF2", status READY, has 1 handler(s) for this service...
The command completed successfully
i thought there's something wrong with the scan listener , because when i checked RAC01, the scan listener is
RAC01 ——————————————————————————————————————
[grid@F5PRAC01A:/u01/app/11.2.0/grid/network/admin]$ lsnrctl status listener_scan1
LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 11-MAR-2013 13:28:31
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
Alias LISTENER_SCAN1
Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
Start Date 28-JAN-2013 15:25:19
Uptime 41 days 22 hr. 3 min. 12 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/11.2.0/grid/log/diag/tnslsnr/F5PRAC01A/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.27.125.69)(PORT=1521)))
Services Summary...
Service "F5POMU" has 2 instance(s).
Instance "F5POMU1", status READY, has 1 handler(s) for this service...
Instance "F5POMU2", status READY, has 1 handler(s) for this service...
The command completed successfully
the service has two instance registerd on RAC01, but RAC03 is not.
i tried " alter system register " in two nodes, but it's no use at all :(
how could i add the other instance on RAC03 registered in the scan_listener?
thanks a lot!i did what you said
1) stop scan_listener and scan
2) kill the listener_scan1 process on RAC03A
3) start scan and scan_listener
then i checked the status of scan_listener
at first , the scan_listener on RAC03B still had 1 instance registered (the local instance),
so i rebooted the OS(RAC03A)
after that , it finally works!
now the scan_listener on RAC03B has 2 instances registered(the local one and the remote one)
[grid@F5PRAC03B:/home/grid]$ lsnrctl status listener_scan1
LSNRCTL for HPUX: Version 11.2.0.3.0 - Production on 12-MAR-2013 09:08:28
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
Alias LISTENER_SCAN1
Version TNSLSNR for HPUX: Version 11.2.0.3.0 - Production
Start Date 12-MAR-2013 08:49:02
Uptime 0 days 0 hr. 19 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/11.2.0/grid/log/diag/tnslsnr/F5PRAC03B/listener_scan1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.27.125.81)(PORT=1521)))
Services Summary...
Service "F5PPERF" has 2 instance(s).
Instance "F5PPERF1", status READY, has 1 handler(s) for this service...
Instance "F5PPERF2", status READY, has 1 handler(s) for this service...
Service "F5PPERFXDB" has 2 instance(s).
Instance "F5PPERF1", status READY, has 1 handler(s) for this service...
Instance "F5PPERF2", status READY, has 1 handler(s) for this service...
The command completed successfully
thanks very much, john :) -
How to start the SCAN listener on new 11Gr2 install?
Ok...starting dbca on first RAC install on the new 11Gr2 cluster.
I was about to proceed from screen 3 to 4...and it comes up with an error saying the SCAN listener hasn't been started.
I started what I thought was the listener with lsrnctl start...but apparently that isn't enough.
What do I do to start the SCAN listener? I'm still a bit hazy on what this is for.....
Thanks in advance,
cayenneMan..there just is NOT a lot of good, easy to find direct documentation on this.
I found this document that had some srvctl instructions:
How to update the IP address of the SCAN VIP resources (ora.scan.vip) [ID 952903.1]
And from there...I tried experimentingL
# $GRID_HOME/bin/srvctl stop scan_listener
# $GRID_HOME/bin/srvctl stop scan
# $GRID_HOME/bin/srvctl status scan
I did:
[oracle@node1 bin]$ ./srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
SCAN VIP scan2 is enabled
SCAN VIP scan2 is not running
SCAN VIP scan3 is enabled
SCAN VIP scan3 is not running
[oracle@node1 bin]$ ./srvctl start scan
[oracle@node1 bin]$ ./srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node5
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node node3
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node node4
Trying to start the scan listener:
[oracle@node1 bin]$ ./srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is not running
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is not running
[oracle@node1 bin]$ ./srvctl start scan_listener
[oracle@node1 bin]$ ./srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node node1
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node node3
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node node4
So...it appears I figured how to get scan and the scan listener running.
I'm guessing I need to do some form of the srvctl add....I found this:
http://download.oracle.com/docs/cd/E11882_01/rac.112/e10718/srvctladmin.htm#CDDEEBCH
On it, I found the generic instructions for add:
srvctl add scan
Adds Oracle Clusterware resources for the given SCAN. This command creates the same number of SCAN VIP resources as the number of IP addresses that SCAN resolves to, or 3 when network_number identifies a DHCP network and Oracle GNS configuration.
Note:
This command is only available with Oracle Clusterware.
Syntax and Options
Use the srvctl add scan command with the following syntax:
srvctl add scan -n scan_name [-k network_number]
[-S subnet/netmask[/if1[|if2|...]]]
Table A-14 srvctl add scan Options
Option Description
-n scan_name
A fully qualified host name, which includes the domain name.
-k network_number
The optional network number from which SCAN VIPs are obtained. If not specified, the SCAN VIPs are obtained from the same default network from which the nodeapps VIP is obtained.
-S subnet/netmask
[if1 [|if2|...]]
Creates the network_number. This option must be specified when network_number does not exist.
Example
An example of this command is:
# srvctl add scan -n scan.mycluster.example.com
srvctl add scan_listener
Adds Oracle Clusterware resources to the SCAN listeners. The number of SCAN listener resources created is the number of SCAN VIP resources.
Note:
This command is only available with Oracle Clusterware.
Syntax and Options
Use the srvctl add scan_listener command with the following syntax:
srvctl add scan_listener [-l lsnr_name_prefix] [-s]
[-p "[TCP:]port_list[IPC:key][NMP:pipe_name][TCPS:s_port] [SDP:port]"]
Table A-15 srvctl add scan_listener Options
Option Description
-l lsnr_name_prefix
The SCAN listener name prefix.
-s
Use the -s option to skip checking of the ports.
-p "[TCP:]port_list
[IPC:key][NMP:pipe_name]
[TCPS:s_port]
[SDP:port]"
Protocol specifications for the listener. port_list is a comma-delimited list of TCP ports or listener endpoints.
If this option is not specified, then the default TCP port of 1521 is used.
Example
An example of this command is:
# srvctl add scan_listener -l myscanlistener
So, if I understand this correctly, to get scan and scan listener to autostart on boot I do something like this?
If my SCAN name is database-scan
I'd need to do srvctl add scan -n database-scan ?
For the scan listener, from the instructions it sounds like I can name it anything I want...is that correct...?
So I could do something like
srvctl add scan_listener -l fred ?
Thanks in advance for any suggestions. (Ok, not going to really name it fred)
cayenne -
Add static entry for SCAN LISTENER
Hey I am running a two node rac on grid 11.2 and db 11.2.0.3
My application does not like the scan listener, therefore I have to configure the remote listener parameter to the vips of the two hosts, which is working fine.
But it comes out the the system needs the service registered with the scan listener.
So. How can I add a static service entry for my scan listener ?
ChrisHi,
I don't understand why add static service name. Add static service name on listener is recommended only when you need connect remotely in a Inactive Instance and only to SYS user can connect or if you don't configured LOCAL and REMOTE Listener Parameter.
So, If you configure LOCAL and REMOTE Listener proper the all SERVICE NAME configured on your database will be always automatically added on all Listeners, you don't need worry about in configure the service on Listeners Manually.
With Oracle RAC you should not use the Parameter SERVICE_NAMES, you define Service Using EM or SRVCTL
http://docs.oracle.com/cd/E11882_01/server.112/e25513/initparams228.htm#REFRN10194
http://docs.oracle.com/cd/E14072_01/rac.112/e10718/hafeats.htm#BABHBDJD
Regards,
Levi Pereira -
Hi,
Some application users reported that they are unable to connect to the database.
Getting this err r : ORA-12505: TNS:listener does not currently know of SID given in connect
checked and found that the database listener was running from old home.(recently clusterware was upgraded from 11g to 12c)
Started the DB listener from grid home.
Then found that scan listener is not running.
While starting scan listener, getting below error.
crsctl start resource ora.LISTENER_SCAN1.lsnr
CRS-2644: No hosting members of 'ora.LISTENER_SCAN1.lsnr' are either online or are allowed to be used by the resource
CRS-4000: Command Start failed, or completed with errors.is database not registered with SCAN? why are you having two different listeners db listener and scan? Do you mean to say local listener on server?
Trying running below commands as grid user ,
this is how it worked with me
(commented out the names and ipaddresses)
~>+ASM1@xxxxx:/home/grid~> srvctl config scan
SCAN name: test-scan, Network: 1/192.xxx.xxx.x/255.xxx.xxx.x/bond0
SCAN VIP name: scan1, IP: /test-scan.xxxx.nc/192.xxx.xxx.101
SCAN VIP name: scan2, IP: /test-scan.xxxx.nc/192.xxx.xxx.102
SCAN VIP name: scan3, IP: /test-scan.xxxxx..nc/192.xxx.xxx.100
~>+ASM1@xxxxx:/home/grid~> srvctl config listener
Name: LISTENER
Network: 1, Owner: grid
Home: <CRS home>
End points: TCP:1521
~>+ASM1@xxxxx:/home/grid~> srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
to start and stop listeners
~>+ASM1@xxxxx:/home/grid~> srvctl stop listener
~>+ASM1@xxxxx:/home/grid~> srvctl start listener
~>+ASM1@xxxxx:/home/grid~> srvctl stop scan_listener
~>+ASM1@xxxxx:/home/grid~> srvctl start scan_listener
Thanks -
Scan listener for single instance
Hi,
in my 6 node 11.2 cluster, i've 1 single instance 11.2
This instance uses GI listener and i can be accessed using host vip.
Using the scan i get ora-12514.
Why?
Thanks.Hi,
"SCAN listeners can run on any node in the cluster. SCANs provide location independence for
databases so that the client configuration does not have to depend on which nodes run a
particular database.
Oracle Database 11g Release 2 and later instances register with SCAN listeners only as
remote listeners. Upgraded databases register with SCAN listeners as remote listeners, and
also continue to register with all other listeners."
"When a client submits a connection request, the SCAN listener listening on a SCAN IP
address and the SCAN port are contacted on the client’s behalf. Because all services on the
cluster are registered with the SCAN listener, the SCAN listener replies with the address of
the local listener on the least-loaded node where the service is currently being offered.
Finally, the client establishes a connection to the service through the listener on the node
where service is offered. All these actions take place transparently to the client without any
explicit configuration required in the client."
So scan redirect to the vip in which the instance is running.
Edited by: Mr.D. on 22-mag-2013 1.39 -
SCAN LISTENER runs from only one node at a time from /etc/hosts !
Dear all ,
Recently I have to configure RAC in oracle 11g(r2) in AIX 6.1 . Since in this moment it is not possible to configure DNS, so I dont use SCAN ip into the DNS/GNS, I just add the SCAN ip into the host file like :
cat /etc/hosts
SCAN 172.17.0.22
Got the info from : http://www.freeoraclehelp.com/2011/12/scan-setup-for-oracle-11g-release211gr2.html#ORACLE11GR2RACINS
After configuring all the steps of RAC , Every services are ok except SCAN_LISTENER . This listener is up only one node at a time . First time when I chek it from node1 , it shows :
srvctl status scan_listener
SCAN listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node dcdbsvr1
now when I relocate it from node 2 using
"srvctl relocate scan -i 1-n DCDBSVR2" , then the output shows :
srvctl status scan_listener
SCAN listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node dcdbsvr2
Baring these , we have to try to relocate it from the node2 by the following way, then it shows the error :
srvctl relocate scan -i 2 -n DCDBSVR2
resource ora.scan2.vip does not exists
Now my question , How can I run the SCAN and SCAN_LISTENER both of the NODES ?
Here is my listener file (which is in the GRID home location) configuration :
Listener File OF NODE1 AND NODE 2:
==================================
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON
LISTENER_SCAN1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC) (KEY = LISTENER_SCAN1)
ADR_BASE_LISTENER_SCAN1 = /U01/APP/ORACLE
2)
Another issue , when I give the command : " ifconfig -a " , then it shows the SCAN ip either node1 or node2 . suppose if the SCAN ip is in the node1 , and then if I run the "relocate" command from node2 , the ip goes to the Node 2 . is it a correct situation ? advice plz ... ...
thx in advance .. ...
Edited by: shipon_97 on Jan 10, 2012 7:22 AM
Edited by: shipon_97 on Jan 10, 2012 7:31 AMAfter configuring all the steps of RAC , Every services are ok except SCAN_LISTENER . This listener is up only one node at a time . First time when I chek it from node1 , it shows :If I am not wrong and after looking at the document you sent, you will be able to use only once scan in case you use /etc/host file and this will be up on only one node where you added this scan entry in /etc/hosts file.
Now my question , How can I run the SCAN and SCAN_LISTENER both of the NODES ?Probably you can't in your case, you might run only one i think and on one node only
srvctl status scan_listener
SCAN listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node dcdbsvr1
now when I relocate it from node 2 using
"srvctl relocate scan -i 1 -n DCDBSVR2" , then the output shows :
srvctl status scan_listener
SCAN listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node dcdbsvr2You moved scan listener from node 1 to node 2, OK
Baring these , we have to try to relocate it from the node2 by the following way, then it shows the error :
srvctl relocate scan -i 2 -n DCDBSVR2
resource ora.scan2.vip does not exists
--------------------------------------------------------------------------------Since you have only one scan, you can't relocate "2". So ise "1" instead here also
FYI
http://www.oracle.com/technetwork/database/clustering/overview/scan-129069.pdf
Salman -
Why does a JButton automatically have a mouse listener registered with it?
If I instantiate a JButton, I find there's a mouse listener already registered (see code below). Does anyone know why?
Looking at the source code for JButton, I can't see how this is. If a create a dummy subclass of AbstractButton (of which JButton is a direct subclass) and instantiate that, it has no mouse listeners, and likewize with Button. So what is it about JButton?
The reason I ask is that I've seen in a book on swing that you must call enableEvents(AWTEvent.MOUSE_EVENT_MASK) on a JButton if you want processMouseEvent to get executed. But it actually gets executed even if enableEvents hasn't been called, and the only reason for this is surely that there is a mouse listener registered, which there is, but why?
Might the reason be that JButton extends Accessible?
Code:
JButton jb = new JButton("Dummy");
MouseListener[] mls = (MouseListener[])(jb.getListeners(MouseListener.class));
JOptionPane.showMessageDialog(this, (new Integer(mls.length)).toString(), "Number of Mouse Listeners", JOptionPane.INFORMATION_MESSAGE);Hello,
That listener is installed by the JButton's UI. You might want to have a look at the source code of BasicButtonUI and BasicButtonListener to understand what they are used for. For example, mousePressed in BasicButtonListener is used to call setArmed on the JButton.
My best advice is for you not to worry about this at all. -
J2Se receiver File adapter-HTTP 503 no listener registered for service
Hi,
We are using J2Se file adapter for one the interfaces and the logs of the J2se adapter engine has shown the following error-
Error: com.sap.aii.messaging.net.TransportException: HTTP 503 no listener registered for service /file/example_outbound
at com.sap.aii.messaging.net.HTTPRequest.run(ServerHttpImpl.java:416)
I checked with the J2SE File/FTP receiver adapter configuration given at help.sap and found the following the following info related to the error-
Specifications for addressing by the Integration Engine
○ XI.httpPort=<port_no>
<port_no>specifies the HTTP server port that receives the messages from the Integration Engine.
○ XI.httpService=<service>
<service> describes the service part of the address where the Integration Engine must send its messages.
These specifications are mandatory.
If, for example, you have specified XI.httpPort=1234 and XI.httpService=/file/Receiver, the end point address of the file/FTP adapter in the Integration Engine must be specified as follows:
http://<fileadapterhost>:1234/file/Receiver
The end point address must be extended as follows for the Integration Engine in Release 1.0:
http://<fileadapterhost>:1234/file/Receiver?action=execute&pipelineid=Receiver
If the Integration Engine message is sent to a non-specified adapter service, the system displays the following error message:
*No registered listener for <Service> found*
The system displays the same message if the adapter is initialized, but has not been started (status STOPPED or INITIALIZED).
Where I need to check this Integration engine address specifications. I have't found any of the above code in the adapter configuration which we are using presently.The interface is running successfully before but thrown this error now.
Please reply me if some one has faced similar issue and get it resolved.Hi
How was this issue resolved? I have the same problem.
I only have two receivers - the deafult j2se file receiver and my newly created one which used the default as a template. The ports and service's are different.
I've even tried deleting my custom receive adapter and using only the default one but i still get that error. -
Ora-12514 connect to SCAN listener in dataguard RAC environment
I have two rac nodes datase on linux and two rac standby database also.
Here are what I got when I try to connect to scan listener from client. It connects to vip/or scan ip addresses without any problem.
sqlplus system/password@wxcy
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 14 18:42:42 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
But when I log in to the ip address of the scan listener, it worked:
sqlplus system/[email protected]:1521/wxcy
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 14 18:43:12 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
Here is the tnsnames.ora on the client:
wxcy =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wxcy)
Here are listener.ora and tnsnames.ora on the server:
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
SID_LIST_LISTENER_SCAN1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
SID_LIST_LISTENER_SCAN3 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
INBOUND_CONNECT_TIMEOUT_LISTENER = 120
~
tnsnames.ora:
wxcy =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wxcy)
wxcy_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wxcy_DGMGRL)
wxcy1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)(SERVICE_NAME = wxcy)
(INSTANCE_NAME = wxcy1)
wxcy2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)(SERVICE_NAME = wxcy)
(INSTANCE_NAME = wxcy2)
From node 2:
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
SID_LIST_LISTENER_SCAN2 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy2)
SID_LIST_LISTENER_SCAN3 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy2)
I wonder why I can connect to the ip addresses of those scan listener but not the scan name.
Thanks.Hello;
This note may help :
How to Troubleshoot Connectivity Issue with 11gR2 SCAN Name [ID 975457.1]
Also I would check my DNS ( OK double check ) and each listener service as follows :
lsnrctl service LISTENER_SCAN1
( and so on )
Also
Make sure a password file exists on on that node. ( A copy - Create new with Oracle 11 DG does not work )
Best Regards
mseberg
Edited by: mseberg on Mar 14, 2012 5:10 PM -
Scan listener is NOT starting up
Hi,
I have installed 11gR2 two node RAC on OEL5.2, 64 bit.
When ever I start the node, in one of the node SCAN listener will NOT be running.
If I start the node one first then scan listener will run on node, if I start second node first then scan will run on second node.
How many scan listener should run ( on both the nodes or only one nodes ) ??? Is it okay with one SCAN listener ???
My /erc/hosts entry... I have configured ONLY one scan IP.
===================================================
[oracle@rac1 sampleXMLs]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
# Public Network - (eth0)
192.168.1.8 rac1.appsdba.info rac1
192.168.1.7 rac2.appsdba.info rac2
# Private Interconnect - (eth1)
192.168.0.100 rac1-priv.appsdba.info rac1-priv
192.168.0.101 rac2-priv.appsdba.info rac2-priv
# Public Virtual IP (VIP) addresses for - (eth0)
192.168.1.200 rac1-vip.appsdba.info rac1-vip
192.168.1.201 rac2-vip.appsdba.info rac2-vip
# Scan IP
192.168.1.187 racnode-cluster-scan
===================================================
Thanks.
-joy.If I start the node one first then scan listener will run on node, if I start second node first then scan will run on second node.in your case ,the above result is expected.
My /erc/hosts entry... I have configured ONLY one scan IP.
192.168.1.187 racnode-cluster-scanActually this is not a way to configure the scan, please refer the below document.
normally we've 3 scan ip configured for SCAN.
http://www.oracle.com/technetwork/database/clustering/overview/scan-129069.pdf -
Wrong remote port number with TCP listener
Hi
I am sending data from a dsp with a network card over TCP/IP to my pc running labview7express. The data is received correctly, I use a 'TCP create listener' followed by a 'TCP wait on listener' to establish the connection, followed by a while loop with 'TCP read' in it.
The port returned by 'TCP create listener' is correct (1001), but somehow 'TCP wait on listener' returns 57345 as remote port!?
Also when using another port eg 1003 it still returns 57345..
Anyone knows how this erroneous portnumber is achieved?stino wrote:
> Hi
> I am sending data from a dsp with a network card over TCP/IP to my pc
> running labview7express. The data is received correctly, I use a 'TCP
> create listener' followed by a 'TCP wait on listener' to establish the
> connection, followed by a while loop with 'TCP read' in it.
> The port returned by 'TCP create listener' is correct (1001), but
> somehow 'TCP wait on listener' returns 57345 as remote port!?
> Also when using another port eg 1003 it still returns 57345..
> Anyone knows how this erroneous portnumber is achieved?
Nothing wrong with that. A TCP/IP connection has ALWAYS two connection
ends with each of them using a port number. 1001 is the port of the
local listen socket (which needs to be fixed so that clients can connect
to a know
n server) in your LabVIEW application. 57345 is the port number
used by your software running on your DSP board. A client usually has no
fixed port number but allocates any port number not already in use. When
the listen socket receives a connection request it connects and passes
the connection with the local port 1001 and the remote port 57345
through TCP Wait On Listener to your application. Since you set up the
Listen Socket in Create Listener you already know its port number so TCP
Wait on Listener does only return the port number of the remote
connection end of your connection.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
SCAN listener supports no services
Hi all,
Our's DB: 11.2.0.1.0. Its 2 node cluster.
$srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node1
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node1
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node2
@node1$ps -ef | grep tnslsnr
oracle xxxxx ..... /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
oracle xxxx ..... /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
oracle xxx ..... /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle xxx ..... /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr listener_scan2 -inherit
@node2$ps -ef | grep tnslsnr
oracle xxxx ..... /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN3 -inherit
oracle xxxx ..... /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2 -inherit
oracle xxxx ..... /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
oracle xxxxxxx ..... /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr listener -inherit
@node1$lsnrctl status listener_scan2
Listener Parameter File //u01/app/11.2.0/grid/network/admin/listener.ora
Listening Endpoints Summary..
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN2)))
The listener supports no services
The command completed successfully
??? Though Listener_scan2 is running on node1,why it shows on ps -ef on node 2 ?
Why listener_scan2 processes from ORACLE_HOME instead of CRS_HOME?
ThanksI assume SCAN name:1521 is in fact a proper IP address or hostname with the port number?
The Oracle instance will attempt to connect to that IP and port to register its services.
If it is a hostname and not IP, then make sure it resolves correctly to an IP address on that server. If name resolution fails, then without an IP for that name, the Oracle instance cannot register its services.
Once you have made sure that hostname resolution works, the next step is to check whether there is in fact a network service on that IP address, listening on that port.
Two methods can be used. The netstat command (run on that server that owns that IP) will show all tcp listener end points. Use the -n switch to display numerics (and not hostnames). The netstat output should contain and entry "+ip_address:1521+ or +*:1521+ - this will confirm that there is a network service on that port for that IP address.
The more detailed method is using the +lsof+ (list of files) command on the SCAN listener process (find the +pid+ and specify it via the +-p+ command line switch). This command will show all open file handles for the specified process - including socket handles. One of these should be on that IP address for port 1521.
If you have confirmed that both the Oracle instance has the correct SCAN details and that the SCAN listener is actually listening on that tcp port and IP, and registration still does not work - then it could be a connectivity problem.
From the +oracle+ o/s account on the db server, test connectivity to that port and IP using +telnet+.
Maybe you are looking for
-
Enhancement spot is not triggered in Custom Program.
Dear Experts, After saving the sales order i would like to view the print preview. For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction
-
Hierarchy - Product Categories
Hello everyone! I´m starting to prepare the environment to start working with CRM standalone (no integration with R/3). I need some help/tips/materials/etc on how to created Products, Hierarchies with product categories, etc. I am reading the Config
-
New feature in iOS 6.1 + iTunes Match + Car systems
I'm happy to see some great new features with iOS6.1 with iTunes Match when connected to my Audi MMI (music system). Previously if you were a subscriber to Apple's iTunes Match offering, you were able to only see the music tracks that you had manuall
-
Why did my photo quality go bad since ios 7.0.1?
why did my photo quality go bad since ios 7.0.1?
-
How to get complete Java thread dump?
I suspect a deadlock on a IWS 6.0SP5 running on Solaris 8 with Sun JDK 1.4.1, how can I make a full thread dump? I have enabled LogStdout and LogStderr in magnus.conf. regards Lars Krog-Jensen