Dbms_Scheduler.Set_Scheduler_Attribute fails for email_server_credential

I use an Oracle 11 g XE DB (11.2.0.2.0). I want to set up a job to send e-mail messages if the status of the job change.

I use the following procedure:

Procedure Config_E_Mail is

V_Server Varchar2 (50): = "smtp.mail.com:587";

V_Sender Varchar2 (70): = ' [email protected] '; 

V_Recipients Varchar2 (100): = ' [email protected] ';

V_Events Varchar2 (200): = "job_failed, job_broken, job_stopped, job_disabled;

Begin

Start

Dbms_Scheduler.drop_Credential (Credential_Name = > 'my_cred12345', force = > true);

exception

while others then

null;

end;

Dbms_Scheduler.Create_Credential (Credential_Name = > 'my_cred12345', username = > ' [email protected]", password = >"12345678 ");

Dbms_Scheduler.Set_Scheduler_Attribute ("email_server_credential", "my_cred12345");  -Code fails on this line

Dbms_Scheduler.Set_Scheduler_Attribute ('email_server', V_Server);

Dbms_Scheduler.Set_Scheduler_Attribute ('email_sender', V_Sender);

Dbms_Scheduler.Add_Job_Email_Notification

(

Job_Name = > P_Job_Name,

Recipients = > V_Recipients,

Events = > V_Events

);

End;

Copy the following code compile OK. I give this user the following privileges:

create jobs, PLANNER of MANAGING & SCHEDULER_ADMIN ROLE.

It is, when running, the code does not work in the highlighted line (i.e. Dbms_Scheduler.Set_Scheduler_Attribute ('email_server_credential'...))

Error is:

ERROR on line 1:

ORA-27486: insufficient privileges

ORA-06512: at "SYS." DBMS_ISCHED', line 4609

ORA-06512: at "SYS." DBMS_SCHEDULER', line 3245

ORA-06512: at "PEGA.INT_CREATE_JOB", line 56

ORA-06512: at "PEGA.INT_CREATE_JOB", line 73

ORA-06512: at line 1

Any help would be greatly appreciated.

Well, I checked the documentation to this procedure, and here's what he says (in bold underlined):

'email_server_credential':The schema and the name of the existing credentials of object which SYS has execute object privileges on. Default value is NULL . The user name and password stored in these credentials are used to authenticate with the e-mail server when sending notifications by e-mail.

Then, do the following after you have created the credentials (after line DBMS_OUTPUT. PUT_LINE('50');):

RUN IMMEDIATELY "GRANT EXECUTE ON cred_rohan_123 TO sys";

Tags: Database

Similar Questions

  • Photosmart Premium C410: C410 Software Installation fails for not having not supported USB, Win7 Pro

    I just got a laptop HP ProBook G3 450 with Windows 7 Pro 64 bit. I'm unable to install the Photosmart C410 series software and it fails when checking the system requirements, saying the USB hardware and necessary drivers are not present.  I tried with and without a USB cable installed and also tried to disable the security firewall. It fails for the same when USB problem only connected via WiFi. The discoveries of software troubleshooting HP Print and Scan doctor that the software is not fully installed, for example, without help.  I can connect to the printer and print a test page using my WiFi network using a web browser, and I managed to install it on two other portable Win7 in the past.

    Hello
    Click the Start button and type folder in the search bar, then open the Temp folder indicated.

    Open the last HP installation folder that begins with 7z (e.g. 7zs1234)
    Open the installation folder.
    Find the file usbready.exe and rename it to usbready.old.exe
    Navigate to the main extraction folder (folders that begins with 7z) and run the Setup.exe file.

    Now follow the installation and check for the difference.

    Kind regards
    Shlomi

  • Online and automated phone activation fails for XP Home

    Activation fails for me for Windows XP Home Edition, after changing a lot of material. Online activation failed. I called the automatic activation phone number where I give them a "ID of Activation" appears on my screen and I like that it is not valid. Microsoft support site sends me to a web page that sends me to a web page that sends me to the first web page.

    How do I get this active?

    How to activate Windows 7 manually (activate by phone)

    1) click Start and in the search for box type: slui.exe 4

    (2) press the ENTER"" key.

    (3) select your "country" in the list.

    (4) choose the option "activate phone".

    5) stay on the phone (do not meet all the automatic guests) and wait for a person to help you with the activation.

    (6) explain your question clearly to the support person.

  • Windows Update fails for XP and Office 2003 security updates others are OK. Error message is 0x800F0102.

    Windows Update fails for XP and Office 2003 security updates others are OK. Error message is 0x800F0102.

    Ref: http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/error-code-0x800f0102/eefc1d5a-2f89-4676-82fb-1d76debbd13f

    Start with these troubleshooting steps and post returns with the requested info and arises from the troubleshooting.

    Clean boot your PC, and then run Windows Update.

    Reset the Windows Update components

    Perform operations of KB883825

  • Windows update fails for KB2661637; KB2647516 and KB2660465

    Windows update fails for KB2661637; KB2647516 and KB2660465 - I ran MicrosoftFixit.wu.Run and get the same results.   Help, please... thnx

    Hi SparkySA,

    Follow the steps in the article.

    Cannot install Windows updates

    You cannot install some programs or updates

  • Could not open the zone alarm file:Validation failed for c\windows\system32\zpeng25.dll.

    All of a sudden I can't activate my zone alarm service, because I gives me a message that the Validation failed for c\windows\system32\zpeng25.dll.  After you receive this message, I ran software to fix registry errors, but that has not fixed the problem.  I am able to follow the explicit instructions so careful instructions are given.  Thank you for your help.

    Do Zone Alarm support say when contact you? What responses did you get when you posted in their forums?
    http://forums.ZoneAlarm.com/index.php

  • X 3500 HNAP call to the device failed for an unknown reason.

    During the installation process Cisco Connect X 3500 briefly to connect to internet (can surf the net very briefly in this window) but when he arrives at the end of the installation it saying unsuccessful then restarts.  Is there a way to manually connect just using the address IP is a browser?

    Error code: 82BD0305

    Error description: year HNAP call to the device failed for an unknown reason.

    Model name: loading...

    Model number: X 3500

    Serial number: unknown

    Firmware version: loading...

    Operating system: Windows 7 SP 1

    Software version: 1.4.12340.0

    Connection type (WAN): loading...

    (LAN) IP address: loading...

    (WAN) IP address: loading...

    The computer IP address: 192.168.1.103

    Found!  At the bottom of the Cisco Connect program window is a link to configure manually via a web browser.

  • Error: Tunnel research group using certificate cards failed for the peer certificate

    I have the research group of the Tunnel using certificate cards failed for peer certificate error when signing the SAA on my SSL VPN. I have the certificate installed on the client, I have no mapping of certificate created.

    I can map user certificate to a user name used to connect to the SSL VPN?

    Y at - it good documentation describing the certificate mapping?

    Off topic: I listen to a podcast of TAC security this week, and one of the members of the Group of experts preparing for an introduction to PKI to Networkers (I don't remember not the year). Videos of these presentations are available?

    Once more, I appreciate all the help.

    Triton

    Hello

    I guess the previous fill command comes in the webvpn under tunnel like this group attributes:

    tunnel-group test general attributes

    user name of certificate-CN

    tunnel-group test webvpn-attributes

    pre-fill-username-customer ssl

    No aaa authentication

    aaa authentication certificate

    You can also specify which field of the certificate you want to that username is taken.
    Users will be able to change the username (which beats the objective right?), but then they will not be able to connect using any other username. So if they change they will not be able to connect.
    Also, you can use the username to hide which will not allow users to change the user name it will be greyed out.
    And Yes, it's essentially a double authentication coz we use the certs and aaa to authenticate a user.
  • What is this error telling me? Activation context generation failed for "assemblyIdentity1." Error in manifest or policy file "assemblyIdentity2" on the assemblyIdentity3 line.

    Error: (19/10/2012 02:23:06) (Source: SideBySide) (user :)
    Description: Activation context generation failed for "assemblyIdentity1." Error in manifest or policy file "assemblyIdentity2" on the assemblyIdentity3 line.
    The value ' * ' attribute 'language' in the "assemblyIdentity" element is invalid.

    Error: (19/10/2012 02:19:20) (Source: SideBySide) (user :)
    Description: Activation context generation failed for "C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest1." Political or obvious error in the file 'C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest2' on the C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest3 line.
    A component version required by the application conflicts with another version of the component already active.
    Contradictory elements are:
    Component 1: C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest.
    Component 2: C:\Windows\WinSxS\manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2.manifest.

    Error: (18/10/2012 01:39:02) (Source: SideBySide) (user :)
    Description: Activation context generation failed for "assemblyIdentity1." Error in manifest or policy file "assemblyIdentity2" on the assemblyIdentity3 line.
    The value ' * ' attribute 'language' in the "assemblyIdentity" element is invalid.

    Error: (18/10/2012 01:33:59) (Source: SideBySide) (user :)
    Description: Activation context generation failed for "C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest1." Political or obvious error in the file 'C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest2' on the C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest3 line.
    A component version required by the application conflicts with another version of the component already active.
    Contradictory elements are:
    Component 1: C:\Windows\WinSxS\manifests\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac.manifest.
    Component 2: C:\Windows\WinSxS\manifests\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2.manifest.

    Hello

    Thanks for posting your question in the Microsoft Community!

    If I understand correctly you found the error in the event viewer.
    Event Viewer is a tool that displays detailed information about the events important (for example, programs that don't start as expected or updates are downloaded automatically) on your computer. The event viewer can be useful when troubleshooting problems and errors with Windows and other programs.
    I would like to ask you a question in order to better understand the issue.
    You did changes to the computer before the show? All newly installed programs?
    An application manifest is an XML file that describes and identifies the shared and private-by-side assemblies that an application should bind to running. These must be the same assembly versions that were used to test the application. Application manifests may also describe the metadata of the files that are private to the application.
    The error seems to be related to the drivers of amd.
    We will visit the amd support link and install the compatible drivers for amd programs and check if this solves the problem.
    We also execute (SFC scan) System File Checker. The tool File Checker system to determine if the problem you are experiencing is caused by one or more system files that are used by Windows, the System File Checker utility analyzes the system files and replaces incorrect versions of system files by using the correct versions.
    Refer to this article.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7: http://support.microsoft.com/kb/929833


    Hope the helps of the information provided.

    Let us know results also, feel free to post us if you face because of Windows in the future. We would be happy to help you!

  • Connection failed for an unknown reason (IOM Java Client)

    Hello


    I have some code Client Java IOM that works if I have access to IOM without SSL.


    The problem occurs when I try another (production) server that uses the SSL protocol


    I use these libraries


    common - logging.jar

    cryptoj.jar

    EclipseLink.jar

    JRF - api .jar

    oimclient.jar

    Spring.jar

    WebServiceClient + SSL.jar

    wlfullclient.jar

    I also tried to add the system properties to add SSL debug, to ignore invalid host names, etc..

    I also created a file of keys, certificates imported and added

    System.setProperty ("javax.net.ssl.trustStore", KEYSTORE);
    System.setProperty ("javax.net.ssl.trustStorePassword", KEYSTORE_PASSWORD);

    opening of session
    System.setProperty ("java.security.auth.login.config", AUTHWL_CONF_PATH);
    System.setProperty ("APPSERVER_TYPE", "wls");
    String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
    < String, String > Hashtable env = new Hashtable < String, String > ();
    env.put (OIMClient.JAVA_NAMING_FACTORY_INITIAL, ctxFactory);
    env.put (OIMClient.JAVA_NAMING_PROVIDER_URL, OIM_JAVA_API_URL);
    OIMClient client = new OIMClient (env);
    customer. Login (OIM_ADMIN, OIM_ADMIN_PASSWORD.toCharArray ());

    URL of the IOM is referenced by intellectual property

    The error message is not really help a lot. The green text was added by me.

    User name and password have been double-checked, they work for the web INTERFACE.


    javax.security.auth.login.LoginException : weblogic.socket.UnrecoverableConnectException : [connection failed for an unknown reason: < bytes garbage here >]

    to weblogic.security.auth.login.UsernamePasswordLoginModule.login (UsernamePasswordLoginModule.java:194)

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Method Native( )

    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke (Method.java:606)

    to javax.security.auth.login.LoginContext.invoke (LoginContext.java:762)

    to javax.security.auth.login.LoginContext.access$ 000 (LoginContext.java:203)

    to javax.security.auth.login.LoginContext$ 4.run (LoginContext.java:690)

    to javax.security.auth.login.LoginContext$ 4.run (LoginContext.java:688)

    at java.security.AccessController.doPrivileged (Method Native( )

    to javax.security.auth.login.LoginContext.invokePriv (LoginContext.java:687)

    to javax.security.auth.login.LoginContext.login (LoginContext.java:595)

    to Thor.API.Security.LoginHandler.weblogicLoginHandler.login (weblogicLoginHandler.java:61)

    to oracle.iam.platform.OIMClient.login (OIMClient.java:212)

    to oracle.iam.platform.OIMClient.login (OIMClient.java:196)

    You cannot refer to the URL of the IOM by IP and use SSL. The host name must match the name on the certificate that will never happen if it is an IP address.

  • Active Directory user confidence and target user Recon fails for an ORGANIZATIONAL unit

    Hello

    Active Directory trusted user and target user Recon fails for single ORGANIZATIONAL unit and others to run correctly.

    We get the "the server does not support the requested critical extension.

    I read, we must use the entrance of page size of the definition of Lookup.Configuraiton.ActiveDirectory or Lookup.Configuraiton.ActiveDirectory.Trusted search for settting granular level.

    I looked into this research and got the PageSize as 1000. So, does that mean? How to use the pagesize?

    It's the user Trusted Recon Brio ST AD

    Thank you

    After increasing the value of pagesize, jobs are working well.

  • ODI 11.1.1.7 'Print' function fails for the folder and interfaces: empty or corrupted files

    I am using the function 'Print' 11.1.1.7 ODI and while it works for packages, the KMs and procs, it fails for interfaces and records - either I get PDF empty generated or I get a partially generated/corrupted file. Has anyone encountered this before and worked around the problem?

    see you soon,

    John

    Hello, please take a look at the patch below, this is a bug in 11.1.1.7

    Patch 17449667: PDF CORRUPTED FILES GENERATED BY THE PRINT INTERFACE FEATURE

    Thank you

    Ananda

  • Insertion of statistics has failed for the entity...

    Hello, I was searching for resolution of this error on my hosts.  We are using VMware vCenter device version 5.5.0 build 3000241.  We use the database shipped, no MSSQL not involved in this.

    I see the error "Insertion of Statistics failed for entity < esxhostname.domain.com > due to the ODBC error."

    However each search result, I get this error assumes that it is a problem of MSSQL Microsoft SQL Server Agent job.  Is there somewhere in vCenter or hosts where I specify the database?  could there be an another root cause of this error?

    our guests are version 5.5.0 build 3116895.

    Thank you

    Don

    It seems that this bug is fixed in the current generation update 3 of the product.

    Thanks anyway,

  • Control budget F150 The GL has failed for the mode of control of funds

    Dear all

    What is the solution for these funds is not the code.

    Thank you

    F150 is synonymous with

    Budgetary control GL failed for the mode of control of funds

    You should check if you have enough funds in the GL.

    Thank you

    Gene

  • Connection verification failed for data source - mysql.jdbc.Driver

    I get this message when you try to add a mySQL (don't ask) database in CF Admin checking the connection failed for data source: shownets java.sql.SQLException: no suitable driver available for shownets, please don't check the configuration in the file resources, pilot error: com.mysql.jdbc.Driver


    The root cause was that: java.sql.SQLException: no suitable driver available for shownets, please don't check the configuration in the file resources, pilot error: com.mysql.jdbc.Driver I tried all sorts of messages instructions and nothing seems to work.  It's on my 32-bit platform. Tryng to get out all the bugs before I installed the 64-bit version.

    TNX a

    It seems that you have recently installed Coldfusion. I say this because recent versions of Coldfusion no longer ships with JDBC to MySQL driver. You must therefore download and install it yourself.

    To do this, go to the download page of the MySQL JDBC driver. Select the platform independent as a platform connector. Download the ZIP file independent of the platform mysql-connector-java - x.x.xx.zip. (x.x.xx represents the version number)

    Extract the ZIP file. Open the folder that results and search for the driver. It is a JAR file called mysql-connector-java - x.x.xx - bin.jar (x.x.xx represents the version number). Copy the file in the directory lib to Coldfusion.

    Restart Coldfusion. Voila - you're ready to go.

Maybe you are looking for