How we can control auto start/stop of db/listener on Unix/linux?

How we can control auto start/stop of db/listener on Unix/linux?

http://download-uk.oracle.com/docs/html/B10812_01/chapter2.htm#BABGDGHF

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.

  • How do I change the start/stop time for multiple songs not just one song at a time?

    How do I chnage the start/stop time for multiple songs not just one song at a time?

    I don't think you can in iTunes.
    Multiple editing in Get Info does not offer an option to change start/stop times.

  • Problem with auto start-stop script

    Hi to All,
    Logged as root. I have create in /etc/rc.d/init.d this file and saved as dbora (Oracle Linux 5.4):
    +#!/bin/sh+
    +# chkconfig: 345 99 10+
    +# description: Oracle auto start-stop script.+
    +#+
    +# Set ORA_HOME to be equivalent to the $ORACLE_HOME+
    +# from which you wish to execute dbstart and dbshut;+
    +#+
    +# Set ORA_OWNER to the user id of the owner of the+
    +# Oracle database in ORA_HOME.+
    ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
    ORA_OWNER=oracle
    +if [ ! -f $ORA_HOME/bin/dbstart ]+
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    +'start')+
    +# Start the Oracle databases:+
    +# The following command assumes that the oracle login+
    +# will not prompt the user for any values+
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
    touch /var/lock/subsys/dbora
    +;;+
    +'stop')+
    +# Stop the Oracle databases:+
    +# The following command assumes that the oracle login+
    +# will not prompt the user for any values+
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
    rm -f /var/lock/subsys/dbora
    +;;+
    esac
    After creation I have execute:
    *#chmod 750 /etc/rc.d/init.d/dbora*
    *#chkconfig --add /etc/rc.d/init.d/dbora*
    The last command return this message:
    +"service dbora does not support chkconfig"+.
    Can You help me? Have You an idea ?
    Thank You and best regards
    Gaetano

    sb92075 wrote:
    Oracle RDBMS needs to be started by process running at OS level as owner of Oracle software; typically OS user "oracle" & not as ROOT!Ok,
    But I have founded this script at [http://www.oracle-base.com/articles/linux/AutomatingDatabaseStartupAndShutdownOnLinux.php].
    The article report:
    Article
    When using RAC or ASM under Oracle 10g Release 2 or above, the Oracle Clusterware automatically starts and stops the Oracle database instances, so the following procedures are not necessary. For all other cases, you can use the methods described below.I must suppose, that the author has written an incorrect article?
    Best Regards
    Gaetano

  • Suddenly I have problems moving files to the trash...  get a dialog saying Finder wants to make changes and I must provide the password... Any explanation or ideas how I can get this to stop?

    Suddenly I have problems moving files to the trash...  get a dialog saying Finder wants to make changes and I must provide the password... Any explanation or ideas how I can get this to stop?

    Please take these steps if you're prompted for a password when moving items in your home folder to the Trash.
    1. Triple-click anywhere in the line below on this page to select it:
    ~/.Trash
    2. Right-click or control-click the highlighted line and select
    Services ▹ Show Info
    from the contextual menu.* An Info dialog should open.
    3. The dialog should show "You can read and write" in the Sharing & Permissions section. If that's not what it shows, click the padlock icon in the lower right corner of the window and enter your password when prompted. Use the plus- and minus-sign buttons to give yourself Read & Write access and "everyone" No Access. Delete any other entries in the access list.
    4. In the General section, uncheck the box marked Locked if it's checked.
    5. From the action menu (gear icon) at the bottom of the dialog, select Apply to enclosed items and confirm.
    6. Close the Info window and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Auto start-stop script

    Hi to All,
    I have create as root in /etc/init.d the file dbora:
    +#!/bin/sh+
    +# chkconfig: 345 99 10+
    +# description: Oracle auto start-stop script.+
    +#+
    +# Set ORA_HOME to be equivalent to the $ORACLE_HOME+
    +# from which you wish to execute dbstart and dbshut;+
    +#+
    +# Set ORA_OWNER to the user id of the owner of the+
    +# Oracle database in ORA_HOME.+
    ORA_HOME=/u01/app/oracle/product/10.2.0/db_1
    ORA_OWNER=oracle
    +if [ ! -f $ORA_HOME/bin/dbstart ]+
    then
    echo "Oracle startup: cannot start"
    exit
    fi
    case "$1" in
    +'start')+
    +# Start the Oracle databases:+
    +# The following command assumes that the oracle login+
    +# will not prompt the user for any values+
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
    touch /var/lock/subsys/dbora
    +;;+
    +'stop')+
    +# Stop the Oracle databases:+
    +# The following command assumes that the oracle login+
    +# will not prompt the user for any values+
    su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut $ORA_HOME"
    rm -f /var/lock/subsys/dbora
    +;;+
    esac
    After I have execute:
    *#chmod 750 /etc/init.d/dbora*
    *# ln -s /etc/init.d/dbora /etc/rc.d/rc0.d/K01dbora*
    *# ln -s /etc/init.d/dbora /etc/rc.d/rc3.d/S99dbora*
    *# ln -s /etc/init.d/dbora /etc/rc.d/rc4.d/S99dbora*
    *# ln -s /etc/init.d/dbora /etc/rc.d/rc5.d/S99dbora*
    At last
    *#chkconfig --add /etc/init.d/dbora*
    This message is returned
    dbora service don't support chkconfig.+
    Have You an idea ?
    Thank You and best regards
    Gaetano

    Solved !
    I have inserted a space before chkconfig and description in the script:
    Incorrect Code:
    #!/bin/sh
    # chkconfig: 345 99 10
    # description: Oracle auto start-stop script.
    This is the correct code
    #!/bin/sh
    #chkconfig: 345 99 10
    #description: Oracle auto start-stop script.Bye
    Gaetano

  • How do i disable auto-start in Adobe Quick Launch; elements 3.0

    how do i disable auto-start in Adobe Quick Launch; elements 3.0

    I guess i don't remember that in photoshop elements 3, so could you explain a little more about what your asking?
    What operating system are you using?
    Unless your talking about the welcome screen that gives a choice of what to start when ckicking on the pse 3 shortcut (welcome screen, organizer or editor)
    Window>Welcome in the editor or organizer
    Or auto launching the adobe photo downloader when you have a camera or camera card connected.
    Message was edited by: R_Kelly

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • How can I auto start a slideshow?

    Is there a way to auto start a photo slideshow? I'd like to skip the index screen and go directly to the slideshow.

    iweb1 slideshow can be directly linked, so if you have iweb1; you may like to try that.
    now to the bad news, iweb2 slideshow can be directly linked, only if users' browser allow pop-up windows. however, most people DO block pop-up windows.
    here is example - please disable your browser's pop-up windows for it to work:
    http://hdl.50webs.com/Direct_SS/Photos.html
    that because iweb2 slideshow requires two open windows: photo page window and slideshow page window. slideshow gets the photo from photo page, while photo page is opened. slideshow will stop working when photo page is closed.
    in my example, there is one added line of javascript in the photo page ,js file to start slideshow (five seconds after the photo page loaded):
    setTimeout('widget1.playSlideshow()', 5000);

  • How to switch off auto start of replication sp's.

    hi,
                 I was checking my sqlserver's master database and found some body has swithched on    auto start
    of the following sps.
    sp_MScleanupmergepublisher
    sp_MSrepl_startup
                   May be some one was exprerimenting with replication.
    pls tel me how can i switch them off?
    i was hesitating to use this command
    "sp_procoption 'spname', 'startup','off'"
    , because i thought some on might have configured some thing else also for replication
    or there might be some other way to swithch of these replication sp.
    yours sincerely

    You dont want to stop these.
    These are automatically started when SQL Server starts provided you have replication configured.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Foot Control to Start/Stop Recording??

    Does anyone know if Garageband can be remotely controlled to start and stop recording? Isn't there some sort of midi foot control pedal that allows this? If anyone has any experience with this, I'd love to hear!

    The iControl is a control surface that controls many things in GarageBand. However, I don't think it could be used for a remote control for punching in/out.
    I agree. We need some kind of remote start/stop "peddle" type controller. I just ordered the PowerMate from Griffin. I don't need 50' of cabling, just about 5' or so. Should be perfect for me. I dunno about setting it on the floor and stomping on it though

  • How to turn of "Automatic Start/Stop Detection for HDV Caputre

    Hello,
    I'm pulling my hair out trying to capture HDV 1080i-50 without getting separate clips created by the metadata at the start and stop of each shot. It's that feature called "Automatic Start/Stop Detection." I'm not talking about "Make new clip on timecode break."
    How can I turn this Start/Stop thing off. I don't want all these **** clips everytime the cameraman hit the record button.
    Anyone know how to turn it off so it stops making separate clips?
    Thanks!
    Kirk

    Yeah, Andy. It helps to have the manual!! THANKS. It says... Select or deselect "+Create new clip on Start/Stop+ checkbox in the Clip Settings Tab of the Log and Capture window."
    It's strange that I was looking for that kind of a box in all the various settings but not in the log/capture window.
    Kirk out.

  • Can I auto start ical upon starting the computer?

    I would like to have iCal auto start upon turning on the computer.  Can this application auto start?

    Opening items automatically when you log in
    You can have applications, documents, or server connections open whenever you log in to your computer.
    To make items open automatically when you log in:
    Choose Apple menu > System Preferences, click Accounts, and then click Login Items.
    Open the Login Items pane of Accounts preferences 
    Click the Add button, below the list of accounts.
    Select an application, document, or server volume and click Add.
    Select the Hide checkbox by an item you don’t want to be opened.
    To temporarily prevent login items from opening when you log in, hold down the Shift key while clicking the Log In button in the login window. Continue to hold down the Shift key until you see the Dock.
    To permanently stop an item from opening automatically, select it in the Login Items list and click the Delete button.

  • How I can begin to start on self learning basis PL/SQL I mean writing block

    Could you please let me know about how One can get the expertise and start on self learning basis PL/SQL procedural on which actually HTML DB is written
    I am very much interested in learinig this language please provide me any useful link books online material in a proper way.
    Thanks in advance

    www.google.com.
    You'll find plenty of resources about pl/sql.

  • Worth it? Auto start/stop services and change iptables rules

    I have recently set up a crontab to start/stop services based on my schedule, such as when I'll be home or away. I intend to only have a service running when I'll probably use it.
    I also integrated rules for iptables into the start/stop of the services (systemd), so they automatically modify rules to accept/reject on their ports when the services start/stop.
    I am behind a router, so I only forward outside ports I use like ssh (which is not on port 22). I manually forward ports, but am looking at UPnP. This is my home network so I should be able to trust the devices on it.
    Now, to my question. Is it worth the time and effort to set this up? Would it be fine to just enable the services I use, let them run and always have firewall ports open for them? I feel like it's good to limit the time that ssh is running, but what about services not open to the Internet? Resources aren't really an issue. What do you guys think?
    I enjoyed learning about systemd, iptables, and cron in the process of setting it up. I'd just like to also learn about how much benefit there actually is, or if anyone has other ideas. Or if it's something that could go on the wiki (not really cron, but maybe the iptables/systemd stuff).

    I'd say, if resources aren't an issue; why limit the time ssh is reachable from the outside? You should have PasswordAuthentication and RootLogin disabled anyway so your vulnerability doesn't really decrease by updating iptables? This script probably works fine until you forget about it and it makes a boo-boo; making your machine unreachable.

Maybe you are looking for

  • New iPhone: ATT says it's activated, iTunes can't talk to iTunes store?

    So, I have a brand new iPhone. I plugged it into iTunes, set up my ATT plan, etc., and then iTunes put up an error saying "Could not complete the iTunes Store request. The store may be busy. Check your Internet connection or try again later." I then

  • Mouse motion listener for JTable with JScrollpane

    Hi All, I have added mouse motion listener for JTable which is added in JScrollPane. But if i move the mouse, over the vertical/horizontal scroll bars, mouse motion listener doesn't works. So it it required to add mousemotionlistener for JTable, JScr

  • How do I get a Gaelic UI in OS 10.6?

    I want to change the interface language to irish gaelic, but nothing changes when I put Gaeilge in System Preferences, nothing changes.

  • Report two rows for a given group item

    All, I need to generate a report that will list credits on one line and related debits on the next line. Kind of like the following: Account Name_____Amount Cash ................. 1000.00 ...... (this line would reflect positive entries, or deposits)

  • Are there any of the newest Macs refurbished?

    I want to buy a new Mac, but want to get it the cheapest way possible. Do they have refurbished ones yet?