Listener blocked

Hi
When I check lsnrctl status it shows following listener blocked. How to resolve this.
Service "clon" has 1 instance(s).
Instance "clon", status BLOCKED, has 1 handler(s) for this service...
Service "clon_XPT" has 1 instance(s).
Instance "clon", status BLOCKED, has 1 handler(s) for this service...
Service "rman" has 1 instance(s).
Instance "rman", status READY, has 1 handler(s) for this service...

Actually I am doing rman cloning in same host. so clone instance in mount stage. When connecting to auxiliary database it shows following error.
ERROR
======
RMAN> connect auxiliary sys/khan@clon (khan is sysuser pwd)
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections

Similar Messages

  • ORA-12528: TNS listener BLOCKED - trying to duplicate database

    Hello,
    I would like to test the RMAN duplicate from active database in version 11.2.0.1.
    The name of the duplicate (auxiliary) database should be "clonedb". I created a password file, spfile and added the clonedb database to tnsnames.ora. The clonedb instance is in nomount state. Tnsping clonedb is also working.
    When I try to make a connection:
    sqlplus 'sys/mypassword@clonedb as sysdba'
    ORA-12528, Blocked, all appropriate instances are blocking new connections.
    So I wonder if this could be due to the nomount state of the instance and dynamic listener configuration. Correct?
    I made an entry in the listener.ora file, and it's showing "clonedb" status UKNOWN now, but I still cannot make a sqlnet connection since the dynamic listener apparently takes precedence. Can I turn off the dynamic listener configuration, but then I will loose the connection to the other databases. Do I need to make manual entries in listener.ora for all databases in order to perform RMAN duplicate?
    I also tried to connect to the auxiliary clonedb instance as local target with OS authentication, but the ORA-12528 error persists. Sqlplus / as sysdba works though. Below some more info. Any ideas how to resolve the issue.
    Thanks!
    $ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-DEC-2010 01:05:40
    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                19-DEC-2010 00:39:22
    Uptime                    0 days 0 hr. 26 min. 18 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/ol55/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol55.example.com)(PORT=1521)))
    Services Summary...
    Service "+ASM" has 1 instance(s).
      Instance "+ASM", status READY, has 1 handler(s) for this service...
    Service "clonedb" has 1 instance(s).
      Instance "clonedb", status UNKNOWN, has 1 handler(s) for this service...
    Service "clonedb.example.com" has 1 instance(s).
      Instance "clonedb", status BLOCKED, has 1 handler(s) for this service...
    Service "orcl.example.com" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.example.com" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "rcat.example.com" has 1 instance(s).
      Instance "rcat", status READY, has 1 handler(s) for this service...
    Service "rcatXDB.example.com" has 1 instance(s).
      Instance "rcat", status READY, has 1 handler(s) for this service...
    The command completed successfully
    $ tnsping clonedb
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 19-DEC-2010 01:06:18
    Copyright (c) 1997, 2009, Oracle.  All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = clonedb.example.com)))
    OK (10 msec)
    $ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    RCAT =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = rcat.example.com)
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.example.com)
    CLONEDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = clonedb.example.com)
    $ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/grid/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ol55.example.com)(PORT = 1521))
    SID_LIST_LISTENER =
       (SID_LIST =
           (SID_DESC =
               (ORACLE_HOME= /u01/app/oracle/product/11.2.0/db)
               (SID_NAME = clonedb)
    ADR_BASE_LISTENER = /u01/app/oracle
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
    $ cat initclonedb.ora
    clonedb.__db_cache_size=192937984
    clonedb.__java_pool_size=4194304
    clonedb.__large_pool_size=4194304
    clonedb.__oracle_base='/u01/app/oracle'
    clonedb.__pga_aggregate_target=339738624
    clonedb.__sga_target=503316480
    clonedb.__shared_io_pool_size=0
    clonedb.__shared_pool_size=293601280
    clonedb.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/clonedb/adump'
    *.audit_trail='db'
    *.backup_tape_io_slaves=TRUE
    *.compatible='11.2.0.0.0'
    *.control_files='/scratch/oradata/clonedb/controlfile/control01.ctl','/scratch/oradata/clonedb/controlfile/control02.ctl'
    *.db_block_checking='full'
    *.db_block_checksum='full'
    *.db_block_size=8192
    *.db_create_file_dest='/scratch/oradata/clonedb'
    *.db_domain='example.com'
    *.db_name='clonedb'
    *.db_recovery_file_dest='+FRA'
    *.db_recovery_file_dest_size=12884901888
    *.log_archive_dest='/scratch/oradata/clonedb/archivelog'
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=clonedbXDB)'
    *.memory_target=843055104
    *.open_cursors=300
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.undo_tablespace='UNDOTBS1'
    *.db_file_name_convert=('+DATA','/scratch/oradata/clonedb/datafile')
    *.log_file_name_convert=('+DATA','/scratch/oradata/clonedb/logifle')

    Thanks for responding. Here is the log from the last connection attempt - I removed some xml codings:
    time='2010-12-19T01:23:23.007+01:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='ol55.example.com'
    host_addr='127.0.0.1'>
    WARNING: Subscription for node down event still pending
    time='2010-12-19T01:23:23.008+01:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='ol55.example.com'
    host_addr='127.0.0.1'>
    19-DEC-2010 01:23:23 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=ol55.example.com)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * status * 0
    time='2010-12-19T01:23:33.575+01:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='ol55.example.com'
    host_addr='127.0.0.1'>
    19-DEC-2010 01:23:33 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=clonedb.example.com)(CID=(PROGRAM=sqlplus)(HOST=ol55.example.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=56278)) * establish * clonedb.example.com * 12528
    time='2010-12-19T01:23:33.575+01:00' org_id='oracle' comp_id='tnslsnr'
    type='UNKNOWN' level='16' host_id='ol55.example.com'
    host_addr='127.0.0.1'>
    TNS-12528: TNS:listener: all appropriate instances are blocking new connections

  • Help with playing sound in applications

    im new to java and i was practicing playing sound in a swing application but the problem is that when i press the play button no sound is played...here is my code
    import javax.swing.*;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.io.File;
    public class JukeBox extends JFrame {
        private JLabel label;
        private JPanel panel, buttonPanel;
        private JComboBox playList;
        private JButton play, stop;
        private URL url1, url2, url3, url4, url5, url6;
        private AudioClip[] musicList;
        private AudioClip current ;
        public JukeBox() {
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            setSize(500, 120);
            setLocation(50, 50);
            setTitle("JAVA JukeBox");
            url1 = url2 = url3 = url4 = url5 = url6 = null;
            current = null;
            try {
                url1 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\bottle-open.wav");
                url2 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\BP2.mp3");
                url3 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\fhm.aiff");
                url4 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\jungle.rmf");
                url5 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\spacemusic.au");
                url6 = new URL("file", "localhost", "C:\\Documents and Settings\\KADA\\IdeaProjects\\Sound\\trippygaia.mid");
            } catch (MalformedURLException e) {
                e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
            musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);
            label = new JLabel("JAVA JukeBox", JLabel.CENTER);
            String[] musicList = {"select a track..."
                    , "bottle open"
                    , "bitch please II"
                    , "flutte, harmonica, mambo"
                    , "jungle"
                    , "spacemusic"
                    , "trippygaia"};
            playList = new JComboBox(musicList);
            playList.addActionListener(new ListListener());
            play = new JButton("Play");
            play.setActionCommand("play");
            play.addActionListener(new ButtonListener());
            stop = new JButton("Stop");
            stop.addActionListener(new ButtonListener());
            buttonPanel = new JPanel();
            buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
            buttonPanel.add(play);
            buttonPanel.add(stop);
            panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.add(label);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(playList);
            panel.add(Box.createRigidArea(new Dimension(0, 5)));
            panel.add(buttonPanel);
            getContentPane().add(panel);
        private class ButtonListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if(current != null){
                    current.stop();
                if(e.getActionCommand().equalsIgnoreCase("play")){
                    if(current != null){
                        current.play();
        private class ListListener implements ActionListener {
            public void actionPerformed(ActionEvent e) {
                if (current != null) {
                    current.stop();
                current = musicList[playList.getSelectedIndex()];
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            JukeBox jb = new JukeBox();
            jb.setVisible(true);
            jb.setResizable(false);
    }can u please tell me whats wrong with my code coz i cant hear no sound when i press the play button and can u please tell me why i cant simply put the file name in the URL instead of the complete path although the files are in the same directory of the source code and can i play mp3 using this little program ???
    plz help...im a newbie so plz explain as much as u can...

    After
    musicList = new AudioClip[7];
            musicList[0] = null;
            musicList[1] = JApplet.newAudioClip(url1);
            musicList[2] = JApplet.newAudioClip(url2);
            musicList[3] = JApplet.newAudioClip(url3);
            musicList[4] = JApplet.newAudioClip(url4);
            musicList[5] = JApplet.newAudioClip(url5);
            musicList[6] = JApplet.newAudioClip(url6);initialise the variable current with
    current = musicList[1];or similar because the AudioClip current always == null in your code so your listener blocks don`t execute.
    regards

  • Disabled property node hangs loop

    I've got a parser loop, operating on streamed data from a CRIO via UDP.  The loop operates at about 90Hz.  In response to the user opening a file, the code will use a property node to enable (or disable and gray) a couple of boolean front-panel objects.  When these property nodes execute, I see the CPU usage (in Windows task manager) go to close to 100% and coincidentally, the parser loop hangs.  Other loops within the same VI continue to run.  CPU usage stays at 100% until I force a VI abort.
    With a small test-VI, I've noted that these property nodes require roughly 10ms to execute.  This seems quite sluggish, but nonetheless, my thoughts are that my code, running at 90Hz, would be able to tolerate a single slip of the loop execution time, particularly because the UDP data is queued.
    Any thoughts regarding this property node execution time or suggestions on how to improve the code?  Thanks in advance.

    Mark, thank you for offering to look at a stripped-down version of the code.  I just couldn't spare the time required to simplify our complex code.  However, I've been working on this problem in the past couple of weeks since I originally posted the question, and have made some progress toward a solution.  Although I still do not have a conclusive explanation for the Labview's behavior, I thought I'd follow up with a list of what appears to have made improvements to the code.  I'll concede that these suggestions are not definitive, but the problems are not repeatable and without any transparency into Labview's internal behavior, my analysis of the problems and my attempts to find a fix are admittedly speculative in nature.  Software development shouldn't be magic, but damn it seems like Labview requires we dance around a black candle.  Frustrating.  OK, exiting rant mode, here is a list of what NOT to do if you want Labview to be more stable:
    --  Do not use frames around your front panel objects.  Our main panel has approximately 100 front-panel indicators.  In an attempt to make the interface more intuitive, in a recent code revision we grouped the objects using frames.  The effect was a sluggish UI and a processor loading that went to close to 85%.  I'm aware from posts on this forum that overlapping indicators forces Labview to update all when any is updated.  This is an understandable coding contraint.  OK, fine, we weren't overlapping any idicators.  But for pete's sake, why should the same constraint apply to a purely decorative object like a frame?  This strikes me as a fundamental philosophical flaw in LV's coding.  Group N objects with a nice frame -- update the objects N-squared times.  If this is the result of using a frame, I would have preferred that NI not even offer the option.  Bad choice on the part of the Labview coders and bad choice on our part for assuming zero frame impact on performance.
    -- Do not use property nodes.  We occasionally gray-out front panel objects when appropriate for the state of the software.  This appeared to be contributing to Labview's instability.  I built a diagnostic routine that measures execution time for the "gray-out and disable" property node.  Generally around 8ms, but occasionally as high as 16ms.  Good grief.  I've got a code loop running at 90Hz.  A 16ms hit isn't easy to tolerate or frankly to understand.  Particularly when slow execution is the BEST of the consequences -- the worst is that the property node seemed on occasion to precipitate a hung loop.
    -- Do not use Labview's built-in queue structure.  Our code was originally using queues to hand off packets of data from a UDP-listener loop to a packet-parser.  The UDP-listener blocks on UDP reception, shoves the packets into the queue.  The packet parser blocks on data available in the queue and subsequently writes the data to file.  NI would have you believe, and I did believe for a while, that this is an elegant producer/consumer approach to this problem.  When our problem would occur, the UDP-listener continued to put data into the queue, but the packet parser would never retrieve it.  Just went off into nowhere, consumed and forgotten by the Great Labview Scheduler in the Sky.  The loop would hang, wouldn't respond to the stop button, would require a forced-abort.  Subsequently, if we simply restarted the code, we couldn't be assured that the packets retrieved from the queue would be in chronological order.  Seemed to be just randomly retrieved.  Clearly the failures had corrupted some of the Labview internal data structures that govern the queue operation.  We couldn't assure proper behavior unless we shut down and restarted Labview each time the error occurred.  The solution was to abandon code elegance in favor of sequential operation -- get rid of the queue, listen for the UDP packet then parse it immediately.  No queue handoff.  No further parser lock-ups.
    I'm not sure what other bombs might be lurking in our code.  Our listener and parser code hasn't lately hung, but the problem is starting to move on to other loops.  They'll run for hours and then just stop.  Dead.  Frozen.  In the most recent cases, even the abort button won't shut them down.  We have to use Windows Task Manager to kill them.  I'll admit to harboring some deepening skepticism for any of the more clever and powerful "features" that NI has added to LV.  From my perspective, these more powerful features cannot come free of cost -- they must impose some unavoidable computational burden on LV itself, a burden that LV seems unable to handle, with unpleasant consequences.  Must we impose a moratorium on Timed Loops?  Event structures?  To what level of simplicity must I drive our code to ensure stability?
    Thanks, everyone, for tolerating my frustration, and for your comments, if you've got any guidance you can offer.
    -dave sprinkle

  • Rman clone duplicate database from active database

    Hi All,
    I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname.
    I am working toward it.
    I met a problem, which is when i bring up auxiliary database in nomount mode, the listener service of that auxiliary database is in BLOCKED status, and throw out ora-12528 error when I rman auxiliary sys/pass@clonedb. Isn't nomount mode the mode which auxiliary db is supposed to be in?
    (ora-12528: TNS:listener: all appropriate instances are blocking new connections)
    Thanks,
    milic

    You may have run into the same problem like I did recently:
    The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
    ORA-12528: TNS listener BLOCKED - trying to duplicate database
    Also for further problems:
    RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628

  • Duplicate database from active database in 11g?

    Does anyone know if it's possible to clone a database from stby by issuing RMAN duplicate database FROM ACTIVE DATABASE command in 11g?
    I know it's possible from primary to create stby.
    Thanks in advance

    You may have run into the same problem like I did recently:
    The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
    ORA-12528: TNS listener BLOCKED - trying to duplicate database
    Also for further problems:
    RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628

  • Sorry there is currently a high demand for this de...

    Hi there,
    I have a skype in number, which today is not working and loosing me business. When anyone calls my skype number they get a message "Sorry there is currently a high demand for this destination please try later"
    I am getting this at least 2 days a month at the moment.
    What is going on? After using Skype for 3 years now, I must say it is bug ridden, and not fit for purpose.
    I fully expect to get no support at all if Skype is consistent, go on shock a customer and offer some support.

    Idea:  I personally provided my Google Voice number (free) which then routes to my Skype number.  the benifit has been I can screen my callers, listen/block the caller from the Google Voice web site and it will TRANSCRIBE the message to text and then email it or send it to my phone.  I have the Skype voice mail feature turned off.
     https://www.google.com/voice
    Teach your phone new tricks
    Google Voice enhances the existing capabilities of your phone, regardless of which phone or carrier you have - for free. It also gives you:
    One Number
    Use a single number that rings you anywhere.
    Online voicemail
    Get transcribed messages delivered to your inbox.
    Cheap calls
    Free calls & text messages to the U.S. & Canada.
    Super low rates everywhere else.

  • JComboBox Visibility Problem

    Hi, I am trying to use JComboBox for selecting you race and gender in a RPG I am making, but The contents of the JComboBox will not appear in the small version (before you click the little arrow) unless you first move one of the JSliders... Could some one help me figure this out?
    //I call the class with this
         newGamePanel = new newGamePanel();
         newGamePanel.setLayout(null);
         newGamePanel.setBounds(0, 0, programWidth, programHeight);
         newGamePanel.setBackground(Color.black);
         frame.getContentPane().add(newGamePanel);
         newGamePanel.setVisible(true);
         newGamePanel.setUpAlpha();
         newGamePanel.repaint();
    //and here is my class where it all takes place...  The relivent method is setUpAlpha()
    public class newGamePanel extends JPanel//Sets up and grabs the information for the character creation
    implements ActionListener, ChangeListener
         JButton newGameOK;
         JTextField newGameName;
         JComboBox newGameRace, newGameGender;
         JSlider newGameSTR, newGameAGI, newGameVIT, newGameDEX, newGameINT, newGameLUK;
         JLabel nGameName, nGameRace, nGameGender, nGameSTR, nGameAGI, nGameVIT, nGameDEX, nGameINT, nGameLUK;
         int tempScrollA = 5, tempScrollB = 5, tempScrollC = 5, tempScrollD = 5, tempScrollE = 5, tempScrollF = 5;
         public void actionPerformed(ActionEvent e)//Action Performed Block
              if(e.getSource() == newGameOK)
                   gameState = "Story";
                   newGameGetInfo();
                   newGameStoryPanel.newGameStoryPanelInit();
         public void stateChanged(ChangeEvent e)//Scrollbar Listener Block
              if(e.getSource() == newGameSTR)
                   tempScrollA = 10 - (int)newGameSTR.getValue();
                   newGameINT.setValue(tempScrollA);
              if(e.getSource() == newGameINT)
                   tempScrollA = 10 - (int)newGameINT.getValue();
                   newGameSTR.setValue(tempScrollA);
              if(e.getSource() == newGameAGI)
                   tempScrollA = 10 - (int)newGameAGI.getValue();
                   newGameLUK.setValue(tempScrollA);
              if(e.getSource() == newGameLUK)
                   tempScrollA = 10 - (int)newGameLUK.getValue();
                   newGameAGI.setValue(tempScrollA);
              if(e.getSource() == newGameDEX)
                   tempScrollA = 10 - (int)newGameDEX.getValue();
                   newGameVIT.setValue(tempScrollA);
              if(e.getSource() == newGameVIT)
                   tempScrollA = 10 - (int)newGameVIT.getValue();
                   newGameDEX.setValue(tempScrollA);
              tempScrollA = (int)newGameSTR.getValue();
              tempScrollB = (int)newGameAGI.getValue();
              tempScrollC = (int)newGameVIT.getValue();
              tempScrollD = (int)newGameDEX.getValue();
              tempScrollE = (int)newGameINT.getValue();
              tempScrollF = (int)newGameLUK.getValue();
              nGameSTR.setText("Strength: " + tempScrollA);
              nGameAGI.setText("Agility: " + tempScrollB);
              nGameVIT.setText("Vitality: " + tempScrollC);
              nGameDEX.setText("Dexterity: " + tempScrollD);
              nGameINT.setText("Intelligence: " + tempScrollE);
              nGameLUK.setText("Luck: " + tempScrollF);
         public void setUpAlpha()//Huge block to set up Character creation screen
              int tempProgramLeft = (int)(programWidth /2) - 225;
              int tempProgramRight = (int)(programWidth /2) + 25;
              UIManager.put("Label.foreground", Color.white);
              nGameName = new JLabel("Character Name", JLabel.CENTER);
              nGameName.setBounds((int)((programWidth - 250) / 2), 35, 250, 20);
              nGameRace = new JLabel("Character Race", JLabel.CENTER);
              nGameRace.setBounds(tempProgramLeft, 135, 200, 20);
              nGameGender = new JLabel("Character Gender", JLabel.CENTER);
              nGameGender.setBounds(tempProgramRight, 135, 200, 20);
              nGameSTR = new JLabel("Strength: " + tempScrollA, JLabel.CENTER);
              nGameSTR.setBounds(tempProgramLeft, 230, 200, 20);
              nGameINT = new JLabel("Intelligence: " + tempScrollE, JLabel.CENTER);
              nGameINT.setBounds(tempProgramRight, 230, 200, 20);
              nGameVIT = new JLabel("Vitality: " + tempScrollB, JLabel.CENTER);
              nGameVIT.setBounds(tempProgramLeft, 300, 200, 20);
              nGameDEX = new JLabel("Dexterity: " + tempScrollD, JLabel.CENTER);
              nGameDEX.setBounds(tempProgramRight, 300, 200, 20);
              nGameAGI = new JLabel("Agility: " + tempScrollC, JLabel.CENTER);
              nGameAGI.setBounds(tempProgramRight, 370, 200, 20);
              nGameLUK = new JLabel("Luck: " + tempScrollF, JLabel.CENTER);
              nGameLUK.setBounds(tempProgramLeft, 370, 200, 20);
              newGameOK = new JButton("Start Game", null);
              newGameOK.setHorizontalTextPosition(AbstractButton.CENTER);
              newGameOK.setBackground(Color.black);
              newGameOK.setForeground(Color.white);
              newGameOK.setBounds((int)((programWidth - 100) / 2), 450, 100, 30);
              newGameOK.setBorder(BorderFactory.createMatteBorder(3, 3, 3, 3, Color.white));
              newGameName = new JTextField("Enter Name", 20);
              newGameName.setFont(new Font("Times New Roman", Font.BOLD, 12));
              newGameName.setForeground(Color.red);
              newGameName.setBackground(Color.black);
              newGameName.setBounds((int)((programWidth - 250) / 2), 60, 250, 25);
              newGameName.setBorder(BorderFactory.createMatteBorder(2, 2, 2, 2, Color.white));
         //     UIManager.put("ComboBox.foreground", Color.red);
         //     UIManager.put("ComboBox.background", Color.black);
         //     UIManager.put("ComboBox.border", BorderFactory.createMatteBorder(0, 0, 0, 7, Color.white));
              String[] newGameRaceAAA = {"Human", "Elf", "Dwarf"};
              newGameRace = new JComboBox(newGameRaceAAA);
              newGameRace.setSelectedIndex(0);
              newGameRace.setBounds(tempProgramLeft, 160, 200, 20);
              newGameRace.addActionListener(this);
              String[] newGameGenderAAA = {"Male", "Female"};
              newGameGender = new JComboBox(newGameGenderAAA);
              newGameGender.setSelectedIndex(0);
              newGameGender.setBounds(tempProgramRight, 160, 200, 20);
              newGameGender.addActionListener(this);
              UIManager.put("Slider.background", Color.black);
              newGameSTR = new JSlider(JSlider.HORIZONTAL, 1, 9, 5);
              newGameAGI = new JSlider(JSlider.HORIZONTAL, 1, 9, 5);
              newGameVIT = new JSlider(JSlider.HORIZONTAL, 1, 9, 5);
              newGameDEX = new JSlider(JSlider.HORIZONTAL, 1, 9, 5);
              newGameINT = new JSlider(JSlider.HORIZONTAL, 1, 9, 5);
              newGameLUK = new JSlider(JSlider.HORIZONTAL, 1, 9, 5);
              newGameSTR.setBounds(tempProgramLeft, 250, 200, 15);
              newGameINT.setBounds(tempProgramRight, 250, 200, 15);
              newGameVIT.setBounds(tempProgramLeft, 320, 200, 15);
              newGameDEX.setBounds(tempProgramRight, 320, 200, 15);
              newGameLUK.setBounds(tempProgramLeft, 390, 200, 15);
              newGameAGI.setBounds(tempProgramRight, 390, 200, 15);
              visiblePanelChecker();
              this.add(newGameOK);
              this.add(newGameName);
              this.add(newGameRace);
              this.add(newGameGender);
              this.add(newGameSTR);
              this.add(newGameAGI);
              this.add(newGameVIT);
              this.add(newGameDEX);
              this.add(newGameINT);
              this.add(newGameLUK);
              this.add(nGameName);
              this.add(nGameRace);
              this.add(nGameGender);
              this.add(nGameSTR);
              this.add(nGameAGI);
              this.add(nGameVIT);
              this.add(nGameDEX);
              this.add(nGameINT);
              this.add(nGameLUK);
              newGameOK.addActionListener(this);
              newGameSTR.addChangeListener(this);
              newGameAGI.addChangeListener(this);
              newGameVIT.addChangeListener(this);
              newGameDEX.addChangeListener(this);
              newGameINT.addChangeListener(this);
              newGameLUK.addChangeListener(this);
              newGameOK.setVisible(true);
              newGameName.setVisible(true);
              newGameRace.setVisible(true);
              newGameGender.setVisible(true);
              newGameSTR.setVisible(true);
              newGameAGI.setVisible(true);
              newGameVIT.setVisible(true);
              newGameDEX.setVisible(true);
              newGameINT.setVisible(true);
              newGameLUK.setVisible(true);
              nGameName.setVisible(true);
              nGameRace.setVisible(true);
              nGameGender.setVisible(true);
              nGameSTR.setVisible(true);
              nGameAGI.setVisible(true);
              nGameVIT.setVisible(true);
              nGameDEX.setVisible(true);
              nGameINT.setVisible(true);
              nGameLUK.setVisible(true);
              repaint();
         public void newGameGetInfo()//Grabs the information from the items in the New Game
              hero = new Chara();
              hero.name = newGameName.getText();
              hero.name = hero.name.trim();
              if(hero.name.length() > 10){hero.name = hero.name.substring(0, 10);}
              hero.race = (String)newGameRace.getSelectedItem();
              hero.gender = (String)newGameGender.getSelectedItem();
              for(int i = 0; i < 2; i ++)
                   hero.strength[i] = tempScrollA;
                   hero.agility[i] = tempScrollB;
                   hero.vitality[i] = tempScrollC;
                   hero.dexterity[i] = tempScrollD;
                   hero.intelligence[i] = tempScrollE;
                   hero.luck[i] = tempScrollF;
              if(hero.race == "Human")
                   hero.strength[2] = 1;
                   hero.agility[2] = 1;
                   hero.vitality[2] = 1;
                   hero.dexterity[2] = 1;
                   hero.intelligence[2] = 1;
                   hero.luck[2] = 1;
              if(hero.race == "Elf")
                   hero.strength[2] = 0;
                   hero.agility[2] = 2;
                   hero.vitality[2] = 0;
                   hero.dexterity[2] = 2;
                   hero.intelligence[2] = 2;
                   hero.luck[2] = 0;
              if(hero.race == "Dwarf")
                   hero.strength[2] = 3;
                   hero.agility[2] = 0;
                   hero.vitality[2] = 2;
                   hero.dexterity[2] = 0;
                   hero.intelligence[2] = 0;
                   hero.luck[2] = 1;
              int hp[] = new int[3];//Min/Max HP
              int mp[] = new int[3];//Min/Max SP
              hero.level = 1;
              hero.job = "Novice";
              hero.status = "Normal";
              hero.property = "Normal";
              for(int i = 0; i < hero.location.length; i++)
                   for(int a = 0; a < hero.location.length; a++)
                        hero.location[i][a] = 320;
              menuActivate();
              resetNewGameStuff();
              visiblePanelChecker();
         public void resetNewGameStuff()//Resets the values in the items for the New Game
              newGameName = null;
              newGameRace = newGameGender = null;
              newGameSTR = newGameAGI = newGameVIT = newGameDEX = newGameINT = newGameLUK = null;
              nGameSTR = nGameAGI = nGameVIT = nGameDEX = nGameINT = nGameLUK = null;

    Is there anybody who can help me? I need Help guys......

  • Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...

    Service "orcl" has 2 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    Instance "orcl", status READY, has 3 handler(s) for this service...
    Service "rcat" has 2 instance(s).
    Instance "rcat", status UNKNOWN, has 1 handler(s) for this service...
    Instance "rcat", status READY, has 1 handler(s) for this service...
    What does Instance "orcl", status UNKNOWN, has 1 handler(s) for this service... means?

    Table 10-3 Listener Control Utility SERVICES Command
    Output Section Description
    Service
    Identifies the registered service
    Instance
    Specifies the name of the instance associated with the service
    The status field indicates if the instance is able to accept connections.
    A READY status means that the instance can accept connections.
    A BLOCKED status means that the instance cannot accept connections.
    A READY/SECONDARY status means that the is a secondary instance in an Oracle Real Application Clusters primary/secondary configuration and is ready to accept connections.
    A RESTRICTED status means that the instance is in restricted mode. The listener blocks all connections to this instance.
    An UNKNOWN status means that the instance is registered statically in the listener.ora file rather than dynamically with service registration. Therefore, the status is non known.
    Handlers
    Identifies the name of the service handler. Dispatchers are named D000 through D999. Dedicated servers have a name of DEDICATED.
    This section also identifies the following about the service handler:
    established: The number of client connections this service handler has established
    refused: The number of client connections it has refused
    current: The number of client connections it is handling, that is, its current load
    max: The maximum number of connections for the service handler, that is, its maximum load
    state: The state of the handler:
    - A READY state means that the service handler can accept new connections.
    - A BLOCKED state means that the service handler cannot accept new connections.
    Following this, additional information about the service handler displays, such as whether the service handler is a dispatcher, a local dedicated server, or a remote dedicated server on another node
    >>>http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14212/listenercfg.htm#sthref1060

  • Tile Based Game Questions

    Hi, I know there are tons on posts about this topic, but I can not find the answer to my questions.
    First, how would I go about moving the world around so the char is always in the center or near center of the screen? Do I have to have some sort of offset or something?
    Second, how would I have efficient collision dection? I use the following code for movement...
    public class worldTravelPanel extends JPanel implements MouseListener
         mapGround mapGround = new mapGround();
         mapWall mapWall = new mapWall();
         mapRoof mapRoof = new mapRoof();
         mapDoor mapDoor = new mapDoor();
         mapNPC mapNPC = new mapNPC();
         Point2D start, end;
         double x, y, animationSet;
         Timer timer = new Timer();
         public worldTravelPanel()
              mapGround.loadImages("town");
              mapGround.loadTiles("olatheMap");
              mapWall.loadImages("town");
              mapWall.loadTiles("olatheMap");
              mapDoor.loadImages("town");
              mapDoor.loadTiles("olatheMap");
              mapNPC.loadImages("generic");
              mapNPC.loadTiles("olatheMap");
              mapRoof.loadImages("town");
              mapRoof.loadTiles("olatheMap");
              x = programWidth / 2;
              y = programHeight / 2;
              animationSet = 7.0;
         class moveTask extends TimerTask
              Point2D start = new Point2D.Double(hero.location[0][0], hero.location[0][1]);;
              Point2D end = new Point2D.Double(hero.location[1][0], hero.location[1][1]);
              double distance = start.distance(end);
              public void run()
                   if(((Math.abs(start.getX() - end.getX()) < 0.5) && (Math.abs(start.getY() - end.getY()) < 0.5)) && start != end)
                        start = end;
                   else if (start != end)
                        double distance = start.distance(end);
                        x = (end.getX() - start.getX()) / distance;
                        y = (end.getY() - start.getY()) / distance;
                        hero.location[1][0] = (int)(start.getX() + x);
                        hero.location[1][1] = (int)(start.getY() + y);
                        checkForCollision();
                        repaint();
                   else
                        hero.location[0][0] = (int)start.getX();
                        hero.location[0][1] = (int)start.getY();
                        timer.cancel();
              public void checkForCollision()
                   int tempX = (int)(hero.location[1][0] / 32);
                   int tempY = (int)(hero.location[1][1] / 32);
                   boolean wallCollision = false;
                        if(end.getX() > start.getX())
                        if(mapWall.currentWallMap[tempY][tempX + 1] != 00)
                             wallCollision = true;
                   else if(end.getX() < start.getX())
                        if(tempX <= 1)
                             tempX = 1;
                        if(mapWall.currentWallMap[tempY][tempX - 1] != 00)
                        wallCollision = true;
                   if(end.getY() < start.getY())
                        if(mapWall.currentWallMap[tempY + 1][tempX] != 00)
                        wallCollision = true;
                   else if(end.getY() > start.getY())
                        if(tempY <= 1)
                             tempY = 1;
                        if(mapWall.currentWallMap[tempY - 1][tempX] != 00)
                        wallCollision = true;
                   if(wallCollision == true)
                        System.out.println("Wall Collision: " + tempY + ", " + tempX);
                        //end.setLocation(hero.location[1][0], hero.location[1][1]);
                        //start.setLocation(hero.location[1][0], hero.location[1][1]);
                        start.setLocation(start.getX() + x, start.getY() + y);
                        x = start.getX();
                        y = start.getY();
                   else if(mapDoor.currentDoorMap[tempY][tempX] != 00)
                        System.out.println("Enter Door: " + mapDoor.currentDoorMap[tempY][tempX]);
                        hero.map = "olatheMap";
                        changeMap();
                   else if(mapNPC.currentNPCMap[tempY][tempX] != 00)
                        System.out.println("NPC Collision");
                        start.setLocation(start.getX() + x, start.getY() + y);
                        x = start.getX();
                        y = start.getY();
                   else
                        start.setLocation(start.getX() + x, start.getY() + y);
                        x = start.getX();
                        y = start.getY();
                   public void changeMap()
                   mapGround.loadTiles(hero.map);
                   mapWall.loadTiles(hero.map);
                   mapDoor.loadTiles(hero.map);
                   mapNPC.loadTiles(hero.map);
                   mapRoof.loadTiles(hero.map);
                   x = programWidth / 2;
                   y = programHeight / 2;
                   start.setLocation(x, y);
                   end.setLocation(x, y);
         protected void paintComponent(Graphics g)
              g.clipRect(0, 0, programWidth, programHeight);
              g.setColor(Color.white);
              g.fillRect(0, 0, programWidth, programHeight);
              mapGround.drawGround(g);//Floor Layer
              mapWall.drawWall(g);//Wall Layer
              mapDoor.drawDoor(g);//Interaction Layer 1
              mapNPC.drawNPC(g);//Interaction Layer 2
              charHero[(int)animationSet].paintIcon(this, g, (int)x, (int)y);
              mapRoof.drawRoof(g);//Roof Layer
         //Begin Mouse Listener Block
         public void mouseClicked(MouseEvent e){}
         public void mousePressed(MouseEvent e){processMouseMotion(e);}
         public void mouseReleased(MouseEvent e){}
         public void mouseEntered(MouseEvent e){}
         public void mouseExited(MouseEvent e){}
         private void processMouseMotion(MouseEvent e)
              if(e.getModifiers() == MouseEvent.BUTTON1_MASK)
                   hero.location[0][0] = (int)x;
                   hero.location[0][1] = (int)y;
                   hero.location[1][0] = (int)(e.getX() / 32) * 32 + 3;//Centers hero is tile
                   hero.location[1][1] = (int)(e.getY() / 32) * 32;//Centers hero is tile
                   timer.cancel();
                   timer = new Timer();
                   timer.schedule(new moveTask(), 0, 10);
         //End Mouse Listener Block
    }Thanks for any and all help!
    Ryltar

    I answered this here:
    http://forum.java.sun.com/thread.jsp?forum=406&thread=535480&tstart=60&trange=15
    If that doesn't work for you, ask some more specific questions and I'll try to give more help.

  • Socket closing before server can readObject()

    I am trying to create a multi-threaded client server application that transmits objects. At the moment, I am having a hard time getting the sockets to coincide.
    I start my server and wait for a connection:
    ServerSocket ss = new ServerSocket(port_num);
    Socket s = ss.accept();Then I create a new socket in the client to connect to the server:
    Socket cs = new Socket("localhost", 8888);When the server class gets the connection, it creates a thread with the socket:
    new DrawThread(s);The thread constructor creates an Input stream:
    ois = new ObjectInputStream(sock.getInputStream());After the client creates the connection, it creates and ObjectOutputStream and writes my object:
    oos = new ObjectOutputStream(cs.getOutputStream());
    oos.writeObject(objects.get(0).getShape());Meanwhile in the run() method of the thread, we try to read it:
    ois.readObject();However at this point I get an IOException because the client function was done and had exited so the socket was closed.
    Any Idea what I can do to combat this problem? Full code for my client function, server and thread classes are below.
    Client function:
       public void serverSave(){
            Date d = new Date();
            try{
            //initialize class network and IO vars
            Socket cs = new Socket("localhost", 8888);//create server
            oos = new ObjectOutputStream(cs.getOutputStream());
             //write the objects to the server
               // for(int i = 0; i< objects.size(); i++){
                     oos.writeObject(objects.get(0).getShape());
                //}//end for
           catch (UnknownHostException uhe){System.out.println("client uhe");System.out.println(uhe.getMessage());}
         catch(IOException ioe){System.out.println("client ioe");System.out.println(ioe.getMessage());}
         finally{
                    //print out time to see when the function exits
              System.out.println(d.getTime());
       }Server Class:
    import java.io.*;
    import java.net.*;
    class DrawServer{
         static int port_num = 8888;//default port number
         public void DrawServer(){}
         public static void main(String args[])throws IOException{
              //don't forget to close socket
              ServerSocket ss = new ServerSocket(port_num);
              while(true){
                   System.out.println("begin listening");
                   //blocking wait for a connection
                   Socket s = ss.accept();
                   //create new thread for the client
                   new DrawThread(s);
                   System.out.println("end listening");
                   s.close();
              }//end while
         }//end main
    }Thread Class
    import java.net.*;
    import java.net.Socket;
    import java.io.*;
    import java.util.*;
    class DrawThread extends Thread{
         private Socket sock;
         private ObjectInputStream ois = null;
            private ObjectOutputStream oos = null;
            ObjectOutputStream out = null;
            //create a file input stream or buffered stream to accept filename from client???
         public DrawThread(Socket s){
              sock = s;
              try{
              ois = new ObjectInputStream(sock.getInputStream());
                    oos = new ObjectOutputStream(sock.getOutputStream());
              start();
              catch( IOException ioe){}
         public void run(){
              Date d = new Date();
              System.out.println("Thread started");
              try{
              int i = 0;
              while(true){
                   System.out.println("getting item " + ++i);
                   ois.readObject();
              catch(FileNotFoundException fnfe){System.out.println("fnfe");}
              catch(IOException ioe){System.out.println("ioe     " + + d.getTime());System.out.println(ioe.getMessage());}
              catch(ClassNotFoundException cnfe){System.out.println("cnfe");}
              finally{
                   try{out.close();}
                   catch(IOException ioe2){System.out.println("ioe2");}
              System.out.println("Thread ending");
    }Thanks,
    Shannon

    You have one problem with your DrawServer class:               new DrawThread(s); // this starts a thread that uses the socket
                   System.out.println("end listening");
                   s.close(); // this will close the socket while it is used in the DrawThread thread.Instead close the socket in the finally block of the DrawThread run() method (no need to close the ObjectOutputStream in that block).
    Also since you are passing a variable number of objects between the client and the server
    you should create a custom made protocol for both your ends to always be in sync with each other.
    For instance the client could send first the number of objects to be sent,
    then loop for this exact number and send the objects,
    then upon receiving the server response close its socket.
    The server could read for the number of objects to read,
    then loop for the exact number and read the objects,
    then send a response and close its socket.

  • ORA-12528: TNS: listener: all appropriate instances are blocking new connec

    Hi this is kumar,
    i am getting the below error .
    ORA-12528: TNS: listener: all appropriate instances are blocking new connections
    please find my alertlog file ,in alert log file we are getting opertaion timed out.
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 238
    nt OS err code: 0
    Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.254.254.32)(PORT=1599))

    Hi,
    thank you for your quick responce.
    $ srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1526
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1526
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1526
    $ lsnrctl status LISTENER_SCAN1
    LSNRCTL for HPUX: Version 11.2.0.2.0 - Production on 22-APR-2013 20:38:33
    Copyright (c) 1991, 2010, 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.2.0 - Production
    Start Date 30-JAN-2013 01:46:21
    Uptime 82 days 18 hr. 52 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/dccdb01/listener_scan1/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.44.83.111)(PORT=1526)))
    Services Summary...
    Service "instance" has 2 instance(s).
    Instance "instance1", status READY, has 1 handler(s) for this service...
    Instance "instance2", status READY, has 1 handler(s) for this service...
    Service "instanceXDB" has 2 instance(s).
    Instance "instance1", status READY, has 1 handler(s) for this service...
    Instance "instance2", status READY, has 1 handler(s) for this service...
    Service "instance" has 2 instance(s).
    Instance "instance1", status READY, has 1 handler(s) for this service...
    Instance "instance2", status READY, has 1 handler(s) for this service...
    Service "instanceXDB" has 2 instance(s).
    Instance "instance1", status READY, has 1 handler(s) for this service...
    Instance "instance2", status READY, has 1 handler(s) for this service...
    Service "instanceoltp" has 2 instance(s).
    Instance "instance1", status READY, has 1 handler(s) for this service...
    Instance "instance2", status READY, has 1 handler(s) for this ser
    $
    ABCD =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dccdb-cluster-scan)(PORT = 1526))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ABCD)
    ADCDE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dccdb-cluster-scan)(PORT = 1526))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ADCDE)
    we didn't do any changes from the database side,now only my user had raised a complaint

  • Listener Service Blocked

    Oracle 10g on Windows Server 2003
    One Listener Service with Two instances
    I understand you, the reader, may have some experience working with Oracle Servers and I am hoping you may be able to shed some light on my current issue.
    I have Oracle 10g Version 10.1.0.2.0 Standard running on Windows Server 2003 SP2. There are multiple database instances; as you know each instance has a SID, its own service “OracleService<SID>”, memory space, files, configurations, etc.
    Each database runs though the same listener with an individual listener service.
    There are now six databases on the system (mastsch1, indosch1, bathsch1, bathsch2, bathsch3, and bathsch4)
    The most recent database, bathsch4, is a clone/copy of bathsch3.
    I chose to use the Database Administrator Console to Clone an existing database (bathsch3) to create a new database (bathsch4).
    What I ended up with was a single listener service “bathsch4” reporting two instances “bathsch4” READY and “bathsch3” BLOCKED.
    I’ve checked lsnrctl services and status to gather this information, validated the PATH, and registry settings, and tested resolution of TNSPING which all report the same issue.
    Issue 1:
    I need assistance in understanding how exactly to alter “bathsch3” so it runs again in its own listener service “bathsch3” and is no longer BLOCKED.
    Thankfully, all of the other databases (mastsch1, indosch1, bathsch1, bathsch2, and bathsch4) are running correctly.
    I walked through many scripts and diagnostics to get were I thought stopping and starting the service would bring me back to completion, but ended up after a system cycle back to the same problem, so I’ve clearly missed something.
    In the process of researching this issue, I found that my listener.log had grown exponentially and was at 700 MB already. The majority of this log was the windows service “OracleServicebathsch3” attempting to connect to the database.
    I shutdown the database and stopped the service which drastically reduced the rate of growth.
    Issue 2:
    I need assistance in understanding how exactly to set up the listener.log to either rollover or truncate after 20 MB.
    If you believe you are capable of provide me with any helpful guidance? Please do so, I am happy to answer any question and provide every bit of information you feel would be of assistance.
    Thank you,
    James

    10/16/2009 12:11:27 PM EST
    Thank you for your response - I will definitely attempt your suggestion for item 2.
    With regards to item 1, it appears that I'm not explaining the listener issue well enough.
    On Windows Server 2003 R2 with Oracle 10.1.0.2.0 Standard running if you were to check the listener status, I appear to have only one listener with the correct endpoint.
    If you check the listener services you will see that one listener service, with the name of the new database, is listed as having two dependent instances, the original database, bathsch3, and the new database, bathsch4.
    The original database, bathsch3, is blocked.
    I need guidance on how to uncouple the original database, bathsch3, from the “bathsch4” service and get it back on its own service.
    To follow is a run of the listener status in case it helps to “see” what I am saying.
    e.x. ===============
    cmd> lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 15-OCT-2009 14:34
    :51
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.0.75)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    Start Date 14-OCT-2009 20:17:13
    Uptime 0 days 18 hr. 17 min. 38 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File c:\oracle\product\10.1.0\db_1\network\admin\listener.ora
    Listener Log File c:\oracle\product\10.1.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.0.75)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "BATHSCH4XDB" has 1 instance(s).
    Instance "bathsch4", status READY, has 1 handler(s) for this service...
    Service "MASTSCH1" has 2 instance(s).
    Instance "MASTSCH1", status UNKNOWN, has 1 handler(s) for this service...
    Instance "mastsch1", status READY, has 1 handler(s) for this service...
    Service "BATHSCH1XDB" has 1 instance(s).
    Instance "bathsch1", status READY, has 1 handler(s) for this service...
    Service "BATHSCH2XDB " has 1 instance(s).
    Instance "bathsch2", status READY, has 1 handler(s) for this service...
    Service "indosch1" has 1 instance(s).
    Instance "indosch1", status READY, has 2 handler(s) for this service...
    Service "bathsch4" has 2 instance(s).
    Instance "bathsch4", status READY, has 1 handler(s) for this service...
    Instance "bathsch3", status BLOCKED, has 1 handler(s) for this service...
    Service "mastsch1XDB" has 1 instance(s).
    Instance "mastsch1", status READY, has 1 handler(s) for this service...
    Service "bathsch1" has 1 instance(s).
    Instance "bathsch1", status READY, has 1 handler(s) for this service...
    Service "bathsch2" has 1 instance(s).
    Instance "bathsch2", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • Service Blocked in Listener

    Hello All
    To be able to write a rman backup to a share I need to have the db service and listener started as the same user
    that I use to write to the share. According to MOS:
    How to Configure RMAN to Write to Shared Drives on Windows NT/2000 [ID 145843.1]
    On one machine I have an issue when changing the user from local to a domain user.
    The service becomes blocked in the listener, I have also restarted the listener with the same user.
    I have confirmed that the user are member of needed groups (ora_dba, administrators)
    and have the required policies granted...
    What do I need to do to change th service to ready ?
    If I change back to local system account the service is ready again.
    Appreciate your feedback and comments.
    Thanks
    Magnus

    There are couple of threads about the same issue over here. Please see if you find a solution from any of them,
    http://forums.oracle.com/forums/search.jspa?threadID=&q=service%3Dblocked&objID=f61&dateRange=all&userID=&numResults=15
    HTH
    Aman....

  • Error  TNS:listener: all appropriate instances are blocking new con...

    Hi,
    I try connect to database "mariusz" using sql developer. When I try do this I get error ORA-12528... I try shutdown and startup database and nothing. I chceck status using lsnrctl and there I have : mariusz state blocked. I try LSNRCTL> stop LSNRCTL> start but it didn't help.

    status
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 28-LIP-2012 16:25
    :02
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    ú╣czenie z (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STAN NASúUCHU
    Alias LISTENER
    Wersja TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Produc
    tion
    Data rozpoczŕcia 28-LIP-2012 15:11:13
    Czas dzia│ania 0 dni 1 h 13 min. 51 s
    Poziom ťladu off
    Zabezpieczenie ON: Local OS Authentication
    SNMP OFF
    Plik parametrˇw nas│uchu F:\app\Mariano\product\11.2.0\dbhome_1\network\admin\
    listener.ora
    Plik dziennika nas│uchu f:\app\mariano\diag\tnslsnr\mariusz\listener\alert\log.x
    ml
    Nas│uch punktˇw ko˝cowych - podsumowanie...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Podsumowanie us│ug...
    Us│uga "CLRExtProc" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "CLRExtProc", stan UNKNOWN, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs
    │ugi...
    Us│uga "mariusz" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "mariusz", stan BLOCKED, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ug
    i...
    Us│uga "orcl" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "mar", stan READY, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ugi...
    Us│uga "user" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "user", stan READY, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ugi...
    Us│uga "userXDB" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "user", stan READY, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ugi...
    Polecenie zako˝czone powodzeniem
    service
    C:\>lsnrctl service
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 28-LIP-2012 16:27
    :00
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    ú╣czenie z (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Podsumowanie us│ug...
    Us│uga "CLRExtProc" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "CLRExtProc", stan UNKNOWN, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs
    │ugi...
    Procedura(-y) obs│ugi:
    "DEDICATED" ustalono:0 odmˇwiono:0
    LOCAL SERVER
    Us│uga "mariusz" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "mariusz", stan BLOCKED, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ug
    i...
    Procedura(-y) obs│ugi:
    "DEDICATED" ustanowiono:0 odmˇwiono:0 stan:ready
    LOCAL SERVER
    Us│uga "orcl" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "mar", stan READY, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ugi...
    Procedura(-y) obs│ugi:
    "DEDICATED" ustanowiono:1 odmˇwiono:0 stan:ready
    LOCAL SERVER
    Us│uga "user" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "user", stan READY, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ugi...
    Procedura(-y) obs│ugi:
    "DEDICATED" ustanowiono:1 odmˇwiono:0 stan:ready
    LOCAL SERVER
    Us│uga "userXDB" ma liczbŕ instancji rˇwn╣ 1.
    Instancja "user", stan READY, ma dla tej us│ugi 1 procedur(-ŕ, -y) obs│ugi...
    Procedura(-y) obs│ugi:
    "D000" ustalono:0 odmˇwiono:0 bie┐╣ce:0 maks.:1022 stan:ready
    DISPATCHER <machine: MARIUSZ, pid: 2892>
    (ADDRESS=(PROTOCOL=tcp)(HOST=mariusz)(PORT=1051))
    Polecenie zako˝czone powodzeniem
    C:\>

Maybe you are looking for

  • BUG? - Unable to configure custom viewhandler

    Hi. I'm experiencing difficulties with my attempt to configure a custom viewhandler, i.e. by sub-classing the ViewHandlerImp class. My plan was to use the viewhandler to switch render kit IDs, based on the URL mapping. It is possible to do this when

  • Triggering a javascript by opening a pdf document

    The title pretty much says it.  I'd like to trigger a javascript (already in place) as soon as the pdf form opens, rather than having some mouse action required.  The text field I'm triggering will display the date (read only) on an SOP form to simpl

  • Unable to setup fixed number of report columns based on a dynamic query

    Hi guys, I need to find a way to replicate below output. Unfortunately it cannot be done using the column group feature due the fact it will create not so many rows as I need. In the below case it would create only four columns. I need 10 columns. Ba

  • CD burn error 4701

    I have tried to burn a playlist using ITunes to CD as I've done dozens of times. I insert a blank CD and the burning process begins. After a period of approx. 8 or 9 tracks the burning process self cancels, then a message 'an unknown error has occure

  • Issues while implementing Graceful switchover and switchback

    Hi Guru's, I had a DR Drill between one of my 10.2.0.4 ( standard edition) Primary database server and it's manaual standby dr server. Where only reports were going to be generated. With reference to http://www.pafumi.net/Graceful_Failover_Failback.h