| Author |
Message |
graff3@hotmail.com *nix forums beginner
Joined: 20 Dec 2005
Posts: 21
|
Posted: Sat Jul 15, 2006 7:58 am Post subject:
RMAN job scheduling 10g
|
|
|
Hi guys,
I have noticed when a RMAN job is scheduled using OEM it is given
special status to other Oracle jobs.
I want to know how can one schedule a RMAN job using SQL Plus or RMAN
so the our jobs can be displayed in the OEM's RMAN view.
Cheers
Max |
|
| Back to top |
|
 |
psoug *nix forums Guru
Joined: 15 May 2005
Posts: 3492
|
Posted: Sat Jul 15, 2006 10:21 pm Post subject:
Re: RMAN job scheduling 10g
|
|
|
graff3@hotmail.com wrote:
| Quote: | Hi guys,
I have noticed when a RMAN job is scheduled using OEM it is given
special status to other Oracle jobs.
I want to know how can one schedule a RMAN job using SQL Plus or RMAN
so the our jobs can be displayed in the OEM's RMAN view.
Cheers
Max
|
You can't.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org |
|
| Back to top |
|
 |
psoug *nix forums Guru
Joined: 15 May 2005
Posts: 3492
|
Posted: Sat Jul 15, 2006 10:21 pm Post subject:
Re: RMAN job scheduling 10g
|
|
|
graff3@hotmail.com wrote:
| Quote: | Hi guys,
I have noticed when a RMAN job is scheduled using OEM it is given
special status to other Oracle jobs.
I want to know how can one schedule a RMAN job using SQL Plus or RMAN
so the our jobs can be displayed in the OEM's RMAN view.
Cheers
Max
|
Retraction as I hadn't noted that you have 10g.
Use the DBMS_SCHEDULER built-in package.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org |
|
| Back to top |
|
 |
graff3@hotmail.com *nix forums beginner
Joined: 20 Dec 2005
Posts: 21
|
Posted: Sun Jul 16, 2006 12:10 am Post subject:
Re: RMAN job scheduling 10g
|
|
|
Hi Daniel,
You are right about the DBMS_SCHEDULER package. But that is what I am
currently using and NOT entirely satisfied -
I want my following SQL to be treated by RMAN as its own job rather
than a generic Oracle job.
BEGIN
sys.dbms_scheduler.create_job(
job_name => '"SYS"."TEST"',
job_type => 'EXECUTABLE',
job_action => 'c:\test.bat',
start_date => sysdate,
job_class => 'DEFAULT_JOB_CLASS',
comments => 'hello',
auto_drop => FALSE,
enabled => FALSE);
sys.dbms_scheduler.set_attribute( name => '"SYS"."TEST"', attribute =>
'restartable', value => TRUE);
sys.dbms_scheduler.enable( '"SYS"."TEST"' );
END;
Cheers
Max
DA Morgan wrote:
| Quote: | graff3@hotmail.com wrote:
Hi guys,
I have noticed when a RMAN job is scheduled using OEM it is given
special status to other Oracle jobs.
I want to know how can one schedule a RMAN job using SQL Plus or RMAN
so the our jobs can be displayed in the OEM's RMAN view.
Cheers
Max
Retraction as I hadn't noted that you have 10g.
Use the DBMS_SCHEDULER built-in package.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org |
|
|
| Back to top |
|
 |
psoug *nix forums Guru
Joined: 15 May 2005
Posts: 3492
|
Posted: Sun Jul 16, 2006 12:26 am Post subject:
Re: RMAN job scheduling 10g
|
|
|
graff3@hotmail.com wrote:
| Quote: | Hi Daniel,
You are right about the DBMS_SCHEDULER package. But that is what I am
currently using and NOT entirely satisfied -
I want my following SQL to be treated by RMAN as its own job rather
than a generic Oracle job.
BEGIN
sys.dbms_scheduler.create_job(
job_name => '"SYS"."TEST"',
job_type => 'EXECUTABLE',
job_action => 'c:\test.bat',
start_date => sysdate,
job_class => 'DEFAULT_JOB_CLASS',
comments => 'hello',
auto_drop => FALSE,
enabled => FALSE);
sys.dbms_scheduler.set_attribute( name => '"SYS"."TEST"', attribute =
'restartable', value => TRUE);
sys.dbms_scheduler.enable( '"SYS"."TEST"' );
END;
Cheers
Max
DA Morgan wrote:
graff3@hotmail.com wrote:
Hi guys,
I have noticed when a RMAN job is scheduled using OEM it is given
special status to other Oracle jobs.
I want to know how can one schedule a RMAN job using SQL Plus or RMAN
so the our jobs can be displayed in the OEM's RMAN view.
Cheers
Max
Retraction as I hadn't noted that you have 10g.
Use the DBMS_SCHEDULER built-in package.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
|
Don't Top Post
Not going to happen.
What's the business case that makes RMAN not work as desired?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org |
|
| Back to top |
|
 |
graff3@hotmail.com *nix forums beginner
Joined: 20 Dec 2005
Posts: 21
|
Posted: Sun Jul 16, 2006 5:57 am Post subject:
Re: RMAN job scheduling 10g
|
|
|
My business case is as follows -
1. I want my job to be recognized as an RMAN job. If you use OEM to
create an RMAN job you will notice that RMAN jobs are treated
differently.
2. I do not want my job to be displayed in the Oracle job queue like
other jobs.
3. I want to send a RMAN query directly rather than embedding it into a
batch file and calling it as an executable. |
|
| Back to top |
|
 |
sybrandb *nix forums beginner
Joined: 13 Jul 2006
Posts: 22
|
Posted: Mon Jul 17, 2006 12:16 pm Post subject:
Re: RMAN job scheduling 10g
|
|
|
graff3@hotmail.com wrote:
| Quote: | My business case is as follows -
1. I want my job to be recognized as an RMAN job. If you use OEM to
create an RMAN job you will notice that RMAN jobs are treated
differently.
2. I do not want my job to be displayed in the Oracle job queue like
other jobs.
3. I want to send a RMAN query directly rather than embedding it into a
batch file and calling it as an executable.
|
Why? You are aware RMAN *IS* a separate executable?
Or did you never read the RMAN manual?
This is not a business case. This is plain incompentency.
--
Sybrand Bakker
Senior Oracle DBA |
|
| Back to top |
|
 |
graff3@hotmail.com *nix forums beginner
Joined: 20 Dec 2005
Posts: 21
|
Posted: Mon Jul 17, 2006 11:19 pm Post subject:
Re: RMAN job scheduling 10g
|
|
|
Sybrand...if you can't add value to a conversation..you should shut the
F#$K up.
sybrandb wrote:
| Quote: | graff3@hotmail.com wrote:
My business case is as follows -
1. I want my job to be recognized as an RMAN job. If you use OEM to
create an RMAN job you will notice that RMAN jobs are treated
differently.
2. I do not want my job to be displayed in the Oracle job queue like
other jobs.
3. I want to send a RMAN query directly rather than embedding it into a
batch file and calling it as an executable.
Why? You are aware RMAN *IS* a separate executable?
Or did you never read the RMAN manual?
This is not a business case. This is plain incompentency.
--
Sybrand Bakker
Senior Oracle DBA |
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|