How to call "run the dbms_utility" using native query?

Hello

I need compile my invalid object using APP.

In my EJB, I have a method that does this:

Query query = em.createNativeQuery ("execute dbms_utility.compile_schema ('CGBDEV8', false) '");
int irslt = query.executeUpdate ();

But the executeUpdate is a failure.

Can you provide me with a solution on how it can be done.

Thanks in advance

Emile

Yes, but as I said, jdbc has some restrictions, you cannot use boolean etc types.

Have you tried statement proposed in my previous answer: em.createNativeQuery ("call dbms_utility.compile_schema ('CGBDEV8', some_util_pck.int2bool (0))" "");   ?

"According to the docs, second parameter in dbms_utility.compile_schema () is optional if even this should work: em.createNativeQuery (call dbms_utility.compile_schema ('CGBDEV8')" ")";

Dario

Tags: Java

Similar Questions

  • Train webutil functions. How to identify if the user uses native internet

    Hello

    I have a form with a few webutil functions. How can I determine if a user uses the internet with native form explore?


    If a user with jinitiator uses forms, its ok, but when a user use native internet explore, he gets the bean orcle.forms.webutil.fileTransfer not found error. WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work.

    When the user is using internet explore native, I want to disable the webutil function before generating a file on the application server and then you download on a client computer.


    IM using Forms10g and Forms10gR2.

    Thank you

    you have two different config sections for the two modes?

    If so, you could put a value different to each of them in the otherparams tag and read than when running, or use the other gall env and set a variable with different values for each config in there and read it through TOOL_ENV.

  • Run the jar using Java 7?

    My Macbook Pro currently runs on Java 8, and I want to start a specific jar (minecraft associated) that supports only Java 7, is there a way I can run the file using Java 7 through terminal. I can share the script starting current I use here - http://pastebin.com/XEq01mdZ - the jar file is called cauldron.jar.

    Thank you for your help.

    I don't have any Java installed for an exact string to show you, but each version of Java is installed in its own folder. You can call this version of Java by specifying the full path to the particular version.

    The java_home command will show you what JVM you have installed with the path to each House.

  • How can I make the best use of a new external hard drive and a new catalog full of photos just loaded into Photoshop elements 14 Organizer?

    How can I make the best use of a new external hard drive and a new catalog full of photos just loaded into Photoshop elements 14 Organizer?

    Keep all the files on external hard drive image?  Nothing else and no pictures on the desktop?

    Keep all image files both places?

    What is the best way to go through thousands of images in the Organizer to identify and place them in files?

    Once I've placed a file, I just leave it in the entire catalog or a way indicate to me that it has been sorted?

    As overwhelming, any tips/shortcuts/schemes, you can offer are welcome!

    As I only have the version of the EP, here is some info on the organiser:

    https://helpx.Adobe.com/Photoshop-elements/how-to/use-elements-Organizer.html

    Independent of how this feature works, you want to have your photos in one place and have a backup (second copy) somewhere else. All hard drives will not be successful at some point - some more early, some late - never trust to have your files in any safety devices if they are on a single disc. Once you have your sorted, it would be useful that you will organize/name/tag new photos immediately if the task is relatively short and simple. I copy my photos on my internal hard drive for my camera, take a quick look with preview to see who needs some changes and then decide where to put them - either drop them immediately after naming them or bring in an editing application and then file them away.

  • How to communicate with the gsm using lab view

    Please, someone tell me about the following uncertainties:

    1 can anyone tell me about the GSM part in lab mode?

    2. how to communicate with the GSM using lab view?

    3. how to publish my data through GSM using lab view?

    4. how to use ipod to send data to laboratory?

    5. what a DAC suitable for ipod?

    6. how to install the lab for ipod DAC mode?

    without worrying

    FR. mohammad rehan

    rehan_the_great wrote:

    Can u please tell me the minimum requirement of computer (labtop) for the use of labview, like ram size, HARD drive, map chart etc...

    A simple search for "labview requirements" on this site would have given you the information you want.

    http://www.NI.com/LabVIEW/requirements/

  • How do I run the .srt files in wmp 12

    original title: How do I run the .srt files this subtitle files in wmp 12 s? I downloaded directvobsub... but it isn't working...

    I bought a sony vaio e series laptop computer... I downloaded movies to watch and I'm interested to watch in vlc or other players, so I need to know how to watch movies with subtitles... Please help me

    my laptop i5 processor and it is x 64 bit...

    Hello, Sathyasheelan,

    HOW to: Watch movies and TV shows with subtitles

    http://hellboundbloggers.com/2010/06/03/watch-movies-and-TV-series-with-subtitles/

  • How can I run the remote registry service in Windows Server 2003?

    original title: How do I run the remotley remote registry service? I'm unable to open a session

    I'm on windows 2003 R2 server, when I connect automatically to this topic still disconnects once, I'm remotley to change the registry, but the remote registry service does not work, how to run from a computer on the network, because I can not connect?

    Why you ask a question of Server Windows in a Windows XP forum?

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • How can I get the 'handles' using the Radial filter in Lightroom 6

    How can I get the 'handles' using the Radial filter in Lightroom 6

    Please press 'H' as advised by dj_paige.

  • InDesign cs6 still not compatible with the iMac 5K, his frustration that adobe is not fixing this issue! Perhaps a strategy to move to Adobe CC? I have urgent need to know how can I run the application correctly.

    InDesign cs6 still not compatible with the iMac 5K, his frustration that adobe is not fixing this issue! Perhaps a strategy to move to Adobe CC? I have urgent need to know how can I run the application correctly.

    It will never be updated for InDesign CS6. This has been discussed to death. Adobe updated the CS6 applications that she could update. Illustrator and Photoshop come to mind, so your conspiracy theory is incorrect.

    InDesign should be re-written from scratch due to the difference in the way it was designed.

    Your choice is to live with it or move to creative cloud.

  • How can I fill the records using the value LOV

    Create a form based on the use of the following output Table EMP

    Create a database block IE control-> Dept No. block


    Create a database block - EMP
    Create a LOV to the Dept not according to the dept table.
    For the current No. Dept. Complete records of the employees

    How can I fill the records using the value LOV?


    Thank you

    Hello

    Create trigger KEY-LISTVAL for control_block.dept_no with code similar to the following:

    IF SHOW_LOV ('LOV_NAME') THEN
            SET_BLOCK_PROPERTY ('EMP_BLOCK', DEFAULT_WHERE, 'DEPT_NO = ' || :CONTROL_BLOCK.DEPT_NO);
         GO_BLOCK ('EMP_BLOCK');
         EXECUTE_QUERY;
    END IF;
    

    Hope this helps

    Best regards

    Arif Khadas

  • How can I run the process steps in the call has a shape in the workspace and view the result

    Hi all

    I hava a process with two steps

    1. one runs the sql query and returns 'invoices me' data, I put these data in the fields in my xfaForm variable
    2. the second is a renderFormPDF witch takes a repository xdp and xfaForm as form data.

    When I run the process in the workbench, I have the right result: the pdf has fields filled by extracting data from sql query.

    but when I call the process of work space it gives me only the model without data.

    I think the process is not yet completed.

    Sorry, you just have a step of user if you wanted to send the form to the user using the interface of the workspace.

    Jasmine

  • BlackBerry Z30 don't switch call to the speaker using the navigation. Screen went black accept after phone call.

    I have this problem no need of me.

    While driving and use any software of navigation, such as:

    1. built in maps

    2 Waze

    3 NavFree

    If someone calls me, I can take the call. But immediately, the screen went black.

    I can't switch the call to the speakerphone. After random seconds, to switch screen might look for a second glance, and then the entire screen turned black.

    Although it is black screen, I can't do anything, including trying to drag up to close current app/call.

    Maybe it's something to do with the Navigation periodly software disables screen timeout?

    Hello, Yes,.

    Is this the same problem as described here:

    http://supportforums.BlackBerry.com/T5/BlackBerry-Z30/Z30-keeping-the-dial-pad-quot-lit-quot-when-in...

    Discussion on how the screen turns black during a regular call, it is impossible, for example, to listen to a call and to have the keypad remains lit, so you can press the right numbers while dealing with an automated reception, was doing phone banking, or using any other system that relies on automated messages.

    The problem came down to how some people take their phone (especially when trying to listen to the guests and press the right button at the same time).  The solution has been to hold the phone differently.  So my question would be whether the phone is blacking out because of the very special combination of things happening in your scenario, or is it blacking out because you're online and proximity sensor of the phone thinks you're holding it to your ear (and think that when you do this, you want to have blackened keypad).

  • How to call only the operations of several connectors of ICF through simple connector server

    Hi Experts,

    I developed two connectors of the ICF (ICF1 and ICF2) and placed the beams of connector on the same server connector.

    Please guide me how to get only the authorities of each of the connector to call operations of each separately.

    I use following code-

    List of < ConnectorInfo > this.getConnectorInfoManager = cInfos () .getConnectorInfos ();

    System.out.println (cInfos.Size ());

    for {(ConnectorInfo cInfo:cInfos)

    APIConfiguration apiConfiguration = cInfo.createDefaultAPIConfiguration ();

    setPoolConfigurations (apiConfiguration);

    Discoveryendpointspecifie configProps = apiConfiguration.getConfigurationProperties ();

    this.setUpConfigurationProperties (configProps);

    ConnectorFacadeFactory facadeFactory = ConnectorFacadeFactory.getInstance ();

    ConnectorFacade connectorFacade = (apiConfiguration) facadeFactory.newInstance;

    connectorFacade.test ();

    }

    Methods of all connectors are called here to test and how do I selectively invoke test() selective connectors?

    Hello

    The connector of the ICF is called by these configurations in the 'Lookup.CONNECTOR_NAME. Research of configuration. The search name is configured in the COMPUTER resource

    We have the following values configured in the search based on who the connector class fires is

    Name of the connector

    org.identityconnectors.CONNECTOR_NAME. Connector

    Main connector class identity. It is the class that implements the SPI of the ICF framework operations.

    Name of the bundle

    org.identityconnectors.CONNECTOR_NAME

    Name of the identity connector bundle

    In Version

    11.1.1.5.x

    Version connector identity

  • How to manually run the job scheduler

    I wanted to know how to run a job scheduler manually. My requirement is to reschedule some jobs if I want to run it manually so that their execution for the day is over and I can put the new time. For example. to reprogram a job, we can use the following command:

    () DBMS_SCHEDULER.set_attribute

    name = > 'CLUSTERPLANNINGREPORTS_JOB ',.

    attribute = > "repeat_interval"

    value = > ' freq = daily; BYHOUR = 16; BYMINUTE = 0; BYSECOND = 0 ;') ;

    Similarly, I wanted to run the task from the Scheduler.

    I hope that my request is clear.

    Please get back with the answer to my query.

    Concerning

    BEGIN
    DBMS_SCHEDULER.run_job (job_name => 'USERNAME.JOB_NAME');
    END;
    /
    
  • Run the Script using hotkey in InDesign

    Hello

    How to run the script in InDesign using the shortcut key.  Can someone help me?

    Thanks in advance,

    Sudha K

Maybe you are looking for

  • Change the order of the email accounts

    Hello I was wondering why there isn't a way to change the order of the email accounts in the list? I created a new e-mail address and want it to appear under the first in my list of five email accounts, that I put in place. This last address is very

  • Long battery life problems

    So me and my brother all have two droid bionic, and we both had battery extended to them. Mine works very well, him, but emits causes. for some reason any it restarts randomly with his phone, especially when he sits in the car. He got a bionic replac

  • How can I get reports ATML 5.00 show CR and LF

    Why reports TestStand convert/remove the EOL characters in the results chain and ReportText?  Is there a way to get around this? Example of output from a multiline string: \r \r BusyBox v1.13.2 - CAv2 (2011-03-09 15:16:33 this) \r built-in shell (ash

  • Issue of the user of LabVIEW interface

    Hi guys: I have two question about LV user interface design: Referring to the generation of the LV application: 1 How do I hide the runing mode menu bar 2 How do I change the title, I mean, usually the title of the application window is "xxx.vi", I c

  • Under XP, after using a free scanner, shows registry 1000 errors

    Downloaded from the Internet free scanners say I have more than 1000 errors in my registry. What can I do to fix these errors?