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

Similar Messages

  • Difference between "print" statements and "select" statements , TSQL

     What is the difference between "print" statements and "select" statements when it omces to debugging and watching varibles in the stored procs .....

    SELECT statement is part of the ANSI SQL language.
    PRINT command is not part of the SQL language, it is used for debugging in T-SQL.
    BOL:" Returns a user-defined message to the client.
    A message string can be up to 8,000 characters long if it is a non-Unicode string, and 4,000 characters long if it is a Unicode string. Longer strings are truncated. The
    varchar(max) and nvarchar(max) data types are truncated to data types that are no larger than
    varchar(8000) and nvarchar(4000).
    RAISERROR can also be used to return messages. RAISERROR has these advantages over PRINT:
    RAISERROR supports substituting arguments into an error message string using a mechanism modeled on the printf function of the C language standard library.
    RAISERROR can specify a unique error number, a severity, and a state code in addition to the text message.
    RAISERROR can be used to return user-defined messages created using the sp_addmessage system stored procedure."
    LINK: http://technet.microsoft.com/en-us/library/ms176047.aspx
    The SSMS (client software) returns SELECT output to Results and PRINT output to Messages.
    The SQLCMD -o (output file) option captures all outputs into one file mixed.
    Kalman Toth Database & OLAP Architect
    T-SQL Scripts at sqlusa.com
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Difference Between Database Schema and Database User Account ??

    First i would like to know what an Oracle Database schema exactly is ?
    And what is it for and also What is it's use ?
    Later the exact "Difference Between Database Schema and Database User Account".
    I googled about it but i'm unable to find out it's The difference,
    Please try to explain in a simple manner........
    Thank you very Much in Advance..........

    user13655582 wrote:
    Greate example. but i would like add one more point..
    a user is a schema and schema is a user. but when this applies to the user that he become a schema, only if he has got some objects. so we can say while creating the user which dosent contain any objects called simple user account but afterwords when he has got an objects then we can say its a schema as the above user has shown you through the exampleIt is just word-play. There is nothing in like a 'status' indicator to say "USER_A is just a user but USER_B has become a schema". Many people use the terms "user" and "schema" interchangeably, and some very good DBAs will insist this is correct. I don't disagree with them even though I usually try to make the distinction.
    In a typical application, all of the objects (tables, procedures, etc) that implement the app will be owned by a "application schema owner" - a user which exists for the sole purpose of owning the schema. Said user will have no privileges at all .. especially not CREATE SESSION. Except for possible maintenance activity no one ever actually connects as this user. User accounts are then given to actual humans who connect with their own accounts. The accounts have the necessary system and object privileges granted to them - via a role. One could also create a special account (let's call it APP_ADMIN) that is used for maintenance and batch operations within the application.

  • Difference between target schema and target user

    hi,
    Can anyone explain to me what is the difference between target schema and target user? examples will be more welcome then theoratical explanation.
    thanks so much

    In Oracle database schema and user is the same things (if you use general authentication by database).
    When used external authentication (for example with Windows domains/active directory) schema is a owner of database objects group and you should specify mapping between external usernames and schema to which this user has access when connects to database.
    For example:
    - windows domain user CORPDOMAIN\USER1 can connect to oracle database schema SCOTT;
    - windows domain user CORPDOMAIN\USER2 can connect to oracle database schema SCOTT;
    - windows domain user CORPDOMAIN\ADMIN can connect to oracle database schema SYSTEM;
    Oleg
    Message was edited by:
    tsiboleg

  • Exact difference between System status and the user status

    Hi,
    Please tell me the exact difference between System status and the user status .
    how we customize the both in the system
    Thanks & Regards
    Prajith P
    Moderation: Locked. Please, try to find an answer first. See rules of engagement
    Edited by: Joaquin Fornas on Feb 23, 2012 11:14 AM

    Hi,
    As you mentioned there are 2 status can be maintained for documents like Equipment Master, Notification, Maintenance Order & other important business documents.
    In case, client feels that system status is not enough to capture the details of the object, then user status can be used.
    System statuses will be updated automatically based on business transactions which will be done on SAP.
    For example, once the equipment is created, System status would CRTD (Created). If you install the same to some superior equipment or FL, then status would be INST (Installed).
    If you keeping that equipment in Spare, then for that, you have to maintain separate User Status like AVLB (Available in Stock / Spare) so that through IH08, by using User status, you can the report which is available as spare.
    These user status as per the name, should be updated by the user manually.
    Regards,
    Maheswaran.

  • Difference between hierarchy node and single value

    Hi experts,
    Can anyone explain me the difference between hierarchy node and single value?
    This is my problem:
    I have a query that uses a characteristic (0ORGUNIT) with a hierarchy and I execute it without any problem but when I try to set a fliter on this characteristic and I try to find a single value, for example 101, it doesn't appear in the single value list, instead it appears in the hierarchy nodes list in the selection window.
    I think I'm confused about both terms because I thought  a hierarchy node was always the one who has one or more values as its lower levels like this:
    A. 10
        A1.  100
        A2.  101
        A3.  102
             A3.1.  1021
    B. 11
    I this case I thought , for example, 101 was a single value but not a hierarchy node so I must find it in the single values list in the selection window, however, 102 can be both and must appear in both lists, is it true?
    Thanks in advanced

    In BW, hierarchy node with more information compare to the single value. for example, it always carries its father node information, which it belongs to. and some time information if it is time-dependent.
    So, when you using hierarchy node, it means at least 2 information: value and "position" (who is its father node)
    That's the reason why you see the hierarchy tree when choosing the node.
    If you want to expand the hierarchy to the certain level, you can setting in the property. Another choice is restrict in the query designer.

  • Difference between open loop and closed loop mode when finding the index on a stepper motor axis.

    I have a test system which uses a PXI-7352 motion controller with a MID-7602 stepper motor drive to position a 200 step/revolution stepper motor with an attached 1000 line encoder.  The MID-7602 is configured for 64 microsteps per step, giving 12,800 microsteps and 4000 encoder counts per revolution.  The system is controlled using LabView 7.1 and NI-Motion 6.13.  To home the motor, I've defined a sequence in MAX which first finds the reverse limit switch and then moves forward to the encoder index pulse.
    When finding its reference in open loop mode, the system its reference at the same microstep each time.  When findings its reference in closed loop mode, the system finds its reference somewhere within about a 20 microstep wide range.
    I hope somebody out there with more experience with this controller can describe the difference between finding the encoder index in open loop mode and finding the encoder index in closed loop mode. 
    Thanks,
    Mark Moss

    Hello Mark,
    I suspect that the behavior you are experiencing has today
    with the resolution difference between your encoder and your
    microstepping.  Let me illustrate with an
    example:
    Example Setup
    Stepper
    Motor
    NI
    Motion Controller
    10
    steps per encoder pulse (Every 10 steps the controller gets an encoder
    pulse, therefore positions 0-9 all appear to be 0 to the controller)
    The
    system has a maximum of 3 pull in moves set
    Open Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    Closed Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    The
    controller checks its position and sees that it is still at position 0
    because it has not received an encoder pulse.
    Because
    the controller thinks it is still at position 0, it sends another 9 pulses
    as its first pull in move.
    The
    motor moves to position 18.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends1 reverse pulse
    as its second pull in move.
    The
    motor moves to position 17.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends and additional
    single reverse pulse as its third pull in move.
    The
    motor moves to its final position of 16.
    I believe something similar is happening with your
    application as it looks for the index pulse. 
    Because the controller does not compensate for what it perceives as
    position error in open loop mode, the motor always goes to the same commanded
    position.  In closed loop mode, the motor
    is bouncing around inside the single index encoder pulse trying to find a
    certain position.
    There are several recommendations I can make towards
    correcting this behavior.  These
    recommendations are in order of effectiveness:
    Setup
    your system so that there are more encoder counts per revolution than
    steps per revolution.
    Turn
    off pull-in moves by setting them to 0 in MAX.
    Use an
    open loop configuration.
    Play
    around with the pull in window in MAX.
    Regards,
    Luke H

  • Won't boot normally or in recovery and single user mode, safe mode hangs up halfway

    iMac locked up with visual glitches while playing the Mac beta client of League of Legends. Had to force a shutdown by holding the power button. Now it won't boot; after the Apple logo and spinning wheel I just get a white screen. I tried launching in recovery mode, that didn't work. Then I tried safe mode; the bar filled a little over half and then nothing but white screen. I was able to boot single user mode once; ran fsck -fy and rebooted, still white screen. Now I can't get back to single user mode. I booted with command option P R to reset the NVRAM and got the second chime, but still nothing.
    Luckily all my important files are in the cloud, but I'm really hoping my computer isn't completely dead. I haven't had any issues in the past. I've even been playing LoL for over a month with no issues, until now when I tried to play the newer game types, Dominion and ARAM; both caused visual glitches forcing shutdowns. I was able to restart my computer with no problem after the first two visual glitches, but after the last one I am stuck at the white screen as I described above.
    Thanks in advance for your help!

    I'd bet the drive is damaged. You could try reformatting if possible. Again, you are booting from the Recovery-10.8.2 disk if you can. If you can't, then you will need to use the installer disc that came with the computer.
    Install or Reinstall Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Screaming Fans ,10.4.3., and Single User Mode.

    I wanted to add my experience with the screaming fan problem and 10.4.3.
    When I ran Disk Utility and used the “verify disk” option I received some minor errors and proceeded to boot the OS X install disk and run Disk Utility from there. When I did I received no errors. Rebooted back to 10.4.3 and reran disk utility and received the same minor errors. So I read one of the Mac sites that stated that one needed to run in single user mode and execute “fsck – f”. This where the “fun” started.
    When I went into single user mode the fans went wild. But I knew this to be normal and proceeded with repairing the disk (which was successful as evident with no errors being reported while booted to the desktop and running live verify disk. But before I got to that point the fans remained screaming after the reboot to 10.4.3. I reset the PRAM and NVRAM but to no avail. The fans would not quite down. The fix turned out to be very simple – I unplugged the computer (after shutting down) for about 15 seconds. Re plugged it in and it was fine after that. Fans back to normal! I replicated the problem – applied the same fix and again every thing was normal.
    I just thought I would pass this on to the iMac community.

    Hi Steven, bit unclear on a couple things.
    When I went into single user mode the fans went wild. But I knew this to be normal and proceeded with repairing the disk
    Normal for fans to go wild in single user or when repairing the disk?
    I replicated the problem – applied the same fix and again every thing was normal.
    The problem being screaming fan and the fix being resetting SMU? (unplug for 15secs). So how did you replicate it, and is it really fixed now?

  • 10.4.3 and Single User Mode, now Wireless Keyboard can

    Hello all.
    IN case you haven't found out which I did, just to let you know, with the latest OS 10.4.3 update, now you can boot into Single User Mode (fsck) with your
    b wireless keyboard
    and still at the same time
    b continue to complete fsck process with your wireless keyboard!!
    No more switching to a regular wired keyboard just to complete the process!
    Cheers

    Hi Steven, bit unclear on a couple things.
    When I went into single user mode the fans went wild. But I knew this to be normal and proceeded with repairing the disk
    Normal for fans to go wild in single user or when repairing the disk?
    I replicated the problem – applied the same fix and again every thing was normal.
    The problem being screaming fan and the fix being resetting SMU? (unplug for 15secs). So how did you replicate it, and is it really fixed now?

  • Difference between tables statement and work area

    Hi
    i would like know the difference between these statement.
    tables: vttk.
    data :itab type standard table of vttk,
             wa_itab like line of vttk.
    what will happen with the table statement keyword ???
    whether any difference between the ouput created through tables and wa_itab statement???

    Hi
    HI,
    INTERNAL Table and it's background:
    ===================================
    Internal table acts as a container which is used to store the record sets. That is used to store the data fetched from the database table.
    So due to performance reason every time access to database would not be so good and decrease the performance. So you just select the data from the database and store it in the intermediate table. This table is called INTERNAL TABLE. So it's an replica of the database. The design foes like this,
    PRESENTATION SERVER <> APPLICATION SERVER <>
    DATABASE SERVER.
    So everytime gain accessing to database results in high resource usage and bad permformance.
    So always play around with internal tables. So obviously the whenever you access the data in the INTERNAL TABLE, the application server will be used.
    WORK AREA:
    ==========
    When ever you loop at the internal table, the current record should be stored in a temporary work place. That is called WORK AREA.
    LOOP AT ITAB INTO WORKAREA.
    ENDLOOP.
    ITAB :An internal table
    WORKAREA:An instance of internal table
    Go thru the link below
    Internal tables
    appending internal tables.
    <b>Reward if usefull</b>

  • Password protected EFI and Single User Mode

    Hello Community,
    if I protect the EFI with a password than the single user mode is disabled. But I thought that I can enter the single user mode by entering the EFI password but no password prompt appears. Only the possibility to change the startup volume is accessible by a password prompt. Do I miss a possibility or is the only way to enter the single user mode by bypassing or disable the password by using the firmware password utility on the installation disk without violence?
    BTW: I know the act of violence by changing the RAM configuration but this isn't the way I want to describe in the system documentation
    Thx in advance & Bye Tom
    Message was edited by: prontosystems

    Try holding the Option key while booting. It should ask for the password, then allow any boot options after you select the drive. If you boot from the install DVD (using the Option key and password), you can use the "Utilities" menu to disable the password, after choosing your language.

  • Difference between RFC, SYSTEM and AUDIT users?

    Hi All,
    Can you highlight the main differences between the following users:
    RFC
    SYSTEM
    AUDIT
    how do their functions differenciate them ?
    Thanks in advance,
    Diwakar

    RFC User
    RFC user is basicly used to receive status messages. An RFC user has to be created in all the system clients where messages needs to be recieved. An RFC user can also be used for receiving messages using SMTP plug-in.
    The RFC User is an sap user of type System and that's why no person can logon with this user on SAP System.
    Following is thr procedure to create RFC User, remember the purpose is to recieve messages including status messages as well.
    Creation of RFC User
    Go to  Tools > Administration > User Maintenance > Users.
    Enter a name, for example MAIL_ADMIN.
    Select "New"
    On the Logon data tab page, select the user type System.
    Enter a password.
    On the Profiles tab page, enter the authorization profile S_A.SCON. This profile minimizes the risk of misuse, even if the communication system does not store the password is encoded form.
    Select "Save"
    Both RFC user and a System user are of type System only. Now the difference, depends upon the profile and authorization of the user.
    Audit users are of type dialog, and can be used by a person to logon to system. There might be many roles assigned to this user. My understanding is that an Audit User is not a standard sap type user but just a dialog user and can be created with a conventional method of creating any other dialog users with a specific profile and authorizations.
    Still to confirm, Can you please tell us, how many types of users does it shown in 4.6c at the time of user creation?
    Best Regards,
    Amol Bharti

  • Difference between tables statement and by using type statement

    Hi all,
    I need to know the difference between the two of the below statements
    Tables spfli.
    and
    data spfli type spfli with header line.
    As far as i know both seem same to me.
    Thanks in advance,
    Bala.

    >
    Bala Shanmuga Priyan wrote:
    > Hi all,
    >
    > I need to know the difference between the two of the below statements
    >
    >
    Tables spfli.
    this will create a work area (spfli), looks like DB table spfli, but the statement is obsolate
    Bala Shanmuga Priyan wrote:
    >
    data spfli type spfli with header line.
    this will result in a syntax error, because this would also create a work area, but they cannot have header lines, so you should leave the WITH HEADER LINE addition.
    To create work area use:
    DATA : gw_spfli TYPE spfli.
    To create internal table:
    DATA : gt_spfli TYPE TABLE OF spfli.

  • UNIX / LINUX: difference between the oracle and dba user on the filesystem

    I have always logged into the server with the oracle user to perform impdp/expdp, as well as alter the tnsnames.ora file, and to run tkprof.
    We're possibly going to start up a server in our datacenter where we're only going to be able to log into the server as dba. I'm being asked if that's going to be a problem for me to fulfill my duties.
    Could someone give a description of the difference between the 2 accounts at the filesystem level? Or link me to a document? It's been 6+ years since we made this decision to log in as oracle, and so I am admittedly rusty on the topic.
    --=cf

    It is becoming more common to not allow a direct login to the server as oracle. Instead the DBAs each have their own account (and be members of the dba group). These DBAs have SUDO permission to SUDO SU (switch user) to the oracle account so that there is a log of who was operating as oracle on the server at the time. This could be what you are hearing about. Check with your sysadmins and see if this is what they intend - it should satisfy their security (and audit) requirements.

Maybe you are looking for

  • Win xp won't shut down

    I installed win xp on my imac with leopard. When I go to shut down windows nothing happens. I can log off and switch between user, but not shut down windows. HELP!!!

  • Cover Flow Artist name not matching to Portrait Artist name

    I noticed the problem/issue I have the recent update which is 1.1.3. I just bought my touch 3 days ago. In "portrait" orientation, the artist names update correctly, but not in the "coverflow" orientation. If I switch to portrait and then back to cov

  • Adobe Acrobat 8 Standard v8.2.5 Disappearing Content Issue

    We are seeing a very strange behavior in PDFs generated converting a web page using using Adobe Standard 8.  It appears that the PDF was generated properly, but as soon as we start scrolling or switching windows, the content of the PDF disappears.  T

  • Precious Little Discussion of Tiger Classic Crazyness on Tiger Forum

    Classic under Tiger (on my computer) has always had very strange quirks which I have never resolved. Reinstalling Classic from Disc #2 of my original Tiger installation discs has not helped. Example 1: Extensions in my System Folder have always shown

  • Error with Autoloader program - someone please help - so frustrated

    HI there.... I am a wedding photography and use Mike d's autoloader program to zip through my wedding edits...it was working great until yesterday... I use it through bridge and when I try to ope the files, the autoloader comes up fine ..I pick my ac