How to put database in single user mode?

hi
how to put database in single user mode?and what could be the impact of this to EBS R12 RUP 6.DB 10.2.0.0
rgrds

hsawwan wrote:
Hi,
Are you referring to restricted mode? If yes, please see these links/docs.
Restricting Access to an Open Database
http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/start002.htm#ADMIN11155
Note: 1059291.6 - How to Put a Database into Restricted Mode and Verify Restricted Mode
The impact is none of the users will be able to connect to the database/application (except for the sys user which can connect to the database). Usually, you would need to put the database in restricted mode when doing upgrade/migrate (i.e. you do not want to have active user sessions in the database during that time).
Thanks,
HusseinHi
i want to mean:
ALTER SYSTEM QUIESCE RESTRICTEDThe ALTER SYSTEM QUIESCE RESTRICTED statement may wait a long time for active sessions to become inactive. You can determine the sessions that are blocking the quiesce operation by querying the V$BLOCKING_QUIESCE view. This view returns only a single column: SID (Session ID). You can join it with V$SESSION to get more information about the session, as shown in the following example:
select bl.sid, user, osuser, type, program
from v$blocking_quiesce bl, v$session se
where bl.sid = se.sid;I suspect all apps user can.t login to db?
Edited by: new2appsdba on Aug 19, 2010 1:54 AM

Similar Messages

  • How to eject DVD in single user mode

    Hi All,
    When starting my iMac, I get a white screen, the apple logo and the spinning wheel. After a while it goes away and I have just a white screen.
    I've reset PRAM, to no avail (it did do something, the computer start up sound now occurs each restart).
    I can't start-up on the Mac OS install DVD because I have a DVD in the computer already and I can't seem to eject it.
    I can't get into Open Firmware mode to eject the disk there, I'm hoping someone can give me the command to eject the disc from Single-User mode.
    Chris

    Try the methods listed in this page:
    http://reviews.cnet.com/8301-13727_7-10333570-263.html
    The method for Terminal may also work in single-user mode.

  • How to restart computers in single user mode?

    I 'd like to use ARD to send a command to reboot target computers in Single User mode (and then run line of command).

    have you considered just using safeboot? safeboot dose many of the same things applejack dose, and it's built into the mac os x.
    Safeboot using ARD:
    You can start a safeboot by send unix command, as root, command:
    nvram boot-args="-x -v"
    send command reboot computer
    After the reboot, you could then send unix command, as user root, command:
    sudo nvram boot-args=""
    send command reboot computer
    NOTE: some features do not work while the computer is in safeboot, so it's a good idea to have the computer plugged in by ethernet, because most macs still work over ethernet in safeboot.
    Or you could just tell the user to reboot the computer holding the shift key, and when they get to the login window with the words "safeboot" to reboot the computer again.
    FYI: in the past i've ran safeboot, and watching the output, I could see it repaired the disk and permistions. soo if I had a disk that needed repairing, you could in thory try safeboot to fix the issue. The computer already runs a RAM test every time you power on the computer.

  • How to move files using Single User Mode

    I messed up this one task that i didn't read all the way through and messed up. I Moved SecurityAgent.app (not SystemAgent.app my bad) and instead i moved my desktop to the CoreServices folder and renamed it SecurityAgent.app
    How do i put the Desktop Back and put SystemAgents back into the CoreServices. Actually just the CoreServices. I have more than one account on my comp. so i will just fix my Desktop using that account.
    Message was edited by: Connor.K

    Run the following commands:
    mount -uw /
    cd /System/Library/CoreServices/
    mv SecurityAgent.app Desktop
    mv Desktop/SecurityAgent.app SecurityAgent.app
    exit
    (50685)

  • How to get to single user mode

    I aquired an old power mac G4 with an old account with 10.3.9 and an old administrator account.  It seems that procedures to remove the account start in Single user mode.  The computer won't start when holding down system - s.  The drive clicks a few times but the display goes to sleep from no video signal.  So How can I get to single user mode when the usual way don't work?

    The hard drive's directory may be dead, or it may have last been booted into Mac OS 9.  IF you are lucky, they did install Mac OS X on it, and that can be determined either through an Option key boot, or through an X key boot on a wired (not wireless) USB Apple compatible keyboard.   X key booting will only work if the X operating system is on the same partition, whereas Option key boot will reveal the Startup Manager, where you select the drive and hit the right pointing arrow for the drive partition that has Mac OS X.   Note this will not work on an original PCI PowerMac G4.   You may also need to replace the PRAM battery, a 1/2 AA 3.6V battery from Radio Shack before any boot sequence will work.  Once it boots into Mac OS X, Single User Mode should work.

  • Single user mode session lost after backgound processes jump in

    We have an application running on SQL server. This application restores DB very frequently using Single user mode. Following are the SQLs that are executed to restore the database in single user mode and to get the database back in multi user mode.
    alter database [test-db] set single_user with rollback immediate; --This sql is run using test-db
    use master;restore database [test-db] from database_snapshot = 'snapshot_test-db';
    alter database [test-db] set multi_user;
    After switching the test-db to single user mode some 4-5 background processes of Taskmanager jump in for the test-db kicking off the session that application has taken over in single user mode . These background process are deadlocked between them selves.
    Please refer to the output of sp_who2 below at link.
    http://social.microsoft.com/Forums/getfile/200625
    and following is the deadlock XML.
    NOTE: SPIDs in deadlock XML may differ from the output of sp_who2 as spids keeps on changing for these processes.
    <deadlock-list>
    <deadlock victim="process4bbfc78">
    <process-list>
    <process id="process4bbfc78" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="705" schedulerid="1" kpid="1648" status="background" spid="22" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    <process id="process6d44388" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="419" schedulerid="1" kpid="5796" status="background" spid="30" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    <process id="process6d44718" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="109" schedulerid="1" kpid="3908" status="background" spid="16" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    <process id="process4bbee38" taskpriority="0" logused="10000" waitresource="DATABASE: 5 " waittime="313" schedulerid="1" kpid="2656" status="background" spid="15" sbid="0" ecid="0" priority="0" trancount="0">
    <executionStack/>
    <inputbuf>
    </inputbuf>
    </process>
    </process-list>
    <resource-list>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process6d44718" mode="S"/>
    <owner id="process4bbee38" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process4bbfc78" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process4bbfc78" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process6d44388" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process4bbfc78" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process6d44718" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    <databaselock subresource="FULL" dbid="5" dbname="unknown" id="lock4671600" mode="S">
    <owner-list>
    <owner id="process4bbfc78" mode="S"/>
    </owner-list>
    <waiter-list>
    <waiter id="process4bbee38" mode="X" requestType="wait"/>
    </waiter-list>
    </databaselock>
    </resource-list>
    </deadlock>
    </deadlock-list>
    On searching for this problem I found out that people have faced similar problem but I was unable to find out the root cause and debug steps for this problem. Stopping the SQL server is provided as a solution to kick out these background processes but this
    is not a feasible in our case as code to restore DB runs very frequently resulting in this problem at a good frequency.
    I also made sure that SQL Server Agent is not running. The SQL services running on server are SQL server, SQL Server Browser and SQL Server VSS Writer.
    Any help will be appreciated as this is a blocker problem.
    Thanks,

    Hi Amrita,
    We can open a transaction, make data modifications to generate a lot of transaction log, and then run ALTER DATABASE AppDB SET MULTI_USER in the same transaction. You can also refer to the following document:
    Getting out of single user mode:
    http://blogs.msdn.com/b/dfurman/archive/2012/01/20/getting-out-of-single-user-mode.aspx
    Allen Li
    TechNet Community Support

  • Single user mode, Lost Admin Account, and Disk Permissions

    Okay, so I have quite a few issues here. I will start from the beginning.
    About a week ago, I tried to install some updates and I could not get the Admin account to work. I went to the users profile and noticed my Admin account was not there. Did a quick search and found Apple's outline of how to fix this via the Operational DVD and the root user. Tried this and it would never work, because as soon as I restarted the computer or changed screens it switched back to a standard account.
    Next up, I went into the terminal to check the Admin User group. As it turns out it is not there. So I find a discussion on there that outlines how to rebuild this in single user mode and the Unix prompt. So, I print it off and try to restart in single user mode. After trying two different keyboards and a sum total of 8 to 10 times, I can't restart in single user mode to get to the Unix prompt.
    One last thing, last night I went into the Disk Utility on the start-up DVD. I wanted to check the Repair Permission log and I got the following:
    ACL found but not expected on "private/var/root/Library/Preferences"
    ACL found but not expected on "private/var/root/Library/"
    ACL found but not expected on "Network"
    Thoughts?
    Thanks for your help!
    tpp

    first, the ACL messages can be ignored. if you can't get to single user mode you can't fix your admin group. the only reasons that I know why you wouldn't be able to do that is
    1. a defective keyboard
    2. you have a firmware password set. have you? you'd have to turn it off before you can get to single user mode.
    lastly when you restart in single user mode make sure you press command+s right after you hear the chime. do not press it too early or too late. lastly, I'm not sure which instructions you've found to fix the admin group but I have them in this thread
    http://discussions.apple.com/thread.jspa?messageID=8011324

  • Network / external access when booted in single-user mode from install CD?

    So I have this iBook with a semi-functional hard drive: can't boot from it (either normal or single-user), can't use it in Firewire Target Disk mode, can't fix it with Disk Utility, an overnight run with Disk Warrior seemed to be hung, etc, BUT if I boot in single-user mode from the install CD I can then mount it readonly and see at least many of the files on it.
    So now I want to slurp the important ones of those files off of it over the network (or in any other clever way anyone can suggest). I'm not a huge Unix or Darwin expert, so an exact set of commands would be appreciated. *8) A friend suggested to me that I might be able to 'init' it at a 'runlevel' that included the networking stack, but I dunno what that means. *8) Does the CD in fact include a full networking stack? Or anything else that I might be able to use to slurp some data from the hard disk before it gives up entirely?
    Tx very...
    Message was edited by: David Chess; annoying typo

    David
    I think Ronda was hoping you had the Tiger Instal DVD, which has a copy of Terminal on it.
    You said earlier that trying to boot into Target Disk Mode didn't work. Would it help you if you could? If so, I can show you how to do it from Single User Mode. I've done it, and it works, although admittedly I did boot into SU mode from my HD, not my Instal Disc (I have tried that, it also works, I just haven't done both together).
    If you can make use of this, post back and tell me what you get from which nvram when you are booted in SU mode from your CD. It's possible that command won't be available on the CD—so we need to check first. If it says "which: no such command", try ls -l /usr/sbin/nvram instead.

  • Unable to start in single-user mode - HD dead?

    My MacBook Pro (Mac OS X) refused to start, it hung up on the loading screen where you see the apple and the spinning loading wheel. I found out how to fix this, I had to go into single-user mode and type "/sbin/fsck -fy" to repair/verify the disk (I was unable to do so from the Disk Utility via the Install Disc, the repair/verify buttons were just grayed out).
    Anyways, doing this from the command line (single-user mode) fixed the problem and I could boot into Mac OS X (there were more issuses after this point which forced me to do an "Archive and Install").
    ^ that happened a week ago. And happened again yesterday, hung up on the exact same point. So I boot up my Mac into single-user mode, and type in "/sbin/fsck -fy" to start the process. Different from last time, I got a lot of text this time. It also kept going for a longer while. After about 10 minutes, there was a couple of minutes where nothing happened. So I typed "/sbin/fsck -fy" again (as I'm supposed to do so until it says "** The volume (nameofvolume) appears to be OK"), and I got some more text, then nothing happened for a while.
    Inpatient as I am, I considered the process to be complete, and restarted my Mac by typing "exit".
    I think I ****** up my Mac OS X partition at this point. Because when I try to start my Mac now, it automaticly boots into Windows XP (my other partition). Also I cannot enter single-user mode or Verbose mode, the Mac just ignores and goes right into Windows XP.
    I've tried to boot from the Install Disc. When I run Disk Utility, the "HD"(name of Mac OS X partition) is grayed out. I can't do an Archive and Install because it cannot detect my main partition.
    An interesting thing though: When I have the Install Disc inserted, I can enter single-user mode (by holding cmd+s at startup). However, when I type /sbin/fsck -fy, it starts verifying the Install Disc rather than the HD.
    Also when I open My Computer in Windows XP, I can see the other partition (MacDrive). When I select it, I see:
    Free Space: 219GB
    Total Size: 168GB
    This indicates that my HD is dead/erased, and that my last three months of work is gone. This just because I'm impatient, and didn't wait for the fsck process to complete.
    What is the next step? How can I get into single-user mode so that I can verify/repair my disc?

    On the point of contacting the folks at Alsoft, I have found that they seem to be unobtainable on www.alsoft.com at present.
    I wanted to get in touch as I had a small problem with Diskwarrior on updating to 10.5.5 from 10.5.4 ,
    Disk permissions ends with an error code.
    I wonder if there were so many queries re this that they are unobtainable?
    I run 3 machines from a wireless router, an iMac, an HP laptop with XP and a totally obsolete Dell into which i have squeezed W2000, with a resultant mix of browsers but no contact with the folks at Alsoft.
    Am I in a minority of one here?

  • Difference between emergency state and single user mode ?

    Hi,
    I want to know the difference between emergency state which we normally use in suspect mode database and single user mode.
    Navakanth

    Emergency/suspect mode is tells you the state of the database and database is not available for user action but where as single user mode tells the user action preference. Database is active and available for the user action.
    You can refer 
    http://msdn.microsoft.com/en-us/library/bb522682.aspx
    EMERGENCY
    The database is marked READ_ONLY, logging is disabled, and access is limited to members of the sysadmin fixed server role. EMERGENCY is primarily used for troubleshooting purposes. For example, a database marked as suspect due to a corrupted log file can be
    set to the EMERGENCY state. This could enable the system administrator read-only access to the database. Only members of the sysadmin fixed server role can set a database to the EMERGENCY state.
    SINGLE_USER
    Specifies that only one user at a time can access the database. If SINGLE_USER is specified and there are other users connected to the database the ALTER DATABASE statement will be blocked until all users disconnect from the specified database. To override
    this behavior, see the WITH <termination> clause.
    The database remains in SINGLE_USER mode even if the user that set the option logs off. At that point, a different user, but only one, can connect to the database.
    Before you set the database to SINGLE_USER, verify the AUTO_UPDATE_STATISTICS_ASYNC option is set to OFF. When set to ON, the background thread used to update statistics takes a connection against the database, and you will be unable to access the database
    in single-user mode. To view the status of this option, query the is_auto_update_stats_async_on column in the sys.databases catalog view.
    If the option is set to ON, perform the following tasks:
    Set AUTO_UPDATE_STATISTICS_ASYNC to OFF.
    Check for active asynchronous statistics jobs by querying the sys.dm_exec_background_job_queue dynamic management view.
    If there are active jobs, either allow the jobs to complete or manually terminate them by using KILL STATS JOB.
    --Prashanth

  • To mount a CD-ROM in Single User Mode.  How?

    Thank you for reading my question. 
    I need to run single user mode on my iMac because of a disk problem.  I would like to be able to mount the cd drive while I am in single user mode.  I would also like to be able to mount usb hard drives with confidence, so that I can copy off files from the internal hard drive. 
    I am in single user mode, which I get to by holding down Command-S on startup.  I can look at the disks that are attached to my computer by executing
    ls -l /dev/disk*
    However this appears to be adding disks.  I started with /dev/disk2 and /dev/disk2s1 etc which I understand are partitions on that external drive.  Now when I list /dev/disk* I have /dev/disk3 and a couple of partitions on those devs.  Is that normal?  Have I not unmounted disks properly?
    I have been using a directory that already exists as the mount point for my usb drives using
    mount -t hfs /dev/disk1 /cores
    which worked fine.  Alas the disk I mounted on that directory was too small.  Now I can't mount a disk on there.  Do I need to unmount or fix up that assignment? 
    If I were to create a directory in /Volumes is that advisable?  How do I make the root directory readable is that by using 'mount -uw'? 
    Thank you.  Please if you answer my question, try to be clear on what commands to use and why.  Bear in mind that other people will read this, and no one on the web seems able to write suggestions very clearly.  Maybe we can be the first!  If I have not been clear, please feel free to ask for clarification.  i am not a total unix newbie.  Rather in the 20 years since I was a sysadmin, my memory has faded. 
    Pete

    I think you need to post this in a different forum.  I think the Developer Forums would be the right choice.
    In any event from the little Unix I know you can't mount a removable device until it's connected which means you need to put a CD/DVD into the optical drive.  At that point if you enter 'df' you should see the device if it is mounted automatically (which I believe it does.)
    In single-user mode the entire drive is readable and all files accessible.  You are the 'root' user.  In order to put the system into write mode you must enter 'mount -uw /'.  Note the '/' at the end of the comnmand line.  That makes the entire system writeable.
    You do not need to create a directory in /Volumes.  When the CD/DVD is recognized an entry in /Volumes will appear unless the disc is unformatted.
    Now take some of the above with a grain of salt.  I'm certainly no Unix expert.

  • How to put database in RESTRICTED mode ?

    Hi,
    in 9.2.0.6 on Windows 2003 server how to put database in RESTRICTED mode ?
    Many thanks before.

    ERROR at line 1:
    ORA-12719: operation requires database is in RESTRICTED mode
    That's because 'ALTER SYSTEM QUIESCE RESTRICTED' doesn't actually put the database into restricted mode:
    SQL> select logins, active_state from v$instance;
    LOGINS       ACTIVE_ST
    ALLOWED       NORMAL
    SQL> alter system quiesce restricted;
    System altered.
    SQL> select logins, active_state from v$instance;
    LOGINS       ACTIVE_ST
    ALLOWED       QUIESCEDTry staring the database in restricted mode and then quiescing it:
    SQL>
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup restrict;
    ORACLE instance started.
    Total System Global Area  167772160 bytes
    Fixed Size                  1289508 bytes
    Variable Size             117441244 bytes
    Database Buffers           46137344 bytes
    Redo Buffers                2904064 bytes
    Database mounted.
    Database opened.
    SQL> alter system quiesce restricted;
    System altered.
    SQL> select logins, active_state from v$instance;
    LOGINS           ACTIVE_ST
    RESTRICTED       QUIESCED
    SQL>As you can see from V$INSTANCE, when you are running in restricted mode LOGINS will have a value of 'RESTRICTED'
    However - I still think that if you are dealing with users logging in to your (RESTRICTED) database via the listener then the easiest option is to stop the listener whilst the database is down and restart it once your alter database command has completed.
    PS : No any other user is connected.No, they wouldn't be this time because you had quiesced the database... but you still need to get the database into restricted mode for this alter database command.

  • How to restrict the all access ? Single user mode....

    I am doing export/import of schema objects from Windows to Oracle. How to make sure when I do the export in the migration database no one else is modifying the data. Is there any single user mode so that I can be sure of only one connection while exporting?
    Oracle 10g R2 on Windows Server.
    Thank you,
    Smith

    Perhaps you are not familiar with the concept of multi-version read consistency.
    No one can see that which is not committed and reads can never be blocked.
    If you want a system where no one can see things kill their sessions and do a STARTUP RESTRICT.

  • How do i repair my hard drive in single user mode when disk is full?

    Hi there Apple Community!
    I have an old Macbook Pro 17" with an upgraded 500GB harddrive and 4GB memory. I'm running Mac OSX Lion.
    Was hoping you could help me out.  THis is the situation:
    Long story short I spilt wine on my macbook and the screen went a bit blobby. Switched it off for a few days, removed the battery etc. etc. Opened it up cleaned out as much of the wine as possible, but unfortunately some of it came in behind the LCD, so now the screen has a nice red stain.  Obviously I'm not going to try to clean that out of the LCD. 
    My Macbook Pro still worked for a few days after that, but then my harddrive gave up.  I booted in the Recovery HD menu, verified the drive and I got the error "Keys out of order - This disk needs to be repaired, click Repair Disk." I attempted to repair the disk but got the error "Keys out of order - Disk Full Error - The volume could not be repaired".
    Unfortnately of this 500GB I only have about 7GB free on it, as I have a huge iPhoto and iTunes library. I did make a TIme Machine backup of my user directory, but not the system files.  I don't really want to do a clean install because:
    1) I'm paranoid that there's something I did not fully back up
    2) I don't want to have to download the whole Mac OSX Lion again. I should have made a USB bootable backup when I had the chance.  I don't have access to a broadband connection.
    What I feel are my viable options, are as follows:
    1) I did buy a replacement internal 500GB harddrive, so I can probably try to make an image of the hard drive to this new drive, but not sure how. I believe it's through the Disk Utility with the "New Image" option but not sure how to go from there.
    2) Start up in Single User Mode and delete some unnecessary files and re-attempt to run the fschk -fy utility again (I tried this earlier and got the same Disk Full Error).  - the problem with this is, I'm not familiar with the command line and have no clue how to delete files.  I don't know my way around Unix.
    3) I can also probably attempt to make a Ghost Image or Acronis Image of the failed drive to this new drive, but not sure if Norton Ghost or Acronis True Image will be able to read this HFS drive - I believe it's possible as it's a simple hard drive clone. 
    If you can guide me in the best option - probably there is a better solution than my proposed ones above, I appreciate any feedback and comments you might have!

    hi Baltwo,
    So I ended up copying my user folder to another harddrive. I managed to download the whole osx lion again, reinstalled, and recovered my home folder using this discussion:
    http://support.apple.com/kb/HT1428
    I have managed to get all my files back. My iTunes library works fine, but my iPhoto library when I open it, get the following error:
    iPhoto cannot be opened because of a problem.
    Here's the error log
    Process:         iPhoto [1540]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         8.1.2 (8.1.2)
    Build Info:      iPhotoProject-4240000~8
    Code Type:       X86 (Native)
    Parent Process:  launchd [209]
    Date/Time:       2012-09-19 19:56:45.528 +0200
    OS Version:      Mac OS X 10.7.4 (11E53)
    Report Version:  9
    Sleep/Wake UUID: 7948ABE2-5294-4F87-B6E3-777095A2F2EE
    Interval Since Last Report:          4780 sec
    Crashes Since Last Report:           9
    Per-App Crashes Since Last Report:   9
    Anonymous UUID:                      70117D38-03EA-4F9C-B810-50B743864B9E
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    Dyld Error Message:
      Library not loaded: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/iLifeSlid eshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: image not found
    I've done an Apple Software Update but it didn't find an update for iPhoto.
    One thing to note is, this library was originally created on iLife 08, upgraded to '09 and it stayed on that version. It hasn't een upgraded to iLife '11.  It worked fine on my previous install of OSX Lion.  How do I recover the library without upgrading to '11 ?

  • Errors while Changing the Database to Mutli User Mode from Single user mode in SQL Server 2012

    Hi,
    Good Afternoon :).  Need your help in resolving one of the issue with SQL Server 2012.
    Today, we kept one of the database in the Single User mode and wanted to bring back to Multi User mode.  But we are getting the below error.  There are no user sessions connected to this database which are blocking each other.  I see multiple
    SYSTEM sessions are in blocked state.  The blocking is not cleared even affter restarting the SQL services.
    Verified the SQL Server Errorlog and couldnt get much useful information to troubleshoot the issue.
    pasted the information from the sys.sysprocesses as well for your kind reference.
    Msg 1205, Level 13, State 68, Line 1
    Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Msg 5069, Level 16, State 1, Line 1
    ALTER DATABASE statement failed.
    spid
    kpid
    blocked
    waittype
    waittime
    dbid
    login_time
    status
    cmd
    18
    1004
    36
    0x0005
    144
    5
    4/9/2014 13:13
    background                    
    TASK MANAGER    
    35
    1796
    36
    0x0005
    35
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    36
    2464
    37
    0x0005
    363
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    37
    5100
    36
    0x0005
    254
    5
    4/9/2014 13:04
    background                    
    TASK MANAGER    

    Clearly 36 and 37 are causing deadlock.
    see
    https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/
    http://www.mssqltips.com/sqlservertip/1036/finding-and-troubleshooting-sql-server-deadlocks/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • I purchased and downloaded Acrobat Pro XI.  After the pop-up requesting the language I got a message "The installation package could not be opened.  Verify that the package exists..."

    The full message was "The installation package could not be opened.  Verify that the package exists and that you can access it, or contact the application vendor to verify this is a valid Windows Installer package."

  • Ent-filename in HTTP adapter

    Hi... I have a sender file adapter and HTTP receiver adapter. In HTTP adapter, in the parameter "ent-filename" , I want to retain the name of the file that was picked. In Sender File adapter, I have checked the File Name under Adapter specific messag

  • Testing out Adobe Photoshop

    I recently had a project for someone that I had to take a picture and insert it into a word document but it was harder to do then it sounds. I opened a image of this persons motorcycle and had to cut it out it from the background and from other objec

  • How to create a photo collage in iPhoto

    When sending photos from IPhoto in an email, I have lost the ability to create artistic layouts using such things as collage, black backgrounds, etc. as I used to do.  All pictures are now sent via the "Mail" program and appear stacked one above the

  • Contact Apple via email

    I got my Mac Mini in march but it came pre-installed with iLife '04 and the classic DVD has never worked from day one (I'm on my windows system so I can't tell you the error from my head, something about a Format OSX can't read) Can I just contact Ap