DDL Running on DB regardless of setting

Hi,
I'm trying to setup my connection so that it ONLY generates the DDl script but doesnt run it. My code is:
          Map propertiesMap = new HashMap();
          propertiesMap.put(EntityManagerFactoryProvider.DDL_GENERATION, EntityManagerFactoryProvider.CREATE_ONLY);
          propertiesMap.put(EntityManagerFactoryProvider.CREATE_JDBC_DDL_FILE, "create.sql");
          propertiesMap.put(EntityManagerFactoryProvider.DDL_GENERATION_MODE, EntityManagerFactoryProvider.DDL_SQL_SCRIPT_GENERATION);
          EntityManagerFactory emf = Persistence.createEntityManagerFactory("perkplacedb",propertiesMap);
          EntityManager em = emf.createEntityManager();
          em.close();
          emf.close();
However it still is running on the DB.. any ideas?

This seems odd, but you need to also set the property JAVASE_DB_INTERACTION to false.
<p>
propertiesMap.put(EntityManagerFactoryProvider.JAVASE_DB_INTERACTION, "false");
<p>---
<br>James Sutherland
<br>Oracle TopLink, EclipseLink
<br>Wiki: Java Persistence, EclipseLink

Similar Messages

  • I keep getting the following error message when I try to update my itunes, "There is a problem with this windows installer package. Aprogram run as part of the set up did not finish as expected.  Contact your support personnel or package vendor."

    I keep getting the following error message when I try to update my itunes, "There is a problem with this windows installer package. Aprogram run as part of the set up did not finish as expected.  Contact your support personnel or package vendor."

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

  • When attempt to download 10.5, receive message: "...problem with this widows installer package. a program run as part of the set up did not finish as expected. ..." -- what to do?

    I have attempted to upgrade my iPad which is necessar to downloan an app I want (My Radar).  The iTunes on my computer will not process the upgrade of 10.5 without message:  "There is a problem with this Windows Installer Package. A program run as part of the set up did not finish as expected. Contract your support personnel or packae vendor."  ..... Little old lady needs help, my iTunes "appears to be 10.5 on my PC; however, will not upgrade my iPad.  I have BitDefender as the "protector" on my PC if that is the issue.

    Go to support.microsoft.com/fixit
    In section 2 click on: Install or upgrade software or hardware
    Then click on the title in section 3: Fix problems with programs that cannot be installed or uninstall
    This link may get you there:  http://support.microsoft.com/mats/Program_Install_and_Uninstall/
    Let it run and then try to download it again

  • How to schedule a job to run twice within a request set?

    How to schedule a job to run twice within a request set?

    Create one more stage for the same concurrent program.
    Thanks
    Nagamohan

  • I have 1Mac computer running Lion. Can I set up 'find my iPhone' and 'find my iPad' if both those devices use different Apple ID's than the Mac does? As in can I set up 'find device' for my husband's iPhone and my daughters iPad?

    I have 1 Mac computer running Lion. Can I set up 'find my iPhone' and 'find my iPad' if both of these devices use different Apple ID's than the Mac does? As in, can I set up 'find my "device"' for my husband's iPhone and my daughters iPad?

    Welcome to the Apple Community.
    No, but you can log into any of their accounts on your computer at iCloud.com and see their devices.

  • RMAN-10006: error running SQL statement: alter session set remote_dependenc

    Backups are failing with following error
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-12001: could not open channel default
    RMAN-10008: could not create channel context
    RMAN-10002: ORACLE error: ORA-00096: invalid value SIGNATURE for parameter remote_dependencies_mode, must be from among MANUAL, AUTO
    RMAN-10006: error running SQL statement: alter session set remote_dependencies_mode = signature
    Not able to change to signature
    SQL> alter session set remote_dependencies_mode=signature;
    ERROR:
    ORA-00096: invalid value SIGNATURE for parameter remote_dependencies_mode, must
    be from among MANUAL, AUTO
    I dont see MANUAL or AUTO as valid value for this parameter (http://download.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1175.htm#1023124) DB version is 9.2.0
    Parameter type
    String
    Syntax
    REMOTE_DEPENDENCIES_MODE = {TIMESTAMP | SIGNATURE}
    Default value
    TIMESTAMP
    Parameter class
    Dynamic: ALTER SESSION, ALTER SYSTEM
    =======================================
    I believe it could be because of following bug
    "A PRE-PATCHED ORACLE IMAGE CAN BE INSTALLED IN MEMORY "
    Refer: "https://metalink2.oracle.com/metalink/plsql/f?p=130:15:1613505143885559758::::p15_database_id,p15_docid,p15_show_header,p15_show_help,p15_black_frame,p15_font:BUG,4610411,1,1,1,helvetica"
    I appreciate your effort in fixing this issue.
    Edited by: user10610722 on Nov 25, 2008 4:37 PM

    Hi:
    It seems when you are starting RMAN it's executing some commands (one 'ALTER SESSION...'. It's seems to be a batch which has a bad value for SORT_AREA_SIZE. Find it and modify to a proper value as message shows. If you can't find start RMAN by calling directly the executable ($ORACLE_HOME/bin/rman or %ORACLE_HOME%/bin/rman.exe).

  • Sound In Holster regardless of Setting

    I just received my Tour last Thursday. I am satisfied with one exception. When the ringtone volume is on it sounds in holster regardless of setting??? Anyone else experience this problem and if so can anyone suggest a fix. Thanks.

    I am having the exact same problem. I have selected no sound when in holster and am using the holster that came with the device but it makes no difference and it is very annoying, especially when you are used to having it silenced when in the holster. I also find it very aggravating that i you cannot view the settings for the various profiles. They all show the same no matter what mode you are in when you go into the edit mode. In other words, if I am in loud and select set ring tones/alerts and make revisions, then changed to the medium mode and go back into the set ringtones/alerts, it shows the same settings as when I was in loud. The same goes for vibrate and all of the others. What am I missing? This is a great phone except for these two issues. Can someone help???

  • When I try to launch terminal, i get an error "You are not authorized to run this applicationThe administrator has set your shell to an illegal value."

    When I try to launch terminal, i get an error "You are not authorized to run this applicationThe administrator has set your shell to an illegal value."

    If you'd asked a question in your original post it might have solicited more pertinent responses. As it is, you were stating a fact. No one knew whether you considered that fact a problem, or what you were hoping to gain by doing so.
    The simple addition of 'can anyone help me fix this so I can run Terminal' would have counted for a lot.
    As it is, your solution is likely to require the Terminal, so you're going to need to fix that one way or another. The simplest would be to create a new admin account (System Preferences -> Users & Groups) then log in using that account.
    Then try and launch the terminal. If that works the problem is specific to your original account and can likely be fixed via some command-line tweaking. I'd start with:
    dscl . read /Users/<username>
    (where <username> is the short name of the account having a problem). This will show the records in the directory data for your account, one of which will be UserShell. Chances are that value is invalid, or missing, and can be corrected via:
    sudo dscl . -change /Users/<username> UserShell <currentValue> /bin/bash
    (where <currentValue) is the current setting for UserShell) which will change the user's shell to /bin/bash (the default).
    Of course, you might already know this and already tried, but since you didn't say so in your original post it's worth checking.

  • I get run time error in step Set Report in reportgen_xml sequence

    I get run time error in step "Set Report" in reportgen_xml.seq. The error code is "Out of memory".
    I don't know what to do.
    I use BatchModel, I have 6 batch loops. The problem appears on the 3d loop. I have NI 3.5.
    Help me!!!!!!
    I send attachment (screen of error).
    Attachments:
    problem.jpg ‏106 KB

    Hi Terry, it happened again :-(
    Actually I see that the problem appeares in the same subsequence of my sequence. In that  subsequence I have approximately 25 numeric steps, 6 of them are on skip now.
    The problem appeares suddenly after many batch loops.  I have the message "Error, Parameter new value: Out of memory. [Error code -17000, out of memory].
    After that on next loop I see it runs and writes reports for others subsequences and steps, but on the "problem subsequence" again I get message "Out of memory"...
    At the one of the problem loops I saw other message "An error occured calling 'Process One Result' in ITSO FlyReportGen of TestStand on-the-Fly-Report-Generator. Out of memory. Source: TSOTFRG  [Error Code: -17000, Out of memory].
    I use "Discard Results or Disable Results " enable option in the ModelOptions. But without success. Is this a problem of TestStand or may be is this the special problem of my subsequence or any step in that subsequence?

  • Running a java program a set number of times

    This is a general question. Is it possible to make a java program run only 5 times for the sake of arguement.
    Basically I want to write a program that will give the user some flexibility when it will actually run another Java program, but I only want them to be able to say "not now' for a set number of times. When the last time comes the other program will launch. I was initially thinking of the Do Whilw loop, but this needs to work when the program is restarted.
    Program starts, it has 5 times it will run before it does something else(doesn't really matter now I think). User takes option "Not Now" and the program ends, but warns the user this will run 4 more times before you will need to do something.
    This process will repeat until the user takes the option "Ok install now" or the time limit expires and the install occurs anyway. Can someone point me in the right direction.

    ok I see so it's like one those programs that you download for free on the internet and they give you a set amount times to use it before you have to pay for it. but in this case when the number of times you use it equals 5 (or when the user clicks ok) a different java app will open automatically.
    My first thought would be to Write a Serialized object to disk using objectOutputStream that stores the number of times the application has been opened. and each time the program runs it checks for the serialized object and then you can do something like what I posted before. of course if were worried about security the user could always look for the object and erase it, if so then I guess we would have to come up with another plan of attack
    Hope this helps

  • Two Xserves running 10.5 Server and setting up DNS...

    Hello.
    I have two Xserves (a G5 and a new Intel), both with fresh installs of 10.5 Server on them.
    Xserve #1 not going to be hosting any external services (FTP, web, email) and only housing internal, mission critical & confidential data (the server is set up with a mirror RAID on the OS drive as well as mirror RAID on the storage drives + nightly tape backups for offsite storage). Right now there are no plans for enabling iCal on this server as we're trying to keep the server as basic as possible (as we can afford zero downtime on this server), but if the initial setup of 10.5 requires configuration at first run to allow this type of thing, I'd like to deal with it now so as to keep my options open (as I know iCal on 10.5 requires Open Directory enabled).
    Xserve #2 is going to host FTP (for external clients) and internal file sharing for the design/production department (basically, for transferring files back and fourth between departments, so no data via this share will be "critical" as it's only temporarily on the server and will always exist in other locations). Even though this server will not host "critical" data, it will share the same backup/RAID scheme as Xserve #1.
    So, I'm curious as to how I set up DNS in this situation (so we can associate a domain name to our static IP address). We already have our main domain setup via 3rd-party hosting service (for web & email as we do not want to bring these services in-house), but we're purchasing a second domain that will be associated with company (via a static IP, so we can give a domain name instead of IP address for people needing to connect to the FTP server, make it easier for employees to remember the address for remote connections, etc.).
    Because Xserve #2 is going to be hosting FTP, would it make sense to setup DNS on this server and not set it up on Xserve #1? Also, and this could just be me being paranoid, but because Xserve #1 will be housing "critical & confidential" data I want to eliminate as much contact with the outside world as possible with this server, so this is another reason I feel Xserve #2 should have DNS running instead.
    Oh, and not sure if this makes any difference, but between the WAN and the LAN is a SonicWALL firewall and currently it deal with port forwarding, etc. depending on what services are being requested from the WAN (ie. remote machine connections, FileMaker remote connections, etc.).
    Any advice would be appreciated!
    Regards,
    Kristin.

    There's a couple of things in your post I don't understand:
    the server is set up with a mirror RAID on the OS drive as well as mirror RAID on the storage drives
    How are you doing this? Both XServes support only three internal drives and two mirrors require 4 drives. Where does the fourth drive come into play?
    I'm curious as to how I set up DNS in this situation
    There are numerous ways of doing this, but with a single static IP address your best bet is to leave DNS where it is - managed by your hosting provider. Just add a record in the domain zone (e.g. ftp.yourdomain.com) that has the IP address of the public interface your SonicWall firewall. You don't need a separate domain for this. You also don't need to setup internal DNS for this (although you may need internal DNS if you're running Open Directory.
    Because Xserve #2 is going to be hosting FTP, would it make sense to setup DNS on this server and not set it up on Xserve #1?
    Assuming you're referring to setting up a DNS server - use them BOTH. Make one of the servers the primary server (I'd pick the internal-only server for this) and set the other server to be a slave (so it copies all the zone data from the primary server). That way you have a replica of the data to provide additional resilience.

  • Error while Running "Tax Credit Upload" Request Set in Payroll

    Hi Friends,
    Firstly, wishing you all a happy New year.
    I am having an issue with a process, we have received a file from Irish Revenue which is a file with .tfa extension having the Tax details.
    While uploading the file using the "Tax Credit Upload" Request Set, the process spawns 2 more processes and then errors out with the following message in the Log file
    SQL*Loader-500: Unable to open file (99809810AMD.tfa)
    IBM AIX RISC System/6000 Error: 2: No such file or directory.
    If you could help me as to what exactly we are missing in this process.
    With Warm Regards
    Sachin Shirke

    Dear All,
    Due to some changes in Income tax in  the previous records (The 2 employees  mentioned below were inPA 4000 during 01.04.2011 to 30.09.2011) and now they are in PA 2600 pertaining to Pay Roll Area 24 (Pondy API & Pilot Plant)
    Pay roll run processed for11th Period ( February 2012) and the error appears as follows
    u2022     2 employees found error  Assignment to feature 40EPF did not take place appears.  
    u2022     PF arrear amount showing negative value
    Awaiting for your valuable replies
    Regards,
    Pinky

  • Vertical alignment is middle regardless of setting

    Running LiveCycle Designer ES 8.2 and Adobe Acrobat Pro 9 on Windows 7.
    I'm designing a form with many text fields.  Most of them work great.  However, I several text fields--some standalone, some table cells--where the vertical alignment of the user-entered value always shows as middle. 
    For example, this text field has the vertical alignment set to bottom, using the paragraph pallette:
    This is the same field with the alignment set to top:
    And this is the same field again, with the alignment set to middle:
    You will notice that they all look the same--always middle.  I'm able to set the caption alignment fine, and I'm aware of the way to distinguish between adjusting the caption and value properties in the paragraph pallette. 
    I can't determine any pattern as to why some of my text fields align fine according to the settings I specify, and some of them are always, always middle-aligned. 
    Are there any other settings or conditions which may be overriding my alignment settings for these specific fields? 
    It first started happening with table cells, so I assumed some table setting was causing the problem (although I never found it). Once standalone text fields started doing it too, though, I was extra stumped. 
    I am able to adjust all the horitzonal alignment settings fine.  I have tried deleting the offending cells and starting from scratch, but it hasn't helped.
    Any suggestions or help would be appreciated!
    Thanks,
    Marybeth

    This seems odd, but you need to also set the property JAVASE_DB_INTERACTION to false.
    <p>
    propertiesMap.put(EntityManagerFactoryProvider.JAVASE_DB_INTERACTION, "false");
    <p>---
    <br>James Sutherland
    <br>Oracle TopLink, EclipseLink
    <br>Wiki: Java Persistence, EclipseLink

  • Need help - can't run a report cause value set not found

    APP-FND-00738: error while loading value SET
    Posted: Apr 12, 2007 11:16 PM                     Reply
    Hi, I'm trying to run a report (in the parameters form) - i'm getting this error:
    APP-FND-00738: error loading value set SETUP_DESCR_VSETS.
    APP-FND-01564: error ORACLE 1403 in FDFAVS.
    Reason: Fail in program FDFAVS with reason ORA-01403: no data found.
    Executed SQL instruction from file &ERRFILE.
    Can you advice - which tool I can use to determine which value set didn't load.
    Maybe logs or log tables???

    I didnt get your problem exactly.
    Plz mention the steps what you are doing and where the error is coming.
    So that we can see..
    --Basava.S                                                                                                                                                                                                                                                                                           

  • Backlit keyboard keeps shutting off after 1 min. regardless of setting?

    Just as the title says, for some reason the backlit keys keep dimming if I do not use them for about a minute. I went in to the settings and I am stuck between the option of ONE minute, or FIVE minutes. I wish I could set it to like three minutes but there is not the option. So I have it set to five minutes. However, the keyboard turns off if I do not use it for only one minute. I also fooled with the other settings like the display backlight timer, etc and even after lengthening them, the keys still do not stay on!
    So is there anything I can do to fix this or is it supposed to be this way or something? I thought with the option, i'd be in control, but I'm not.
    Any ideas?
    -Scott

    The way I look at it, either I want/need the keyboard lighting on or I don't. If I'm not using the KB lighting, I don't have Lab Tick running and there is NO icon in the menu bar. Now if I'm in a darker environment and feel I need KB lighting, I turn Lab Tick on and can adjust the brightness to the EXACT level I prefer. i.e., I don't have to rely some temperamental Mickey Mouse light sensor. As far as I'm concerned, that KB light sensor is just a novelty that only works when it wants to, as you are experiencing.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Macsimum News Associate Editor  Creator of 'Mac611 - Mobile Mac Support'

Maybe you are looking for

  • Can you transfer apps between accounts?

    the title says the question

  • Dynamic lenght in report heading

    Hi experts, I need to pass dynamic length in report heading. i.e.., REPORT zrep LINE-SIZE dyn_len NO STANDARD PAGE HEADING. So that my report output width will be in different length based on value dyn_len. Any solution or alternative in simple list

  • Connecting iPhone to epson printer

    I'm trying to connect to an epson workforce printer using my iPhone via wifi. When I try to print an email says no printers found. Downloaded an epson icon named epson printer finder

  • Buddies with multiple accounts on iChat/Messages

    Ok, this seems like it should be an easy one, but I can't seem to figure it out. There are a few buddies that have two or three accounts. For instance, my sister has a gChat and AIM account. iChat/Messages groups both accounts into one (which is a re

  • Implementing interface using Oracle Fusion

    Hey All, my company is responding to a tender but one of the things it specifies is that if any middleware is required it should be implemented using Oracle Fusion. Up until this point I'd never even heard of Oracle Fusion but am trying to get up to