Registering keyboard listener

Hi,
In my application I have a JFrame and I add panels to the frame. The JFrame has a menubar which contains menus and menuitems. My problem is that I want to catch keyboard events. After the frame comes up, I should be able to hit certain keys and perform certain actions which will modify the UI.
I tried adding a keyboard listener to the content pane of the frame but it didn't work. What I did was as follows:
getContentPane.addkeyListener( new KeyAdapter()
public void keyReleased (KeyEvent ke)
// do something
Can anybody help?
thanks a lot in advance,
-Amitabh

The events are probably being handled at a lower level (subcomponents) and never getting fired to the ContentPane.
I would suggest extending the DefaultKeyboardFocusManager class and overridding the processKeyEvent or dispatchKeyEvent method.
public class YourKeyboardFocusManager extends DefaultKeyboardFocusManager
    private   KeyboardFocusManager m_initialManager   = KeyboardFocusManager.getCurrentKeyboardFocusManager();
    public YourKeyboardFocusManager()
        super();
        KeyboardFocusManager.setCurrentKeyboardFocusManager(this);
    public boolean dispatchKeyEvent(KeyEvent event)
        Component component = event.getComponent();
        System.out.println("component dispatching the  KeyEvent : "+component.getClass().getName());
        switch (event.getKeyCode())
          case KeyEvent.VK_WHATEVER_KEY_YOU_WANT:
                 //DO YOUR STUFF HERE
                  event.consume();
                  break;
          default:
                return m_initialManager.dispatchKeyEvent(event);
         return m_initialManager.dispatchKeyEvent(event);
} Now this class will pick up every single key event posted to the AWTEventQueue before it is dispatched. This may be overkill but it does what you need. You can look into setting up your own keyevent dispatcher if you want and adding that to the current KeyboardFocusManager opposed to writing your own like above.
Anyway, should be enough here to fix your problem.
Hope this helps
nes

Similar Messages

  • Will Nodeapps register the listener service of RAC database?

    Hi Friends,
    In 10g RAC will Nodeapps register the listener service of RAC database?
    because if i bring down nodeapps the listenener is also going down
    ora....C1.lsnr application OFFLINE OFFLINE
    ora.rac1.gsd application OFFLINE OFFLINE
    ora.rac1.ons application OFFLINE OFFLINE
    ora.rac1.vip application OFFLINE OFFLINE
    Regards,
    DB

    Hi,
    This is expected behavior. The default listener (listener_nodename) could be starte and stopped with nodeapps.
    srvctl listener is mainly for specific listeners that are other than default.
    http://docs.oracle.com/cd/B19306_01/rac.102/b14197/whatsnew.htm#sthref6
    If you create additional Listeners with non-default names, in other words, with names other than the name listener_nodename where nodename is the name of the node on which the Listener resides, then you must start and stop these Listeners with SRVCTL commands.
    http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm#i1009606
    http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm#CDCEIDFH

  • Re-registering a listener with an instance

    What are the options for registering a listener with an instance? Obviously you can restart the instance, but what options do you have if you want to reregister w/o restarting the instance?

    as SYSDBA, execute
    ALTER SYSTEM REGISTER;
    Minor correction in your terminilogy ... the instance is registered with the listener, not the other way around. By registering the instance's availability to the listener, the listener then knows it should be listening on behalf of the instance (or service).

  • Keyboard listener question

    Hey guys
    Just wondering if there is a way to change a keyboard listener I have set up, so that instead of reacting instantly when it hears a key_UP event, it waits to see if there's another KEY_UP within, say 50ms?
    Cheers
    Shaun

    Use Timer class:
    var myTimer:Timer = new Timer(50, 1);
    function keyUpHandler(event:KeyboardEvent):void
         if (myTimer.running)
              myTimer.stop();
              //     code to do what you want after second KEU_UP within 50 ms
         }else{
              myTimer.start();

  • Service not registered with listener on one of the nodes?

    We have an 11.2.0.1 oracle RAC with 2 nodes. Recently the listener died on node 1 and after a manual startup it seems like the service doesn't register with the listener on this node.
    Here's what statusing the listener on both nodes shows:
    [oracle@db01]$ $GRID_HOME/bin/lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-NOV-2010 12:27:49
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 17-NOV-2010 07:14:40
    Uptime 0 days 5 hr. 13 min. 9 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/oracle/diag/tnslsnr/db01/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.4)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.14)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM1", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@db02 ~]$ $GRID_HOME/bin/lsnrctl status listener
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-NOV-2010 12:30:08
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 17-NOV-2010 07:14:40
    Uptime 0 days 5 hr. 15 min. 28 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/oracle/diag/tnslsnr/db02/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.5)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.15)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
    Instance "+ASM2", status READY, has 1 handler(s) for this service...
    Service "prd1.somehost.net" has 1 instance(s).
    Instance "prd12", status READY, has 1 handler(s) for this service...
    Service "prd1XDB.somehost.net" has 1 instance(s).
    Instance "prd12", status READY, has 1 handler(s) for this service...
    The command completed successfully
    The prd12 instance shows as registered with the listener on db02 but the prd11 doesn't on db01. Right now all connections are routed to the prd12 instance. Also trying to connect to prd11 manually returns "ORA-12505: TNS:listener does not currently know of SID given in connect descriptor". The prd11 instance is actually running and I can connect to it locally via 'sqlplis "/ as sysdba"' but not via 'sqlplus user/pass@prd1'. I'm wondering what went wrong and how to register the prd11 with the listener on db01.
    Here's some more information
    [oracle@db01 ~]$ $GRID_HOME/bin/srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node db02
    SCAN Listener LISTENER_SCAN2 is enabled
    SCAN listener LISTENER_SCAN2 is running on node db01
    SCAN Listener LISTENER_SCAN3 is enabled
    SCAN listener LISTENER_SCAN3 is running on node db01
    [oracle@db01 ~]$ $GRID_HOME/bin/srvctl status scan
    SCAN VIP scan1 is enabled
    SCAN VIP scan1 is running on node db02
    SCAN VIP scan2 is enabled
    SCAN VIP scan2 is running on node db01
    SCAN VIP scan3 is enabled
    SCAN VIP scan3 is running on node db01
    [oracle@db01 ~]$ $GRID_HOME/bin/srvctl status listener
    Listener LISTENER is enabled
    Listener LISTENER is running on node(s): db01,db02
    Thanks in advance,
    Nick
    Edited by: user639426 on Nov 17, 2010 4:44 AM

    Seems like the LISTENER_SCAN2 and LISTENER_SCAN3 are running on node 1 but still I can't status them
    [oracle@db01 ~]$ ps -ef | grep tns
    oracle 6227 31486 0 08:24 pts/1 00:00:00 grep tns
    oracle 18049 1 0 Nov17 ? 00:00:20 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
    oracle 18120 1 0 Nov17 ? 00:00:16 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2 -inherit
    oracle 18131 1 0 Nov17 ? 00:00:05 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN3 -inherit
    [oracle@db01 ~]$ $GRID_HOME/bin/lsnrctl status LISTENER_SCAN2
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 08:25:11
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    TNS-01101: Could not find service name LISTENER_SCAN2
    [oracle@db01 ~]$ $GRID_HOME/bin/lsnrctl status LISTENER_SCAN3
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 08:25:18
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    TNS-01101: Could not find service name LISTENER_SCAN3
    /u01/app/11.2.0/grid/network/admin/listener.ora contents:
    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
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora contents:
    PRD1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = prdcluster-scan)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = prd1.somehost.net)
    Everything worked just fine for quite some time until I found the listener down one morning and started it up manually. I wonder if I didn't start up the processes correctly. I did:
    $GRID_HOME/bin/srvctl stop scan_listener
    $GRID_HOME/bin/srvctl stop scan
    $GRID_HOME/bin/srvctl stop listener
    $GRID_HOME/bin/srvctl start listener
    $GRID_HOME/bin/srvctl start scan
    $GRID_HOME/bin/srvctl start scan_listener
    Is this the correct way of starting up the listener processes?
    Nick

  • Not able to register with listener after installing oracle grid infrastrtcure in oracle 11gr2 on windows

    Hi Guru's.
    I am not able to get listener connectivity after installing Oracle 11gr2 Grid infrastructure on windows on vmware workstation. I register with static ip.
    Even i recreated the listener and running the listener from Grid home.
    The output what i am getting is :--
    C:\> lsnrctl status
    The listener support no services
    Can you please help me out

    C:\Users\Administrator>lsnrctl stop
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:09:10
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    The command completed successfully
    C:\Users\Administrator>lsnrctl start
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:09:21
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Log messages written to c:\app\administrator\diag\tnslsnr\WIN-0P8BCA3R7V5\listener\alert\log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                26-NOV-2013 09:09:24
    Uptime                    0 days 0 hr. 0 min. 4 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         c:\app\administrator\diag\tnslsnr\WIN-0P8BCA3R7V5\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    C:\Users\Administrator>lsnrctl status
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:09:31
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
    Start Date                26-NOV-2013 09:09:24
    Uptime                    0 days 0 hr. 0 min. 8 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Log File         c:\app\administrator\diag\tnslsnr\WIN-0P8BCA3R7V5\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    C:\Users\Administrator>lsnrctl service
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 26-NOV-2013 09:13:10
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    Services Summary...
    Service "+asm" has 1 instance(s).
      Instance "+asm", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0 state:ready
             LOCAL SERVER
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
        Handler(s):
          "D000" established:0 refused:0 current:0 max:1022 state:ready
             DISPATCHER <machine: WIN-0P8BCA3R7V5, pid: 2560>
             (ADDRESS=(PROTOCOL=tcp)(HOST=WIN-0P8BCA3R7V5)(PORT=49246))
    The command completed successfully

  • JComboBox keyboard listener

    I have an editable JComboBox component:
    JComboBox combo = new JComboBox();
    combo.setEditable(true);
    How to attach a listener to every character from keyboard?
    I have tried:
    combo.addKeyListener(new KeyAdapter() {
    but it doesn't seems to work!
    I'm not sure which listener to attach to the combobox...
    Tomecks

    I have found the solution of that problem:
    http://forum.java.sun.com/thread.jsp?thread=118366&forum=257&message=310063
    Tomecks

  • Register new listener for newDB(with new Home) in existing 10.2.0.2 cluster

    Dear Friends,
    UAT Instance:
    i have installed 10g cluster (10.2.0.2) and i have cretaed new 10g home and cretaed listener (with port ) and cretaed UAT database
    No issues on the above
    DEV Instance:
    Now we have another database DEV and for this i have differnt oracle home (not same as UAT) and i created databases and converted to RAC but i want this database to be registered in the 10g existing cluster and the listener also i want to have new one with different port (not same as UAT)
    so when we try to cretae new listener from new DB home it's throwing error.
    "CRS-0215: could not start resource"
    so please let me know how to
    creating new listener with different port for new database having new DB home
    and register it with the existing 10g cluster
    Regards,
    DB

    Hi,
    Is the database part of the cluster or not?
    srvctl config database -d ... to find out if not add it to cluster
    srvctl add database -d and then the instances
    srvctl add instance -d dbname -i instance name
    have a look in here for information related to listener/port
    Changing Default Listener Port Number [ID 359277.1]
    How to Create Multiple Oracle Listeners and Multiple Listener Addresses [ID 232010.1]

  • How to register a listener in RAC.

    Hi,
    We have recently upgraded our database in RAC environment. As a part of this, listener oracle_home also got changed. Earlier we used to start the listener using srvctl but now i am not able to do the same. i think i need to change Oracle_home details in cluster related config as well. Can any body share if any points on this.
    Regards
    DBA.

    if you've upgraded to 11.2 the environment variable TNS_ADMIN to the new location in grid home
    the database description in ocr also needs to have the tns_admin updated
    Update the CRS TNS_ADMIN setting
    srvctl setenv database -d <dbname> -T TNS_ADMIN=/u00/app/11.2.0.2/grid/network/admin <-- your grid home
    Verify the environment for the database and all instances
    $ srvctl getenv database –d <dbname>
    $ srvctl getenv instance –d <dbname> -i <instancename>
    Also, when I upgraded to 11.2.0.2 I had an issue with using srvctl because the OCR was still looking to the old home even though it was uninstalled. This was resolved by setting ORA_CRS_HOME environment variable to point to the new GRID home.
    hope this helps
    Brenda

  • Iphone keyboard listener or delegate

    Has anyone setup a delegate to detect when a key is pressed on the keyboard? I want to play a sound based on the key pressed.
    Ta
    Christopher

    Basics from the manual are restart, reset, restore.  Try them.

  • Keyboard Listener Problem (AS3)

    I have one frame with a button that goes to frame 2.
    On frame two I have code to add listeners to move a circle around.
    stage.addEventListener(KeyboardEvent.KEY_DOWN,keyDown); etc.
    But the problem is after I click the button to go to frame 2, I have to click again before I can move my circle.
    If anybody could remedy this situation, I would be extremely grateful!

    Well, strange effectively... it stops working if I remove the button...
    What's even stranger is that it was working first... When I created my movie, everything was working WITHOUT a button in the second frame... I added it after, in case you had one too... But now, even if I remove my second frame (and it's code) and recreate it again, it doesn't work!! Now it seems the button MUST be in the frame two, so if I hide it in the code (evt.target.visible = false when I click on it), then it works, since it's present, but not visible...!?!
    Since it seems to work in CS3, it's really a bug...
    Many of the code that I have in a CS3 book tell to click on the movie in order for it to have focus before being able to interact with it... but it was working without having to do it in CS4... and now, we're facing the opposite!! Computers act strangely sometimes...

  • Keyboard listener to a JSpinner

    Hi,
    How can i add a KeyListener to a JSpinner?
    The methods :
    JSpinner.addKeyListener(...);or
    JSpinner.getEditor().addKeyListener(...);don't work.
    regards Olek

    ((JSpinner.DefaultEditor)spinner.getEditor()).getTextField().addKeyListener(..)

  • Keyboard listener

    Hi all,
    I want to capture the event when Ctrl + N is clicked. we are increasing the real estate on the screen by taking out favorites and other menus. This is done by opening a new window using javascript. The requirement is to make the screen fullscreen even when the user opens a new window using  Ctrl + N.
    We are adding the javascript in masthead
    Regards
    Rohit

    Hello Rohit,
    Get the Keycode for Cntrl+N and capture the event.
    Javascript might look like this.
    .... if (event.ctrlKey && event.keyCode==78)
    Regards,
    Vinod

  • Oracle Listener Register Issue

    Hi , I have got a problem with registering a test db CBA04 with listener LISTENER_TEST. Initially this DB was configured to the listener -LISTENER. Now, I want to separate this instance to LISTENER_TEST and hence configured this to port 1522 using netmgr.However when I startup the CBA04 instance, it is getting registered to LISTENER running in 1521 port, although this is not registered in listener.ora file of LISTENER.
    Thanks in Advance, the complete spool is attached below.
    Version Details :Oracle 10.2.0.1.0 on Linux
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2010.09.24 16:22:32 =~=~=~=~=~=~=~=~=~=~=~=
    echo $ORACLE_HOME
    /applns/oracle10g
    -bash-3.00$ echo $ORACLE_SID
    CBA04
    -bash-3.00$ pwd
    /applns/oracle10g/network/admin
    -bash-3.00$ cd
    -bash-3.00$ pwd
    /applns/oracle10g
    -bash-3.00$ l[Kps -ef | grep smon
    oracle    2005 30569  0 16:19 pts/1    00:00:00 grep smon
    oracle   13989     1  0 Sep06 ?        00:03:22 ora_smon_CBA03
    oracle   14123     1  0 Sep06 ?        00:04:50 ora_smon_CMH2
    oracle   14227     1  0 Sep06 ?        00:03:30 ora_smon_MMH2
    oracle   16674     1  0 Sep06 ?        00:02:40 ora_smon_MCSES2
    oracle   18666     1  0 Sep06 ?        00:02:02 ora_smon_CWY02
    oracle   24104     1  0 Sep16 ?        00:00:38 ora_smon_C9W02
    oracle   31240     1  0 15:30 ?        00:00:00 ora_smon_CBA04
    -bash-3.00$ lsnrctl
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-SEP-2010 16:19:32
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> show current_listener
    Current Listener is LISTENER
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                24-SEP-2010 15:30:28
    Uptime                    0 days 0 hr. 49 min. 16 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /applns/oracle10g/network/admin/listener.ora
    Listener Log File         /applns/oracle10g/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=N850)(PORT=1521)))
    Services Summary...
    Service "C9W02" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "C9W02XDB" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "C9W02_XPT" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "CBA03" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA03XDB" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA03_XPT" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA04" has 1 instance(s).
      Instance "CBA04", status READY, has 1 handler(s) for this service...
    Service "CBA04XDB" has 1 instance(s).
      Instance "CBA04", status READY, has 1 handler(s) for this service...
    Service "CBA04_XPT" has 1 instance(s).
      Instance "CBA04", status READY, has 1 handler(s) for this service...
    Service "CMH2" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CMH2XDB" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CMH2_XPT" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CTSDEV4" has 1 instance(s).
      Instance "CTSDEV4", status UNKNOWN, has 1 handler(s) for this service...
    Service "CWY02" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY02XDB" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY02_XPT" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY2" has 1 instance(s).
      Instance "CWY2", status UNKNOWN, has 1 handler(s) for this service...
    Service "MCSES2" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MCSES2XDB" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MCSES2_XPT" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MMH2" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MMH2XDB" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MMH2_XPT" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MWY1" has 1 instance(s).
      Instance "MWY1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> st et current_listener LISTENER_TEST
    Current Listener is LISTENER_TEST
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=N850)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     LISTENER_TEST
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                24-SEP-2010 15:29:52
    Uptime                    0 days 0 hr. 50 min. 14 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /applns/oracle10g/network/admin/listener.ora
    Listener Log File         /applns/oracle10g/network/log/listener_test.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=N850)(PORT=1522)))
    Services Summary...
    Service "CBA04" has 1 instance(s).
      Instance "CBA04", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> exit
    -bash-3.00$ sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 24 16:20:15 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter user-name: sys asy  sysdba
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> shudt  tdown ui  immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    -bash-3.00$ lsnrctl
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-SEP-2010 16:21:09
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> stat    show current_listener
    Current Listener is LISTENER
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                24-SEP-2010 15:30:28
    Uptime                    0 days 0 hr. 50 min. 57 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /applns/oracle10g/network/admin/listener.ora
    Listener Log File         /applns/oracle10g/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=N850)(PORT=1521)))
    Services Summary...
    Service "C9W02" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "C9W02XDB" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "C9W02_XPT" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "CBA03" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA03XDB" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA03_XPT" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CMH2" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CMH2XDB" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CMH2_XPT" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CTSDEV4" has 1 instance(s).
      Instance "CTSDEV4", status UNKNOWN, has 1 handler(s) for this service...
    Service "CWY02" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY02XDB" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY02_XPT" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY2" has 1 instance(s).
      Instance "CWY2", status UNKNOWN, has 1 handler(s) for this service...
    Service "MCSES2" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MCSES2XDB" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MCSES2_XPT" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MMH2" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MMH2XDB" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MMH2_XPT" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MWY1" has 1 instance(s).
      Instance "MWY1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> set currenm t_lio stener LISTENER_TEST
    Current Listener is LISTENER_TEST
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=N850)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     LISTENER_TEST
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                24-SEP-2010 15:29:52
    Uptime                    0 days 0 hr. 51 min. 57 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /applns/oracle10g/network/admin/listener.ora
    Listener Log File         /applns/oracle10g/network/log/listener_test.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=N850)(PORT=1522)))
    Services Summary...
    Service "CBA04" has 1 instance(s).
      Instance "CBA04", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> exit
    -bash-3.00$ cd network
    -bash-3.00$ cd admin
    [m-bash-3.00$ cat listener.ora
    # listener.ora Network Configuration File: /applns/oracle10g/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = N850)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = /applns/oracle10g)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = CWY2)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = CWY2)
        (SID_DESC =
          (GLOBAL_DBNAME = MWY1)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = MWY1)
        (SID_DESC =
          (GLOBAL_DBNAME = CTSDEV4)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = CTSDEV4)
    SID_LIST_LISTENER1 =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = CTSDEV4)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = CTSDEV4)
        (SID_DESC =
          (GLOBAL_DBNAME = CWY2)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = CWY2)
        (SID_DESC =
          (GLOBAL_DBNAME = MBA3)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = MBA3)
        (SID_DESC =
          (GLOBAL_DBNAME = MWY1)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = MWY1)
        (SID_DESC =
          (GLOBAL_DBNAME = CTSDEV2)
          (ORACLE_HOME = /applns/oracle9204)
          (SID_NAME = CTSDEV2)
        (SID_DESC =
          (GLOBAL_DBNAME = MCSES2)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = MCSES2)
        (SID_DESC =
          (GLOBAL_DBNAME = CBA03)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = CBA03)
    LISTENER_TEST =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = N850)(PORT = 1522))
    SID_LIST_LISTENER_TEST =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = CBA04)
          (ORACLE_HOME = /applns/oracle10g)
          (SID_NAME = CBA04)
    -bash-3.00$ ps -ef | grep lsnr
    oracle    2237 30569  0 16:22 pts/1    00:00:00 grep lsnr
    oracle   31208     1  0 15:29 ?        00:00:00 /applns/oracle10g/bin/tnslsnr LISTENER_TEST -inherit
    oracle   31299     1  0 15:30 ?        00:00:01 /applns/oracle10g/bin/tnslsnr LISTENER -inherit
    -bash-3.00$ ps -ef | grep -i smon
    oracle    2247 30569  0 16:22 pts/1    00:00:00 grep -i smon
    oracle   13989     1  0 Sep06 ?        00:03:22 ora_smon_CBA03
    oracle   14123     1  0 Sep06 ?        00:04:50 ora_smon_CMH2
    oracle   14227     1  0 Sep06 ?        00:03:30 ora_smon_MMH2
    oracle   16674     1  0 Sep06 ?        00:02:40 ora_smon_MCSES2
    oracle   18666     1  0 Sep06 ?        00:02:02 ora_smon_CWY02
    oracle   24104     1  0 Sep16 ?        00:00:38 ora_smon_C9W02
    -bash-3.00$ sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 24 16:22:49 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area  536870912 bytes
    Fixed Size              2022144 bytes
    Variable Size            142607616 bytes
    Database Buffers       390070272 bytes
    Redo Buffers              2170880 bytes
    Database mounted.
    Database opened.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    -bash-3.00$ lsnrctl
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-SEP-2010 16:23:14
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> show current_listener
    Current Listener is LISTENER
    LSNRCTL> status
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                24-SEP-2010 15:30:28
    Uptime                    0 days 0 hr. 52 min. 53 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /applns/oracle10g/network/admin/listener.ora
    Listener Log File         /applns/oracle10g/network/log/listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=N850)(PORT=1521)))
    Services Summary...
    Service "C9W02" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "C9W02XDB" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "C9W02_XPT" has 1 instance(s).
      Instance "C9W02", status READY, has 1 handler(s) for this service...
    Service "CBA03" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA03XDB" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA03_XPT" has 1 instance(s).
      Instance "CBA03", status READY, has 1 handler(s) for this service...
    Service "CBA04" has 1 instance(s).
      Instance "CBA04", status READY, has 1 handler(s) for this service...
    Service "CBA04XDB" has 1 instance(s).
      Instance "CBA04", status READY, has 1 handler(s) for this service...
    Service "CBA04_XPT" has 1 instance(s).
      Instance "CBA04", status READY, has 1 handler(s) for this service...
    Service "CMH2" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CMH2XDB" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CMH2_XPT" has 1 instance(s).
      Instance "CMH2", status READY, has 1 handler(s) for this service...
    Service "CTSDEV4" has 1 instance(s).
      Instance "CTSDEV4", status UNKNOWN, has 1 handler(s) for this service...
    Service "CWY02" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY02XDB" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY02_XPT" has 1 instance(s).
      Instance "CWY02", status READY, has 1 handler(s) for this service...
    Service "CWY2" has 1 instance(s).
      Instance "CWY2", status UNKNOWN, has 1 handler(s) for this service...
    Service "MCSES2" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MCSES2XDB" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MCSES2_XPT" has 1 instance(s).
      Instance "MCSES2", status READY, has 1 handler(s) for this service...
    Service "MMH2" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MMH2XDB" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MMH2_XPT" has 1 instance(s).
      Instance "MMH2", status READY, has 1 handler(s) for this service...
    Service "MWY1" has 1 instance(s).
      Instance "MWY1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> set current_listener LISTENER_TEST
    Current Listener is LISTENER_TEST
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=N850)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     LISTENER_TEST
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                24-SEP-2010 15:29:52
    Uptime                    0 days 0 hr. 53 min. 47 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /applns/oracle10g/network/admin/listener.ora
    Listener Log File         /applns/oracle10g/network/log/listener_test.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=N850)(PORT=1522)))
    Services Summary...
    Service "CBA04" has 1 instance(s).
      Instance "CBA04", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL> exit
    -bash-3.00$ ls
    [00m[00mlistener0901058AM5614.bak[00m   [00mlistener1009242PM4434.bak[00m  [00msqlnet0903029AM4938.bak[00m   [00msqlnet1009243PM1721.bak[00m     [00mtnsnames1003241PM2143.bak[00m
    [00mlistener0901059AM0632.bak[00m   [00mlistener1009242PM4807.bak[00m  [00msqlnet0903029AM5811.bak[00m   [00msqlnet1009243PM2624.bak[00m     [00mtnsnames1005262PM2110.bak[00m
    [00mlistener09030210AM0112.bak[00m  [00mlistener1009243PM1638.bak[00m  [00msqlnet1002036PM4913.bak[00m   [00msqlnet1009243PM5857.bak[00m     [00mtnsnames10061410AM5549.bak[00m
    [00mlistener0903029AM4938.bak[00m   [00mlistener1009243PM1721.bak[00m  [00msqlnet1002036PM5058.bak[00m   [00msqlnet.log[00m                  [00mtnsnames1006181PM5148.bak[00m
    [00mlistener0903029AM5811.bak[00m   [00mlistener1009243PM2624.bak[00m  [00msqlnet1003088AM4917.bak[00m   [00msqlnet.ora[00m                  [00mtnsnames1009223PM2039.bak[00m
    [00mlistener1002036PM4913.bak[00m   [00mlistener1009243PM5857.bak[00m  [00msqlnet1003241PM2143.bak[00m   [00mtnsnames0901058AM5614.bak[00m   [00mtnsnames1009242PM4434.bak[00m
    [00mlistener1002036PM5059.bak[00m   [00mlistener.ora[00m               [00msqlnet1005262PM2108.bak[00m   [00mtnsnames0901059AM0632.bak[00m   [00mtnsnames1009242PM4807.bak[00m
    [00mlistener1003088AM4917.bak[00m   [00mlistener.ora.cpy[00m           [00msqlnet10061410AM5549.bak[00m  [00mtnsnames09030210AM0112.bak[00m  [00mtnsnames1009243PM1638.bak[00m
    [00mlistener1003241PM2143.bak[00m   [00;34msamples[00m                    [00msqlnet1006181PM5148.bak[00m   [00mtnsnames0903029AM4939.bak[00m   [00mtnsnames1009243PM1721.bak[00m
    [00mlistener1005262PM2108.bak[00m   [00mshrept.lst[00m                 [00msqlnet1009223PM2039.bak[00m   [00mtnsnames0903029AM5811.bak[00m   [00mtnsnames1009243PM2624.bak[00m
    [00mlistener10061410AM5549.bak[00m  [00msqlnet0901058AM5614.bak[00m    [00msqlnet1009242PM4434.bak[00m   [00mtnsnames1002036PM4913.bak[00m   [00mtnsnames1009243PM5857.bak[00m
    [00mlistener1006181PM5148.bak[00m   [00msqlnet0901059AM0632.bak[00m    [00msqlnet1009242PM4807.bak[00m   [00mtnsnames1002036PM5059.bak[00m   [00mtnsnames.ora[00m
    [00mlistener1009223PM2039.bak[00m   [00msqlnet09030210AM0112.bak[00m   [00msqlnet1009243PM1638.bak[00m   [00mtnsnames1003088AM4917.bak[00m
    -bash-3.00$
    Thanks
    SSN                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    -bash-3.00$ export ORACLE_SID=CBA04
    -bash-3.00$ sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 24 18:29:57 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> show parameter listener;
    NAME TYPE VALUE
    local_listener string
    remote_listener string
    SQL>

  • 10XE Ububtu 10.10 (32 bit) - TNS Listener takes soooo Looong to register ?

    Hi,
    Does anyone know why it takes so long for XE to register TNS Listener. I can only start connecting to SQL Developer (3.0) roughly about 12-15 minutes after starting up the Database, then it's fine:
    noom@noom-TOSHIBA-NB500:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log$ tail -f listener.log12-JUN-2011 14:18:51** * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=noom))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=35748)) * establish * xe * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    12-JUN-2011 14:24:22 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=noom))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=41346)) * establish * xe * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    12-JUN-2011 14:27:35 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=noom))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=41355)) * establish * xe * 12505
    TNS-12505: TNS:listener does not currently know of SID given in connect descriptor
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=noom-TOSHIBA-NB500)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    12-JUN-2011 14:31:17 * service_register * XE * 0
    12-JUN-2011 14:31:42 * (CONNECT_DATA=(SID=xe)(CID=(PROGRAM=SQL Developer)(HOST=__jdbc__)(USER=noom))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=40278)) * establish * xe * 0
    *12-JUN-2011 14:33:20 * service_update * XE * 0*
    Any ideas guys ?
    Thank's.

    Yes Billy, I'm clueless as to why there is such a big delay - anyway here's answers to your questions - thank's:
    What are the values of the local_listener and remote_listener parameters for your XE instance?
    1* select name, value from v$parameter where name like '%listener%'
    SQL> /
    NAME
    VALUE
    local_listener
    remote_listener
    What is the contents of your $ORACLE_HOME/network/admin/listener.ora file?
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = noom-TOSHIBA-NB500)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    Do you have iptables loaded?
    iptables v1.4.4
    How many interfaces do you have configured (output of ifconfig)?
    eth0 Link encap:Ethernet HWaddr 1c:75:08:81:1e:d7
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    Interrupt:43 Base address:0xe000
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:72 errors:0 dropped:0 overruns:0 frame:0
    TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:5424 (5.4 KB) TX bytes:5424 (5.4 KB)
    ppp0 Link encap:Point-to-Point Protocol
    inet addr:120.16.42.162 P-t-P:10.64.64.64 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
    RX packets:10338 errors:12 dropped:0 overruns:0 frame:0
    TX packets:10611 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:8336853 (8.3 MB) TX bytes:2082407 (2.0 MB)

Maybe you are looking for