Urgent!!How to restart a database

Hi,
I need to restart a database and i'm afraid if i miss any step ay my senior is not around. Pls correct me if i'm wrong ya.Following are the steps:-
1) stop the litsener by lscrctl stop
2) connect to sqlplus as sysdba and shutdown immediate.
3) then after awhile start up the litsener and the database.
Is that all or I miss out some steps??
Thanks

No need to touch the listener.
Just login as sysdba.
shutdown immediate
startup
alter system register -- this should register the db with the already running listener.

Similar Messages

  • 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

  • URGENT: how to get the database error message into application?

    Hi, pls give some idea:
    For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
    So, how to get this message in our application?

    instead of using the getMessage method, have you tried something like this:
             try {
             } catch (Throwable t1) {
                System.out.println(t1.toString());
             }If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
    ;o)
    V.V.

  • Urgent: How to restore a database to another machine without backup files

    I am a beginner with Oracle and need to solve a tough problem.
    I have all the files of a database on a hard disk without previously backed up. I don't have the old machine right now, I only have the hard disk from the old machine, and the new machine. There is an Oracle 9i database on the harddisk, and we need make the database work.
    I've already installed the Oracle 9i on the computer(Win XP), put the files to the right folder, modified the listener.ora and tnsnames.ora, then I added the database from:
    OEM -> Navigator -> Add database to tree -> Add selected databases from your local tnsnames.ora file ...
    When I tried to connect to the database, I got the error:
    ORA-12500: TNS: listener failed to start a dedicated server process.
    The setting in my tnsnames.ora and listener.ora are all correct. tnsping <tnsname> is OK. Besides, the default database installed by the ORACLE software works fine.
    Both the old machine and the new machine are Window XP. Both the old database and the new database are ORACLE 9i.
    Any idea on how to mannually make it work? Thank you inadvance!
    Lihua

    Lihua,
    Since you didn't create the DB with DBCA, you will need to manually create a SID.
    From a command window type
    ORADIM -NEW -SID mydb
    Replace mydb with the DBNAME specified in your init.ora and listener.ora files.
    This will create and start the service. The service should now be available as a windows service in the computer management area...
    From a COMMAND window type
    set oracle_sid=mydb
    sqlplus /nolog
    connect / as sysdba
    startup
    If you have all the files in the correct location the DB should start. You should then be able to connect with the database manager. Good Luck.
    --Paul

  • 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 --

  • 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

  • Archive engine got lost...how to restart it without shut down database?

    I have a database with Oracle 8i on IBM AIX 5.
    The archive engine ora_arc0_<SID> is down and need to restart it.
    How can I start archive engine without shutdown and restart the database?
    Thanks in advance!

    Try this step:
    SQL> archive log start;

  • How to recover the database when some of the archive log file get deleted.

    I am facing a problem with Oracle database, which is related to archivelogs.
    Our development database is running in archivelog mode, but we don't have backups scheduled and have no recovery catalog.
    When the database was in running condition, disk got full, so some archivelogs were deleted manually.
    After this they restarted the DB, and now DB is not coming up. Errors are as follows:
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1444383504 bytes
    Fixed Size 731920 bytes
    Variable Size 486539264 bytes
    Database Buffers 956301312 bytes
    Redo Buffers 811008 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    SQL> recover datafile '/export/home/oracle/dev/ADVFRW/ADVFRW.system'
    ORA-00283: recovery session canceled due to errors
    ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
    SQL> recover database using backup controlfile;
    ORA-00279: change 215548705 generated at 09/02/2008 17:06:10 needed for thread
    1
    ORA-00289: suggestion :
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00280: change 215548705 for thread 1 is in sequence #1107
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC
    ORA-00308: cannot open archived log
    '/export/home/oracle/dev/ADVFRW/ADVFRW.archivelog1/LOG_ADVFRW_1107_1.ARC'
    ORA-27037: unable to obtain file status
    SVR4 Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL>
    1. How to recover the database and bring it online
    Any help will be highly appreciated.
    With Regards
    Hemant Joshi
    Edited by: hem_Kec on Sep 7, 2008 9:07 AM

    Hi,
    Archive log files are the copies of redolog files.As redo log files are circularly overwritten,oracle generates archive log file of the corresponding redo logfiles being overwritten.So if you have a backup that dates back to 10 am in the morning and if your database creashed at 3 pm,you cannot use the redo log files alone as they have incomplete information.To completely recover the database upto 3 pm,you need archive log files generated between 10 am to 3 pm. In your case since you are missing one archive log file,you cannot perform complete recovery and hence would suffer data loss.

  • 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 to connect oracle database into VC?GIve step by step.

    Hi Experts,
    Please help
    How to connect oracle database into VC?
    I need step by step.
    what shall i do the first to connect via jdbc or  something else.
    whether we have to create dsn name or using jdbc connections?which one to use?
    Please give the basic steps.Its very urgent.
    Thanks and Regards,
    Nutan

    Hi ,
    all information are in the following document:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424">How to Configure a Business Intelligence JDBC System for Visual Composer</a>
    Rgds,
    Karim

  • How to compress FM database

    Hello
    How to compress FM database.
    FM 4.2(7b) is used with Postgres, and the database is currently at 11.2 gigs.
    Is it true that there is a vacuum command that can be run against SQL dbs.

    Hello Chetan,
    Here is how to compress PostgresSQL
    FM Server is running slow with Postgres.
    Please check database size ($INSTALLDIR/dcm/db/data), size should be less than 3 GB. (On windows, right-mouse click on “data” folder and select “properties” menu item, a dialog will pop up and display folder size. On linux/solaris, just run “du –k $INSTALLDIR/dcm/db/data.” command)
    Run the following command to reduce size:
    1.Stop FMServer.
          2. cd $POSTGRES_DIR/bin
          3. run ./psql.exe –U db_username dcmdb (where dcmdb is the database name)
          4.run this command at psql prompt.
                    #vacuum full analyze verbose;
                    #\q
          5. You should see database size is reduced. (The above might take a while)
    Change the following parameter inpostgresql.conf to slow down the growth. Here is the instruction:
    1. stop postgresql services
          2. edit $INSTALLDIR/db/data/postgresql.conf
          Change following parameter:
          checkpoint_segments = 6        
          max_fsm_pages = 532000
    shared_buffers = 128MB
    temp_buffers = 32MB
    work_mem = 4MB
    maintenance_work_mem = 16MB
    max_fsm_pages = 532000
    log_min_duration_statement = 200
          3. Restart postgresql services. (remove first '#' if it is there)

  • How to turn a database status from "in recovery" to "online"?

    How to turn a database status from "in recovery" to "online"?
    We were trying to turn a datase to offline status using management studio - the operation was closed before it could reach the end.

    Hi Brian,
    Thanks for your feedback;
    I have completed the following actions to solve the issue:
    1. Start SQL Server in single user mode.
    2. Check database status: there i noticed that it was normal
    3. Restart SQL Server in multi-user mode
    4. Check database status: normal
    5. Check my data: ok
    Thank you again
    Lulu01
    You should have wait for an while or atleaset you need to check in the sql errorlog, what phases it is or if any issues persists that shows in the errorlog messages.
    also you would have been used sys.databases, to seewhat's the value for state_desc for your database.
    Thanks, Rama Udaya.K (http://rama38udaya.wordpress.com) ---------------------------------------- Please remember to mark the replies as answers if they help and UN-mark them if they provide no help,Vote if they gives you information.

  • How to restart OracleXe service in windowsXP?

    how to restart OracleXe service in windowsXP?
    by sample for restart: mysql:
    service mysql restart
    OracleXE howto?
    thanks

    go to
    Start > Settings > Control Panel > Administrative Tools > Services
    Look for the Oracle Database Service. If I remember correctly, it's something like Ora<Instance_name>.
    Hit the Restart button, it's the button with the icon that's a stop and start.

  • SqlServer 2008 Database Status Showing(Recovery pending)..How to get this database in online?

    SqlServer 2008 Database Status Showing(Recovery pending)
    How to get this database in online?
    This is SharePoint Content database.
    Badri

    SqlServer 2008 Database Status Showing(Recovery pending)
    How to get this database in online?
    This is SharePoint Content database.
    Badri
    Hi,
    Please try running below in master database
    restore database db_name with recovery
    Chances are that this command would not succeed because I guess there was corruption in database and you restarted SQL Server service. Or can you please tell how your database went into recovery pending state.
    Please check SQL Server errorlog you would find information regarding this change. Please post relevant log information here. Please check event viewer as well
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How to restart Oracle JVM.

    I have a requirement to bounce the oracle JVM without restarting the database.
    Is it doable? if yes then how?
    I am using oracle 9.2

    Anand,
    Each database session has its own JVM.
    Restart the session and you restart the JVM -- at the first invocation of a java stored procedure.
    Check the Oracle documentation to verify.
    Good Luck,
    Avi.

Maybe you are looking for

  • Back to my mac no longer working with iCloud

    Now that I have converted my mobileme to iCloud, back to my mac is no longer functioning properly.  As far as I can tell, my AEBS doesn't like my back to my mac login credentials, even though they are correct.  I can log in via settings on each compu

  • Need help connecting the gadgets together for my gaming setup

    Ok, My ultimate goal is to be able to listen to music from my ipod or phone and hear my game sounds on either ps3 or computer. This is all going to "Turtle Beach Ear Force PX5" Headphones. The Bluetooth feature is not an option because thats how I ta

  • HELP! IPad mini not charging on certain wall plus

    I had my iPad mini for almost a year and i would always charge it next to my bed. All of a sudden I wake up and I see it almost to zero percent. I use the 5W and 10W and would say not charging. But it will charge normally with my iPhone in the same w

  • How to copy files and last modified date

    Does anyone out there know who to copy files files from one directory to another and retain the date time stamp of the source files? I've been able to write some code that copies files from one directory to another but I always end up with a Date Las

  • Mac pro put in new ram now none of the ram works

    mac pro put in new ram now none of the ram works it just hangs on restart the ram worked great for 12 hours then the computer restarted on its own since then it hangs on restart and never gets to the desktop