LOCK_SGA stop restarting database

Hi,
Yesterday I had LOCK_SGA in memory but when I restart the database it doesn't restart when I am trying to start manually(by sql prompt) it say's
"ORACLE SHARED REALM MEMORY ALREADY EXIST" when I am checking detail of this error it says "start new oracle instance or clean previous SGA", but when delete LOCK_SGA line from SPFILE and try to start database it start successfully, some one explain me whats wrong.
Thanks in advance.
Khawar

Hi
Try restarting the instance service from the services and then try restarting your db.
If that doesn't help in SQL do a shutdown abort and then startup.
This MIGHT help
Regards
Tony S. Garabedian

Similar Messages

  • Auto Start/Stop Oracle Database Lintener DBConslone on Linux

    Dear all
    I have install oracle 10.2.0 on redhat 4.7 every time i have to start manualy.
    it try with following scrip / process but database not starting automatically.
    Please any one can provide steps for auto start and stop oracel services on RedHat 4.7
    Once the instance is created, edit the "/etc/oratab" file setting the restart flag for each instance to 'Y'.
    TSH1:/u01/app/oracle/product/10.2.0:Y
    Next, create a file called "/etc/init.d/dbora" as the root user, containing the following.
    #!/bin/bash
    #chkconfig: 345 95 10
    #description: init script to start/stop oracle database 10g, TNS listener, EMS and isqlplus
    case $1 in
         start)
         su - oracle -c 'lsnrctl start'
         su - oracle -c 'dbstart'
    su - ora10g -c 'isqlplusctl start'
         su - oracle -c 'emctl start dbconsole'
         stop)
    su - oracle -c 'emctl stop dbconsole'
         su - oracle -c 'isqlplusctl stop'
    su - oracle -c 'dbshut'
    su - oracle -c 'lsnrctl stop'
         restart)
    su - oracle -c 'emctl stop dbconsole'
         su - oracle -c 'isqlplusctl stop'
    su - oracle -c 'dbshut'
    su - oracle -c 'lsnrctl stop'
         su - oracle -c 'lsnrctl start'
         su - oracle -c 'dbstart'
    su - ora10g -c 'isqlplusctl start'
         su - oracle -c 'emctl start dbconsole'
    esac
    create service on linux
    Actions >> System Settings >> Server Settings >> Services Then
    Actions >> Add Service Then
    Service Name = dbora Then Press Ok
    chmod a+x /etc/init.d/dbora
    Check is it running this service properly
    service dbora stop
    service dbora start
    showing error
    :bad interperter : no such file or directory
    Please forward me process/steps for auto start/stop oracel services

    :bad interperter : no such file or directorymeans that it could not find the interpreter which should be used to interpret the script.
    most probably this is caused by the shebang (#!/bin/bash)
    the default location of bash on RHEL (OEL/CentOS) is /bin/bash, which means that the shebang looks correct.
    can you make the shebang:
    #!/bin/bash -xso shelltracing is put on and execute script again?
    this will make clear if it is the shebang in your script, or in another script.

  • Restart database

    Hi,
    I installed an Oracle 10g ExpressEdition and every time I am connecting to it, I have to stop and restart database.
    Can someone help me with this?
    Thank you.

    user8673222 wrote:
    Hi,
    I installed an Oracle 10g ExpressEdition and every time I am connecting to it, I have to stop and restart database.
    Can someone help me with this?
    Thank you.Is it that the database was down or started, but you could not connect?
    If you just started Windows, you may think that you are stopping and starting the database to enable you connect to it, but it could be that your database was never started at all. If you had not set the database to start automatically during Windows start, then you have to start it manully every time you start Windows.
    Check and confirm.

  • My iphone wouldnt stop restarting so i backed it up and restored it but when i did i had NOTHING on my phone i lost all my contacts my 1,700 photos my texts, emails please help me i have a time machine, will that work?

    I restarted my iphone after it wouldnt stop restarting every 5 seconds so i plugged it into i tunes backed it up and restored it but when i did my phone had no data and that back up i made is gone... is there anyway i can get this back please eveything is gone, 1,700 photos 500 contacts all my emails and texts. i have a Time Machine can i restore itunes that way and have it?

    I suggest plugging your iPhone into a wall socket, and letting it sit for many hours (while connected to WiFi).

  • My iPad won't stop restarting itself since it died and i plugged it in, what's wrong with it?

    My iPad died and i plugged it in and now it won't stop restarting itself, it goes apple logo, loading, shut off and then it repeats itself. I thought that maybe the iPad got just enough power to start restarting but then died midway through and that just kept continuously happening.

    Try a reset: Hold down the power and Home buttons together until the Apple logo is displayed, then release. No data or settings are lost.

  • My i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this???

    my i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this??? Should i mention i have tried restarting back to new and i have the most up to date software. Please help

    If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
    **Imediately backup ALL your important data while you can still see things on the monitor
    Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
    nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
    perform SMC reset just to check:
    Shut down the computer.
    Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
    On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
    Release all the keys and the power button at the same time.
    Press the power button to turn on the computer. 

  • 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

  • Creating new BAT file script to stop, restart and disable S I agent

    We have just installed BOXI3 and are in the process of updating some bat files for stopping, restarting and failover (to our backup servers)and disable services on the Central Configuration Manager.   In my old scripts we called each service  Examples (
    sc
    servername.net config "bobjspcengine" start= disabled                    
    sc
    servername.net config "BOBJWebiServer" start= disabled)
    I have a few  questions
    1.  Server Intelligence Agent... Where would I find it's name   like the BOBJWebiServer example?
    2.  If my bat file stops this agent does that automatically stop the CMS, Webi, Report services?
    3. This is for our support team in order to easliy stop Tomcat and other services for failing over to our DR sites and backups since the script automatically stops,  starts, restarts disables and enable services..., is this the best approach?   We put these bat files out on the servers and all they do is click on them to start the failover process.

    Try using
    Process Monitor for looking the key.
    For example, you may set the required value through the group policy and see what windows registry keys are changed.

  • Is root required to start/stop/restart mysql?

    I'm trying to have all users in the mysql be able to start/stop/restart mysql. I'm currently getting permission denied for the /var/lib/mysql folder even though I'm logged in as a user that is a member of the mysql group (and mysql is the owner of the directory)
    Is what I am trying to achieve possible?
    I'm not sure if this is related but I am also unable to start mysql from rc.d on bootup, but once I am logged in I can use the root user to start it up.
    Thank you!

    /etc/rc.d/mysqld wrote:/usr/bin/mysqld_safe --user=mysql &>/dev/null &
    Doesn't mysqld get started as mysql user by default?
    Did you modify any of mysql's configuration files while trying to do this? I imagine that would cause troubles for you.
    Post anything else you think is relevant, too.

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • Stop seconday database when it is in restoring state

    Hi All,
    We are planning to perform Switch from primary  to secondary server by using Libelle tool.
    Before switch we have planned to increase the server resources and make it same as primary.
    So for that we need to stop database running on secondary server. and database is in restoring mode.
    So my question is it good to simply stop the database and when resources are increased start the database again.
    If yes: Then database will come to restore stage again?
    If No: Then what other strategy should we take?
    Regards,
    Mohit

    Hi Mohit
    Yes its simple shutdown & start the secondary server during the time primary restore stage. before that you can perform the truncate log backup in primary, check the log truncate completed on both servers and than do the hardware maintenance during this process keep an eye on log DB
    Regards
    Ram

  • Stop/Restart instance(s) in scheduled time

    hi,
    we have number of sap instances running in our environment( Unix).  Wondering, if there are any feature in Solution Manager/ any other ways -  to schedule certain instance to stop and restart during system outage days.
    I am currently developing a Unix script to read a input file for instances to stop/restart in scheduled time.
    Thanks,
    Raj S

    Raj,
    I have not used this but i suppose this is possibel using SAP Solution Manager downtime management.
    Read Note 1129385 - Downtime Management with SAP Solution Manager: FAQ
    Also there are some documents for setup in SCN , you can search for configuration .
    Regards,

  • AS10g EM start/stop/restart components fails

    In a new install of the AS10g on Win 2000. After I login to the EM - I am unable to control (start/stop/restart) components such as HTTP_Server, OC4J_Security, OID. The componets are up but I can't control them. When I select a component to control I am asked to confirm (I select yes) and then I get an error msg "No components were selected". Any help on this would be appreciated. - Thanks

    OC4J_OC4J_Portal log
    05/10/17 21:09:52 Start process
    05/10/17 20:12:16 Auto-starting uddirepl...
    05/10/17 20:12:17 Error starting HTTP-Server: Address already in use
    05/10/17 20:12:17 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    05/10/17 21:12:20 Start process
    05/10/17 20:13:51 Auto-starting uddirepl...
    05/10/17 20:13:54 Warning: Error reading transaction-log file (/opt/oracle/product/10.1.2.0.2/OraAS/j2ee/OC4J_Portal/persistence/OC4J_Portal_default_island_1/transaction.state) for recovery: premature end of file
    05/10/17 20:13:54 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    05/10/17 20:13:54 Recovery completed, 0 connections committed and 0 rolled back...
    05/10/17 21:34:19 Stop process
    Error: Unexpected error during lookup : Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is:
         javax.naming.AuthenticationException: Invalid username/password for default (admin)
    ------

  • Do I need to restart database in change of spfile?

    Hi
    All,
    Do I need to restart database in change of spfile? my database is in 10.2.0.3 on AIX.
    and one more thing when I do more on spfile it displaying the contents that is readable i am thinking that spfile is binary file so how it can be possible.
    Thanks,
    Vishal

    You may be interested in reading this page
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref438
    SPFILE is a dynamic file so it does not need any sort of server restart.Also though it can be readable by any utility which can read any binary,its not advisable to read spfile like this.The best (recommended ) way is to create a pfile from it and then alter it if you need it.
    Aman....

  • Which information should I gather before restarting database to troubleshoot DB related problem ?

    We use oracle 11gr2 for Oracle Insight Application.
    We had application login error due to probably some database miss operation.
    Generally speaking, when we have some trouble in database and need to restart database, which information should I gather before restarting database for later investigation ?
    Like v$session and v$SQL ,etc.

    teradata0802 wrote:
    Thank you.
    I assume the database misoperation. wrong DDL,DML statement which was executed by misoperation and affect bad impact to database-based Application and database itself.
    So I would like to know when , who , what someone did that misoperation to the database before restarting the database.
    What information should I collect to meet the above purpose before  the database ?
    v$SQL, v$SQLTEXT,v$session,v$SQLSTATS,v$process , etc ,,  ???
    all DML & DDL is written into REDO log files.
    DBMS_LOGMNR can be used to obtain details of those operations; but of course you have to know what specifically you are looking for.
    the "bad results" persists after any DB restart; because uncommitted DML can not be detected by any other session.
    How or why does DB restart change the DB behavior after "bad" DDL or committed DML has occurred?
    I doubt that wrong DDL/DML is root cause of your problems.

Maybe you are looking for

  • External 4k monitor says no signal from display port

    HELP... I have a late 2009 27" iMac running 10.10.2 Yosemite, i bought an ASUS PB287Q 4k monitor to extend my desktop. I have connected it by MDP to DP and the Mac recognises the ASUS, shows it as a display and tells me how it is connected but the di

  • Constant Packet Loss

    Hello, over the past month I have been recieving terrible quality over ventrilo (a VOIP program), terrible lagging in online games, and even when browsing the internet I often have to refresh a web page several times to get it to show up. At first I

  • Need to reinstall QuickTime X - no disk

    I have a MacBook that was came with Leopard but now has Snow Leopard; it received a new HD through AppleCare, and was given 10.6.3 during the repair. I was NOT given new install disks. I now need to reinstall QuickTime X, which I (foolishly) deleted

  • Changing the column value

    Hi, I have to change the column values in a table. The values in the column are to be updated. For e.g. If the old value is "xxxxxxxxxx", I need to take that and update into "xxxyyyxxxx". The column values is so long as its a description field, so it

  • Unable to create ASInstance while configuring Oracle Fussion Middleware

    Hi, I installed the Oracle Fusion Middleware 11g on my XP, while configuring (running the config.bat file), I'm getting an error when trying to create the ASInstance. I did the following and I'm still not able to create an ASInstance : - uninstalled