Exclusive Mode

Hi friends
What does "Database cannot be open in Exclusive mode" means?

What does "Database cannot be open in Exclusive mode" means? That's not the correct error message. Is it? What is your Oracle Release?
Well, I guess you are getting ORA-01102 while starting the database. You still has background processes running or not shutdown properly
If you have already shutdown the database, look for the processes and kill them manually. If you hav enot shutdown the database, shutdown the database cleanly.

Similar Messages

  • How come full screen exclusive mode is so slow?

    Hi. I am currently working on customer facing point-of-sale application. This application has a lot of animation going on and so needs quite speedy graphics performance. When I first investigated this it looked like I could do it in pure Java 2D which would be a lot easier than resorting to DirectX or OpenGL and mixing languages.
    Unfortunately as the app has moved closer to functional complete the graphics performance appears to have deteriorated to the point where it is unusable. So I have gone back to the beginning and written a test program to identify the problem .
    The tests I have done indicate that full screen exclusive mode runs about ten times slower than windowed mode. Which is mind boggling. Normally - say in DirectX - you would expect a full screen exclusive version of a games/graphics app to run a little bit quicker than a windowed version since it doesn't have to mess around with clip regions and moving vram pointers.
    My test program creates a 32 bit image and blits it to the screen a variable number of times in both windowed and full screen mode. Edited results look like this:
    iter wndw fscrn performance
         10 16.0 298.0 1862% slower
         20 47.0 610.0 1297% slower
         30 94.0 923.0 981% slower
         40 141.0 1205.0 854% slower
         50 157.0 1486.0 946% slower
         60 204.0 1877.0 920% slower
         70 234.0 2127.0 908% slower
         80 266.0 2425.0 911% slower
         90 297.0 2722.0 916% slower
         100 344.0 3253.0 945% slower
    The results are substantially the same with the openGL hint turned on (although I don't have that option on the release hardware). I am assuming that the images end up as managed since they are created through BufferedImage and the system is running under 1.5.
    Is there a way to get the full screen version running as fast as the windowed version?
    Here's the test prog:
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class BlittingTest extends JFrame {
         BufferedImage     blankImage;
         BufferedImage     testImage;
         boolean               fullscreen;
         int                    frameNum;
         public BlittingTest( boolean fullscreen ) throws HeadlessException {
              super();
              // window setup. Escape to exit!
              addKeyListener ( new KeyAdapter() {
                   public void keyPressed( KeyEvent ke ) {
                        if (ke.getKeyCode() == KeyEvent.VK_ESCAPE ) {
                             System.exit(0);
              this.fullscreen=fullscreen;
              if ( fullscreen ) {
                   setUndecorated ( true );
              } else {
                   setTitle( "BlittingTest - <esc> to exit)");
                   setSize( 800, 600 );
              setVisible(true);
              setIgnoreRepaint(true);
              // strategy setup
              if ( fullscreen ) {
                   GraphicsDevice gdev =
                        GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
                   DisplayMode newDisplayMode = new DisplayMode (800, 600, 32,
                                                 DisplayMode.REFRESH_RATE_UNKNOWN);
                   DisplayMode oldDisplayMode = gdev.getDisplayMode();               
                   gdev.setFullScreenWindow(this);
                   gdev.setDisplayMode(newDisplayMode);
                   createBufferStrategy(2);
              // create assets
              testImage = new BufferedImage ( 50, 50, BufferedImage.TYPE_INT_ARGB );
              Graphics2D g = testImage.createGraphics();
              for ( int i = 0; i < 50; i ++ ) {
                   g.setColor( new Color ( 0, (50 - i) * 3, 0, i * 3 ));
                   g.drawLine( i, 0, i, 49 );
              g.dispose();
              blankImage = new BufferedImage ( 50, 50, BufferedImage.TYPE_INT_ARGB );
              g = blankImage.createGraphics();
              g.setColor ( Color.WHITE );
              g.fillRect( 0, 0, 50, 50 );
              g.dispose();
              frameNum = -1;
         public void init() {
              // blank both screen buffers
              for ( int i = 0; i < 2; i++ ) {
                   Graphics g2 = getBufferStrategy().getDrawGraphics();
                   g2.setColor ( Color.WHITE );
                   g2.fillRect( 0, 0, 800, 600 );
                   g2.dispose();
                   getBufferStrategy().show();
         public long testFrame ( int numBlits ) {
              int          x, y;
              long     timeIn, timeOut;
              frameNum++;
              Graphics g = getBufferStrategy().getDrawGraphics();
              g.drawImage( testImage, 0, 0, null );
              // blank previous draw
              if ( fullscreen ) {
                   if ( frameNum > 1 ) {
                        x = frameNum - 2;
                        y = frameNum - 2;
                        g.drawImage ( blankImage, x, y, null);
              } else {
                   if ( frameNum > 0 ) {
                        x = frameNum - 1;
                        y = frameNum - 1;
                        g.drawImage ( blankImage, x, y, null);                    
              x = (int) frameNum;
              y = (int) frameNum;
              timeIn = System.currentTimeMillis();
              for ( int i = 0; i < numBlits; i++ ) {
                   g.drawImage ( blankImage, x, y, null);
                   g.drawImage ( testImage, x, y, null);
              timeOut = System.currentTimeMillis();
              g.dispose();
              getBufferStrategy().show();
              return     timeOut - timeIn;
         public static void main(String[] args) {
              boolean error = false;
              BlittingTest window = null;
              double []     windowedTest = new double [101];
              double []     fullscreenTest = new double [101];
              window = new BlittingTest ( false );     
              window.init();
              for ( int f = 1; f <= 100; f++ ) {
                   windowedTest[f] = window.testFrame( f * 10 );
              window.setVisible(false);
              window.dispose();
              window = new BlittingTest ( true );     
              window.init();
              for ( int f = 1; f <= 100; f++ ) {
                   fullscreenTest[f] = window.testFrame( f * 10 );
              window.setVisible(false);
              window.dispose();
              for ( int f = 10; f <= 100; f++ ) {
                   System.out.println ( "\t" + f + "\t" + windowedTest[f] +
                             "\t" + fullscreenTest[f] +
                             "\t" + (int) ( (fullscreenTest[f]/windowedTest[f])*100.0) + "% slower");
    }

    Well I could do...
    The problem is that I am compositing multiple layers of alpha transparent images. If I just render straight to the screen I get nasty flicker where I see glimpses of the background before the top layer(s) get rendered. So I would have to render to an offscreen buffer and then blit the assembled image into the screen. Even then there will be some tearing as you can never sync to the screen refresh in windowed mode.
    And the thing is - there ought to be a 'proper' solution, g*dd*mm*t. Surely the core team didn't put together a solution that is ten times slower than it should be and then say 'What the heck, we'll release it anyway'.
    I mean, if you can't believe in Sun engineering what can you believe in?

  • JInternalFrame Full Screen Exclusive mode lag Windows 7?

    <font size=2>Hi everyone I'm not sure if i'm posting this question in the right category so feel free to move it. I recently have been playing around with full screen exclusive mode and JInternalFrames. Now what iv'e noticed is on every platform i've tried it works fine. When clicking and dragging the JInternalFrame to a new location it is quick and responsive. However when doing this same operation in Windows 7 the JInternalFrame lags significantly behind the mouse location as i'm dragging the internal frame. I haven't had a chance to test this on any other Windows platforms such as Vista or XP but I don't think it happens on those platforms, at least I don't remember this ever happening when I had Windows Vista and it doesn't occur in Mac OS 10.6.
    The following are the circumstances i've found that produce this problem:
    *1. The program is set to Full Screen Exclusive mode.*
    *2. You are using Windows 7 (possibly other Windows platforms)*
    *3. Click and drag a JInternalFrame to a new location.*
    I've tried several things to see if it fixes the problem such as setting the look and feel to cross platform but nothing helps. In fact when the LAF is set to cross platform it is even worse.
    Now i'm new to Full Screen Exclusive mode so i'm guessing (hoping) this is a problem caused by an error on my part. Here is the source code, i'd appreciate it if you give it a try. My question is how do I fix this lag so that the JInternalFrame is quick and responsive to the user dragging the window and i'm also wondering if this only happens on Windows 7 so if anyone could also tell me if they experience the problem I am describing and the OS you are using that would be great. Thank you guys :)
    Also any input about wether i'm setting up full screen exclusive mode correctly would be much appreciated too.</font>
    package lag;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    public class InternalFrameLag
        public static void main(String[] args) {
            SwingUtilities.invokeLater( new Runnable() {
                public void run() {
                    new InternalFrameLag();
        GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
        GraphicsDevice[] devices = env.getScreenDevices();
        GraphicsDevice device;
        JFrame frame = new JFrame("Internal Frame Lag");
        JDesktopPane pane = new JDesktopPane();
        JInternalFrame internalFrame = new JInternalFrame("Internal Frame", true, true, true, true);
        JButton exit = new JButton("Exit");
        public InternalFrameLag() {
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setUndecorated(true);
            exit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    System.exit(0);
            exit.setPreferredSize(new Dimension(250,23));
            internalFrame.setLayout(new FlowLayout());
            internalFrame.setBounds(100,100,500,300);
            internalFrame.add(exit);
            pane.add(internalFrame);
            frame.add(pane);
            // get device that supports full screen
            for(int i = 0; i<devices.length; i++) {
                if(devices.isFullScreenSupported()) {
    device = devices[i];
    break;
    if(device!=null) {
    device.setFullScreenWindow(frame);
    internalFrame.setVisible(true);
    } else {
    System.exit(0);
    Edit: Decided to make the font size bigger. Eyestrain is killing me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Darryl Burke wrote:
    neptune692 wrote:
    <font size=2>
    Edit: Decided to make the font size bigger. Eyestrain is killing me.Hopefully that will carry over to my response and I won't have to edit to add it ;)
    I don't see the lag you describe. There's some flicker when moving the internal frame around rapidly (it looks as if the borders follow the content a split second later, but can't be caught in a screen capture) but that's no different when I show the internal frame in a normal (not full screen) window.
    <tt>Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.
    C:\Users\Darryl>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)</tt>
    db<font size=2>Thanks for your reply and thanks for testing out my code. Could this lag be something wrong with my VM on Windows 7, cause the lag is extremely bad as in it takes a couple seconds for the internal frame to catch up with the mouse. I also just noticed that any other components in full screen exclusive mode on Windows 7 lag as well. Such as scrolling though a large amount of text, the scroll bar will lag far behind the mouse location and take a couple of seconds to catch up even when the mouse is moving fairly slow. I was hoping it was something in the code I was doing wrong but I guess not? Any suggestions on how I could fix this problem? It really makes my applications appear sluggish. For example when you click on a normal window such as in Windows Explorer and drag it to a new location the mouse stays in a fixed position on the window while you are dragging it. However with this lag the mouse appears to be "detatched" from the window and does not stay in the same location on the window while dragging. Does anyone else experience this or is this normal? I'm using Windows 7 64bit but I don't think that would make any difference. I'd also like to point out that I'm using Java 6 update 21 I don't know if that would make a difference opposed to update 17.
    Thanks again.</Font>
    Edited by: neptune692 on Oct 2, 2010 10:23 AM

  • Error message in Command line (cannot mount database in EXCLUSIVE mode)

    Hello Experts
    I'm new in Oracle and trying to connect to my database though SQL command line. After I login as SYS I user I get the message that 'connected to idle instance'. Then I use “STARTUP” to connect to database. Now from my understanding it should mount the database and open it as well. But it does'nt happens.Instead I get the message 'cannot mount database in EXCLUSIVE mode' . I'm not sure why it can't mound the database and what should I do to make it working. Please can somebody show me how to make it working again. Here are the details about my problem
    Enter user-name: SYS as SYSDBA
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 595591168 bytes
    Fixed Size 1220748 bytes
    Variable Size 301993844 bytes
    Database Buffers 285212672 bytes
    Redo Buffers 7163904 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Thanks a lot in advance.

    Thank you so much for both of you. I've checked everything. All looks fine to me and then i tried to connect though SQL and it worked. Now what I've notice that this time I didn't start Enterprise Manager only I started the listner and then start sql it worked. Does this means that I can't use both SQL and EM at a time together?

  • Event Handling in Fullscreen Exclusive Mode???????

    WIndows XP SP2
    ATI 8500 All-In-Wonder
    JDK 1.6
    800x600 32dpi 200 refresh
    1-6 buffer strategy.
    the graphic rendering thread DOESN'T sleep.
    Here's my problem. I have a bad trade off. In fullscreen exclusive mode my animation runs <30 fps and jerks when rendering. i.e. stop and go movement (not flickering/jittering just hesitant motion) when the animation is running. I solved this problem by raising the thread priority of the rendering (7-8). . . this resulted in latency/no activity for my input events both key and mouse. For instance closing the program alt-f4 will arbitrarily fail or be successful when the thread priority is raised above 6.
    How does one accomplish a >30 fps and Instant event handling simultaneously in Fullscreen Exclusive Mode?
    Is there a way to raise thread priority for event handling?
    Ultimately I want to be able to perform my animations and handle key and mouse input events without having a visible 'hiccups' on the screen.
    Much Appreciated!

    If I remember correctly the processor is a 1.4(or)6ghz AMD Duron
    Total = 1048048kb
    Available = 106084kb
    Sys Cache = 211788kb
    PF Usage = 1.01 GB
    I solved some of the problem after posting this thread. . . .
    I inserted a thread.sleep(1) and my alt-f4 operation worked unhindered with the elevated thread priority.
    I haven't tested it with mouse event or any other key event but at the moment it looks I may have solved the problem.
    If so, my next question will be is there a way to reduce the amount of cpu power needed to run the program.
    I'm afraid that the other classes that I'm adding will actually become even more process consuming than the actually rendering thread.
    public class RenderScreen extends Thread
      // Screen Rendering status code
      protected final static int RUNNING = 0,
                                 PAUSED = -1;
      // frames per second and process time counters
      protected long now = 0, fps = 0, fpsCount = 0, cycTime = 0;
      // thread status
      protected int status = 0;
      protected Screen screen;
      public void setStatus(int i){ status = i; };
      public void setTarget(Screen screen){ this.screen=screen; };
      public void run()
        setName("Screen Render");
        screen.createBufferStrategy(1);
        screen.strategy = screen.getBufferStrategy();
        for(;;)
          if(status == RUNNING)
            now = System.currentTimeMillis();
            while(System.currentTimeMillis() <= now+1000)
              // call system processes
              // fps increment / repaint interface
              fpsCount++;
              screen.renderView();
              try { Thread.sleep(1);}catch(InterruptedException ie){ ie.printStackTrace(); }
            fps = fpsCount;
            cycTime = System.currentTimeMillis() - (now + 1000);
            fpsCount=0;
      public RenderScreen(){};
      public RenderScreen(Screen screen){ this.screen=screen; };
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    public class Screen extends Window
      BufferedImage image = new BufferedImage(800,600,BufferedImage.TYPE_INT_RGB);
      Graphics2D gdd = image.createGraphics();
      MediaTracker tracker = new MediaTracker(this);
      Image bground = getToolkit().getImage("MajorityRule.jpg"),
            bawl = getToolkit().getImage("bawl.gif");
      RenderScreen rScreen = new RenderScreen(this);
      BufferStrategy strategy;
      Graphics g;
      Rectangle rect = new Rectangle(400,0,150,150);
      //Game game = new Game();
      public void renderView()
        g = strategy.getDrawGraphics();
        //--------- Game Procedures [start]
        gdd.drawImage(bground,0,0,this);
        gdd.drawString("fps: ["+rScreen.fps+"] Cycle Time: ["+rScreen.cycTime+"]",0,10);
        //--------- Game Procedures [end]
        //---------test
        gdd.drawImage(bawl,rect.x,rect.y,rect.width,rect.height,this);
        rect.translate(0,1);
        g.drawImage(image,0,0,this);
        //g.dispose();
        strategy.show();
      public Screen(JFrame frame)
        super(frame);
        try
          tracker.addImage(bground,0);
          tracker.addImage(bawl,1);
          tracker.waitForAll();
        catch(InterruptedException ie){ ie.printStackTrace(); }
        setBackground(Color.black);
        setForeground(Color.white);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MajorityRule extends JFrame
      // Graphic System Handlers
      GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
      GraphicsDevice gd = ge.getDefaultScreenDevice();
      GraphicsConfiguration gc = gd.getDefaultConfiguration();
      Screen screen = new Screen(this);
      Paper paper = new Paper();
      public void windowed()
        paper.setSize(getWidth(),getHeight());
        getContentPane().add(paper);
        setResizable(false);
        setVisible(true);
      public void fullscreen()
        DisplayMode dMode = new DisplayMode(800,600,32,200);
        screen.setBounds(0,0,800,600);
        if (gd.isFullScreenSupported()) gd.setFullScreenWindow(screen);
        if (gd.isDisplayChangeSupported()){ gd.setDisplayMode(dMode); };
        screen.setIgnoreRepaint(true);
        screen.setVisible(true);
        screen.rScreen.setPriority(Thread.MAX_PRIORITY);
        screen.rScreen.start();
        screen.requestFocus();
      public MajorityRule(String args[])
        setTitle("Majority Rule [Testing Block]");
        setBounds(0,0,410,360);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        getContentPane().setLayout(null);
        if (args.length > 0 && args[0].equals("-window")) windowed();
        else fullscreen();
      public static void main(String args[])
        new MajorityRule(args);
    };

  • ORA-01102: cannot mount database in EXCLUSIVE mode

    Hello,
    I am working with an Oracle VM Template: Oracle Application Server 10g Release 3 WebCenter (x86 32-bit). In this template exists an Oracle database (version: 10.2.0.3.0), I am trying to do something operation (ie create a new user, query a system template, etc) but I can't because I have ORA-01102 error.
    I have DB and listener up :
    $ORACLE_HOME/bin
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 18-MAR-2011 08:25:04
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_ORCL)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
    Start Date                18-MAR-2011 08:09:45
    Uptime                    0 days 0 hr. 15 min. 19 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File
    +/u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora+
    Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_ORCL)))+
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=haovm007)(PORT=1521)))+
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=haovm007)(PORT=8080))(Presentation=HTTP)(Session=RAW))+
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I have export environment variables:
    export ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1/
    export ORACLE_SID = orcl
    +export PATH = ${ORACLE_HOME}bin:${PATH}+
    Then I connect to DB:
    sqlplus> connect / as sysdba
    +sqlplus> shutdown {abort/immediate}+
    ORA-01507: database not mount+
    ORACLE instance shutdown
    +sqlplus> startup {mount}+
    ORACLE instance startup
    ORA-01102: cannot mount database in EXCLUSIVE mode+
    So, I have checked listener.ora and tnsnames.ora and they are OK, so I don't know why I can't access to the DB.
    Any idea/suggestion is welcome!
    Thank you in advance and regards,
    Mónica.

    Mónica wrote:
    Hi Kamran Agayev A.,
    thank you so much, I have solve the issue!!
    I have executed your command, and after I startup the DB and it works!!!
    Regards,
    MónicaWell done! :)
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Cannot mount database in exclusive mode

    Hi guys
    for practice Ive installed oracle 10g on centos 4, when i try to start the db it showed no pfile(it created the spfile while installing oracle but fails to recognize that) I created the pfile and when I tried to start the db it is throwing the error ORA-01102 cannot mount the database in exclusive mode. I didnt start any databases but it is throughing this error
    any one please help.

    venkata_sudheer wrote:
    for practice Ive installed oracle 10g on centos 4, when i try to start the db it showed no pfile(it created the spfile while installing oracle but fails to recognize that)
    I created the pfile and when I tried to start the db it is throwing the error ORA-01102 cannot mount the database in exclusive mode. I didnt start any databases
    but it is throughing this error You can try to create pfile:
    SQL> create pfile from spfile;How you tryed to mount?
    Like this?
    SQL> STARTUP EXCLUSIVE MOUNT dbnameExclusive mode is usually needed when SYSTEM tablespace is being migrated.

  • Problem with Dataguarg   ORA-01102: cannot mount database in EXCLUSIVE mode

    Hi,
    I'm trying to create a physical standby database on my Oracle9i DB runing
    on WinXP.
    Note: I have both Primary and Standby on the same system.
    Actually everything went well .... I did created the standby DB but the problem
    is I can not start my primary DB if my standby DB is mounted.
    I get this error:
    ORA-01102: cannot mount database in EXCLUSIVE mode
    And when I read about the error message I learnt that I should start my DB in
    compatible mode ... please how do I do that?
    Or possibly how can I make this work.
    Regards,
    Cherish

    Actually, I remember doing that in the Pry pfile but cannot really remember if I do that in the standby pfile.
    I'll check and get back to you.
    I'm very grateful for that.
    Regards,
    Cherish

  • PMON and ORA-01102: cannot mount database in EXCLUSIVE mode error

    hello all
    I have been asked to look into a problem server with the following details
    OS: sunOS 5.8
    Oracle: 10.2.0.1
    sys user password is not available !
    backgrround processes for the instance(sid=test) are running
    only schema credentials available and with that user is able to connect.
    verified all oraenv parameters(ORACLE_SID is same as the running instance(test)).
    only one instance is configured in this server(verified all tnsnames.ora, data files etc).oratab is empty
    the issues are,
    when I tried to connect to the server using "oracle" user using conn / as sysdba
    1. Tried to shutdown using , shutdown immediate
    ORA-01507:database not mounted
    ORACLE instance shut down
    still able to see the background processes and user is able to connect
    2. Tried startup command,
    In the nomount state I can see more than one PMON process with the same sid
    when tried to mount/open
    ran into the error,
    ORA-01102: cannot mount database in EXCLUSIVE mode
    Eventhough the background processes for the "test" instance are running I am not able to shutdown the instance using "oracle" user
    please help
    newbie

    hi
    i renamed lk* file but the issue still remains,
    with the oracle user
    1./ as sysdba
    2. shutdown immediate
    this leads to
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    SVR4 Error: 2: No such file or directory
    still not able to identify the running oracle instance.
    there is only one oracle home and the oraenv details are set with the correct values
    verified the alert log(ora home details are matching with the env details), details of the oracle processes which are active are in the alert log along with the startup failures(mount errors) at the tail end
    oracle sysdba is not able to identify the already running instance?
    please help
    newbie

  • ORA-011-2 cannot mount database in Exclusive mode

    This is brand new both Oracle 10g and SUSE 9.3 install. The installation went fine, no errors. At the end I tried to verify the installation:
    sqlplus /nolog
    SQL>connect / as sysdba
    Connected to an idle instance
    SQL>startup
    ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/opt/oracle/product/10g/dbs/initmydb.ora'
    SQL>
    So, I figured the missing initmydb file must be in different directory so I looked for it, started new shell session and entered this:
    ln -s @ORACLE_BASE/admin/orcl/pfile/initmydb.ora
    $ORACLE_HOME/dbs/initmydb.ora
    Now I get the following error:
    SQL>startup
    ORA-011-2 cannot mount database in Exclusive mode
    This is third time that I am triyng to install both SUSE and Oracle from scratch and I always run in the same problem, so you can only imagine how I feel.

    Now after reading many documents I am even more confused. The thing is, now I can connect to EM and manage database, create tables, etc, which means the database is up, right? However, I am unable to verify the database existance in sqlplus.
    First after I connect as sysdba in sqlplus, the console says "Connected to an idle instance". When I enter show sga sqlplus, the sqlplus displays 0. Startup comand will display error in the above post.
    So, the bottom line is, according to the EM the database is up and running (I can use isqlplus too) but not according to sqlplus on the server itself. What'sgoing on here? I've been reading every single paper on Oracle's and Novell SUSE web sites and couldn't find anything about it.

  • Oracle ORA-01102故障: cannot mount database in EXCLUSIVE mode

    SQL> conn /as sysdba
    Connected to an idle instance.
    SQL> startup
    oracle instance started.
    Total System Global Area 276824064 bytes
    Fixed Size 778736 bytes
    Variable Size 137371152 bytes
    Database Buffers 138412032 bytes
    Redo Buffers 262144 bytes
    ORA-01102: cannot mount database in EXCLUSIVE mode
    出现这个问题,可能是由于断电的问题,解决方法是
    出现1102错误可能有以下几种可能:
    一、在HA系统中,已经有其他节点启动了实例,将双机共享的资源(如磁盘阵列上的裸设备)占用了;
    二、说明 oracle 被异常关闭时,有资源没有被释放,一般有以下几种可能,
    1、 oracle 的共享内存段或信号量没有被释放;
    2、 oracle 的后台进程(如SMON、PMON、DBWn等)没有被关闭;
    3、 用于锁内存的文件lk<sid>和sgadef<sid>.dbf文件没有被删除。
    首先,虽然我们的系统是HA系统,但是备节点的实例始终处在关闭状态,这点通过在备节点上查数据库状态可以证实。
    其次、是因系统掉电引起数据库宕机的,系统在接电后被重启,因此我们排除了第二种可能种的1、2点。最可疑的就是第3点了。
    查$ORACLE_HOME/dbs目录:
    $ cd $ORACLE_HOME/dbs
    $ ls sgadef*
    sgadef* not found
    $ ls lk*
    lkORA92
    果然,lk<sid>文件没有被删除。将它删除掉
    $ rm lk*
    再启动数据库,成功。
    如果怀疑是共享内存没有被释放,可以用以下命令查看:
    $ipcs -mop
    IPC status from /dev/kmem as of Thu Jul 6 14:41:43 2006
    T ID KEY MODE OWNER GROUP NATTCH CPID LPID
    Shared Memory:
    m 0 0×411c29d6 –rw-rw-rw- root root 0 899 899
    m 1 0×4e0c0002 –rw-rw-rw- root root 2 899 901
    m 2 0×4120007a –rw-rw-rw- root root 2 899 901
    m 458755 0×0c6629c9 –rw-r—– root sys 2 9113 17065
    m 4 0×06347849 –rw-rw-rw- root root 1 1661 9150
    m 65541 0xffffffff –rw-r–r– root root 0 1659 1659
    m 524294 0×5e100011 –rw——- root root 1 1811 1811
    m 851975 0×5fe48aa4 –rw-r—– oracle oinstall 66 2017 25076
    然后它ID号清除共享内存段:
    $ipcrm –m 851975
    对于信号量,可以用以下命令查看:
    $ ipcs -sop
    IPC status from /dev/kmem as of Thu Jul 6 14:44:16 2006
    T ID KEY MODE OWNER GROUP
    Semaphores:
    s 0 0×4f1c0139 –ra——- root root
    s 14 0×6c200ad8 –ra-ra-ra- root root
    s 15 0×6d200ad8 –ra-ra-ra- root root
    s 16 0×6f200ad8 –ra-ra-ra- root root
    s 17 0xffffffff –ra-r–r– root root
    s 18 0×410c05c7 –ra-ra-ra- root root
    s 19 0×00446f6e –ra-r–r– root root
    s 20 0×00446f6d –ra-r–r– root root
    s 21 0×00000001 –ra-ra-ra- root root
    s 45078 0×67e72b58 –ra-r—– oracle oinstall
    根据信号量ID,用以下命令清除信号量:
    $ipcrm -s 45078
    如果是 oracle 进程没有关闭,用以下命令查出存在的 oracle 进程:
    $ ps -ef|grep ora
    oracle 29976 1 0 Jun 22 ? 0:52 ora_dbw0_ora92
    oracle 29978 1 0 Jun 22 ? 0:51 ora_dbw1_ora92
    oracle 5128 1 0 Jul 5 ? 0:00 oracleora92 (LOCAL=NO)
    然后用kill -9命令杀掉进程
    $kill -9 <PID>
    总结:
    当发生1102错误时,可以按照以下流程检查、排错:
    1.如果是HA系统,检查其他节点是否已经启动实例;
    2.检查 oracle 进程是否存在,如果存在则杀掉进程;
    3.检查信号量是否存在,如果存在,则清除信号量;
    4.检查共享内存段是否存在,如果存在,则清除共享内存段;
    5.检查锁内存文件lk<sid>和sgadef<sid>.dbf是否存在,如果存在,则删除

    No, its still not helping..even after trying to kill the semaphores:
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcs
    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 0 oracle 640 538968064 1 dest
    0x00000000 32769 oracle 600 192 1 dest
    0x00000000 65538 oracle 600 1474564 8 dest
    ------ Semaphore Arrays --------
    key semid owner perms nsems
    ------ Message Queues --------
    key msqid owner perms used-bytes messages
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcrm -m 32769
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcrm -m 65538
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ipcs
    ------ Shared Memory Segments --------
    key shmid owner perms bytes nattch status
    0x00000000 0 oracle 640 538968064 1 dest
    0x00000000 32769 oracle 600 192 1 dest
    0x00000000 65538 oracle 600 1474564 8 dest
    ------ Semaphore Arrays --------
    key semid owner perms nsems
    ------ Message Queues --------
    key msqid owner perms used-bytes messages
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)> ps -e f|grep emrep
    3273 ? Ds 0:00 ora_ckpt_emrep
    /opt/oracle/product/db10g/dbs (ac4orcloms01-ac4:emrep)>

  • Database open in exclusive mode

    Hi,
    DB in 9i on Linux, when I startup it is opened in EXCLUSIVE mode. What does it mean ? How can I change it to non exclusive ?
    Many thanks.

    Ok,
    it was it.
    devlpt SQL> shutdown immediate;
    ORA-01507: base de donnees non montee
    Instance ORACLE arrêtée.
    I deleted /soft/oracle/V9.2.0.4/dbs/lkMYDB then
    devlpt SQL> startup
    Instance ORACLE lancée.
    Total System Global Area 692655708 bytes
    Fixed Size 452188 bytes
    Variable Size 620756992 bytes
    Database Buffers 67108864 bytes
    Redo Buffers 4337664 bytes
    Base de données montée.
    now since 14 hours ago, it is in :
    and in alertolog we have :
    Restarting dead background process QMN0
    Any help.

  • Best way to Lock a Table in exclusive mode ?

    Hi
    I have a procedure that update a record in a table. This table is accessed for many work stations and these stations update this table several times. In average this table is updated 900,000 times a day. My oracle version is 9.02
    In this table there are no deletes.
    The records that are in this table are inserted by other process that is working ok.
    My procedure do this:
    Receive some parameters ( param1 , param2, param3)
    IF condition = true THEN
    LOCK TABLE my_table IN EXCLUSIVE MODE;
    SELECT my_table_id INTO v_my_table_id FROM my_table WHERE available = 'Y' AND rownum = 1;
    Update my_table set SET my_date = sysdate, my_field1 = param1, available = 'N' WHERE my_table_id = v_my_table_id;
    COMMIT;
    The problem here is that some times this process is very slow , and the lock in the table remains for a long time and suddenly the table is released.
    I review the CPU of the server whereis the database; and is normal.
    This process has been working for 2 years and now is failing.
    Could you help me to know if there is a better way to do this process?
    I can't undesrtand why this behaivor, if is a simple transaction.
    I really appreciate your help
    Lorein

    A couple of cents from my side.
    As Daniel and Justin indicated, you are abusing Oracle severely with your approach. You are forcing serialisation - only a single process can at a time get an available row from the table. If there are a 100 workstations looking for work, one one at a time can get a "work available" row from the table.
    This has nothing to do with Oracle, or Oracle's locking, but everything to do with how your designed your code to get a "work available" row.
    The basic problem is that
    a) you do not care which specific row to lock, you only want any single random row with "work available"
    b) Oracle's locking is designed to lock a row, or set of rows, as specified by explicit user instruction
    This is contradictory. You do not explicitly state which single row to lock. You lock ALL row with "work available" - the where rownum=1 does NOT only lock the first row. That criteria is MEANINGLESS when Oracle SELECTs rows to process (and lock). That rownum criteria is only applied AFTERWARDS... which means after the locking has happened.
    There are a couple of alternative and better performing approaches that you can use instead.
    One that springs to mind is a form of optimistic locking - but instead of being optimistic about the locking part, you're optimistic about the selecting an unlocked row part.
    Basic pseudo code:
    1. select the rowid of a random row from "work available" rows (using DBMS_RANDOM, SAMPLE or similar techniques - and NOT rownum!)
    2. attempt to lock that rowid using NO WAIT
    3. if the lock fails, re-start at step 1
    4. random row has been found and locked, proceed to process and update
    5 commit
    The optimistic part is steps 1 and 2 - the assumption is that doing a single row random select will most of the time select a row that is not locked, allowing multiple processes at the same time to select and lock and process different rows.

  • Is it possible to use fullscreen and exclusive mode with a jfilechooser?

    is there a way to use them together? while in fullscreen exclusive mode the jfilechooser doesn't attach to fullscreen window and it halts the program.. I've tried setting the parent frame as the fullscreen frame but it's all glitched.. am I missing something?
    thank you,
    best regards,
    Jacopo

    For reference, the cross-post can be found here:
    Is it possible to use network devices (cDAQ-9188) with a PXI Real Time system?
    Jayme W.
    Applications Engineer
    National Instruments

  • Anyone have a example for useing volitile image in exclusive mode with

    i need a example of how to use a volitile image in exclusive mode with active rendering .
    anyone know of one or even partial code of how to do it ive been racking my brain trying to figure out how to do it.
    or even a example of fullscreen that i can use to draw to the screen in exclusive fullscreen mode.
    and im not talking about the sun tutorial no one can even answer my question about it when i asked in the java forum

    by the way, here's a commented version of the example I gave earlier in case the puzzle pieces are upside down for you...
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    /* Goes into FullScreen with 640x480 16 bit
    * Not all proper checks are made (like getting available DisplayModes),
    * But you can always look at the doc for the rest of the checks. Besides,
    * What computer doesn't have 640x480...?
    public class Example extends Frame implements Runnable, KeyListener {
         VolatileImage v;
         int w,h,x,size; // x and size are for the moving ball
         boolean done; // when this is true, the program exits
         public Example() {
              /* Sets up the frame to be used for fullscreen */
              super(GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDefaultConfiguration());
              GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
              /* the below 2 methods aren't required
              * but using them results in best performance.*/
              setUndecorated(true);
              setIgnoreRepaint(true);
              /* A few mandatorial checks */
              if (device.isFullScreenSupported()) {
                   device.setFullScreenWindow(this);
              if (device.isDisplayChangeSupported()) {
                   device.setDisplayMode(new DisplayMode(640,480,16,0));
              /* our frame must be showing before we
              * we create our BufferStrategy or image,
              * in this case a VolatileImage.
              * Showing our frame also switches to
              * fullscreen mode.
              show();
              w = getSize().width;
              h = getSize().height;
              x = 0;
              size = 30;
              v = createVolatileImage(w,h); // creates volatile image (duh)
              done = false; // program exits when true
              addKeyListener(this); // used for exiting
              new Thread(this).start(); // starts the thread
         public void run() {
              while (!done) {
                   x += 2; // increase ball location
                   if (x >= w-size) x = 0; // back to left if all the way right
                   /* You could also use repaint() here,
                   * but you won't get a screen update
                   * until the system decides it's time.
                   * calling paint(getGraphics()) is much faster
                   paint(getGraphics());
                   /* Pausing of the thread... */
                   try {
                        Thread.sleep(1);
                   catch (InterruptedException e) {
                        done = true; // exit if there was some error
              System.exit(0); // this won't be called until done is true
         public void paint(Graphics g) {
              /* this attempts to get the graphics
              * from VolatileImage */
              Graphics gfx = v.getGraphics();
              /* If VolatileImage has no image memory,
              * we restore it and get the graphics for it */
              while (v.contentsLost()) {
                   if (v.validate(getGraphicsConfiguration()) == VolatileImage.IMAGE_INCOMPATIBLE) {
                        v = createVolatileImage(w,h);
                   gfx = v.createGraphics();
              /* this paints the ball etc */
              gfx.setColor(Color.black);
              gfx.fillRect(0,0,w,h);
              gfx.setColor(Color.cyan);
              gfx.fillOval(x,h/2-(size/2),size,size);
              g.drawImage(v,0,0,null); // draw the VolatileImage
         public void update(Graphics g) { // used for no blinking
              paint(g);
         public void keyPressed(KeyEvent e) {
              if (!done) done = true; // program exits on any key press
         public void keyReleased(KeyEvent e) {}
         public void keyTyped(KeyEvent e) {}
         public static void main(String[] args) {
              new Example();
    }

  • How to get out of fullscreen exclusive mode?

    I have a program that runs in full screen exclusive mode, I'd like the program to start up in windowed mode instead.
    I spent several hours trying to make it run in window mode, but I can't seem to figure it out :/
    Here's the code:
            if (graphicsDevice.isFullScreenSupported()) {
                graphicsDevice.setFullScreenWindow(this);
            if (graphicsDevice.isDisplayChangeSupported() == false) {
                return false;
            boolean displayModeAvailable = false;
            DisplayMode[] displayModes = graphicsDevice.getDisplayModes();
            for (DisplayMode mode : displayModes) {
                if (screenWidth == mode.getWidth() && screenHeight == mode.getHeight()
                        && screenColorDepth == mode.getBitDepth()) {
                    displayModeAvailable = true;
            if (displayModeAvailable == false) {
                return false;
            DisplayMode targetDisplayMode =
                    new DisplayMode(screenWidth, screenHeight,
                        screenColorDepth, DisplayMode.REFRESH_RATE_UNKNOWN);
            try {
                graphicsDevice.setDisplayMode(targetDisplayMode);
            } catch (IllegalArgumentException exception) {
                return false;
            if (EventQueue.isDispatchThread() == false) {
                EventQueue.invokeAndWait(new Runnable() {
                    public void run() {
                        createBufferStrategy(2);
            } else {
                createBufferStrategy(2);
            bufferStrategy = getBufferStrategy();
            try {
                graphics2D = (Graphics2D) bufferStrategy.getDrawGraphics();
                gameRender(graphics2D);
                if (drawGameStatistics) {
                    gameStatisticsRecorder.drawStatistics(graphics2D, 0, 0);
                graphics2D.dispose();
            } catch (Exception exception) {
                System.err.println("GameEngine.gameRender: " +
                        "Error cannot render screen:" + exception.toString());
                exception.printStackTrace();
            }Thanks

    Have you read these?
    [http://java.sun.com/docs/books/tutorial/extra/fullscreen/]
    [http://java.sun.com/docs/books/tutorial/extra/fullscreen/exclusivemode.html]
    db

Maybe you are looking for

  • HP ePrint settings

    Hello I have an HP 8500 networked through the router. HP ePrint app worked fine before the update.  I could change printer settings and print using the network or mobile tablet Samsung Samsung S4, S3, S4 mini. After update I am not able to change pri

  • How can I watch my tv shows when they are in the cloud and I am not near wifi?

    I can't watch my tv shows on my phone when they are in the cloud and I am not near wifi.  How can I get them out of the cloud?

  • Error-while posting the goods in plant

    Hi, i got error message like this while posting goods in the plant with t.code MB1C "Account determination for entry INT GBB_______ BSA 3100 is not possible" can any one know about solution for this error Thanks&regards kishore kumar

  • Questions about Mail Service and Campaign in Portal 8.1

    1.How to disable batch mode email in portal 8.1 Mail Service using Campaign? 2.For batch mode email, when will it deliver? 3.Where can I admin those parameter besides the fields mapping in portal Admin->Campaign Server and Mail Service?

  • BPEL Console not showing instance.

    I have written an Empty BPEL (not sync/async) process. Internally it calls three synchronous Web Services(partner links). The process starts with a DB poller. When I run the process the three partnerlink process instances are shown but the main BPEL