Home » RDBMS Server » Server Administration » Move job to other database (oracle,10.2.0.2.0,Unix)
Move job to other database [message #512223] |
Fri, 17 June 2011 11:11 |
Database admin
Messages: 365 Registered: September 2006 Location: india
|
Senior Member |
|
|
I want to move IT_TO_DUM_LOADING job from G1 database to G2 database.
I executed the below query and returned one row with jobname IT_TO_DUM_LOADING.
SELECT OWNER, JOB_NAME, JOB_SUBNAME, JOB_CREATOR, CLIENT_ID,
GLOBAL_UID, PROGRAM_OWNER, PROGRAM_NAME, JOB_TYPE, JOB_ACTION,
NUMBER_OF_ARGUMENTS,
SCHEDULE_OWNER, SCHEDULE_NAME, SCHEDULE_TYPE, TO_CHAR(START_DATE,'DD-MON-YYYY') START_DATE,
EVENT_QUEUE_OWNER, EVENT_QUEUE_NAME, EVENT_QUEUE_AGENT, EVENT_CONDITION,
EVENT_RULE, TO_CHAR(END_DATE,'DD-MON-YYYY') END_DT, JOB_CLASS, ENABLED, AUTO_DROP,
RESTARTABLE, STATE, JOB_PRIORITY, RUN_COUNT, MAX_RUNS,
FAILURE_COUNT, MAX_FAILURES,
RETRY_COUNT, TO_CHAR(LAST_START_DATE,'DD-MON-YYYY') LAST_START_DT, LAST_RUN_DURATION,
TO_CHAR(NEXT_RUN_DATE,'DD-MON-YYYY') NEXT_RUN_DATE, SCHEDULE_LIMIT,
MAX_RUN_DURATION, LOGGING_LEVEL, STOP_ON_WINDOW_CLOSE,
INSTANCE_STICKINESS, RAISE_EVENTS, SYSTEM, JOB_WEIGHT, NLS_ENV,
SOURCE, DESTINATION, COMMENTS, FLAGS
FROM dba_scheduler_jobs where job_name LIKE '%IT%'
it returned the result with
owner,
job_name=IT_TO_DUM_LOADING
job_creator='BALA'
job_type=stored_procedure
job_action='DUM_IT_LOAD'
schedule_type=calendar
start_date='12-JUNE-2008
job_class=DEFAULT_JOB_CLASS
enabled=TRUE
auto_drop=false
state=scheduled
job_priority=3
run_count=291
faliure_count=90
last_start_DT=16-JUN-2011
last_run_duration=+00 01:46:01.159365
next_run_date=17-JUN-2011
loggin_levels=RUN
stop_on_window_close=false
job_weight=1
comments=This job load the Items,locations and Vendor details from IH to DUM
flags=311333
I could not find this job in dba_jobs.
Can somebody help me how to move this job from one database to other database?
Thanks
[Updated on: Mon, 20 June 2011 05:00] by Moderator Report message to a moderator
|
|
|
Re: Move job to other database [message #512224 is a reply to message #512223] |
Fri, 17 June 2011 11:20 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/
DBA_JOBS is different from DBA_SCHEDULER_JOBS
>Can somebody help me how to move this job from one database to other database?
write code to do so.
DBMS_METADATA does not support JOB object type.
SELECT owner,
job_name,
job_subname,
job_creator,
client_id,
global_uid,
program_owner,
program_name,
job_type,
job_action,
number_of_arguments,
schedule_owner,
schedule_name,
schedule_type,
To_char(start_date, 'DD-MON-YYYY') start_date,
event_queue_owner,
event_queue_name,
event_queue_agent,
event_condition,
event_rule,
To_char(end_date, 'DD-MON-YYYY') end_dt,
job_class,
enabled,
auto_drop,
restartable,
state,
job_priority,
run_count,
max_runs,
failure_count,
max_failures,
retry_count,
To_char(last_start_date, 'DD-MON-YYYY') last_start_dt,
last_run_duration,
To_char(next_run_date, 'DD-MON-YYYY') next_run_date,
schedule_limit,
max_run_duration,
logging_level,
stop_on_window_close,
instance_stickiness,
raise_events,
system,
job_weight,
nls_env,
source,
destination,
comments,
flags
FROM dba_scheduler_jobs
WHERE job_name LIKE '%IT%'
[Updated on: Fri, 17 June 2011 11:23] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Move job to other database [message #512449 is a reply to message #512441] |
Mon, 20 June 2011 06:59 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
$ oerr ORA 01882
01882, 00000, "timezone region %s not found"
// *Cause: The specified region name was not found.
// *Action: Please contact Oracle Customer Support.
Have a look at MyOracleSupport Note 414590.1
|
|
|
Goto Forum:
Current Time: Mon Jan 27 01:28:55 CST 2025
|