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.

Similar Messages

  • How to put RAC database in restricted mode?is it with srvctl?

    I know for standalone database its
    SQL> startup restrict --if its down
    SQL> alter system enable restricted session; --if its up
    Any idea for RAC ? any option with srvctl ? what are the steps .....
    Thanks in advance for help
    Gagan

    Hi
    There is no option like that. It's as same as keeping normal database in restricted mode.
    alter database enable restricted session;
    and end with
    alter database disable restricted session.
    Regards,
    Phani Kumar P
    +919948677317

  • 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

  • How to put ipod in recovery mode without a home button ???

    how to put ipod in recovery mode without a home button and i cant get in to my devise what can i do ???????????

    Place the iPod in recovery mode using one of these programs:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    or
    http://joshuabailey1997.wordpress.com/2010/09/02/recboot-v1-3/
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    RecBoot may have problems on 64X windows, then try:       
    Tenorshare ReiBoot – Enter & Exit iPhone, iPad, iPod Recovery Mode with a Single Click
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Installs blootware on PC too

  • I found my old ipod and i forgot the passcode. It doesnt have an home button so i dont know how to put it in recovery mode so i can restore it. Ive been using the assisted touch method. But what should i do to put it in recovery mode

    i found my old ipod and i forgot the passcode. It doesnt have an home button so i dont know how to put it in recovery mode so i can restore it. Ive been using the assisted touch method. But what should i do to put it in recovery mode so i can restore it.

    Use this program to place the iPod in recovery mode
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • How to Put iPad in Landscape Mode

    I am an expert computer user, having written many software titles for OSx as well as PC and Linux and Unix. But I am finding the iPad exceedingly difficult to learn.
    I can muddle through the basic things, but there is one thing I have not figured out how to do, and after searching the Internet and this forum, I still can't find out how to do it.
    How do I put the iPad in landscape mode? I feel like such an idiot because I have tried to figure out how to put it in landscape mode for hours, and can't find the option anywhere. I can't believe I'm the only person who can't figure this out.
    Thanks for the help!

    I have the opposite problem: can't get OUT of landscape mode. The home screen is landscape, and so are all the other apps, no matter which way I press that view-lock button. The worst problem is in Pages, where I can't see the tool bar and thus edit the file. Do I download a new copy of Pages, or report this to Apple as a hardware issue? And what is Auto-Lock in the Settings? Turning it on/off did not resolve my problem.

  • Why we need oracle database reboot to put database in  archivelog mode?

    I know how to enable archivelog mode, but what is the reason that to enable archive log we need database restart. which process forces to do that.

    SantoshGanjure wrote:
    Thanks a lot EdStevens for ur prompt response...I need something that satisfies my managers query.
    If the question has originated with the PHB, then my flippant answer is even more relevant ...
    PHB's are incapable of understanding the technical details, so I prefer to give them the 'executive summary':
    "Because that's the way Oracle is written.  We can argue over the technical merits of such a requirement 'till the cows come home.  But at the end of the day, we have to shut down the database because the 'alter database archivelog' command will only succeed when the database is in mount (not open) mode.  Now, let's work out how we can achieve our objective of putting the database in archivelog mode with minimal and appropriately scheduled down time."
    As for the actual down time, it's about as minimal as you can get.  How long does it take your database to complete a shutdown once the command is given?  How long does it take you to type "startup mount"?  How long does it take you to type "alter database archivelog"?  to type "alter database open;"?  For the database to complete the 'open' process?  You could even script it so as to eliminate the keyboard typing time.

  • Avoid putting database in quiesce mode

    Hello all,
    had a question with regards to dropping EM repositry.
    When i run below on 11.2.0.2 i get a warning saying DB will be put in quiesce mode
    emca -deconfig dbcontrol db -repos drop
    WARNING : While repository is dropped the database will be put in quiesce mode.
    but when i do the same for 11.2.0.1 it do not get any warning or anything...
    is this something new for 11.2.0.2 ?? How can i avoid this??
    As its hard for us to get some downtime for this system(which is 11.2.0.2)...
    is there any other way to drop the repositry with putting DB in quiesce mode..
    reson for this is, we are going to install OEM Agent on this, so need to drop the repositry of exsitnig DB
    here is the exacty error...
    $ emca -deconfig dbcontrol db -repos drop
    STARTED EMCA at Nov 15, 2011 4:04:15 PM
    EM Configuration Assistant, Version 11.2.0.0.2 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Nov 15, 2011 4:04:25 PM oracle.sysman.emcp.DatabaseChecks checkRestrictedMode
    WARNING: ORA-01034: ORACLE not available
    Nov 15, 2011 4:04:25 PM oracle.sysman.emcp.DatabaseChecks checkDataGuardEnabled
    WARNING: ORA-01034: ORACLE not available
    Password for SYSMAN user:
    WARNING : While repository is dropped the database will be put in quiesce mode.
    Do you wish to continue? [yes(Y)/no(N)]: N
    $
    Edited by: user8363520 on Nov 15, 2011 8:05 AM

    It's an harmless message.
    This topic is explained at MOS:
    Bug 12861049 Trying to drop or recreate the database control in 11.2.0.2 using emca shows following Warning : While repository is dropped the database will be put in quiesce mode.

  • Monitor database in restrict mode

    hello everybody,
    is there a way to see session activity information in Top Activity window when database is in restricted mode? Monitored database, OMS and agent are all 10.2.0.3.
    So far I have tried to grant restricted session to dbsnmp but it didn't help.
    thx for any suggestion

    hi Alan,
    I have tried to connect as sysdba to database but it shows no data. I also reconfigured the database target properties to be monitored through sys (as sysdba) but didn't work either.
    Slavek

  • Can I rebuild dbconsole without putting database in quiesce mode?

    I have a database (10Gr2) that the dbconsole just won't start up, while it say's its starting up, and during that time I can actually log into the console and look at things, navigate around etc., but then I get a message saying that it could not be started, and I lose the console connection.
    I know the fast way is to just do the dbconsole recreate, but this puts the database in quiesce mode, which amounts to an outage, which I would sooner avoid.
    Is there a way to drop and recreate without affecting users?
    thanks

    what you can do here launch dbca and create another instance dbconsole

  • HT201210 how to put ipod in recovery mode

    all my ipod does is show connect to itunes

    If not successful, try placing the iPod in in DFU mode and then restore via iTunes.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • Put database in archivelog mode

    I know how to do it.
    using oracle 9.2.0.8 on AIX 5.3
    My question is that can I mention a different location
    my database installed in /opt/oracle/product/9.2
    datafiles/control files and redolof files
    in /var/data/oracle/product/9.2/orcl
    I want archive to be in
    /var/data/oracle/product/9.2
    How can I do this
    please suggest

    Is this standard or enterprise edition?
    On the enterprise edition you can use the log_archive_dest_N (n=1..10) instance parameter file to configure up to ten different locations. As an example, you would configure: log_archive_dest_1="location=/var/data/oracle/product/9.2 mandatory" You have to configure log_archive_format as well (unless you want the default format mask); log_archive_format=arch%S.arc and the log_archive_start parameter to true.
    Shutdown normal or immediate your database. Once it is shutdown start it up to the mount state:
    startup mount
    and issue the alter command:
    ALTER DATABASE ARCHIVELOG
    open your database and you will be working on archivelog mode.
    If you are on a standard edition, just proceed as previously indicated, the difference is that log_archive_dest_N parameter is not available, and you can define up to two different file locations, parameters are:
    LOG_ARCHIVE_DEST, LOG_ARCHIVE_DUPLEX_DEST
    and to indicate mandatory or optional, you'll have to use the LOG_ARCHIVE_MIN_SUCCEED_DEST instance parameter.
    ~ Madrid

  • How to put iphone in DFU mode ?

    Hello,
    how i can put my iphone4 in DFU mode ?

    Step 1. Turn off your iPhone.
    Step 2. Hold down the power and home button.
    Step 3. When you see the Apple logo, release the power button but continue holding the home button down.
    Step 4. Open iTunes and wait for it to tell you that its in restore mode.
    Alternative Method:
    Step 1. Connect iphone to USB then listen to the sound when it connect and disconnect.
    Step 2. Hold the home and power buttons until hear the disconnect sound then release power button.
    Step 3. Wait until you hear another sound then release home button.

  • How to put UC320 is "Day Mode" if in automatic scheduling?

    If the UC320 is using automated scheduling, how can a local user take the unit out of 'night mode' if they want to open before the normally scheduled time?  Example:  Schedule set for "day mode" from 9:00 to 5:00 M-F.  They have need to open at 8:00 one Tuesday... how do they take the unit out of "night mode"?
    If they have a "force night" button, can they press it twice??
    Chet.           
    Chet Prokop, PE, PhD
    Cisco Select Partner
    IT and Telecom Services - SMB
    Houston, TX       

    Customer is a doctors office and has regular hours for the most. The early entry would work fine with Force Night--and we've set that up that way. BUT... big but... If the office manager or whomever should set night mode doesnt... we have the same issue... how to remotely change scheduling to "night" or even check for them!?!?!
    Once eveyone leaves the building if it's not been set, they're screwed ... or have to physically trek back once this is discovered. For doctors with a downtown office in Houston, that's not going to happen!
    We need some control over setting and overriding 'day' and 'night' modes... even within the web management interface.  I can do this with other $1000 hybrid systems even from a remote call in--plus through web interface or management software. This is a simple button on the interface at minimum--and would relieve a good deal of frustration. This is not the first installation of a 320 at a doc office that this has come up.  ... but it's worth fixing.
    Thanks, Wendy. I appreciate your thoughts.
    Chet.
    Chet Prokop, PE, PhD
    Cisco Select Partner
    IT and Telecom Services - SMB
    Houston, TX

  • How to put database name/server name insted of  SQL

    Hi,
    I need to put a data base name/server name insted of SQL>, means
    if DATABASE NAME is db1, then
    db1>. insert into ----
    Thanks & Regards,
    Venkat

    Hi,
    Thank u. But I am looking with out my set SQL... Query. Automatically data base name comes at there. Becuase i am loading data into diffrent servers before run the script, for my reference, is it into correct server or not.
    When ever i exit it Return to SQL>. I need always at there.

Maybe you are looking for