Is ServerSession Cache invalidated when we use raw SQL thru a UnitOfWork()

Is ServerSession Cache invalidated (for the relevant objects that are mapped to any of the tables used in raw sql) when we use raw update/insert/delete SQL thru executeQuery() on UnitofWork acquired from a clientSession ?
Or we need to do this ourselves by some procedure ?
If there is any documentation about this, could you please refer me towards it.
Thanks,
Krishna

Sorry, don't know how that question was missed.
If you update data with SQL or stored procedures, then it's as if another application has updated the database and you must have a solid locking and refreshing policy in place. TopLink updates the cache after a UOW commit based on how you've manipulated the business model, not any adhoc updating SQL.
- Don

Similar Messages

  • What is native sql when i use native sql

    what is native sql & when i use native sql plz give with me example

    I imagine you mean Native Dynamic SQL, NDS. An example would be:
    EXECUTE IMMEDIATE 'select count(*) from ' || v_tablename INTO v_count;
    i.e. you construct the SQL "dynamically" as a string and then execute it.
    You would use it in situations where you could not know the precise query when building the code - e.g. as above, if you don't know which table to count the rows from until run time.

  • Printing using raw pass thru mode with PCL 5e

    I have an HP LaserJet P3015 printer on our network and have been doing some testing for a company that needs this printer to work.
    We have an application that writes using a network connection to pass thru in RAW data mode to the printer device. We use a set of print commands using the PCL 5 control character commands for CR, LF, TOP of Page etc...
    With the new printer and drivers, for some reason, we get a blank page printed after each 1 page document we send.
    This software has always worked in the past with earlier versions of printers and drivers.
    We are using Windows XP.
    We are using the LaserJet P3015 PCL 5e drivers
    Any help would be appreciated.
    PS. We already tried the postscript, universal and PCL6 drivers and they do NOT work.

    Hi,
    first of: I haven't tried anything of this myself due to lack of a XBox and/or other applicable devices.
    But this Apple article http://support.apple.com/kb/HT3924 includes the following paragraph:
    +"The Mini DisplayPort in the 27-inch iMac can receive only DisplayPort compliant video and audio signals. Converters not made by Apple may provide options to convert other electrical, video, and audio protocols to Mini DisplayPort compliant signals."+
    To me that sounds like what you want to do is indeed possible.
    But since Audio-Thru is not an OSX feature you might also have to use the freebie LineIn from RogueAmoeba http://www.rogueamoeba.com/freebies/ to get the audio signal from the MiniDisplay Port-In to the headphone out.
    Hope it helps
    Stefan

  • Why such error information when I used sqlite3 SQL API?

    Hi
    When I programming with sqlite3 SQL API, some error information about lock occurred:
    DB_LOCK->lock_put: Lock is no longer valid
    Following error log also occurred sometimes:
    “Locker still has locks”
    I have called the function sqlite3_threadsafe to make sure the library is threadsafe.
    Is there any way to avoid the above error logs?
    The information of my test bed is as follows:
    CentOS6
    $ uname -a
    Linux localhost.localdomain 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
    Berkeley DB version: db-5.2.28
    When I build BDB, I using the following options:
    ../dist/configure enable-sql_compat enable-test --with-tcl=/usr/lib64
    Can you help me with that please?
    Thanks!

    This error was already reported in another Re: Berkeley DB lost data sometimes when I ran the example ex_sql_multi_thread. Please do not post the same issue multiple times and follow the issue in the original thread, which is currently handled by one of our engineers.
    Thanks,
    Andrei

  • Use wcf-sql to call procedure

    when i use wcf-sql to call store procedure, i got problem:
    the store procedure like this:
    @variable_1 varchar(300);
    @variable_2 varchar(300);
    @variable_3 int;
    if LEN(@variable_1)<=1
    begin
         set @variable_2=0;
    end
    else
        set @variable_2=substring(@variable_1,1,LEN(@variable_1)-1); 
        set @variable_3= checksum(@variable_2);
    when the input parameter @variable_1 is empty value, it will raise two error: 1: invalid length parameter passed to the SUBSTRING function. 2: function "checksum" request at least 1 argument(s).
     it's so strange! how can i avoid this issue?

    Hi Jacky,
    Substring function can have length as positive integer only.
    SUBSTRING ( expression ,start , length )
    Length is a positive integer or bigint expression that specifies how many characters of the
    expression will be returned. If
    length is negative, an error is generated and the statement is terminated. If the sum of
    start and
    length is greater than the number of characters in
    expression, the whole value expression beginning at
    start is returned.
    Error (invalid length parameter passed to the SUBSTRING function) is result of this.
    i.e. when variable_1 = 0, length will return a negative integer.
    Error (function "checksum" request at least 1 argument(s)) is because the variable_2 is not assigned any value due to Error 1.
    Rachit
           thanks Rachit, but if @variable_1 is empty value,it should not execute
    "else" part. this is my question. how can it happen?

  • Error while calling java using pl/sql

    hi..
    i would like to load and call simple java into oracle database. this is my simple java code.
    public class SimpleJava {
    public void main(String[] args) {
    System.out.println("Here we are");
    then, i created .class file and ready to be loaded into oracle database using loadjava utility. i already loaded it successfully into a database. but, when i use pl/sql to call it in SQl*Plus, i got this error.... can anyone help me to solve this problem?
    SQL> create or replace procedure call_simplejava
    2 as language java
    3 name 'SimpleJava.showMessage()';
    4 /
    Procedure created.
    SQL> set serveroutput on;
    SQL> call dbms_java.set_output(50);
    Call completed.
    SQL> execute call_simplejava;
    java.lang.NoSuchMethodException: No applicable method found
    at
    oracle.aurora.util.JRIExtensions.getMaximallySpecificMethod(JRIExtensions.java:4
    33)
    at
    oracle.aurora.util.JRIExtensions.getMaximallySpecificMethod(JRIExtensions.java:4
    75)
    BEGIN call_simplejava; END;
    ERROR at line 1:
    ORA-29531: no method showMessage in class SimpleJava
    ORA-06512: at "GISDB.CALL_SIMPLEJAVA", line 1
    ORA-06512: at line 1

    Hi,
    public class SimpleJava {
    public void main(String[] args) {
    System.out.println("Here we are");
    then, i created .class file and ready to be loaded into oracle database using loadjava utility. i already loaded it successfully into a database. but, when i use pl/sql to call it in SQl*Plus, i got this error.... can anyone help me to solve this problem?Did you run the SimpleJava in your ED or on command prompt??
    I created the same class file but when I said
    java SimpleJava
    It threw the following error
    java.lang.NoSuchMethodException: No applicable method found
    So modify your code
    as
    public class SimpleJava {
       public static void main(String[] args) {
            System.out.println("Here we are");
       }Twinkle

  • Accessing MySQL InnoDB tables via JDBC using Oracle SQL Developer

    I had posted a problem in the Oracle SQL Developer forum with how that application (v1.1) accesses MySQL InnoDB tables and someone replied that the "[data migration] team created the integration with MySQL", so I am posting here in hopes of learning more about the problem.
    Here's a summary:
    When I use Oracle SQL Developer to query MySQL InnoDB tables, I need to issue a "commit" before I do each query to ensure that I am getting current results. Otherwise, it appears to be using a snapshot as-of the last commit. Is this a problem with SQL Developer, or a JDBC configuration, or MySQL problem even?
    The full details are here:
    Re: MySQL InnoDB tables

    Hi,
    I've posted a response to your original thread.
    Regards,
    Dermot.

  • Are there any risks to use native sql in ABAP to access external DB

    here is a requirement to use native sql in abap program to access external DB to load some data into sap. Are there any risks and effects which SAP not recommend ?
    Can anybody show some official document to me because I want to know some risks and dangerous to report to my manager..thanks very much.

    hi Anversha s 
    thank you for your reply
    I means what's the risk when to use native sql to access external DB..
    can you show me some examples about open sql which is used to access external DB...
    Now I am investigating the technique about the connection
    between SAP (by abap program) and external DB...the supporter suggestion is to use native sql to access external DBs.but my manager is afraid of the risks when to use native sql,So I have to report the effective document (example: SAP official document) to explain  to my manager.
    thanks very much

  • Huge memory leaks in using PL/SQL tables and collections

    I have faced a very interesting problem recently.
    I use PL/SQL tables ( Type TTab is table of ... index by binary_integer; ) and collections ( Type TTab is table of ...; ) in my packages very widely. And have noticed avery strange thing Oracle does. It seems to me that there are memory leaks in PGA when I use PL/SQL tables or collections. Let me a little example.
    CREATE OR REPLACE PACKAGE rds_mdt_test IS
    TYPE TNumberList IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    PROCEDURE test_plsql_table(cnt INTEGER);
    END rds_mdt_test;
    CREATE OR REPLACE PACKAGE BODY rds_mdt_test IS
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    END;
    END rds_mdt_test;
    I run the following test code:
    BEGIN
    rds_mdt_test.test_plsql_table (1000000);
    END;
    and see that my session uses about 40M in PGA.
    If I repeat this example in the same session creating the PL/SQL table of smaller size, for instance:
    BEGIN
    rds_mdt_test.test_plsql_table (1);
    END;
    I see again that the size of used memory in PGA by my session was not decreased and still be the same.
    The same result I get if I use not PL/SQL tables, but collections or varrays.
    I have tried some techniques to make Oracle to free the memory, for instance to rewrite my procedure in the following ways:
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    x.DELETE;
    END;
    or
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    FOR indx in 1 .. cnt LOOP
    x.DELETE(indx);
    END LOOP;
    END;
    or
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    x TNumberList;
    empty TNumberList;
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    x(indx) := indx;
    END LOOP;
    x := empty;
    END;
    and so on, but result was the same.
    This is a huge problem for me as I have to manipulate collections and PL/SQL tables of very big size (from dozens of thousand of rows to millions or rows) and just a few sessions running my procedure may cause server's fall due to memory lack.
    I can not understand what Oracle reseveres such much memory for (I use local variables) -- is it a bug or a feature?
    I will be appreciated for any help.
    I use Oracle9.2.0.1.0 server under Windows2000.
    Thank you in advance.
    Dmitriy.

    Thank you, William!
    Your advice about using DBMS_SESSION.FREE_UNUSED_USER_MEMORY was very useful. Indeed it is the tool I was looking for.
    Now I write my code like this
    declare
    type TTab is table of ... index binary_integer;
    res TTab;
    empty_tab TTab;
    begin
    res(1) := ...;
    res := empty_tab;
    DBMS_SESSION.FREE_UNUSED_USER_MEMORY;
    end;
    I use construction "res := empty_tab;" to mark all memory allocated to PL/SQL table as unused according to Tom Kyte's advices. And I could live a hapy life if everything were so easy. Unfortunately, some tests I have done showed that there are some troubles in cleaning complex nested PL/SQL tables indexed by VARCHAR2 which I use in my current project.
    Let me another example.
    CREATE OR REPLACE PACKAGE rds_mdt_test IS
    TYPE TTab0 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
    TYPE TRec1 IS RECORD(
    NAME VARCHAR2(4000),
    rows TTab0);
    TYPE TTab1 IS TABLE OF TRec1 INDEX BY BINARY_INTEGER;
    TYPE TRec2 IS RECORD(
    NAME VARCHAR2(4000),
    rows TTab1);
    TYPE TTab2 IS TABLE OF TRec2 INDEX BY BINARY_INTEGER;
    TYPE TStrTab IS TABLE OF NUMBER INDEX BY VARCHAR2(256);
    PROCEDURE test_plsql_table(cnt INTEGER);
    PROCEDURE test_str_tab(cnt INTEGER);
    x TTab2;
    empty_tab2 TTab2;
    empty_tab1 TTab1;
    empty_tab0 TTab0;
    str_tab TStrTab;
    empty_str_tab TStrTab;
    END rds_mdt_test;
    CREATE OR REPLACE PACKAGE BODY rds_mdt_test IS
    PROCEDURE test_plsql_table(cnt INTEGER) IS
    BEGIN
    FOR indx1 IN 1 .. cnt LOOP
    FOR indx2 IN 1 .. cnt LOOP
    FOR indx3 IN 1 .. cnt LOOP
    x(indx1) .rows(indx2) .rows(indx3) := indx1;
    END LOOP;
    END LOOP;
    END LOOP;
    x := empty_tab2;
    dbms_session.free_unused_user_memory;
    END;
    PROCEDURE test_str_tab(cnt INTEGER) IS
    BEGIN
    FOR indx IN 1 .. cnt LOOP
    str_tab(indx) := indx;
    END LOOP;
    str_tab := empty_str_tab;
    dbms_session.free_unused_user_memory;
    END;
    END rds_mdt_test;
    1. Running the script
    BEGIN
    rds_mdt_test.test_plsql_table ( 100 );
    END;
    I see that usage of PGA memory in my session is close to zero. So, I can judge that nested PL/SQL table indexed by BINARY_INTEGER and the memory allocated to it were cleaned successfully.
    2. Running the script
    BEGIN
    rds_mdt_test.test_str_tab ( 1000000 );
    END;
    I can see that plain PL/SQL table indexed by VARCHAR2 and memory allocated to it were cleaned also.
    3. Changing the package's type
    TYPE TTab2 IS TABLE OF TRec2 INDEX BY VARCHAR2(256);
    and running the script
    BEGIN
    rds_mdt_test.test_plsql_table ( 100 );
    END;
    I see that my session uses about 62M in PGA. If I run this script twice, the memory usage is doubled and so on.
    The same result I get if I rewrite not highest, but middle PL/SQL type:
    TYPE TTab1 IS TABLE OF TRec1 INDEX BY VARCHAR2(256);
    And only if I change the third, most nested type:
    TYPE TTab0 IS TABLE OF NUMBER INDEX BY VARCHAR2(256);
    I get the desired result -- all memory was returned to OS.
    So, as far as I can judge, in some cases Oracle does not clean complex PL/SQL tables indexed by VARCHAR2.
    Is it true or not? Perhaps there are some features in using such way indexed tables?

  • Cache Invalidation using Invalidation Rule -not working

    Hi,
    I am caching a JSP using servlet caching by specifying it in the cachespec.xml. I am setting a dependency id for the cache entry and have also set an invalidation rule saying if the dependency id comes as a parameter for "xyz" then invalidate the cache. The jsp is getting cached, and the value that I specify as dependency id is also appearing. But when i try to invalidate it by passing the parameter say "http://localhost/wps/myportal/dynacache?xyz=1234", the cache doesnt get invalidated.
    Please suggest as what is the issue with this approach? Why is the cache invalidation not happening as per the rule set? Is there any other approach to invalidate it other than TTL? I understand invalidation-generator can only be used for web-service client cache.
    Please reply ASAP..
    This is my cache entry
    <cache>
    <cache-entry>
    <class>servlet</class>
    <name>/_caching/jsp/html/CachingPortletView.jsp</name>
    <cache-id>
    <component id="Cached" type="attribute">
    <required>true</required>
    </component>
    <component id="locale" type="locale">
    <required>false</required>
    </component>
    <component id="" ignore-value="true" type="pathinfo">
    <required>false</required>
    </component>
    </cache-id>
    <dependency-id>test
    <component id="Cached" type="attribute">
    <required>true</required>
    </component>
    </dependency-id>
    <invalidation>test
    <component id="Cached" type="parameter">
    <required>true</required>
    </component>
    </invalidation>
    </cache-entry>
    </cache>
    Regards,
    Sariba

    This sounds like an application server specific configuration, which is off-topic here. Try a forum devoted to your application server.

  • I changed my user name and password in Itunes, when I use my phone or Ipad, it askes for the password for the old username password it says it's invalid. I try to delete the Icloud account but it won't let me- Help

    I changed my username and Password in Itunes on my computer. Now when I use my Iphone, Ipad, it asks for the password for the old username. when I type the password for that old user name, it says it's invalid. I figured I needed to delete the old Icloud account from my Iphone and Ipad, but they ask for the old password for the Old username. I type it in and it says invalid. As of now, I can't use Icloud or Itunes on either the Ipad or Iphone.... Help!
    <Edited by Host>

    If the old ID ("username") is an earlier version of your current ID, temporarily recreate the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Same thing is happening to me. Adobe has not responded to anyone about this error. It appears that Abobe XI is not compatible with IE 11.  I do not get this error when I use Chrome or Firefox. Only IE 11 does this. I have tried clearing cache and cookies.

    Same thing is happening to me. Adobe has not responded to anyone about this error. It appears that Abobe XI is not compatible with IE 11.  I do not get this error when I use Chrome or Firefox. Only IE 11 does this. I have tried clearing cache and cookies. I even uninstalled and re-installed IE 11. It is still doing it.  I am surprized that a company like Adobe would just ignore our posts and leave us hanging this this.
    Error message is FAILED TO GET DISPATCH FROM IBRWSR2.  Then when you click on it the next error message says:  PHTML IS NULL. You have to click this error message twice and then the PDF finally loads. Happened every time
    Does anyone have a solution since Adobe will not respond?
    As a last resort I will try uninstalling the Adobe Reader XI and install Adobe Reader 10 instead. It seems to work ok. But when I try to install version 10 the Adobe site tries to install XI.  Any ideas?
    JimP08758

    It worked just fine for me.
    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.

  • When I use the command "Place in photoshop" CC from Bridge CC, it skips the Camera Raw Dialog box

    I am having an issue when I use the "Place in Photoshop" command from within Bridge CC, it is skipping the Camera Raw Dialog box and not behaving like a normal smart object. This has been my workflow for years and suddenly it's not working in CC. Anyone have any advice? Thanks!

    As far as i can tell, if you use Place>In Photoshop from Bridge with a camera raw file and don't have any other documents open, it skips the camera raw dialog, but does place (open as a smart object)
    and then you can double click on the smart object icon on the thumbnail in the l;ayers panel to open camera raw.
    If you already have a document open then Place>In Photoshop using a camera raw file opens the camera raw dialog before placing the photo.
    Also check the photoshop>Preferences>General and verify you have Place or Drag Raster Images as Smart Objects checked.
    The above behaviour seems to be the same in photoshop cc as past versions of photoshop, at least on the windows versions.

  • I just bought iWorks Serial Number Key over the internet. When I use the key, iWorks tells me the key is invalid!! Please help. (I bought this iWorks from someone in Singapore. I am using it in Malaysia)

    I just bought iWorks Serial Number Key over the internet. When I use the key, iWorks keep telling me the key is invalid!! Please help. (I bought this iWorks from someone in Singapore. I am using it in Malaysia.). Thanks

    Downloaded the Trial version. It still says the serial number key is invalid. On the iWork page where I am suppose to enter the serial number key, the "Go Back" button is always BOLD, but the "Continue" button remains GREY all the time. The "Continue" button remains grey even after I have completed the key entry. I have to type the "Return" key on my keyboard to force enter the key. The message I get is still "Invalid key".
    I have called Apple. The first person helped by asking me to delete certain items in some Folders and it still did not work. I was then connected to a senior person, but I heard over the recording that there were 15 persons waiting on the line. I had to end the call because the wait will take too long.

  • I have a Lumix G2 camera with two lenses, when I take RAw pics I Convert them using the Adobe RAW co

    I have a Lumix G2 camera with two lenses, when I take RAw pics I Convert them using the Adobe RAW converter. Now I have bought a Lumix 25 macro lens and it will not convert these pics into a readable file

    That's strange.  The lens shouldn't have made any difference.  Does the camera do JPG OK with that lens fitted?  Did the samera come with software to convert RAW files, and if so, does it work on the problem files?
    When I checked your camera against this list, I see it has two entries for the required version, so I suspect that the lens electronics require a slightly later version of ACR.  If I am right, you'll have Camera RAW 5.7 and you need 6.1  So what version of Photoshop do you have?  You need CS5 to support ACR 5.#
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    If you have CS4, then you'll need to install the latest DNG conversion software, which is free.  You'll then be able to open the files in Photoshop CS4

Maybe you are looking for

  • How to get iterator to set the row key programmatically after a refresh

    I have a master detail page as master form with navigation and a detail table. When i create a new master record in a specific form i want to return to the master detail after the cache is refreshed and set the currency (selected row) to the last row

  • I am not able to install adobe presenter 10 in my MS powerpoint 2013

    I am trying to install Presenter 10 and it is asking me to insert a disk even though I downloaded the installation file.  I am trying to install Presenter 10 on Windows 8, PowerPoint 2013 and have chosen the 32-bit option to install. I downloaded it

  • Connect by Prior - ORA-00600: internal error code, arguments: [kkqcbydrv:1

    Hi, We are writing some complex query using Connect by Prior in it. When we execute this query on same version of database as that of our client, then the query is executing. But when we execute this query at client's side then it raises error - ORA-

  • Problem moving files

    I'm pretty experienced using this product so yes I do know how to move files. Now I'm not sure if this is an OS (Windows 7 Home Premium) issue or a LR3.5 problem  (Or the one thing you never rule out, maybe I did something dumb). In any case I decide

  • BADI n-step SC approval - Approval Index and Data Change Problems

    Dear forum gurus, We are implementing SRM 5.0 (SRM SERVER 5.5 SP 9) in Extended classic. I am developing the BADI's to use the n-step SC approval workflow WS14000133. Our approval process is as follows: 1. Cost Centre approver (based on CC with the l