Listener ( lsnrctl ) - stop and start just one instance

Hey all. I hava a Oracle 9.2 installed over a Linux Red Hat 4.0 64 bits server.
Some Virtual Machines will connect in some databases installed in my Oracle server. My listener has one instance for each database like this:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = VM01)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = VM01)
(SID_DESC =
(GLOBAL_DBNAME = VM02)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = VM02)
(SID_DESC =
(GLOBAL_DBNAME = VM03)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = VM03)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = VM01))
(ADDRESS = (PROTOCOL = IPC)(KEY = VM02))
(ADDRESS = (PROTOCOL = IPC)(KEY = VM03))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
And my tnsnames:
VM03 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = VM03)
VM02 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
(CONNECT_DATA =
(SID = VM02)
VM01 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = VM01)
I need to start and stop just one instance (VM01 or VM02 or VM03). I really can't stop all instances when I need to stop just one. And more if i have to create another instance i will have to stop the listener... and i can't because other people are using your instance...
Do you know how to help me?
Thanksssssss

You still use listener.ora, just create 3 listeners, one for each instance:
listener.ora:
LISTENER_VM01 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(HOST = lab2)(KEY = VM01))
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1521))
SID_LIST_LISTENER_VM01 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = VM01)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = VM01)
LISTENER_VM02 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(HOST = lab2)(KEY = VM02))
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1522))
SID_LIST_LISTENER_VM02 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = VM02)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = VM02)
LISTENER_VM03 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(HOST = lab2)(KEY = VM03))
(ADDRESS = (PROTOCOL = TCP)(HOST = lab2)(PORT = 1523))
SID_LIST_LISTENER_VM03 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = VM03)
(ORACLE_HOME = /opt/oracle/product/9.2.0)
(SID_NAME = VM03)
Then, when you need to stop the connections to only one instance, you stop the corresponding listener:
lsnrctl stop listener_vm02
lsnrctl start listener_vm02
For each instance you need to configure the parameter local_listener:
sys@VM01> alter system set local_listener=listener_vm01;
sys@VM02> alter system set local_listener=listener_vm02;
sys@VM03> alter system set local_listener=listener_vm03;
And register in tnsnames.ora:
listener_vm01=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=lab2)(PORT=1521)))
listener_vm02=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=lab2)(PORT=1522)))
listener_vm03=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=lab2)(PORT=1523)))
It's a recommended configuration for the flexibility it provides,it requires a different port for each listener, but you don't need to edit the listener.ora file each time you need to stop the connectivity to only one instance.

Similar Messages

  • What will happen if oracle listener is stopped and started again.....

    Hi Gurus,
    Please suggest What will happen if oracle listener is stopped and started again on a running SAP System ?
    Thanks in advance.

    Hi Lakhbir,
    What will happen is that, all SAP work processes will loose connection to the database.
    If any active jobs(background jobs, updates, insert to database ) are running, they may fail. All the work processes will go to a re-connect state.
    ( There are few notes on WP reconnect which you can check and read about)
    DB Reconnect Parameters - SAP High Availability - SAP Library
    Application will be running but users will not be able to do any activity or may not be able to login at all and may get errors  like ( No connect to database possible)
    As soon as you start the listener process again , all the work processes will connect to the database again.
    This is because the WPs will keep on trying to connect to database at regular interval and as soon as the connection is available they will re-connect.
    You do not have to restart any work process manually in SM50 or anywhere else as this feature is enabled by default until disabled manually.
    Thanks
    Amit

  • How to make stop and start in one button

    Hello All
    My Question is how to make button that when I prees it first time work as stop button and when I press it second time work as start button, I hope if I found my answer soon.
    thank u all
    Best Regards

    It's probably not worth to add all these sequences, local variables, and parallel loops. Here's a somewhat simpler version, showing two possibilities: 0:using events, 1: not using events. Pick one!
    There are many other possibilities. It really depends what else there is.
    Message Edited by altenbach on 10-15-2007 06:59 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    StartStopMOD.vi ‏19 KB

  • Tools and Script for stopping and starting SAP instances in the landscape

    Hi All,
    All our SAP system are on Windows 2003 and very few on Windows 2000.
    Is there any possiblity for having a script which will stop and start SAP on all the instances in the Landscape from a central system?
    Lets say we have some 200 SAP instances and we need to down all the instances for Windows patching.
    In this case, we need to manually take remote desktop to stop and start all the instances one by one.
    Also, do we have any 3rd party automated tools for this purpose?
    Regards,
    Siva.

    Hi Siva,
    You can configure ACC for your system landscape.
    http://help.sap.com/saphelp_nwmobile71/helpdata/en/83/43cd574af1489aadd4d71b2f47b77d/content.htm
    Thanks
    Atul

  • How to stop and Start ASM in 11gR2

    Hi,
    Any one please let me know the complete process of how to stop and start the ASM instance in
    11.2.0.1 oracle.
    Thanks.
    Ali

    Hi;
    If you need to close ASM than you need to also close database
    You need to close db:
    srvctl stop database -d instance_name
    or
    set ORACLE_HOME and ORACLE_SID
    sqlplus "/as sysdba"
    shutdown immediate;
    srvctl stop LISTENER
    srvctl stop ASM -f
    or see:
    Stop asm instance in standalone database
    Re: Stop asm instance in standalone database
    Regard
    Helios

  • Stop and start at same point?

    I want to be able to stop and start at one point in a song.
    As it is, when I press "play" from, for example, bar 3, then I hit stop at bar 6. I want to start again at bar 3, NOT bar 6. But for some reason Logic continues - like "scrolling" in ProTools.
    I do not want to use my mouse to click back bar 3.
    How do I stop / start at the same measure ?

    glankrudolph wrote:
    Here is what I need:
    Say I'm starting at measure 20. I place the playhead at measure 20. I press play and it plays for a few measures. I press stop, maybe at measure 24. Now, when I press play again, I want it to start at measure 20, like in ProTools.
    hi glank .. you need to get into the use of Markers. This will easily solve your issue:
    1 - Look up the Key Command for Create Marker at Playhead ( ie without Rounding)
    2 - Look up KC for "Go to Next Marker" & "Go to Previous Marker".
    3 - Place Playhead at measure 20. Press KC for "Create Marker without Rounding"
    4 - Play for a few measures and stop whenever you want to.
    5 - Now press the KC for "Go to previous marker" - with one stroke you are back at measure 20
    6 - Press Play
    If this is not quick and easy enough for you, I will eat my hat
    best
    m s

  • How to stop and start MDBs to listen for JMS messages

    Hello! This might be more of an architecture question rather than a technical questing, but I post it here, in the lack of a better place...
    For several years I have been using Webster and Webster MQ to send messages back and forth to clients. The architecture for the middleware platform has been designed around the functionality of ListenerPorts. Listenerports is a Webster functionality that let you "stop" and start to listen to JMS messages for a given MDB either by admin console, or by JMX.
    The arhitecture we used was something like this :
    1.Client sends a persistent message to a queue. (order)
    2. An MDB pics up the order message, calls a SessionBean that "fronts" the IIOP back end system.
    This is quite "out of the box" architecture, but we used the Listenerports to solve a stability problem for our back end system.
    The backEnd system was quite unstable, so the EJB threw an exception (typically because of timeout or connection refused) back to the MDB.
    The Listenerport was "defined" to handle 3 errors before stopping, so the MDB resent the message twice before the listenerport automatically stopped. The nice thing about this feature was that the client could continue to send orders, and was not bothered when the back end system was down.
    When the backEnd system was up and running, we could start the listenerport and it was all back to normal state. We even had a start script that checked the state of the listenerport every 30 minute, and started it automatically if it was stopped, making the admin task of starting the MDB unnecessary..
    Now.. Why am I telling this story..
    I would like to know how this could be done using "clean" J2EE technologies..That is..Not using any technology that is not portable..
    I`m playing with glassfish at home, and it struck me that there is nothing in the J2EE spec that defines the functionality described above ? Am i missing something ?
    I Do not want to stop My application because the back end system is down? That is the only way (i know of) that i can "stop" to listen for messages..
    I can put all the messages on an error queue when the backbend system is down, but that would lead to more code just to handle the error messages. Maybe the easiest way to solve this is to "move" (programmatically) all messages from the error queue over to the "standard" queue every XX minute, but somehow that sounds "wrong"
    Can anyone give me some advice to how this problem situation should be solved ? I`m interested in the solution both from an architectural perspective and from a more technical perspective..
    Best regards
    Hans-Jacob Melby

    Breakpoints, whether normal or conditional, are just meant for debugging of your code.  I had the sense from your question that the pausing you want to do is a part of normal operation of your code.  I would NOT recommend using a breakpoint for that situation.  It would bring up the block diagram showing the breakpoint when it occurs.  A user besides the programmer would not know what to do in that case.
     Yes, both the inner and outer loops would have shift registers.
    Putting a case structure with a small while loop inside the "Pausing Case" is doable.  It just depends on what you are doing or waiting for while the program operation is "paused".

  • Sometimes when listening to music or a podcast, it will stop and start in rapid fire.  I have a 4th gen iPod Touch.

    Sometimes when listening to music or a podcast, it will stop and start in rapid fire.  I have a 4th gen iPod Touch.  A Genius suggested something went wrong during the transfer from my MBP to my iPod, but I tried resyncing it, and it seems to happen haphazardly.  Even if a podcast plays oddly one time, it might play perfect the next - so it can't have been the sync that went bad. 

    - First try a reset. Nothing will be lost.
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Next restore from backup
    - The restore to factory defaults/new iPod

  • I have a Macbook pro mid 2011 and just bought the Apple TV. While watching program or movie from any of the apps such as Watch ABC, the program keeps stopping and starting constantly.

    I have a Macbook pro mid 2011 and just bought the Apple TV. While watching program or movie from any of the apps such as Watch ABC, the program keeps stopping and starting constantly.

    That would indicate a network issue.
    Reboot ATV and router
    Make sure DNS is set to auto
    Ensure router is up to date, if on wifi try ethernet
    Go to istumbler.net to get a report of the network, look for signal strength and noise

  • HT203177 I had to get a new hard drive in my 27 in IMac. I used time machine to get everything back on my computer. I just turn on time machine and its says it's preparing over 800,000 items to back-up, it never back-up, it stop and starts the process ove

    I had to get a new hard drive in my 27 in IMac. I used time machine to get everything back on my computer. I just turn on time machine and its says it's preparing over 800,000 items to back-up, it never back-up, it stop and starts the process over again.

    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then repair the backup/TM drive.

  • While playing videos on itunes, audio and video will stop and start. It just started doing this recently and it does it with all my itunes videos..help!!

    While playing videos on itunes, the audio and video will stop and start several times during playback. This just started recently and it does it on all my videos. Help!!

    Try to download the application VLC.
    It is a media player that should be able to play any audio or video file you may have. If your videos play flawlessly using that application, then the issue is with iTunes and Quicktime, as they are both essentially similar software types when it comes to playing media.
    In that case you may need to install a plug-in file called Perian, in order for the videos to play correctly within iTunes or at least Quicktime...

  • Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.

    Stop and refresh buttons (one will disappear while the other is active). I have found numerous websites that just don't want to load on the first try, now I am unable to refresh it (usually in a new tab) because the button disappears. BTW 255 limit is BS.

    You can try to press the ESC key to stop loading the page if you see the Stop button instead of the Reload button. You can also reload the page via F5 or Ctrl + F5 (cache bypass).
    Firefox 4.0 has a combined Reload and Stop and Go button that appears at the right end of the location bar.
    To restore the Firefox 3 appearance you can use these steps:
    * Open the "View > Toolbars > Customize" window to move the Stop and Reload button out of the location bar.
    * Move the Reload and Stop buttons to their previous position at the left side of the location bar.
    * Set the order to "Reload - Stop" to get a combined "Reload/Stop" button.
    * Set the order to "Stop - Reload" or separate them otherwise to get two distinct buttons.

  • Srvctl on 11.2.0.3 does not stop and start listeners

    I recently installed the Grid software under the "grid" user on RH5. Clusterware and ASM run under GRID_HOME, the single instance database runs under ORACLE_HOME. I have created 2 listeners on non-default ports (manually using entried in listener.ora) and then added to srvctl (srvctl add listerner -l LISTENER_XPT -o /app/oracle/product/dhome_1 -p "TCP:1523" -- in ORACLE_HOME.
    When stopping the listener using:
    oracle@#####>srvctl stop listener -l LISTENER_XPT -- note starting with oracle user in ORACLE_HOME. Below is from "/app/grid/product/11.2.0/grid/log/server_name/agent/ohasd/oraagent_grid/oraagent_grid.log
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) TNS-00511: No listener
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:) Linux Error: 111: Connection refused
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check] (:CLSN00010:)Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1523)))
    2012-06-12 12:48:00.549: [ora.LISTENER_XPT.lsnr][1125030208] {0:0:1233} [check]
    **********FROM TAILING THE listener LOG ****************************
    TNS-01190: The user is not authorized to execute the requested listener command
    12-JUN-2012 12:44:12 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.87.5)(PORT=1523)(IP=FIRST))"
    12-JUN-2012 12:50:02 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    TNS-01190: The user is not authorized to execute the requested listener command
    12-JUN-2012 15:12:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=v01orarac01w)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_ADMIN)(VERSION=186647296)) * status * 0
    12-JUN-2012 15:12:58 * version * 0
    12-JUN-2012 15:12:58 * service_register * LsnrAgt * 1195
    TNS-01195: Listener rejected registration of endpoint "(ADDRESS=(PROTOCOL=TCP)(HOST=********)(PORT=1524)(IP=FIRST))"
    12-JUN-2012 15:12:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=********)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER_XPT)(VERSION=186647296)) * status * 0
    12-JUN-2012 15:13:05 * (CONNECT_DATA=(SID=PRDRAC01)(CID=(PROGRAM=perl)(HOST=********)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=*******)(PORT=41398)) * establish * PRDRAC01 * 0
    Why wouldnt the Oracle user not be able to start/stop a resource from ORACLE_HOME ? Any assistance would be helpful

    I just removed the listener out of the ORACLE_HOME and added it using srvctl to the GRID_HOME. Now I am able to stop and start.
    Still the question, why cant oracle user start an oracle_home managed resource. But the oracle user could start and stop using lsnrctl stop/start
    Below if the results from ps (note I just started listener from GRID_HOME):
    grid@PRODBLD:+ASM>ps -ef |grep lsnr
    grid 9114 1 0 09:40 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER_ADMIN -inherit
    grid 10348 1 0 Jun12 ? 00:00:00 /app/grid/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit
    grid 20234 21990 0 09:49 pts/2 00:00:00 grep lsnr
    oracle 29926 1 0 Jun12 ? 00:00:00 /app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr LISTENER_XPT -inherit

  • Waveburner resets (64bit) IK Multimedia plugins when stopping and starting

    Does anyone else happen to have this problem:
    I'm finding that while mastering, I want to look back at the incremental changes made and have found that the Pultec EQ and some other plugins seem to default to a preset.
    In order to get to this problem I did the following:
    1 track in Waveburner, added the Pultec EQ,
    2 added a limiter chose a preset 'MIX PRESENCE' then got my desired sound.
    3 When listening everything seems fine and then you stop and start again, or go back to the beginning of the track by pressing the 'BACK ONE TRACK' button on the transport and all of the sudden the Pultec EQ resets to that original preset.
    So not too sure what to do, the only way of getting round this issue was to mix as best as I could, save as a new preset while it was playing and then when hitting start again then while it is playing then I quickly hit the preset on that I made and have to bounce my mix at the same time in order to finally get my desired output which is less than okay.
    Can anybody help. I'm running on an iMac, 64bit Version10.6.7 OS and Waveburner is 1.6.1
    Many thanks

    It is not just IK Multimedia and Waves plugs that are resetting on me; it is also the WaveBurner 'native' plug "Linear Phase EQ" and who knows how many others, were I to begin testing instead of trying to work through this.
    This little bug renders this software effectively useless for professional work.
    Some of my Waves plugs hold their values, others don't.
    Elysia products screwed up too; so much for that demo.
    As far as I can tell I am not using any automation, but, is there a way to globally turn off the possibility of automation (I tried RightClicking in the mix lane but there is no choice of automation available there, perhaps 'cause there is none as I suspect)?
    I am using WaveBurner 1.6.1.
    C'mon Apple, its November already; you must fix this.

  • DVD will not stop and start in a Menue Mode

    Hello I am using DVD Studio Pro 4 for a school project and i am looking for some help with this problem.
    The DVD i have created plays and stops when i am watching one of my video tracks, i just can not start the DVD when i am previewing in any menue after i stop it.
    I have created my DVD with 16 menus and 2 video tracks. It burns and plays back fine but i can not stop and start the DVD when i am in a menu mode. The DVD will stop and play when i stop the DVD playing video from one of my video tracks but when i am in menu i push stop on my DVD controller and the DVD will not start back up. The DVD will look like it wants to play but it will not play. I have to open the DVD player tray open in order for it to start the DVD again.
    The DVD is a NTSC, SD, single layered 2.9GB
    Any help would be much appreciated, Thanks.
    Mike
    PowerBook G4 15 1.25 ghz   Mac OS X (10.3.9)  

    If only five months old it is still under warranty. Take it back.

Maybe you are looking for