بتاريخ: 15 نوفمبر 200718 سنة comment_116043 شكرا على ردودكمبس ممكن اعرف اخ عمر كيف اقدر اعمل SHUT DOWN AND RESTART FOR MY DB تقديم بلاغ
بتاريخ: 15 نوفمبر 200718 سنة comment_116053 Dearto shutdown and restart the databsefirst u have to connect as sysdbado the followingconnect / as sysdba sql> shutdown ;sql> startup;but notice that there is parameters for shutdown and start up.Shutting Down with the NORMAL ClauseTo shut down a database in normal situations, use the SHUTDOWN command with theNORMAL clause:SHUTDOWN NORMALThe NORMAL clause is optional, because this is the default shutdown method if noclause is provided.Normal database shutdown proceeds with the following conditions:■ No new connections are allowed after the statement is issued.■ Before the database is shut down, the database waits for all currently connectedusers to disconnect from the database.The next startup of the database will not require any instance recovery procedures.Shutting Down with the IMMEDIATE ClauseUse immediate database shutdown only in the following situations:■ To initiate an automated and unattended backup■ When a power shutdown is going to occur soon■ When the database or one of its applications is functioning irregularly and youcannot contact users to ask them to log off or they are unable to log offTo shut down a database immediately, use the SHUTDOWN command with theIMMEDIATE clause:Note: You cannot shut down a database if you are connected tothe database through a shared server process.Shutting Down a Database3-10 Oracle Database Administrator’s GuideSHUTDOWN IMMEDIATEImmediate database shutdown proceeds with the following conditions:■ No new connections are allowed, nor are new transactions allowed to be started,after the statement is issued.■ Any uncommitted transactions are rolled back. (If long uncommitted transactionsexist, this method of shutdown might not complete quickly, despite its name.)■ Oracle Database does not wait for users currently connected to the database todisconnect. The database implicitly rolls back active transactions and disconnectsall connected users.The next startup of the database will not require any instance recovery procedures.Shutting Down with the TRANSACTIONAL ClauseWhen you want to perform a planned shutdown of an instance while allowing activetransactions to complete first, use the SHUTDOWN command with the TRANSACTIONALclause:SHUTDOWN TRANSACTIONALTransactional database shutdown proceeds with the following conditions:■ No new connections are allowed, nor are new transactions allowed to be started,after the statement is issued.■ After all transactions have completed, any client still connected to the instance isdisconnected.■ At this point, the instance shuts down just as it would when a SHUTDOWNIMMEDIATE statement is submitted.The next startup of the database will not require any instance recovery procedures.A transactional shutdown prevents clients from losing work, and at the same time,does not require all users to log off.Shutting Down with the ABORT ClauseYou can shut down a database instantaneously by aborting the database instance. Ifpossible, perform this type of shutdown only in the following situations:The database or one of its applications is functioning irregularly and none of the othertypes of shutdown works.■ You need to shut down the database instantaneously (for example, if you know apower shutdown is going to occur in one minute).■ You experience problems when starting a database instance.When you must do a database shutdown by aborting transactions and userconnections, issue the SHUTDOWN command with the ABORT clause:SHUTDOWN ABORTAn aborted database shutdown proceeds with the following conditions:■ No new connections are allowed, nor are new transactions allowed to be started,after the statement is issued.Quiescing a DatabaseStarting Up and Shutting Down 3-11■ Current client SQL statements being processed by Oracle Database areimmediately terminated.■ Uncommitted transactions are not rolled back.■ Oracle Database does not wait for users currently connected to the database todisconnect. The database implicitly disconnects all connected users.The next startup of the database will require instance recovery procedures.Starting an Instance Without Mounting a DatabaseYou can start an instance without mounting a database. Typically, you do so onlyduring database creation. Use the STARTUP command with the NOMOUNT clause:STARTUP NOMOUNTStarting an Instance and Mounting a DatabaseYou can start an instance and mount a database without opening it, allowing you toperform specific maintenance operations. For example, the database must be mountedbut not open during the following tasks:■ Enabling and disabling redo log archiving options. For more information, pleaserefer to Chapter 7, "Managing Archived Redo Logs".■ Performing full database recovery. For more information, please refer to OracleDatabase Backup and Recovery BasicsThe following command starts an instance and mounts the database, but leaves thedatabase closed:STARTUP MOUNTForcing an Instance to StartIn unusual circumstances, you might experience problems when attempting to start adatabase instance. You should not force a database to start unless you are faced withthe following:■ You cannot shut down the current instance with the SHUTDOWN NORMAL,SHUTDOWN IMMEDIATE, or SHUTDOWN TRANSACTIONAL commands.■ You experience problems when starting an instance.If one of these situations arises, you can usually solve the problem by starting a newinstance (and optionally mounting and opening the database) using the STARTUPcommand with the FORCE clause:STARTUP FORCEIf an instance is running, STARTUP FORCE shuts it down with mode ABORT beforerestarting it. In this case, beginning with Oracle Database 10g Release 2, the alert logshows the message "Shutting down instance (abort)" followed by "StartingORACLE instance (normal)." (Earlier versions of the database showed only"Starting ORACLE instance (force)" in the alert log.)i hope this will answer you question. تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.