[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Database fails to open after running a schedule SQL script (via database control) to perform a cold backup

Asked by slimjim28 in Oracle Database

Tags: script, sql

Database fails to reach the open state after Oracle 10g database control job (SQL script) to perform a cold backup runs.  All files are copied but the database doesn't reach the open state.  I have to manually log into the database via sqlplus and type "startup" to bring the database online.  The problem is that I need this job to be fully automated to run in the middle of the night when support personnel aren't on site.  So manually having to bring the database to the open state is an issue.

The database is  Oracle 10g R2 running on Windows 2003 Server Standard Edition.  What is really odd is that I have done a reinstall of the database a few times and on each occasion the backup script I'm using runs flawlessly for a month or two without any problems then all of a sudden the database stops reaching the open state when the script is run.  I have submitted this problem to Oracle support on a few occasion and I have yet to get a solution to this problem.  

The script I am using is as follows:

shutdown immediate

host xcopy c:\oracle\product\10.2.0\admin e:\oracle_backups\cold_backups\9 /S /Y /I /O;
host xcopy e:\oradata e:\oracle_backups\cold_backups\9 /S /Y /I /O;
host xcopy c:\oracle\product\10.2.0\db_1\database\PWDoracle.ora e:\oracle_backups\cold_backups\9 /S /Y /I /O;
startup;

I am using Oracle 10g database control to create a SQL script job  that runs a SQL script file that is stored on the hard drive through the @backup.sql format.  The file that is being executed has the code listed above.  I've also tried embedding the full script in the command window rather than referencing the SQL script file and I get the same result.   Each time this scheduled SQL script job runs via database control the database fails to open after completion.  The most interesting point here is that if I launch sqlplus and run this script manually (@backup.sql), it runs and the database opens every time.  So the problem only occurs when the SQL script is launch via the 10g database control.

The most recent feedback I had received from Oracle Support was to create a "host command" job rather than a "SQL script" job but no details were giving on how to accomplish this task.  Does anyone know how to accomplish this via a host command job in the 10g Database Control? or any other solutions would be appreciated.

I'm getting ready to head out for the weekend so it will probably be the beginning of the week before I can test any solutions so please be patient.  Thanks in advance for your help!

Regards,

Jim

[+][-]09/08/06 05:19 PM, ID: 17483839Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Oracle Database
Tags: script, sql
Sign Up Now!
Solution Provided By: techji
Participating Experts: 2
Solution Grade: A
 
[+][-]09/08/06 05:22 PM, ID: 17483849Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/10/06 04:50 AM, ID: 17489170Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/11/06 06:23 AM, ID: 17494252Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/11/06 07:10 AM, ID: 17494630Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/11/06 08:03 AM, ID: 17495102Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/11/06 01:40 PM, ID: 17497686Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/11/06 01:51 PM, ID: 17497780Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/11/06 02:12 PM, ID: 17497908Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/11/06 02:28 PM, ID: 17498022Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/12/06 09:42 PM, ID: 17509091Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92