How to get database out of single user

Hi
SQL Server 2005. Had changed database to single user/read only option. Now I cant change database back to multi user and all commands are getting stuck.
Msg 924, Level 14, State 1, Line 1
Database 'db1' is already open and can only have one user at a time.
I have tried all below and failed to get around this issue
sp_dboption db1, 'single', false
alter database db1 multi_user with rollback immediate
I cannot select the spid with as I get Msg 924 with below commands which all get stuck.
select spid from sysprocesses where dbid = (id of database)
sp_who does not show
What can be done to get out of this as this is a production server and difficult to restart midweek.

I had a similar problem when the Query Tab for the single user got closed accidently.
1. I logged in through DAC. I tried killing a SPID (sp_who2) that I thought had the lock but could not get access to the database and I could not bring the database to muti-user mode.
2. I logged on as sa, but I could not bring the database to muti-user mode.
3. I tried re-starting the SQL Server instance (Test Server), the instance would not stop.
4. I had to reboot the Database Server (Test Server). The database recovered on it's own.
I was then able to bring the database to single user mode, ran check db and then brought the database back to multi-user mode.
-Jeelani

Similar Messages

  • How to Get In & Out of Match, Get your Downloads and Run

    How to Get In & Out of Match, Get your Downloads and Run 
    So you have read the marketing hype, and are thinking what you really want is to pay for the service to upgrade your low quality bitrate files to a bit better 256KBPS rate easily, as don’t fancy rebuying/ reimporting or other method
    This guide should show you the fastest route to achieve you upgrades
    It assumes you’re working from your main music library, and know something about IT, and have <25k of music files
    Backup your music files
    If you know how to do this, its simple right – so once done then move to step 2, if not read below so you don’t blame me for a loss
    Transfer Hardware
    your choice the transfer hardware, suggest offline harddrive via USB3.0 (blue USB connector/eSata/ 1494b/1GB NIC/etcetera but your call
    If you use USB2.0/ 100MB NIC/1394a or other lower transfer method, accept the time hit
    Don’t use Time Backup/local disk backup software unless you have RAID 5 setup or better (and if wondering what that is, you almost certainly don’t then)
    Don’t use  internet backup service unless you live next door to the hosting company, with stunning internet connection to envy 99.9% of the human race, remember this is the fast method folks)
    Transfer Software
    I am assuming you know how to do a copy n paste/ robocoby/xcopy/drag n drop or whatever method turns you on via finder/explorer/cmd window ect
    Caveat #01: If not sure how to do above, then stop now as you are not IT literate ready for this
    Find your music files and back them up
    Now keep the computer running, preferably with nothing else running from this point for ease of use bar an active internet connection, and power saving switched off
    If you know where the files are great, backup the files, but some don’t so for them as below
    Caveat #02: if you don’t know how to find them your most likely on default settings, or sitting with a legacy from a past upgraded machine - below should help but you might want to stop now if you have never been curious about the location before
    Within iTunes , go to [Edit/Preferences/Advanced] and note down the location shown for Itunes Media Location
    In the same location of preferences, hit [Keep iTunes Media Folder organised] and let the application do its stuff.  You will end up with the location in 1ciii a ready to copy location which for simplicity of topic, copy the whole folder and its subfolders.  You may end up with some extra copies of music files (an iTunes safety mechanism, but it won’t show in the folder location, and we can ignore later on)
    Enable Match (after paying for the service)
    Run Match
    Accept that the Apple iTunes process is not perfect, may crash/stop/pause and reboots will be needed, and we can move on so to speak. Key here is you cannot do an unattended script or assume no end user interaction needed L
    Turn on iTunes Match, notice the new ITunes Match on the left hand sidebar, click it, then hit the Start button – if it works and you eventually get to STEP 3 perfect.
    If it fails before getting to STEP 3, reboot and restart
    If this still fails to get to STEP 3, then create a new iTunes database (browse forums on how to do), read your media files from the location in 1civ
    Stop MATCH  (the upload process only, not the service)
    Once STEP 3 starts, CLICK STOP - ASAP, as all this does it upload data, and you don’t want to do this, just get your upgraded files (remember the title of this entry your reading!)
    This also avoids future issues with Album art lost
    Delete Matched low bitrate files
    Create a NEW SMART playlist, with two criteria
    Show all files with bitrate is less then 256
    Show all files where iCloud status is MATCHED
    In the new playlist, click it and it shows the files we want to blow away. 
    Click Edit / Select All then
    Click ctrl in windows/apple  (cmd) logo in mac, and press delete button, ensuring you do NOT tick the delete from iCloud Option.  Now want a few mins for it do do its stuff.
    Download Upgraded BitRate Files
    In the same location as 5, reselect all, and right click, and select the option to download all, and off it goes
    On the lefthand sidebar in iTunes, click Downloads, and you will then see in the middle bottom screen an option for simultaneous downloads (select it)
    Your done Just let the app now do its stuff. I would ignore the message saying you can get on with other things, and use anther machine, preferably not using the same internet connection.
    Optional Steps:
    Click randomly from the Itunes/Matched/256KBPS listed files, and play them.  Not all the files, one every 30 or so, and just the start, then last few seconds to check not dead or corrupt files.
    Update your Step 1 backup with the new files, which is going to take up more space, guess at 40%.
    Kill your iTunes Match account (both the recurring automatic subscription, and  the account if not continuing to use the store part of iTunes)

    bump

  • How to get a formula from the user from a text box in a webpage

    Hi. I would like to know how to get the formula from the user who enters in a textbox. This formula can have any number of variables starting with a and goes on.
    The complexity of the formula can go upto sin, cos, ln, exp. Also user enters the minimum and maximum values of these variables. Based on a specific algorithm (which I use) I would calculate a *set of values, say 10, for each of these variables, substitute in the formula and based on the result of this formula, I select ONE suitable  value for each of the variables.
    I don't know how to get this formula (which most likely to be different each time) and substitute the values *which I found earlier.
    Kindly help me out in this issue.
    Thanks

    The textbox is the easy part. It's no different than getting a String parameter out of an HTTP request.
    The hard part is parsing the String into a "formula" for evaluation. You'll have to write a parser or find one.
    Google for "Java math expression parser" and see what you get.
    Or write your own with JavaCC.
    %

  • How can I find out if a user has an active session

    How can I find out if a user has an active session or sessionObject in the application Server.
    When a user logs on to my web-application, I want him to be able to see a
    list of all the other users that are also loged on. To do this I need to get a
    list of all the session objects avaliable in the sever at that perticular moment?
    In J2EE 2.1 I found the class "javax.servlet.http.HttpSessionContext" with the method "getIds()"
    that returned all the session Id's. By using the method getSession(java.lang.String sessionId)
    from the same class, you could then retrieve the sessionObject.
    But these methods are depricated (and want to be able to use the
    latest version of J2EE).
    Is there any other way to do this?
    I'm using JBoss application server.

    Check out HttpSessionListener -> http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionListener.html
    Essentially what you have to do is implement this interface. You also have to register the listener in your web.xml, like this:
    <listener>
        <listener-class>
            package.name.YourListener
        </listener-class>
    </listener>sessionCreated() will get called each time the app server creates a session and sessionDestroyed() will get called each time the app server invalidates a session. You could have a Map that contains all the active sessions, and a method for printing a list of all of the active sessions.

  • How to get the bounds of single char?

    How to get the bounds of single char in text frame?
    Thanks

    I also think there is not an exiting function which can get it, but we can work around. Can you give some ideas to work around it?

  • How to get the groups info for user

    Hi guys i am new to ALUI..
    i am trying to do some enhancement.
    i want to know how to get the information of the users group and the group details using the IDK API?
    Can sombody share some code?

    Hello,
    You are welcome. Here is one way of get what you want:
    1) get all groups id's
    IPortletContext - >IRemoteSession -> IUserManager - > getCurrentUserGroups() -> int []
    2) get details about group
    IRemoteSession.getObjectManager(ObjectClass.UserGroup ) ->
    cycle over int []: {
    IObjectManager -> querySingleObject(comminity id) -> IObjectQueryRow -> getName()
    Because you are going to use PRC and make SOAP calls to portal don't forget setup WS to pass token to portlet (check WS settings)
    Edited by Bryazgin at 05/29/2008 7:48 PM

  • How to restrict acess to a single user for a proxy service in OSB

    how to restrict acess to a single user for a proxy service in OSB

    A.     Go to Proxy Service and Click on the Security tab
    B.     Click on Transport Acess Control Policies to Edit.
    C.     Click on Add Conditions to Restrict the users.
    D.     In the Predicate List Select the User Category
    E.     Give the User Name to which you want to give access.

  • How to get database connection in applet

    Hi,
    I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
    At the time of development it works fine. I have used esclipse IDE for coding and testing.
    But when I try to call that applet from browser. It is giving ClassNotFound exception.
    Does anybody know How to get database connection in applet ?
    Please help me if anybody know solution for this.
    Thanks,
    Rajesh

    As per my knowledge is conserned
    1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected]

  • My 4gb SDHC flash mem card is stuck in DVD slot on my iMac 27". How to get it out?

    I misplaced my 4GB flash memory card (Canon camera) in the DVD slot (above the card slot) and it disappeared while I was trying to get it out. Naturally I inadvertently (spelled "stupidly") knocked it inside and could not figure out how to get it out. The dust rubber "shields" hide it and I've tried to find it with a toothpick and wedge it out, to no avail. Are there any ideas or suggestions others may have used to get it out (I know turning it on it side and shaking won't work). Why in the world did they design it like it is -- I've had it happen to me and others have also told me of their misadventures, but they also were able to gradually get it out. This time, it's in too deep. Can I ignore it and still use the CD/DVD slot without it blowing up?

    You might need to take to an Apple technician or apple dealer to let them take apart the iMac and remove the flash memory card. if you're very careful you might try a pair of needle nose pliers and a flashlight but it's easy to do damage to the DVD internal mechanical if you're not real careful.
    A good story to tell your grand kids maybe ;-)
    Good luck

  • How to move database objects from one user to another user

    Could someone help how to move database objects from one user to another user
    Thanks in advance

    Thanks a lot for the reply.
    Actually I wanted to know whether there is any command to change the owner ship of the table.
    For ex table1 belongs to user1. can the owner of table1 to be changed to owner2.
    directly using an oracle command. I knew that it can be done using import and export, since the table was 200 million thought the rename command would be faster instead of import and export.
    Thanks Billy for letting me know that it is not possible using oracle query.

  • How to get data out of XML?

    Hi,All.
    I am running SAX (JAXP1.01) in Applet to process XML file. My question is how to get data out of xml format according to the field name (@age,@rank etc)
    and write into string buffer seperated by comma.
    Should I use SAX or DOM? (file size is big)
    My xml as follow :
    <ROOT>
    <FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@team/relay}">
         <ObjectName>Field124</ObjectName>
         <FormattedValue>HUNTER</FormattedValue>
         <Value>HUNTER</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@age}">
         <ObjectName>Field125</ObjectName>
         <FormattedValue> 19</FormattedValue>
         <Value> 19</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field126</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{results.athrel_name}">
         <ObjectName>Field127</ObjectName>
         <FormattedValue>1-1 NORRIE</FormattedValue>
         <Value>1-1 NORRIE</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2}">
         <ObjectName>Field128</ObjectName>
         <FormattedValue>1:54.75</FormattedValue>
         <Value>1:54.75</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1course}">
         <ObjectName>Field129</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1std}">
         <ObjectName>Field130</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2course}">
         <ObjectName>Field131</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2std}">
         <ObjectName>Field132</ObjectName>
         <FormattedValue>QT</FormattedValue>
         <Value>QT</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@points(left)}">
         <ObjectName>Field133</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@pointsdecimal}">
         <ObjectName>Field134</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:decimal" FieldName="{@points(right)}">
         <ObjectName>Field135</ObjectName>
         <FormattedValue>0</FormattedValue>
         <Value>0.00</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1}">
         <ObjectName>Field136</ObjectName>
         <FormattedValue>1:55.98</FormattedValue>
         <Value>1:55.98</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field137</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    Repeat...
    </FormattedReportObject>
    </ROOT>
    ------------------------------------------------

    For big files use SAX: quicker and less memory usage.
    The xerces parser from Apache has some examples. Basically what you do is scan the XML, remembering what tag you are and once you find the right tag, read the contents.

  • How to get graininess out of black areas?

    How to get grainiesss out of black or dark areas?

    you can't.
    a) too low light recording results in 'noise' due to in-camera amplification
    b) noise is handled by the compressors as 'content'; which results in blocky artefacts.
    for FCPX are plugins avail, as the famous Natress DeNoiser, which smoothen such pictures (very well). a $$$ solution.-
    next time more light …

  • How to get BP kind based on user name?

    Hi,
    How to get BP kind based on user name?
    Is there any table other than BUT000 which gives the Business partner no. and BP KIND?
    What is BLUEPRINT table?

    Hi John,
    do you mean Type:
    1     Person
    2     Organisation
    3     Group
    or Role like
    000000     Business Partner (General)
    BBP000     Vendor
    BBP001     Bidder
    BBP002     Portal Provider
    BBP003     Plant
    BBP004     Purchasing Company
    BEA001     Billing Unit
    BUP001     Contact Person
    BUP002     Prospect
    BUP003     Employee
    BUP004     Organizational Unit
    BUP005     Internet User
    The Role can be found in BUT100.
    Regards
    Gregor

  • How to get status profile (STSMA) in user exit ILOM0001

    Hi ABAPers,
    I am currently working on user exit ILOM0001 (Check before saving a functional location) and need to get information about status profile (STSMA). I have checked parameters that is imported into this user exit (DATA_IFLO, DATA_IFLO_OLD, DATA_IFLOS) and none of them have STSMA.
    Could anybody help me how to get this field STSMA into user exit ILOM0001?
    Appreciate it.
    Thanks
    Regards
    Hadi

    Dear Kolla,
    Really appreciate your answer, but
    I don't want to generate or make settlement receiver.
    I was building a script in user exit IW010009,
    And the issue is I can not capture the content of field settlement receiver.
    If we want to capture screen field, ex. equnr, we can use structure CAUFVD,
    when i see the technical detail in this field, the structure for settlement is DKOBR, field EMPGE, but i cannot call it on debug.
    Kindly need your help on this issue.

  • The headphone connector broke off inside my Ipod, any suggestions on how to get it out?

    The headphone connector broke off inside my Ipod, any suggestions on how to get it out?

    See this previous discussion:
    Broken headphone jack! 3.5mm dillemma....: Apple Support Communities

Maybe you are looking for

  • CRM Web UI - Authorisation error for Dashboard report

    Hello I am accessing CRM specific BI reports on CRM Web UI for areas like Lead Analysis, Marketing and Campaign Analysis etc, and most of the reports are working fine. But when I try to access a dashboard report (I am not really sure if it is called

  • Purchase Order Release Help

    Dear friends, My question is about PO approval strategy. I add a new field to CEKKO (ERNAM - name of person who created the object) and create a characteristic (Z_ERNAM) that referrers to CEKKO-ERNAM. Then assign this characteristic to PO release cla

  • Patches...

    Hi all, We installed SAP BW 3.5 on linux ,when we checked --> system -status -component version we found patch levels as...from service market place we found out tht the latest ones ... Patch name     || system patch level || latest patch level SAP_B

  • How to fit page to screenHow to fit page to screen?

    HOW TO FIT PAGE TO SCREEN?

  • IPhone stops playing when I switch apps or lock screen

    The subject says it all.  Recently updated phone to iOS 8.1, noticed this problem today.  Spotify will stop playing the track as soon as I leave the app (regardless of how I leave it), and refuses to play unless I'm in the application. Looked through