DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Shutdown & startup

  1. #1
    Join Date
    Jun 2000
    Location
    Maputo, Maputo-Mozambique
    Posts
    96
    Hi folks!
    I'm running oracle 8.0. on a NT platform. I have a scripts to backup the entire system. What i have to add on the script for
    shutdown Oracle and listener before backup and to startup oracle and listener after backup automatically.

    Regards
    Alex
    In god i trust

  2. #2
    Join Date
    Nov 2001
    Location
    Bangalore
    Posts
    41
    Hi Alex,

    i don't know what kind of script you have for taking backup.
    any open the script and make the entry for shutdown the database is
    svrmgrl << EOF
    connect internal
    shutdown immediate
    EOF
    and for stopping the listener use
    lsnrctl stop
    after you take the back up then use
    svrmgrl << EOF
    connect internal
    startup
    EOF
    lsnrctl start
    or tell me how did u write the script i mean how the logic u used. If you need anthing let me know.

    regards

    san

  3. #3
    Join Date
    Jun 2000
    Location
    Maputo, Maputo-Mozambique
    Posts
    96
    Hi sanjaygk!
    This is working on the Unix but on NT doesn't.It gives the following error "<< was unexpected at this time".
    How should be look like on the NT environment?


    Regards
    Alexandre
    In god i trust

  4. #4
    Join Date
    Nov 2001
    Location
    Bangalore
    Posts
    41
    I feel u need to set the environment variables.
    like path =C:\Oracle\bin
    usually all executables will stay at this location.
    or i don't know exact path of ur oracle bin executables installed so make this entry in your script.
    add the path and make export the environment variables.


    Sanjay
    san

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width