To restart  a database

how do you configure a database to start automatically at system startup.
The OracleService is Automatic. Yet the database fails to restart automatically. The database version is Oracle 8.1.7.
"Release 3 (8.1.7) for Windows NT "
Can someone help.

You have to use oradim utility to make the Database Startmode automatic:
Start command prompt and type this:
oradim -edit -SID ur_sid_name -INTPWD sys_pwd -STARTMODE a
To get detail information about oradim utility check oracle manual or write oradim without any argument in command prompt:
C:\>oradim
ORADIM: <command> [options]. Please refer to the manual.
Please enter one of the following command:
Create an instance by specifying the following parameters:
-NEW -SID sid | -SRVC service [-INTPWD password] [-MAXUSERS number] [-STARTMODE a|m] [-PFILE file] [-TIMEOUT secs]
Edit an instance by specifying the following parameters:
-EDIT -SID sid [-NEWSID sid] [-INTPWD passwd] [-STARTMODE a|m] [-PFILE file] [-SHUTMODE a|i|n] [-SHUTTYPE srvc|inst]
Delete instances by specifying the following:
-DELETE -SID sid | -SRVC service name
Startup services and instance by specifying the following parameters:
-STARTUP -SID sid [-USRPWD password] [-STARTTYPE srvc|inst|srvc,inst] [-PFILE filename]
Shutdown services and instance by specifying the following parameters:
-SHUTDOWN -SID sid [-USRPWD password] [-SHUTTYPE srvc|inst|srvc,inst] [-SHUTMODE a | i | n]
Query for help by specifying the following parameters: -? | -h | -help
Regards,
Sayan

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

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

  • 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

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

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

  • Restart primary database - stupid question

    I have a 10.1 primary database and have set, via OEM, DG with a physical standby database on another server.
    I can use DG to switch the standby from read-only to standby and back.
    My studpid question is that I need to stop and restart my primary database and I'm worried that if I shutdown the primary database that DG/OEM will see it down and try and set the standby as the primary.
    I'm not sure where to look to see if it will automatically fail over or not. In this case I'm hoping not and that in a failure situation in the future I'd have to manually switch roles to make the standby database the primary database.
    Hope it all makes sense?
    James.

    If you dont have fast start failover enabled then shutting down the primary will not affect the standby and no auto failover will occur.
    Have a look in OEM on the DataGuard screen:
    Under the Overview section - if it says the below then you can restart your primary without anything being initiated:
    Fast-Start Failover Disabled
    HTH
    Paul

  • Restarting Stanby database after host crash

    Ok here is the scenario . . .
    the host for my Physical Standby database crashes . . . you know the janitor kick the plug out . . .
    How do I gracefully restart the Physical Standby database . . .
    My concern/paranoia/fear is that during the restating of the Physical Standby database that it does NOT opens as the new Primary database.
    I guess what I am looking for is the steps it takes to "restart" the Physical Standby and make sure it is in "managed standby".
    Edited by: user10260925 on Apr 6, 2010 12:54 AM

    A physical or logical standby will never open itself as a primary. If you have Fast-Start Failover configured then the Observer will make it a Primary if the requirements for the failover have been met. Otherwise you would have to manually enter the failover commands to make it a Primary database.
    As of 10g Release 1 if you do a STARTUP on a Physical standby it will open the database in read only mode if possible (i.e. the apply had been terminated cleanly). If, as would be in your case, the apply was terminated in the middle of applying then the open would fail until redo apply had been restarted and cleaned up after itself. In any case, in 10g (10.1 and 10.2) restarting the apply would close the physical standby before starting the apply. As of 11g it will not close the standby as that is what is called Active Data Guard, the Apply running while the standby is open read only.
    Now, to answer your last question, getting it into managed recovery again. If you use the Broker it will take care of that for you. If you do not use the Broker then you need to execute the ALTER DATABASE RECOVER MANAGED STANDBY DATABASE.... command manually.
    Larry

  • 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

  • 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

  • Report ORA-12514 once restart Oracle 10.2 database

    OS: Windows2003 Standard Edition SP1
    Oralce 10.2.0.1.0 for Micorsoft Windows(32bit)
    I install Oracle 10.2 on Windows 2003, during installation, reports a waring at Product-Specific Prerequisite Checks:
    Checking Network Configuration requirements ...Check complete. The overall result of this check is: Failed <<<<
    Problem: The install has detected that the primary IP address of the system is DHCP-assigned.
    Recommendation: Oracle supports installations on systems with DHCP-assigned IP addresses; However, before you can do this, you must configure the Microsoft LoopBack Adapter to be the primary network adapter on the system. See the Installation Guide for more details on installing the software on systems configured with DHCP.
    I try to modify the Network config from assign IP address automatically to specify static IP address. then, Oralce can be installed successfully, and create database, connect to database... all work well.
    But once I do restart(stop/start) the database server, then the database can not be connected and report error ORA-12514. but I do not do any changes, only restart the database server.
    I also try to configure LoopBack metioned in the warning message, but it does not work as well.
    I try to install Oracle10.2 on other clean machines with different OS, like Windows XP sp2, I got the same result.
    Also, I doubt database server does not really start when restarting it, although no error or warning is reported. because of I watch the system memory usage, I do not see any increase of memory when I start the database server, it's not normal.
    I setup a Oralce10.1 server on the same machine, it has not this problem.
    Could anyone help me to solve it?
    Thanks verfy much.
    Frank
    below is my sqlnet.ora, listener.ora and tnsnames.ora .
    # sqlnet.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    # listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = cnpb-dbserver5)(PORT = 1521))
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORA102EN =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = cnpb-dbserver5)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ora102en)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ------------------------------------------------------------------

    Paste the results of tnsping ora102en, hope it's useful to find any clue.
    C:\Documents and Settings\Administrator>tnsping ora102en
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 13-JUL-2
    006 14:24:40
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = cnpb-dbs
    erver5)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ora10
    2en)))
    OK (30 msec)

  • Database 8i not restarting !!

    Hi,
    i had shutdown one of my instances running on AIX 4.3.3 because i wanted to increase Database Buffer Cache but if i try to restart the db i get this error:
    oracle_test> sqlplus internal
    SQL*Plus: Release 8.1.7.0.0 - Production on Fri Sep 19 19:30:28 2003
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-03106: fatal two-task communication protocol error
    Enter user-name:
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Enter user-name:
    ERROR:
    ORA-01017: invalid username/password; logon denied
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    What does it mean? I need to restart the database.
    I get this error while shutdowing:
    Restarting dead background process EMN0
    EMN0 started with pid=13
    Fri Sep 19 19:23:42 2003
    Errors in file /OraBin/admin/uat/udump/ora_97476_uat.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-29540: class oracle/aurora/rdbms/Server does not exist
    ORA-06512: at "SYSTEM.DBMS_JAVA", line 0
    ORA-06512: at line 2
    ORA-24365: error in character conversion
    Please help.

    Please help, i'm still in trouble.
    No one has encountered this error before?
    The strange this is i'm not able to connect with sqlplus directly from the server.
    On that server i have other 3 oracle instances which are running without problems and on which i can connect successfully.
    The environment variables set are the same:
    oracle_test> env | grep ORACLE
    ORACLE_BASE=/OraBin
    ORACLE_SID=uat
    ORACLE_TERM=3151
    ORACLE_HOME=/OraBin/product/8.1.7
    oracle_dev> env | grep ORACLE
    ORACLE_BASE=/OraBin
    ORACLE_SID=dev
    ORACLE_TERM=3151
    ORACLE_HOME=/OraBin/product/8.1.7
    TWO_TASK variable is not set.

  • Data Guard und restart-database

    Hi experts,
    I did the following activities:
    + defined first a restart standalone database dg1 on the system dwh with Linux RH 5.4/ Oracle 11.2.0.3 -Environment with clusterware.
    + then created a standby database dg2 on the system stb with Linux RH 5.4/ Oracle 11.2.0.3 -Environment with with clusterware.
    + and made a switchover from dg1 to dg2. Now dg2 is primary and dg1 is standby.
    My Problems.
    1/ dg1 does not restart automatically now after system reboots
    2/ dg2 is not automatically restarted, because there is no resource for it defined lócal or in cluster.
    I tried to make them to restart-databases unsuccessfully
    a/ to define dg2 a restart-db on stb :
    [oracle@stb ~]$ srvctl add instance -d dg2 -i dg -n stb
    PRCD-1120 : The resource for database dg2 could not be found.
    PRCR-1001 : Resource ora.dg2.db does not existb/ to add ora.dg2.db as cluster-resource on dwh :
    [grid@dwh ~]$ crsctl add resource ora.dg2.db -type ora.database.type -file /home/grid/dg2
    CRS-0245:  User doesn't have enough privilege to perform the operation
    CRS-4000: Command Add failed, or completed with errors.Where file /home/grid/dg2 contains:
    TYPE=ora.database.type
    STATE=ONLINE
    TARGET=ONLINE
    ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r--
    ACTION_FAILURE_TEMPLATE=
    ACTION_SCRIPT=
    ACTIVE_PLACEMENT=1
    AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX%
    AUTO_START=restore
    CARDINALITY=1
    CARDINALITY_ID=0
    CHECK_INTERVAL=1
    CHECK_TIMEOUT=30
    CLUSTER_DATABASE=false
    CREATION_SEED=222
    DATABASE_TYPE=SINGLE
    DB_UNIQUE_NAME=dg2
    DEFAULT_TEMPLATE=PROPERTY(RESOURCE_CLASS=database) PROPERTY(DB_UNIQUE_NAME= CONCAT(PARSE(%NAME%, ., 2), %USR_ORA_DOMAIN%, .)) ELEMENT(INSTANCE_NAME= %GEN_USR_ORA_INST_NAME%) ELEMENT(DATABASE_TYPE= %DATABASE_TYPE%)
    DEGREE=1
    DESCRIPTION=Oracle Database resource
    ENABLED=1
    FAILOVER_DELAY=0
    FAILURE_INTERVAL=60
    FAILURE_THRESHOLD=1
    GEN_AUDIT_FILE_DEST=/u01/app/oracle/admin/dg2/adump
    GEN_START_OPTIONS=
    GEN_START_OPTIONS@SERVERNAME(stb)=open
    GEN_USR_ORA_INST_NAME=
    GEN_USR_ORA_INST_NAME@SERVERNAME(stb)=dg
    HOSTING_MEMBERS=stb
    ID=ora.dg2.db
    INSTANCE_FAILOVER=1
    LOAD=1
    LOGGING_LEVEL=1
    MANAGEMENT_POLICY=AUTOMATIC
    NLS_LANG=
    NOT_RESTARTING_TEMPLATE=
    OFFLINE_CHECK_INTERVAL=0
    ONLINE_RELOCATION_TIMEOUT=0
    ORACLE_HOME=/u01/app/oracle/product/11.2.0.3/dbhome_1
    ORACLE_HOME_OLD=
    PLACEMENT=restricted
    PROFILE_CHANGE_TEMPLATE=
    RESTART_ATTEMPTS=2
    ROLE=PRIMARY
    SCRIPT_TIMEOUT=60
    SERVER_POOLS=
    SPFILE=
    START_DEPENDENCIES=weak(type:ora.listener.type,uniform:ora.ons)
    START_TIMEOUT=600
    STATE_CHANGE_TEMPLATE=
    STOP_DEPENDENCIES=
    STOP_TIMEOUT=600
    TYPE_VERSION=3.2
    UPTIME_THRESHOLD=1h
    USR_ORA_DB_NAME=dg
    USR_ORA_DOMAIN=
    USR_ORA_ENV=
    USR_ORA_FLAGS=
    USR_ORA_INST_NAME=dg
    USR_ORA_OPEN_MODE=open
    USR_ORA_OPI=false
    USR_ORA_STOP_MODE=immediate
    VERSION=11.2.0.3.0.My Questions:
    1/ What I have done wrong?
    2/ Are there simple solultions?
    Thanks and regards
    hqt200475

    Hello;
    PRCD-1120 and PRCR-1001 the reason for these is raccheck is not able to list this database.
    double check you name :
    Select name from v$database;
    Use crs_stat to see if you name if correct and if the database is offline.
    I'm thinking registered with the cluster is in OFFLINE state.
    crsctl setperm resource <resource_name> -o oracle
    crsctl setperm resource <resource_name> -g oinstall
    Not really a Data Guard issue, more of a Clusterware issue. ( I say this because Clusterware is getting out of my area )
    I think it a bug, but I cannot find the bug number.
    May help :
    http://oracleexamples.wordpress.com/tag/srvctl-add-service/
    Reconfiguring & Recreating The 11gR2 Restart/OHAS/SIHA Stack Configuration (Standalone). [ID 1422517.1]
    Resources in OCR Are not Cleaned up Completely After Database ORACLE_HOME De-Install [ID 1108023.1]
    How to Delete From or Add Resource to OCR in Oracle Clusterware [ID 1069369.1]
    Best Regards
    mseberg
    Edited by: mseberg on Apr 23, 2012 7:43 AM

  • Problem after restart of a database used by a database adapter in SOA suite

    We are migration from Oracle interconnect to SOA suite. I am a bit worried that I am taking a backwards step in robust drift. I restarted a Oracle database that is used as an end point in both interconnect and SOA. In both cases the database adapter in interconnect and the partner link in SOA start throwing java error messages. This is not the problem, what worries me is that with Interconnect restarting the database adapter allows queued messages to be written to the database, nothing goes missing. But with SOA suite the messages that could not be delivered before restarting SOA suite end as "canceled" that is to say they do NOT get completed. What happened to guaranteed transaction delivery? or am i missing something.

    Hi,
    The JNDI Name to use for the service connection is "eis/DB/soademoDatabase".
    This Database is a requirement of the course... (Chapter 4 of Getting Started with Oracle SOA Suite 11g R1 - A Hands-On Tutorial).

Maybe you are looking for