TopLink grid 11g: conversion of SQL queries to the filters of consistency
I would like to know how efficient the conversion of SQL queries for filters of coherence is wen search an object in the cache coherence. TopLink does something as instruction cache cache filters consistency as well? In this regard, you have number of performance?Thank you very much!
Ming-Wen
TopLink grid currently has a rudimentary filter cache that allows TopLink to only translate NamedQuery once. This allows TopLink grid to reuse the same filter on subsequent runs of this NamedQuery.
-Gordon
Tags: Fusion Middleware
Similar Questions
-
TopLink grid 11g and data consistency affinity
I am to evaluate TopLink 11g grid that fits the coherence data grid. It seems to me when TopLink routes the request of coherence, it converts primary keys of database to be the key used in cache coherence. Is it possible to customize this conversion? The reason is that we want to use the affinity of data coherence function that requires a key to consistency to implement the method to return the keys association and lead conversion does not work for us.
Thank you very much!
Hwang Ming-WenI advise to use an IdClass incorporated into your JPA entities. You can then implement the necessary logic on the IdClass.
Doug
-
TopLink grid 11g and transaction consistency
During TopLink UOW is committed, only updated cache of transactional consistency? If the customer fails in the middle of TopLink UOW is committed, he let the situation that only partial objects are updated in the cache consistency? How TopLink manages the rollback to the cache consistency?In fact I miss - speak. In all cases TopLink will write only in cache coherence once all the writing to the database took place, although some entries are directed towards consistency. In the written case is directed to the consistency that we're investigating the TransactionCache to improve Atomic nature of the writing of coherence.
If there is a failure of consistency after a base of data of TopLink writing consistency then native code will be necessary to force a reload of the entities that do not have consistent. The list of entities as part of the operation can be extracted from the UnitOfWork of the EntityManager
-Gordon
-
SQL queries for the date and year
Hi friends,
I have a named view - item_sales with 4 columns
Item code
Name of the element
Transaction_YYYYMM (Date stored in a format YYYYMM)
QTY_RECEIVED
QTY_SOLD
Sample data is
ITEM_CODE POINT NAME TRANSACTION_YYYMM QTY_RECD QTY_SOLD
TSHIRT 201307 3000 2000 AX
TSHIRT AX 500 2000 201308
TSHIRT 201309 1000 3000 AX
CX 201307 3000 2000 XLSHIRT
XLSHIRT CX 201308 3000 2500
CX 201309 3000 2500 XLSHIRT
END OF EACH MONTH I'LL RUN THIS QUERY TO FIND OUT THE DETAILS BELOW
1. TO FIND NOM_ELEMENT WISE - QTY_RECEIVED AND QTY_SOLD (FOR THE CURRENT MONTH - EXAMPLE SEP)
2. TO FIND NOM_ELEMENT WISE - QTY_RECEIVED AND QTY_SOLD (EXAMPLE EXERCISE OF JAN TO SEP)
OUTPUT FOR SEPTEMBER MONTH LOOK LIKE THIS
SEVEN MONTHS JAN TO SEP
ITEM_CODE NOM_ELEMENT QTY_RECEIVED QTY_RECEIVED QTY_SOLD QTY_SOLD
TSHIRT 1000, 3000, 6000, 5500 AX
CX 3000 2000 9000 7000 XLSHIRT
Pls advise me how to write queries for this
RDK
Hello
This is called a Pivot, and here's a way to do it:
WITH got_display_yyyymm AS
(
SELECT TO_CHAR (ADD_MONTHS (SYSDATE-1)
, "YYYYMM.
) AS YYYYMM
OF the double
)
SELECT i.item_code
i.item_name
SUM (CASE
WHEN i.transaction_yyyymm = d.yyyymm
THEN i.qty_received
END
) AS month_received
SUM (CASE
WHEN i.transaction_yyyymm = d.yyyymm
THEN i.qty_sold
END
) AS month_sold
SUM (CASE
WHEN SUBSTR (i.transaction_yyyymm, 1, 4)
= SUBSTR (d.yyyymm, 1, 4)
THEN i.qty_received
END
) AS year_received
SUM (CASE
WHEN SUBSTR (i.transaction_yyyymm, 1, 4)
= SUBSTR (d.yyyymm, 1, 4)
THEN i.qty_sold
END
) AS year_sold
Item_sales I have
CROSS JOIN got_display_yyyymm d
I.item_code GROUP, i.item_name
ORDER BY i.item_code, i.item_name
;
If you would care to post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data, then I could test it.
The subquery got_display_yyyymm digit which is the previous month; It is not to change anything from month to month. If you run the query in October 2013, then YYYYMM Gets the value '201309'. If you run it in January 2014, then YYYYMM will be '201312'.
As posted, it will work in Oracle 9.1 or higher. The SELECT... PIVOT function that was introduced in Oracle 11.1 would not help in this problem, so you do not miss anything using Oracle 10 in this case.
-
Hi all
We use an Oracle 11 g server, the request is sent to the oracle database through different ways, one directly from the server of dimensions and is another method below
- TDC customer creates a session in the api
- session of the API sends a request to the application server
- application server queries the database
Of course, I see all the sql queries in the oracle database, but what I am interested in is now what queries go directly through the server dimensions and through the API. Please tell me how I can find this information.
MACHINE, TERMINAL, PROGRAM, MODULE and CLIENT_INFO column in V$ SESSION could give you a clue.
HTH,
Lordane Iotzov
-
unnecessary SQL queries for ViewObject used in different tab
In my application, I have a table A in the first tab and table B in the second tab.
Sometimes when I work as a user with table B in the second tab, the ViewObjectA for table A is executed.
Of course this ViewObjectA execution is absolutely useless, because I work in another tab and I don't don't even see table A.
Unfortunately, the query takes a long time and it makes the application slower.
Question: why the ADF runs the query for a table that is not visible and the user accesses not?
Is it possible to prevent it?
A note on the configuration that may be linked to the problem:
The ViewObjectA has an implementation customized with debug messages (that's how I discovered the ViewObject is exectuted).
Due to the limitation of the DB, I have configured my pool ApplicationModule instances of timeout after 120 idle seconds (because the DB does not like the many connections and long-term).
I also found that after the expiry of the ApplicationModule, a new instance of ViewObjectA is created (Yes, it should according to the ViewObjectImpl API).
It seems to me that the unnecessary ViewObjectA execution happens after this new creation of instance of ViewObjectA.
Well, the execution of the query of a VO is part of the creation of a VO.
You can try to adjust it for example, you add a where clause such as 1 = clause: bindVar' and init the bindVar to 0 so that the query is performed from the user interface (see JDeveloper: obstacle to the return of the games to outline on the loading of the page of VO using the binding variable |) JDev & amp; ADF Goodies).
Timo
-
SQL queries that are stored in an array of sql pl
I wonder if it is possible to have the SQL queries stored in a table in Oracle DB? I searched in google, but it seems that I'm bad key words to find the answer.
I am trying to build sql queries in a certain place as a package or a procedure, and the logic would be completely out of the object sql queries in a table and the table to run each sql query in a loop.
The version of oracle database is 11g.
Thank you
MartineMartine wrote:
I see. I thought this would be a common practice. Thanks for your comments.Oh don't get me wrong... This is quite common.
Makes him no better good :) It is not yet the "right" way to do things in 95% of the places that he did.
-
How to find the primary key columns in the tables in MS Access using SQL queries
How to find the primary key columns in the tables in MS Access using SQL queries
Hello
This is the forum for Windows Vista programs related issues.
For better assistance, please try instead the Forums in SQL Server .
Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo
-
Dear all,
We hope that all are doing well. I need your help, I want to find all sql queries executed in the month 1 in my oracle, verification of the database database is disabled.
I tried v$ sql, but it gives only spent 15 days sql queries executed.
I'm looking for 1 month? your help will be appreciated, thanks in advance.
OS: RHEL 6.1
DB: 11.2.0.3
Kind regards.
If you use more than one log archiving then use following code for example:
Start
sys.dbms_logmnr.add_logfile (nom_fichier_journal => ' /Archivelog/1_9745_771967668.dbf',options-online sys.dbms_logmnr.new).
sys.dbms_logmnr.add_logfile (nom_fichier_journal => ' /Archivelog/1_9746_771967668.dbf',options-online sys.dbms_logmnr.addfile).
sys. DBMS_LOGMNR. Start_logmnr (options-online sys.dbms_logmnr. DICT_FROM_ONLINE_CATALOG);
end;
/
-
Hello
I am new to oracle. Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.
Thanks in advance.
6e85b3c2-5f02-40CB-A8AD-d2279f63b4be wrote:
Hello
I am new to oracle. Need some advice on how we should approach to problems of performance especially for SQL queries running slow on the database.
Thanks in advance.
Start here; http://docs.Oracle.com/CD/E11882_01/server.112/e10822/TOC.htm
Continue here: http://docs.oracle.com/cd/E11882_01/server.112/e41573/toc.htm
-
How to find the sql queries executed in one day with the sql and runtime text
Hi Experts,
Please tell me the sql query to find out the queries executed on a particular day and the runtime and the sql text of the query.
Please reply urgent.
Thanks in advance
Database instance 'A' may have run 100 SQL queries today. As for the instance of database 'B' could have exploited queries SQL 1 million today. Instance of database 'B' to 'keep' the 1 million SQL statements - in memory or on disk do you expect? Of course not. There the age or flush or invalidate memory SQL statements. He can't keep them on the disk (imagine running a completely different set of 1.2million SQL statements tomorrow and 1.3 the next day).
AWR and StatsPack can make counts the number of "n" top of the page ("n" default to 30) SQL statements which are still present in the cache of the library (not years, rinsed, invalidated) when a snapshot was taken. They can't declare "all" SQL statements.
To return to your needs. WHY do you need all the SQL statements? Or are there only certain operations specific SQL would you be interested? Could they have been treated by allowing audit (for example, UPDATE and DELETE with EXTENDED verification instructions)?
Hemant K Collette
-
Oracle 11g XE and SQL Developer
Hello:
Very new here. I don't know where to post anything. My apologies, but I'm all over the room.
I installed 11g and downloaded SQL Developer (not even sure if it should be "installed" because it's just a zip file).
In any case, on the SQL command line I get SYSTEM CONNECT, then my password. I get the following error:
ORA 12154: TNS could not resolve the connect identifier specified.
Also, the "get started" link not working anymore. Don't know what's happening, or if it is specific to my laptop. I tried to connect two days without result.
Thanks for any help.
Your headset does not work: OracleXETNSListener service started?
-
Hi guys,.
I have a question on how the oracle is posting implicit conversion in the following cases.
I have a table: table1 with two columns: a number (10), b varchar2 (10). Both are indexed unique.
If I have a SQL like this:
the implicit conversion is performed on '99' and the final SQL will be something like:select * from table1 where a = '99'
the same thing will happen with 'aaa' and I get an error. Please note that represents the column and the index will be used.select * from table1 where a = to_number ('99')
If I have a sql like:
Note that b is the varchar2 column.select * from table1 where b = 99
the implicit conversion will be done on the column and the index will not be used
THEN, forgetting for a moment that it is not OK to allow an implicit conversion, what are the rules that apply here? If the number, the conversion will be made on the value and varchar conversion will be performed on the column? What else?select * from table1 where to_number (b) = 99
Thank youhttp://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements002.htm#SQLRF51047
-
TopLink Grid: Create EntityManager fails when running on WebLogic
Hello
I am creating WebService that usus TopLink grid to access data. First of all I created simple stand-alone application with TopLink grid and all work very well. Then, I created WebService based on app created previously.
When I try to run WebService deployed on WebLogic, I got error:
"line Class ="Oracle.EclipseLink.Coherence.Integrated.config.GridCacheCustomizer"file =" GridCacheCustomizer.java "="30"method ="Customize. "
java.lang.NoSuchMethodError org.eclipse.persistence.descriptors.ClassDescriptor.setFullyMergeEntity (Z) V
It fails in the entityManagerFactory.createEntityManager () method.
If deleted the eclipse configuration file - link.xml webservice customizer statement works. Maybe for server application needed some additional configuration or initialization?
Thank you
Alex
Published by: user9360947 on March 29, 2012 06:09What is the version that you perform the deployment? The method not found was added in a later version, so it is probably there is a version mismatch where the Weblogic instance that is running and the version that you configured when running stand-alone. I think you need probalby use a version of Weblogic as 12.1.1 which comes with TopLink which includes EclipseLink 2.3.2 for this to work, or use a different version of EclipseLink which comes with the Weblogic instance that you are using. Tom described here:
http://dev.Eclipse.org/mhonarc/lists/EclipseLink-users/msg06874.htmlBest regards
Chris -
11g connects to SQL server... character display problems
Hi gurus,
DB: 11.2
OS: redhat 5.5
There is a problem during display of character with sqlplus and even worse on TOAD, SQL Developer tool.
There is a heterogeneous connection between 11g and ms sql serever. I use freedts, unixodbc and dg4odbc to connect.
using tool isql... the select statement has been well formatted... See example || USIM sales |
| Charge accrued on debt RespriseBUT when I use sqlplus some characters are broken... Please see sample
in other client tool for example, TOAD, the output is worse just see the only the first character of each line for example
COST_NAME
V e n s e t U S I M
R e s p r e s i d e c h a r g e p r o v I s I o e n s e n s u r v e r
a, c e nV
I tried the value for nls_language in french and English but do not solve the problem.
R
anyone with a clue of what is wrong or a bug?... 1 million .thanksPL do not post duplicate topics - character display problems... 11g connects to SQL server
Maybe you are looking for
-
iPad pro icon load acting strangely.
Since iOS 10.0.2 was installed when I charge my iPad Pro 9.7 "icon at the top right seems to act differently. Before the iOS update when I plugged the cable into the icon would change from the percentage text and a white bar for the battery to a gree
-
T620 WES8 Image Capture failure/Boot Loop
-t620 Quad Core -WES8 x 64 -13WWDTBM602 #SABA #DABA -BIOS: L40 v2.05 ------------------ Tried an initial capture before making changes. First capture failed quickly with a network card driver error - I've updated HPDM 4.6 SP1 and was able to continu
-
Error 80004003 download an add on Aoe Online games for windows marketplace
As in the title I have a few problems to download the add-in on civilization Greek premium Pack of "Games for windows marketplace. When I click on the download on the market, it gives me this error: code: 80004003 try to start downloading later. I tr
-
My lifecam vx-800 works, but its too dark yesterday... all the settings are default... What is the problem there?
-
When I try to log on I see a pop-up that says: this copy of Windows must be activated with Microsoft you can connect. -Enable yes/no? When I click on Yes my screen go black and that's it. Nothing happens. I have windows xp professional. For PC refu