Restarting the database

I thought I read that when you 'bounce' (shutdown/start)the database
it attempts to compile all your procedures and packages.
Is this correct?
TIA
Brian

It is not correct. If you need to do this, there is a supplied PL/SQL procedure that you can execute: $ORACLE_HOME/rdbms/admin/utlrp.sql
Tim

Similar Messages

  • I need to restart the database

    Hi Guys,
    I have migrated my database from oracle 9i to 10gR2 and from 32bit windows to 64bit RHEL4 using full database export and import. Everything works fine. We have got some performance enhancements also.
    But one report generation module which was supposed to complete in 25 minutes takes 1-2 hrs. to complete. Most of the time we need to restart the database to complete the operation. After restarting the database it completes within 15 mintutes.
    What may be cause of such behaviour, any idea? How should I proceed to resolve the issue? The cursor_sharing paramater is 'FORCE' which was same in our 9i setup also.
    Regards,
    Santosh

    Hi,
    >>After restarting the database it completes within 15 mintutes.
    It seems this doesn't make sense. Did you gather statistics for the tables? In addition, take a look at AWR from OEM that contains performance statistics and workload information on the database that is captured every hour and preserved for seven days by default. In this case, historical information is important to diagnose a performance problem that has already happened
    Cheers
    Legatti

  • How do I restart apex without restarting the database?

    As the title says... How do I restart apex without restarting the database?
    For the second time in as many weeks apex 3.0.1(?) has stopped working while the database (10gR2) hasn't missed a beat.
    How do I restart apex?
    How do I get it to restart automatically on failure.
    How do I receive failure notification messages.
    How do I diagnose the cause of the failure.
    We were looking at using apex in a production environment but the prospect of unplanned restarts of production databases every week is a little daunting.
    Regards,
    David

    David,
    >> We're not using oracle http server as it's a 64 bit version so yes the whole thing is running within the database.
    1) So your Web server is the XDB HTTP protocol server and embedded PL/SQL gateway (basically, the database's embedded Web server)? Is this 11g? If so, what platform?
    2) Are there any reported issues in the database alert log?
    3) When you check the status of the database listener, does it show services running for this specific port (default 8080, I guess)?
    4) If you normally go to http://server:port/apex, when this situation occurs, what happens when you try and go to http://server:port?
    Joel

  • Unable to restart the database

    Hi,
    I just shutdown the database and it seems to take a while, don't know if it's stuck or just takes awhile. I try to restart it in another session and get this error:
    'ORA-01012: not logged on'
    Should I wait awhile or is there a solution? Thank you.
    1) Shutdown
    SQL> connect sys/Welcome1 as sysdba
    Connected.
    SQL> shutdown normal
    2)
    So I try to restart it as sysdba on another session and get this error
    Connected to an idle instance.
    SQL> startup
    ORA-01012: not logged on

    Osama-mustafa wrote:
    First which Os you are using
    Try the following :
    sqlplus / as sysdba
    shutdown abort ;
    startup ;
    if the above not working Kill oracle process or Shut down database server (shutdown service before do that)We've seen no need for a shutdown abort. The oP was doing a normal shutdown, which was already pointed out, and will wait until connections voluntarily disconnect. Which will probably never happen. The previously suggested SHUTDOWN IMMEDIATE is the better solution until a problem with that is demonstrated.

  • How-To: Restart the Database Server (SQL Server) in SharePoint Farm safely ?

    Hello,
    My farm has 4 SharePoint servers: 2 Application-Servers, and 2 WFE-Servers.
    Each WFE-Server is running Distributed Cache service which means, I have 2 Distributed Cache service.
    I must restart my SQL Server, But, How can I do that without losing the Cached data?
    I can use Stop-SPDistributedCacheServiceInstance -Graceful   which will move the cache from one server to another, But, what to do with the other one then?
    I am really concerned because TechNet says: "Stopping the cache results in partial data loss. The Feed Cache depends on the Distributed Cache service.
    Tags and document activities are saved only to the Feed Cache.
    Tags and document activities are not persisted to content databases."
    https://technet.microsoft.com/EN-US/library/jj219613.aspx#startstopcache
    What can be done ?

    Hi,
    In my opinion you do not need to stop the distributed cache service.
    You are correct the graceful shutdown will work if you want to stop a cache host. it is graceful because  it should move the cache data to the other host(s).
    I believe that the SQL is not hosted on SharePoint server?
    My opinion is that no data should be lost if the SQL is not available for a limited period of time. The Distributed Cache is in memory cache.
    You will however have downtime in case you are not using any High Availability solution for your SQL.
    In case the period of maintenance on your SQL is longer you should plan it better and maybe stop the SharePoint Farm as described here
    https://technet.microsoft.com/en-us/library/cc512725.aspx?f=255&MSPPError=-2147217396 (Move all databases section).
    Ivan Yankulov
    SharePoint Admin/Consultant
    http://spyankulov.blogspot.com/
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft

  • How to set the database in NOARCHIVELOG mode

    hellow world,
    I knewly joined this organization.
    Our database is very small < 4GB data.
    Database is running in ARCHIVELOG MODE.
    since we are not keeping any physical backup, so I opted to run the datbase in NOARCHIVELOG mode.
    For bringing the database in NOARCHIVE MODE, I simply changed the init.ora parameter LOG_ARCHIVE_START = FALSE and restart the database.
    offcourse the archiving stopped, but to my strange after 30 to 40 minutes my all log files filled an error message is being displayed to the server, saying
    log files are filled, waiting for the archiving, Oh my God, What has happened, All users came to my head, DATABASE HANGED, NOT RESPONSING.
    SIR, MY QUESTION IS
    WHAT FOR ALL LOG FILES WAITING?
    when i am saying NOARCHIEVE than
    please explain me, where i committed mistake. I am new to ADMINISTRATION.

    1. Not keeping any physical backup is all the more reason to stay in archivelog mode.
    2. You need to shutdown the database, startup mount, and issue 'alter database noarchivelog', the alter database open.

  • How restart a database when missing indexdata files

    My database is in archivelog mode.
    We need to restore it but we don't have the BACKUP containing index datafile, only system and data datafiles.
    When we open the database, ther is the error ora 01113 AND ORA 01110 and we need to recovery the database.
    Is it possible to restart the database ? If yes how can i do ?

    From experience in the described situation you can drop the non-backed up data files from the database using ALTER DATABASE DROP DATAFILE and then run forward recovery on the remainder of the database. Next using the information in the dictionary you generate the index (incl PK, UK) source, drop the index tablespace(s) including contents, recreate them, and re-create the indexes.
    HTH -- Mark D Powell --

  • Shutting down the database in Windows...

    I just read that shutting down the database by directly stopping the Oracle Service (instead of using the shutdown command from sqlplus) will abruptly stop your database, and the database will have to perform an instance recovery upon restarting.
    This hasn't been my experience at all. I was under the impression shutting down the service was equal to a shutdown immediate.
    Any comments?

    They will perform the same operation. You can do a test and prove it to your colleague.
    With each method you'll notice:
    Completed: alter database close normalin the alert log and you shouldn't see any "crash recovery" messages in the alert log when you restart the database. However, if you manually do a shutdown abort, you may notice a message as
    Shutting down instance (abort)and the following messages when you restart the database:
    ALTER DATABASE OPEN
    Wed Aug 02 17:25:02 2006
    Beginning crash recovery of 1 threads
    Wed Aug 02 17:25:03 2006
    Started redo scan
    Wed Aug 02 17:25:03 2006
    Completed redo scan
    1094 redo blocks read, 111 data blocks need recovery
    Wed Aug 02 17:25:03 2006
    Started recovery at
    Thread 1: logseq 1, block 4472, scn 0.0
    Wed Aug 02 17:25:04 2006
    Recovery of Online Redo Log: Thread 1 Group 3 Seq 1 Reading mem 0
      Mem# 0 errs 0: E:\ORACLE\ORADATA\ORCL9\REDO03.LOG
    Wed Aug 02 17:25:04 2006
    Completed redo application
    Wed Aug 02 17:25:04 2006
    Ended recovery at
    Thread 1: logseq 1, block 5566, scn 0.2611108
    111 data blocks read, 111 data blocks written, 1094 redo blocks read
    Crash recovery completed successfully

  • Error with 11G restart of database on Windows XP

    Hi
    I make the installation of the Oracle 11g on windows XP with the dhcp, and then when i restart the database and try to get connection to the Enterprise Manager page with the http://localhost:1158/em after changing the host in the tnsnames.ora and listener.ora from dhcp ip address to localhost, still i am not able to connect to the EM. when i check the status of the EM from the command line i get the error like
    C:\Documents and Settings\chandur>emctl status dbconsole
    OC4J Configuration issue. D:\Oracle\product\11.1.0\db_1/oc4j/j2ee/OC4J_DBConsole_42.130.245.46_ORCL
    not found.
    can some one help how to get rid of the dhcp problmes and make the oracle EM work

    Hi
    Thanks I will try to figure it out and get it resolved. but i am able to connect from the command prompt to the database, like sqlplus sys as sysdba
    and when i do the same from the sql developer with the TNS selected there it don't allow me to connect is this also related to the smae so if i fix the dhcp from the guide provided will help with sql developer as well.

  • I can´t access to the database using SQLPlus

    Hello to everybody,
    I have installed Oracle XE without problems and my listener is running. Anyway I can´t acces to the database, when I try to log in i have this message:
    ORA-01033: ORACLE initialization or shutdown in progress.
    I have tried to shutdown and restart the database and in startup i have start and mount confirmation messages but at the end appear this message:
    ORA-01589: you must use RESETLOGS or NORESETLOGS option to open the database.
    Ok, I try but an invalid option message appear. This is normal because RESETLOGAS and NORESETLOGS isn´t startup command options.
    So I don´t know how to continue, any idea??
    Thank you.

    When I try to connect to the database:
    [yuner@leyla bin]$ sqlplus
    SQL*Plus: Release 10.2.0.1.0 - Beta on Vie Dic 16 16:22:57 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Introduzca el nombre de usuario: sys
    Introduzca la contraseña:
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    When I connect as sysdba to restart the db:
    [yuner@leyla bin]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Beta on Vie Dic 16 16:23:20 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn sys as sysdba
    Introduzca la contraseña:
    Conectado.
    SQL> shutdown
    ORA-01109: base de datos sin abrir
    Base de datos desmontada.
    Instancia ORACLE cerrada.
    SQL> startup
    Instancia ORACLE iniciada.
    Total System Global Area 146800640 bytes
    Fixed Size 1218208 bytes
    Variable Size 58722656 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 2973696 bytes
    Base de datos montada.
    ORA-01589: debe utilizar la opcion RESETLOGS o NORESETLOGS para abrir la base
    de datos
    This is my problem, any idea?
    Thank you.

  • Backing up the database and the limitations

    Hello all,
    I tried to follow the steps in the documentation to back up the database;
    On Windows: Click Start, point to Programs, point to Oracle Database 10g Express Edition, and then select Backup Database
    but I dont see Backup Database under Oracle database 10g express, here is what I have there:
    Get Help >
    Get Started
    Go To Database Home Page
    Run SQL Command Line
    Start Database
    Stop Database
    Thats all.
    What I am trying to check is, if I can change the location for backups to avoid the 2 backup limitation. Is it possible to do that?

    Well - this is the area we are having a lot of internal discussions on - so this is not final yet, but feedback would be a good thing.
    Lets say you shut the machine down mid transaction one night while there are still users connected. This would not cause disk corruption, but you had inflight transactions at the time. On restart, the database would automatically roll forward the committed transactions, and automatically rollback uncommited transactions. So your database would be consistent. You would of course lose the transactions that were uncommited. This is what we call instance recovery.
    Lets say you take a backup on Monday, using the techniques we are proposing. On Tuesday the disk crashes and dies. You are not using Raid 5 etc, so you have no disk based mirror of your data. So you go and buy a new disk, add it to the machine, re-install the database software, and then restore from Monday nights backup. This is what we call media recovery.
    Using the techniques we propose for Oracle Database XE, you will lose ALL transactions from the time of the backup (i.e Tuesday) - both committed and uncommited until you complete the restore.
    If you did not want to run the risk of losing transactions in the event of a disk crash, then you should look at one of the licensable versions, which uses a technique called archive logging to allow you to roll forward all transactions since your last (or any given backup).
    Note that for all versions however, backup is online.
    Thoughts ?

  • Stop database instances and restart server without the databases to start.

    We run Oracle database-server 10 enterprise edition release 10.2.0.4.0 64 bit pl/sql release 10.2.0.4.0 production.
    How do i restart the servet without the databases to restart f. eks using enterprise manager.

    I think what you need to do is go into the oratab file and mark each database set to be started automatically on boot up to not be set to auto-start. When done doing whatever you are doing now you would need to reset the indicator to Y. I do not think you would do this via EM.
    We have all our database set to not auto-start and have our own start scripts that run a series of startup action scripts. This was for our system administrators who did not want Oracle in the way when they applied patches or made hardware changes that required re-booting and the start-up action scripts load and pin large objects into the shared pool on startup before the database is in use by the applications.
    HTH -- Mark D Powell --

  • Oracle Database not open automatically on restarting the server

    Hello,
    I am using Oracle8i Release 8.1.6.0.0 - Production. And OS windows 2000.
    I installed oracle 8i. On restarting the server the database is not up automatically.
    I check the following services. All are in automatice mode.
    ORACLETNSListerner
    ORacleserviceSID
    Oraclewebassistant.
    I tried the following option also.
    ORADIM -edit -sid -startmode auto.
    still not working.
    Anyone please suggest the solution for this.
    Thanks & Regards
    Krishna

    Do you have any Antivirus installed in that server, sometimes antivirus blocks oracle autostart. try with uninstalling antivirus if it is .
    Thanks

  • After restarting the system, WAS for ABAP is not able to connect Database

    Hi,
    I installed Sneak Preview SAP NetWeaver Application Server for ABAP in Local system. After restaring the desktop,I am getting following errors-
    1. SAP-Basis System: Initialization  DB-Connect Failed, Return Code  000256
    2.Database: Database error -10709 at CON 
    3. Database: > Connection failed (RTE:Database name is missing)
    Here, i have not done any thing except restarting the destop. before restart every thing was working fine.
    please give me some clue, what may happed to the Application.
    Thanks
    Anil

    I moved your thread from Web Dynpro ABAP to the forum for problems with the trial systems.  Hopefully you will find more help here.
    You didn't by any chance change machine name?  I had a very similar error once when I was forced to rename my machine.  Maybe you will find something from this blog helpful:
    /people/thomas.jung/blog/2006/02/03/as-abap-sneak-preview-lessons-computer-rename

  • Restart on primary database restarts the recovery process on standby

    We have a dataguar broker configuration running in maximum perfromance mode.
    Every time we start the primary database, the recovery process on standby gets restarted.
    I can consistently reproduce teh problem. Looks like expected behaviour.
    Even if standby is in read only mode and restart the primary database it bring the database back in recovery mode.
    Any explanation why oracle needs to do it?

    Neil_Arul wrote:
    We have a dataguar broker configuration running in maximum perfromance mode.
    Every time we start the primary database, the recovery process on standby gets restarted.
    I can consistently reproduce teh problem. Looks like expected behaviour.
    Even if standby is in read only mode and restart the primary database it bring the database back in recovery mode.
    Any explanation why oracle needs to do it?Yes, When you enable broker it very common behaviour.
    When ever you bounce the database also MRP process will be started automatically.
    By disabling broker you can avoid automatic startup, BTW Standby should be in recovery mode, i think no need to worry on this.
    If you want to disable as per time, you can disable it as below
    ALTER SYSTEM SET DG_BROKER_START=FALSE ;
    Total Questions:      3 (3 unresolved)
    Close the threads when you feel its answered, Keep the forum clean.
    Edited by: CKPT on Feb 15, 2012 12:57 PM

Maybe you are looking for

  • Budgets in Investment Management

    I am looking to introduce Investment Management.  I am finding budgets very clunky, and far from user friendly, and I am wondering if there is a better way to deal with them.  can anybody advise on the following..... 1. I am currently inputting anual

  • Premiere pro or encore?

    hi all-some advise needed. I want to make the best quality professional wedding dvd for a client nd I have a few options and i just want to get feedback on which is the best method. pc=win xp, prem pro 2 and encore 1.5, PAL, 4x3 plenty of hard disk s

  • How to run a test in interactive mode?

    If I want to run a test in interactive mode, how do I set it up? For vcsi, there is a compile time option "-debug" and then in run time, you could execute "./simv -gui". Do you have such flows available?

  • Search REST API - Usage reports

    Hi, We use the Search REST API to execute queries.  The Usage reports on the Site Collection under Popularity and Search Reports do not contain any data. Is there a way to get usage data for queries executed by the REST API? Best regards, Christoffer

  • Steps in payroll processing

    Dear All, Can anyone tell me the steps involve in payroll processing. Regards, Kumar