Oracle 9i query processing
Oracle 9.2.0.4.0
Hi,
Does oracle9i employ "Lazy Evaluation" in query processing?
Thanks
JN
Lazy Evaluation applies in a number of cases, as does XPATH re-write. Both require structured (Schema based) XML documents. Can you provide more details about the queries you are interested in.
Similar Messages
-
How to find query processing time?
im using Oracle Express Edition
i want to find the processing time of a query?,
anyone please specify briefly how to find the query processing time
can i get the processing time of a query by using Express edition or should i install Enterprise Edition.
with regards,
ravikanth.This link will help
http://forums.oracle.com/forums/thread.jspa?threadID=2210335&tstart=0 -
SAPINST failed step "Install Oracle Database (post processing)"
i will install ep6.0 with oracle database 9.2.0.4 on sun solaris.
the SAPINST failed at the step "Install Oracle Database (post processing) with follow error.
the oui - installer (runinstaller) finished sucessfully.
ERROR 2004-08-31 16:05:17
CJS-00084 SQL statement or script failed. DIAGNOSIS: Error message: ORA-01501: CREATE DATABASE failedORA-01101: database being created currently mounted by some other instance
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning optionJServer Release 9.2.0.4.0 - Production. SOLUTION: See ora_sql_results.log and the Oracle documentation for details.
no user is logged on the Database. Database is not running (is shutdowned and unmounted). No Oracle process is running.
pleas help.
thanks
armin hadersbeckHi Armin,
We're going to install EP 6 stack3 with Oracle 9.2.0.4 and Solaris 9. We have exactly the same error as you during sapinst.
How do you solved that ?
Thanks a lot for your help,
Regards from Mexico,
Diego -
Oracle Text query: Escaping characters and specifying progression sequences
How can I combine the escaping of a search string and the specification of progression sequences within an oracle text query
so that in all cases the correct results are delivered (see example below)?
The scenario in which to use this is the following:
+ Database: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0
+ Requirement: Hitlist of results ordered by score whereby the different part within
the result list are specified using progression sequences within oracle text query
Example:
create table service_provider (
id number,
name_c varchar(100),
uri_c varchar(255)
insert into service_provider values (1,'ABB Company Mgmt','http://www.abb-company-mgmt.de');
insert into service_provider values (2,'Dr. Abbas Ming','http://www.dr-abbas-ming.de');
insert into service_provider values (3,'SABBATA United','http://www.sabbata-united.de');
insert into service_provider values (4,'ABB','http://www.abb.de');
insert into service_provider values (5,'AND Company Mgmt','http://www.and-company-mgmt.de');
insert into service_provider values (6,'Dr. Andas Ming','http://www.dr-andas-ming.de');
insert into service_provider values (7,'SANDATA United','http://www.sandata-united.de');
insert into service_provider values (8,'AND','http://www.and.de');
Query 1: works correctly in this case
select * from (
select /*+ FIRST_ROWS */ score(1), this_.*
from service_provider this_
where
CONTAINS ( this_.NAME_C , '<QUERY><textquery grammar="CONTEXT">' ||
'<progression>' ||
'<seq>abb</seq>' ||
'<seq>abb%</seq>' ||
'<seq>%abb%</seq>' ||
'<seq>fuzzy(abb,1,100,WEIGHT)</seq>' ||
'</progression></textquery></QUERY>', 1 ) > 0
order by score(1) desc, this_.NAME_C
) where rownum < 21
delivers
76 4 ABB http://www.abb.de
76 1 ABB Company Mgmt http://www.abb-company-mgmt.de
51 2 Dr. Abbas Ming http://www.dr-abbas-ming.de
26 3 SABBATA United http://www.sabbata-united.de
Query 2: procudes error
select * from (
select /*+ FIRST_ROWS */ score(1), this_.*
from service_provider this_
where
CONTAINS ( this_.NAME_C , '<QUERY><textquery grammar="CONTEXT">' ||
'<progression>' ||
'<seq>and</seq>' ||
'<seq>and%</seq>' ||
'<seq>%and%</seq>' ||
'<seq>fuzzy(and,1,100,WEIGHT)</seq>' ||
'</progression></textquery></QUERY>', 1 ) > 0
order by score(1) desc, this_.NAME_C
) where rownum < 21
produces ORA-29902, ORA-20000, DRG-50901 because AND is a reserved word in oracle text
So we need escaping ...
Query 3: does not work correctly
select * from (
select /*+ FIRST_ROWS */ score(1), this_.*
from service_provider this_
where
CONTAINS ( this_.NAME_C , '<QUERY><textquery grammar="CONTEXT">' ||
'<progression>' ||
'<seq>{abb}</seq>' ||
'<seq>{abb%}</seq>' ||
'<seq>{%abb%}</seq>' ||
'<seq>fuzzy({abb},1,100,WEIGHT)</seq>' ||
'</progression></textquery></QUERY>', 1 ) > 0
order by score(1) desc, this_.NAME_C
) where rownum < 21
delivers
76 4 ABB http://www.abb.de
76 1 ABB Company Mgmt http://www.abb-company-mgmt.de
Query 4: does not produce an error, but also does not work correctly
select * from (
select /*+ FIRST_ROWS */ score(1), this_.*
from service_provider this_
where
CONTAINS ( this_.NAME_C , '<QUERY><textquery grammar="CONTEXT">' ||
'<progression>' ||
'<seq>{and}</seq>' ||
'<seq>{and%}</seq>' ||
'<seq>{%and%}</seq>' ||
'<seq>fuzzy({and},1,100,WEIGHT)</seq>' ||
'</progression></textquery></QUERY>', 1 ) > 0
order by score(1) desc, this_.NAME_C
) where rownum < 21
delivers
76 8 AND http://www.and.de
76 5 AND Company Mgmt http://www.and-company-mgmt.deAnywhere that you just use the word by itself, enclose it in {}, but anywhere that you add % on either side or both don't enclose it in {}. Please see the demonstration below.
SCOTT@10gXE> SELECT * FROM v$version
2 /
BANNER
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
SCOTT@10gXE> create table service_provider
2 (id number,
3 name_c varchar(100),
4 uri_c varchar(255))
5 /
Table created.
SCOTT@10gXE> insert all
2 into service_provider values (1,'ABB Company Mgmt','http://www.abb-company-mgmt.de')
3 into service_provider values (2,'Dr. Abbas Ming','http://www.dr-abbas-ming.de')
4 into service_provider values (3,'SABBATA United','http://www.sabbata-united.de')
5 into service_provider values (4,'ABB','http://www.abb.de')
6 into service_provider values (5,'AND Company Mgmt','http://www.and-company-mgmt.de')
7 into service_provider values (6,'Dr. Andas Ming','http://www.dr-andas-ming.de')
8 into service_provider values (7,'SANDATA United','http://www.sandata-united.de')
9 into service_provider values (8,'AND','http://www.and.de')
10 into service_provider values (9,'EBB','fuzzy test')
11 into service_provider values (10,'OND','fuzzy test')
12 select * from dual
13 /
10 rows created.
SCOTT@10gXE> CREATE INDEX your_index
2 ON service_provider (name_c)
3 INDEXTYPE IS CTXSYS.CONTEXT
4 PARAMETERS ('STOPLIST CTXSYS.EMPTY_STOPLIST')
5 /
Index created.
SCOTT@10gXE> VARIABLE search_string VARCHAR2 (100)
SCOTT@10gXE> EXEC :search_string := 'abb'
PL/SQL procedure successfully completed.
SCOTT@10gXE> COLUMN name_c FORMAT A20 WORD_WRAPPED
SCOTT@10gXE> COLUMN uri_c FORMAT A40
SCOTT@10gXE> select *
2 from (select /*+ FIRST_ROWS */ score(1), this_.*
3 from service_provider this_
4 where CONTAINS
5 (this_.NAME_C ,
6 '<QUERY>
7 <textquery grammar="CONTEXT">
8 <progression>
9 <seq>{' || :search_string || '}</seq>
10 <seq>' || :search_string || '%</seq>
11 <seq>%' || :search_string || '%</seq>
12 <seq>fuzzy({' || :search_string || '},1,100,WEIGHT)</seq>
13 </progression>
14 </textquery>
15 </QUERY>', 1 ) > 0
16 order by score(1) desc, this_.NAME_C)
17 where rownum < 21
18 /
SCORE(1) ID NAME_C URI_C
76 4 ABB http://www.abb.de
76 1 ABB Company Mgmt http://www.abb-company-mgmt.de
51 2 Dr. Abbas Ming http://www.dr-abbas-ming.de
26 3 SABBATA United http://www.sabbata-united.de
4 9 EBB fuzzy test
SCOTT@10gXE> EXEC :search_string := 'and'
PL/SQL procedure successfully completed.
SCOTT@10gXE> /
SCORE(1) ID NAME_C URI_C
76 8 AND http://www.and.de
76 5 AND Company Mgmt http://www.and-company-mgmt.de
51 6 Dr. Andas Ming http://www.dr-andas-ming.de
26 7 SANDATA United http://www.sandata-united.de
5 10 OND fuzzy test
SCOTT@10gXE> -
Converting Oracle XML Query Result in Java String by using XSU
Hi,
I have a problem by converting Oracle XML Query Result in Java
String by using XSU. I use XSU for Java.
For example:
String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
preise ps where match='"+args[0]+"'");
String datum1=datum;
I become the following error:
Prototyp.java:47: Incompatible type for declaration. Can't
convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
Can somebody tell me a method() for converting to solve my
problem??????
ThanksHmmm.. Pretty basic just look at the example:
OracleXMLQuery qry = new OracleXMLQuery(conn,"Select max(ps.datum) from preise ps where match='"+args[0]+"'");
String xmlString = qry.getXMLString();
Hi,
I have a problem by converting Oracle XML Query Result in Java
String by using XSU. I use XSU for Java.
For example:
String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
preise ps where match='"+args[0]+"'");
String datum1=datum;
I become the following error:
Prototyp.java:47: Incompatible type for declaration. Can't
convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
Can somebody tell me a method() for converting to solve my
problem??????
Thanks -
Hi,
I have a View object with various attributes (eg, name1, name2, name3, address1, address2, address3 etc). A query/table component based on this view object works just fine. However, I wish to replace name1, name2, name3 and other attributes in the query with just 'name'. These attributes are still to be shown in the result table. This new 'name' attribute will be used in an Oracle Text query clause, instead of individual searches on each attribute.
My plan was to simply make the various name1, name2 etc attributes non-'queryable' in the View def to hide them from the query. Then I'd add a transient 'name' attribute. My hope was, that I could override the getWhereClause() in the ViewObjectImpl and simply tack on the oracle text clause to the WHERE (example below):
WHERE CONTAINS (
SOMECOLUMN,
'<query>
<textquery lang="ENGLISH" grammar="CONTEXT">TRANSIENT_ATTR_VALUE
..... Oracle Text query grammar stuff here .... </query>') > 0How do I access the transient value in the ViewObjectImpl to add the above SQL? Or am I going about this in completely the wrong way?
thanks,
Barry.Based on what I found in
http://www.oracle.com/technology/oramag/oracle/09-nov/o69frame.html?_template=/ocom/print
and
http://blogs.oracle.com/smuenchadf/examples/
136. Introducing a Checkbox to Toggle a Custom SQL Predicate on an LOV's Search Form. [11.1.1.0.0] 19-NOV-2008
I have the following implementation, which seems to work. Does anyone see any problems with this?
With regard to SQL injection, does ViewCriteriaItem sanitise the 'val' from the query, or should I do that manually here myself?
@Override
public java.lang.String getCriteriaItemClause(ViewCriteriaItem vci) {
if ("OraTextTransientAttrib".equals(vci.getAttributeDef().getName())) {
if (vci.getViewCriteria().isCriteriaForQuery()) {
String val = (String)vci.getValue();
logger.debug("Doing oracle text name search on '" + val + "'");
// simplified version of my oracle text query
return "CONTAINS ('<query>..... " + val + "....</query>') > 0 ";
} else {
// SQL predicate for no changes to the results
// spaces needed if you have several of these blocks
return " 1=1 ";
// other blocks for other similar oracle text attribs
return super.getCriteriaItemClause(vci);
} -
How to query Process Status from database in Project Server 2010
Hello All,
I am using Project Server 2010.
I need to query Process Status from SQL.
where can I find Process Status in Database.
Thanks,
RohitHi Rohit,
you will not be able to find this information in reporting DB - the only database queries are supported.
If you really want to go for an unsupported solution, you should be able to find related tables and how to join them in stored proc "MSP_WEB_SP_QRY_Statusing_ReadStatus" in published database.
Regards
Barbara
To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
an appropriate solution faster. Thanks for your support! -
Model Aggregate tables to speed up query processing
Hi,
Can anyone help me in the topics
"Model Aggregate Tables to Speed up Query Processing"
"Model Partitions and Fragments to improve application performance and usability"
Am new to this concept, haven't worked on this before.
Regards,
ArunArun wrote:
Thanks. This would definitely help me out. But, i face issue in opening the repository in Online mode. Could you please tell me how to solve this issue?
Here OBIEE server is lying on Unix Environment.
I've created a repository in Windows Client.(Have installed OBIEE 11g developers client, BI Admin tool in my local machine).
I would like to know the way to open a repository file in online mode in Client side.
Regards,
ArunCreate a 'BI Server' type ODBC connection in your windows environment pointing to your Unix box, then when you go open -> Online in admin tool you will see the entry as an option.
Better to start a new thread when your original question is answered. -
Parallel Query processing in SQL server
In stored procedure we are processing nearly 10 update statements with in a transaction, because of synchronous query processing it is taking time to process all these queries ,I need to execute all the quires asynchronous processing can any
one help me out how to process quires asynchronously?Hi,
For most cases the need of using asynchronous
statements processing
is resolving using Service Broker
SQL Server Service Broker provides native support for messaging and queuing applications in the SQL Server Database Engine. Service Broker, internal or external processes can send and receive guaranteed, asynchronous messaging by using extensions to
Transact-SQL.
SQL Server Service Broker
http://msdn.microsoft.com/en-us/library/bb522893.aspx
An Introduction to SQL Server Service Broker
http://technet.microsoft.com/en-us/library/ms345108(v=sql.90).aspx
[Personal Site] [Blog] [Facebook] -
How to Integrate Oracle Imaging and Process Management(IPM) 7.7.10 with EBS
Hi All,
We are implementing the following modules from Oracle Content Management to one of our Client, the following are the versions of the tools:
Configure and deploy Oracle Forms Recognition (OFR) 10GR3
Configure the Oracle Adopter for integration of OFR with EBS Version 11.5.10.2
Configure the Adopter for integration of OFR with Oracle Imaging and Process Management (IPM) 7.7.10
I really like to have any technical design document on integrations front, especially from OFR -> EBS and also IPM -> EBS.
Please feel reach me on my following contact details:
[email protected]
Phone: 1865-582-2369
Mobile: 1865-202-6430
Any pointers for the same is well appreciated.
Regards
ChandraTry replacing the .dll file with the one in your WINDOWS directory. I had that problem and I copied the .dll from C:/WINDOWS/system32 to overwrite the one located in the install directory.
-
The latest release of Oracle Complex Event Processing is now available for download from the Oracle eDelivery and OTN.
[OTN Product Download Page|http://www.oracle.com/technology/software/products/middleware/htdocs/fmw_11_download.html]
Oracle Complex Event Processing 11gR1 PS2 (11.1.1.3.0) has new features including;
The Oracle Spatial data cartridge which allows you to write Oracle CQL queries and views that seamlessly interact with Oracle Spatial classes in your Oracle CEP application. Using the Oracle Spatial data cartridge, you can configure Oracle CQL queries that perform the most important geographic domain operations such as storing spatial data, performing proximity and overlap comparisons on spatial data, and integrating spatial data with the Oracle CEP server by providing the ability to index on spatial data.
For more information please see the latest Oracle Complex Event Processing Documentation.Hello,
The link you provided redirect to the download page on oracle site.
Using the 11.1.1.5.0 allow me to use only Job Manager.
Editing a repository with a newer version of the Administration tool will generate an error on BI Server during the rpd deploymet.
Thank you anyway,
Jonni -
Oracle Concepts: Query on SQL Processing (execution in SGA/PGA)
Hi,
I need some clarity on my understanding, suppose there is a query:
SELECT t1.c1, t1.c2
FROM t1, t2
WHERE t1.c3 = t2.c1
ORDER BY t1.c1;User A submits above query and following steps are executed:
Syntax Check -in PGA
Semantic Check -in PGA
Shared Pool Check (unsuccessful) -in SGA
Optimization (Hard Parse) -in SGA
Row Source Generation (Hard Parse) -in SGA
Execution - in SGA?User B submits same query and following steps are executed:
Syntax Check -in PGA
Semantic Check -in PGA
Shared Pool Check (successful) -in SGA
(Soft Parse)
Execution - in SGA?First question (General):
I thought Execution happens in SGA, but sorting, hashing, and/or merging bitmaps happens in PGA (temporary segment) so is it a sub-part of Execution that happens in user's PGA?
Second question (For user B):
Once Shared Pool Check is successful, and plan/data-sets are already in SGA, so sorting, hashing, and/or merging bitmaps will happen on these data-sets in user B's PGA again?
Regards,
Ankit Rathi
http://oraclenbeyond.blogspot.inOnB wrote:
Hi,
I need some clarity on my understanding, suppose there is a query:
SELECT t1.c1, t1.c2
FROM t1, t2
WHERE t1.c3 = t2.c1
ORDER BY t1.c1;User A submits above query and following steps are executed:
Syntax Check -in PGA
Semantic Check -in PGA
Shared Pool Check (unsuccessful) -in SGA
Optimization (Hard Parse) -in SGA
Row Source Generation (Hard Parse) -in SGA
Execution - in SGA?User B submits same query and following steps are executed:
Syntax Check -in PGA
Semantic Check -in PGA
Shared Pool Check (successful) -in SGA
(Soft Parse)
Execution - in SGA?First question (General):
I thought Execution happens in SGA, but sorting, hashing, and/or merging bitmaps happens in PGA (temporary segment) so is it a sub-part of Execution that happens in user's PGA?The execution happens in the SGA(Buffer cache) but any kinds of such processing like sorting is session specific and that's why it happens in the PGA of that user.
>
Second question (For user B):
Once Shared Pool Check is successful, and plan/data-sets are already in SGA, so sorting, hashing, and/or merging bitmaps will happen on these data-sets in user B's PGA again?Yes.
That said, can you post a link that confirms that the syntax/semantics check happen in the PGA? AFAIK it's not really a part of the PGA because oracle's code itself would store the grammar and would do it .
Aman.... -
Oracle Unified Business Process Management Implementation Specialist query
Hi ,
I would like to know when will this exam go-live ?
On oracle website , it is mentioned that the exam will go live 10 weeks after beta exams for the same end.
Beta exams for Oracle UBPM 11g implementation specialist ended on may 7th , as per that Production exam is supposed to go live by July 16th .
I want to know whether , the given exam will go-live by July 16th ? and if not then by what approximate date ?Sasmit wrote:
can any1 please reply to this questionWell I couldn;t reply sensibly so i didnt .....
Patience is a virtue
Virtue Makes a saint
Saints are a football team
Who think Pompey ain't.
Brandye is probably best suited to answer this ..... and it is currently the weekend......
So please make the hard working Brandye have the weekend for her enjoyment!
(Of course she may be on vacations for all I know and you will have a 2 week wait!)
In practice this will come live 10 to 13 weeks after the beta ( I think 13 or just over is more common ...) ... could be a little later due to it being the holiday season for most people. -
0
down vote
favorite I am using oracle 10g. I have a temp table TEMP.
TEMP has following structure:-
USER COUNT TYPE
1 10 T1
2 21 T2
3 45 T1
1 7 T1
I need a query which will show all types has column names,and types can be any value like T1,T2,..Tn and columns will be like:-
USER T1 T2 Tn
and User column will show all the users and T1,T2 column will show total count of types.
Edited by: 969468 on Nov 15, 2012 9:35 PMPlease see my original post ("I have a page erroring in production (but not in development) when it gets to a date that it needs to display.") Sorry if it came across as vague. It made sense, to me, when I typed it. But, then, I'm usually typing fast just to get the question out there, when I'm in a hurry.
Haven't done a CFDUMP, yet, as every time I make a change in development that needs to be tested in production, I have to notify my supervisor that there are files that need to be copied into production, which can sometimes take a while, so I try to do troubleshooting on dev side - it's a pain in the you-know-what, but that's the kind of environment I'm working in.
As it turns out, changing the format in the SELECT to_char() did the trick. If anyone else has this issue with Oracle 10g, I'm now using SELECT to_char(create_date,'YYYY/MM/DD HH:MI') FROM tableA, and now the CFOUTPUT is processing the whole page. I guess the MM-DD-YYYY threw CF into a tizzy, breaking the process?
Anyhoo, it's working, now. Thank you, Dan and Adam, for your thoughts on this.
^_^ -
Hi,
I am a oracle developer not having knowledge of XML.
Could you please explain XML part in the below pasted query. What is XMLTable ,xmlnamespaces, etc. How this XML part is working?
select o.ORDER_ID,
o.customer_ban
,o.CIBOODLE_CASE_ID
,o.DEALER_CODE
,o.CREATION_DATE
,o.STATUS
,o.LAST_STATUS_DATE
,l.CTNCount
from Test_order o ,
XMLTable(xmlnamespaces (DEFAULT 'http://xmlns.India.in/bill/order',
'http://xmlns.India.in/publicservices/types' as "m0",
'http://xmlns.India.in/bill/types' as "m2",
'http://xmlns.India.in/publicservices/paf' as "m"
'for $i in /Order
return $i'
PASSING xmltype(o.ENHANCED_ORDER_DATA)
COLUMNS
CTNCount varchar2(5) PATH 'BuyerCustParty/Party/m2:Account/m2:TotalSubscriptionCount'
) l
where status = 'IN-PROCESS' and nvl(l.CTNCount,0) > 10
order by l.CTNCount desc;You'll find detailed explanations in the documentation :
http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb_xquery.htm#ADXDB1700
Maybe you are looking for
-
Acrobat 9 Pro cannot crop certain files that v7 can
I just upgraded to Acrobat 9 Pro for Mac, and find that it does not allow cropping of many files that I can crop with v7. At least in some cases, these are PDF/A files. Does v9 prohibit the cropping of such files, and if so can the PDF/A restriction
-
Anyone else annoyed by the seriously slow interface (not internet)
I've had an iphone since it first came out, and ever since version 2.0 came out, it's been really hard to deal with some of the amazingly slow interface problems it has now. I got the 3g about a month after it first came out, so I'm using that one no
-
My email is frozen when I touch the screen to delete or change inbox can't get it to work
My email is frozen wont do anything can't delete or change inbox how do I fix this
-
Customer Exit for BW Variables
Dear all, I am a BW Consultant and have a very limited knowledge in ABAP. I have the following scenario: My BW query has the following input variables: 0P_FYEAR Fiscal Year (Single Value Entry) 0P_PER3 Posting Period (Single Value Entry) an
-
IndexOutOfBoundsException When Creating Web Service Client
Hello, I am getting the following error when I try to create a Web Service Client in JDeveloper 10.1.3. Any ideas why this occurs? Thanks, Kevin Scott java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(