DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: SVRMGR shutdown

  1. #1
    Join Date
    May 2002
    Posts
    35

    SVRMGR shutdown

    Hi, all

    In my script, I use svrmgr to shut down oracle and then copy the data files to another drive. However the copy fails even the logging message shows oracle shutdown completely and svrmgr completed. Is it possible oracle is still accessing the datafiles when the script starts copying?

    Another similar problem is after I copy the files (including datafiles and other files), I use svrmgr to startup oracle. But the startup fails and the message shows one of the datafile is used by another process. Is it possible the datafile is still accessed by the copy process?

    The size of my datafiles are around 3G.

    Thanks.

  2. #2
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    what os?
    I'm stmontgo and I approve of this message

  3. #3
    Join Date
    May 2002
    Posts
    35

    RE: SVRMGR shutdown

    The OS is NT4.0.

  4. #4
    Join Date
    Sep 2000
    Location
    Chennai, India
    Posts
    865

    Re: SVRMGR shutdown

    Originally posted by shenru
    Is it possible oracle is still accessing the datafiles when the script starts copying?
    Check if the db is shutdown when the copy process begins...and you get the error...

    HTH.

  5. #5
    Join Date
    May 2002
    Posts
    35

    It's in midnight : (

    Do you think there is such possibility?

  6. #6
    Join Date
    Feb 2001
    Location
    Bombay,India
    Posts
    530

    Re: It's in midnight : (

    Hi,
    No it shouldn't be.When you shutdown the database cleanly,Oracle closes all the logfile,datafile and controlfiles.Also when you shutdown the database through the script,please add the command to stop the Oracle service as well as Oracle listener and thentry it out.It will work out now.

    Regards,
    Rohit Nirkhe,Oracle/Apps DBA,OCP 8i
    oracle-support@indiatimes.com
    Thanks and Regards
    Rohit S Nirkhe
    rohitsnirkhe@rediffmail.com

  7. #7
    Join Date
    May 2002
    Posts
    35
    Thank you!

  8. #8
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    how are you copying the files?
    ocopcy or straight copy?

    perhaps you could post a snippet of the code
    I'm stmontgo and I approve of this message

  9. #9
    Join Date
    Aug 2000
    Location
    Shanghai
    Posts
    433
    I have heard that listener service sometime still access the files which belong to your database . It might be the cause .
    1. www.dbasupport.com
    2. www.dbforums.com
    3. www.itpub.net
    4. www.csdn.net
    5. www.umlchina.com
    6. www.tek-tips.com
    7. www.cnforyou.com
    8. fm365.federal.com.cn
    9. www.programmersheaven.com
    10.http://msdn.microsoft.com/library/default.asp
    ligang1000@hotmail.com

  10. #10
    Join Date
    Jan 2001
    Posts
    3,134
    Hey shenru;

    I don't want to get off topic here but you may want to consider re-writing your script soon. SVRMGRL is going away in 9i.

    MH
    I remember when this place was cool.

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