Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_SCHEDULER credential set to null when job is edited

MartinKlierDBAApr 24 2019 — edited May 2 2019

Dear experts,

when we edit an existing job with SQL Developer 18.4, it always adds a "dbms_scheduler.set_attribute_null() for the credential_name to the SQL statement that's executed, rendering the job unusable.

Database: 18c XE

Like this:

image005.png

That's our build:

image001-3.png

Reproduction:

BEGIN

DBMS_CREDENTIAL.create_credential(

credential\_name => 'BACKUP\_CRED',

username        => 'oracle',

password        => 'xxx'          \<--(password of your oracle OS user here)

);

END;

/

BEGIN

sys.dbms_scheduler.create_job(

job_name => '"SYS"."DB_BACKUP"',

job_type => 'BACKUP_SCRIPT',

job_action => 'connect target /

spool log to "/home/oracle/rman/log/db_backup.runlog" append;

set echo on;

show all;

list incarnation;

run {

backup as compressed backupset database;

backup as compressed backupset archivelog all delete all input;

backup as backupset current controlfile spfile;

report obsolete;

delete noprompt obsolete;

}

spool log off;

host "mv -f /home/oracle/rman/log/db_backup.runlog /home/oracle/rman/log/db_backup.$(date +%Y%m%d_%H%M%S).log";',

repeat_interval => 'FREQ=DAILY;BYHOUR=23;BYMINUTE=0;BYSECOND=0',

start_date => systimestamp at time zone 'EUROPE/BERLIN',

job_class => 'DEFAULT_JOB_CLASS',

comments => 'blah',

auto_drop => FALSE,

credential_name => 'BACKUP_CRED',

enabled => TRUE);

END;

/

What's my mistake here?

Thank you

Martin Klier

Comments

i've logged a bug, thanks for your test case!

1 - 1

Post Details

Added on Apr 24 2019
1 comment
444 views