Query can run in Oracle 10g but very slow in 11g
Hi,
We've just migrated to Oracle 11g and we noticed that some of our view are very slow (it takes seconds in 10g and takes 30 minutes in 11g), and the tables are using the local table.
Do any of you face the same issue?
This is our query:
SELECT
A.wellbore
,a.depth center
,d.MD maxbc
,d.XDELT xbc
,d.YDELT ybc
,e.MD minac
,e.XDELT xac
,e.YDELT yac
from
table_A d,table_A e, table_B a
where a.wellbore = d.WELLBORE (+)
and a.wellbore = e.WELLBORE(+)
and d.MD = (select max(MD) from table_A b where b.MD < a.depth and
d.wellBORE = b.wellBORE)
and e.md = (select min(md) from table_A c where c.MD > a.depth and
e.wellBORE = c.wellBORE);
Thanks I will move to the correct one..
Rafi,
Build the Indexes and it is still slow. I am querying from a view from another database, which is in 10g instances.
Moved: Query can run in Oracle 10g but very slow in 11g
Edited by: 924400 on Apr 1, 2012 6:03 PM
Edited by: 924400 on Apr 1, 2012 6:26 PM
Similar Messages
-
Sql query is running fast in sqlplus but too slow in oracle why?
Hi,
I am executing one query in sqlplus . it gives output in two mins. when run that query in oracle it takes above 7hrs. why?
what is root cause of this problem?SQLPLUS is a part of Oracle :) Do you mean SQL server
Edited by: Maran.Viswarayar on Apr 19, 2010 11:49 PM -
Can you install Oracle 10g on REDHAT LINUX ENTERPRISE WS?
According to oracle documentation, it says you can install oracle10g on Redhat enterprise version 3 or 4, but it doesn't specify whether its Red Hat Enterprise Linux AS or WS. Can you install oracle 10g on Rehat Linux Enterprise WS?
Oracle Certificaction Matrices says only RedHat AS/ES is supported for database. AFAIK WS means workstation.
Also this link is very clear: http://kbase.redhat.com/faq/FAQ_61_1135.shtm
Besides the above sentences... If the WS installation is providing all required packages (listed in installtion prerequisites) I belive that Oracle DB could be installed on WS but as I (and the above link) said it is not officialy supported. -
Can we install oracle 10g database on Windows Vista Home Edition?
Can we install oracle 10g database on Windows Vista Home Edition?
You didn't specify which Oracle10 Edition.
In the case of SE/SE one/EE, with a paid license Supported has a mean impact on production environments with paid licenses, since you wouldn't run on an unsupported platform facing the risk of being left without technical support from Oracle in case of an emerging issue.
For the XE Edition, this is not a certified combination, since the only certified editions are the Business, Enterprise, and the Ultimate editions, but you can try it, you don't have nothing to loose, supported, certified vs. unsupported in this case makes no difference since this XE is not supported either way (no patchsets, no bug fixes, no technical support from metalink), just an AS IS free software.
On the license agreement terms displayed when you download the XE software it states:
"No Technical Support
Our technical support organization will not provide technical support, phone support, or updates to you for the programs licensed under this agreement."
and
"THE PROGRAMS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. WE FURTHER DISCLAIM ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE."
In case someone would be able to win a trial against oracle due to damage from the use of this software, the amount paid at maximum is 1,000.00 USD, not enough to even pay the lawyer's lunches.
For the XE users the primary source of 'kind of support' is the oracle forums, either the installation forum, the general database or the specialized XE forum.
Of course if this is for your own personal use for learning and testing and there are no third parties you could damage by doing this and if you don't have a paid license for this installation you may try it, but don't expect the Enterprise Manager to behave as defined by the manual, most of it won't work since the Home Edition doesn't have the privileges required for EM to work.
If this is your personal computer and when you bought it the computer provider installed from factory Home Edition, and if you want something to work there, you can try to install a Virtual Machine and install Oracle 10g on a supported guest OS.
~ Madrid -
Procedure compiles on Oracle 10g but fails to do so on Oracle 9i
Hi,
We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
SQL> show err
Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
LINE/COL ERROR
22/8 PL/SQL: SQL Statement ignored
31/37 PL/SQL: ORA-00907: missing right parenthesis
the 9i version
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
10g version
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
If any body knows the soln, please help
Thanks in advance
Gibs
Procedure
CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
in_emp_id IN VARCHAR,
in_start_date IN DATE,
in_end_date IN DATE,
non_complog OUT Types.ref_cursor
IS
BEGIN
OPEN non_complog
FOR
SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
vcname AS plan_name, start_date, nid AS nid
FROM (SELECT *
FROM ((SELECT employee_id, NAME
FROM hrsample_bridge.ath_employee
WHERE ( (in_emp_id IS NULL AND 1 = 1)
OR (in_emp_id IS NOT NULL
AND employee_id = in_emp_id
)) CROSS JOIN (SELECT vcname
FROM orahrsamplecore.athobjectinstance
WHERE compliance_status = 1
AND ( (in_start_date IS NULL
OR (dtcompreissue
BETWEEN in_start_date
AND in_end_date
)))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
employee_id
AND c.plan_name =
vcname
WHERE c.emp_id IS NULL
AND ( ( (in_emp_id IS NULL)
OR ( in_emp_id IS NOT NULL
AND NOT EXISTS (
SELECT 1
FROM COMPTRACKLOG
WHERE plan_name = vcname
AND c.emp_id = in_emp_id )
AND ( (in_start_date IS NULL)
OR ( (in_start_date IS NOT NULL)
AND c.end_date BETWEEN in_start_date AND in_end_date
ORDER BY c.emp_id, c.plan_name ASC;
END;
/Hi,
We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
SQL> show err
Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
LINE/COL ERROR
22/8 PL/SQL: SQL Statement ignored
31/37 PL/SQL: ORA-00907: missing right parenthesis
the 9i version
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
10g version
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
If any body knows the soln, please help
Thanks in advance
Gibs
Procedure
CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
in_emp_id IN VARCHAR,
in_start_date IN DATE,
in_end_date IN DATE,
non_complog OUT Types.ref_cursor
IS
BEGIN
OPEN non_complog
FOR
SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
vcname AS plan_name, start_date, nid AS nid
FROM (SELECT *
FROM ((SELECT employee_id, NAME
FROM hrsample_bridge.ath_employee
WHERE ( (in_emp_id IS NULL AND 1 = 1)
OR (in_emp_id IS NOT NULL
AND employee_id = in_emp_id
)) CROSS JOIN (SELECT vcname
FROM orahrsamplecore.athobjectinstance
WHERE compliance_status = 1
AND ( (in_start_date IS NULL
OR (dtcompreissue
BETWEEN in_start_date
AND in_end_date
)))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
employee_id
AND c.plan_name =
vcname
WHERE c.emp_id IS NULL
AND ( ( (in_emp_id IS NULL)
OR ( in_emp_id IS NOT NULL
AND NOT EXISTS (
SELECT 1
FROM COMPTRACKLOG
WHERE plan_name = vcname
AND c.emp_id = in_emp_id )
AND ( (in_start_date IS NULL)
OR ( (in_start_date IS NOT NULL)
AND c.end_date BETWEEN in_start_date AND in_end_date
ORDER BY c.emp_id, c.plan_name ASC;
END;
/ -
How can i install oracle 10g on linux cluster
Dear all:
please advice How can i install oracle 10g on linux cluster service ..
thanks ,,Without RAC, you can only have one instance manage the database. One instance = one set of processes communicating via IPC.
Unless you know of a way to have processes use memory-based IPC across nodes, you need to pick a node and install & run the database software on that node. -
Can I install Oracle 10g on Windows XP Pro
Hi All,
Can I install Oracle 10g on windows XP pro?
Regards
PrabirYes, you can but the software should be for Microsoft windows or you can download from the following link
http://otn.oracle.com/software/products/database/oracle10g/index.html -
Can I attend Oracle 10g DBA course & attempt DBA Certification for 11g
Hi,
I am already OCP-PLSQL and want to attempt OCP-DBA stream. I enquired at various oracle education centers and came to know that all are conducting courses for Oracle-10g.
So can I attend Oracle 10g DBA course (Mandatory Course) and attempt DBA Certification for 11g. (1ZO-052 and 1ZO-053)
Thanks,
Vikrant Patilukupatil wrote:
Hi,
I am already OCP-PLSQL and want to attempt OCP-DBA stream. I enquired at various oracle education centers and came to know that all are conducting courses for Oracle-10g.
So can I attend Oracle 10g DBA course (Mandatory Course) and attempt DBA Certification for 11g. (1ZO-052 and 1ZO-053)
Thanks,
Vikrant PatilYou can do these thing, and Oracle will take your money for it, but you will receive neither 11g DBA OCP certication nor 10g DBA OCP Certification at the end of it. So it isnt what you would ant to do.
Oracle Unviersity would provide the 11g DBA training courses ... No problem.
however I suspect what you term oracle education centers are probaby institutes offering WDP Courses at 10g DBA (on the cheap). See http://workforce.oracle.com
If you do 10g training then that will only be valid for 10g DBA OCP Certification .. so you would need to take 1z0-042 and 1z0-043 (I guess you already have an SQL Exam pass). Then 1z0-050 can upgrade it to 11g DBA OCP.
(Note that it does not affect you, but the converse is typically true .... version X+1 training will often be acceptable for a version X certification.) -
I can't install Oracle 10g Client in x86-64(Intel EM64T)
Dear All,
Recently, I tried to install the Oracle 10g client in Redhat Enterprise Linux 4.0 with x86-64 (Intel EM64T) platform. As I know,that is either Oracle 9i or Oracle 10g has been certified to Redhat AS 3.0 operating system.
How can I install Oracle 10g normally under all x86-64 platforms? Or, When does Oracle to release out the patch for all x86-64 versions?Please reffer to Installation section.
Database Installation -
Can we install Oracle 10g lite in HTC VIVA (T2223)
hi,
can we install oracle 10g lite in HTC viva... if so ...
how to do it..
regards,
DeepakLooks like it has Windows Mobile 6.1. The answer is yes.
Look at the following tutorial.
http://download.oracle.com/docs/cd/B28928_01/doc/server.103/b28923/nvwcetu.htm -
Maximim Number of process and session can set in oracle 10g
my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g database
mithun wrote:
my os is 32 bit windows and ram size is 10gb and i am using AWE_WINDOW_MEMORY setting and now my sga is 6 gb.what would be Maximim Number of process and session can set in oracle 10g databaseThe maximum number of sessions is controlled by your database's SESSIONS parameter. This value is most derived from the PROCESSES parameter. You cannot exceed this number of sessions unless you raise the parameter value.
If your database is configured to handle enough sessions, then Oracle can literally handle thousands of simultaneous connections, provided your database server also has enough resources to handle this number of connections. You will want to implement Oracle's Shared Server connections so that multiple connections share a pool of processes on the database server. This minimizes the resource consumption used by the connections.
Read the following document as well.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm
Thanks -
Can we access Oracle 10g R2 database from Oracle 11g Client
Hi,
Can any1 tell me can we access Oracle 10g R2 database from Oracle 11g Client ? I m unable to find a Oracle Client 10g R2 for Windows 7 32 bit.
Below link is for Vista only
http://www.oracle.com/technetwork/database/10203vista-087538.html832812 wrote:
Hi,
Can any1 tell me can we access Oracle 10g R2 database from Oracle 11g Client ? I m unable to find a Oracle Client 10g R2 for Windows 7 32 bit.
Below link is for Vista only
http://www.oracle.com/technetwork/database/10203vista-087538.html
Check this note for client/server compatibility
Client / Server / Interoperability Support Between Different Oracle Versions [ID 207303.1] -
When can I download Oracle 10g R2?
I just installed Solaris 10 ..actually finally installed after couple of tries.
However...I can't install Oracle 10g R1 on Solaris 10 because officially R1 doesn't support Solaris 10.
Fortunately, Oracle 10g R2 for Linux and Windows is released so I think R2 for Solaris will be released.....
Does anyone have any idea about when it will be launched?Hi,
Subscribe to this RSS feed and you will be updated as and when new products are available.
http://www.oracle.com/technology/syndication/rss_otn_soft.xml
Thanks,
Khalid -
SQL query can be executed through TOAD but not through Discoverer
Hallo, everybody:
Got another problem. A SQL query can be executed through TOAD, but when I want to execute it by a worksheet of Discoverer Plus, it always shows there is no data.
PS: I copied this query from Discoverer Plus to TOAD, which means, this query is generated through the Discoverer. Does anybody know about how could it be?
Thank you.
GengHi,
If you are able to get data in TOAD with the same user credential as that of Discoverer Plus then it will implies an issue with Discoverer.
Else it is privilege issue , your TOAD user has select privilege to the base objects (tables/views etc) where as your Disoverer used does not.
Compare the privileges granted to these 2 users and you can narrow done to the issue .
Thanks,
Sutirtha -
How can i get oracle 10g and Xquery
sir,
How can i download Oracle 10g and Xquery.I need it urgently for my project work...
thanks..
someshThe following link provides a good starting point for your endeavour:
http://www.oracle.com/technology/sample_code/products/forms/index.html
Maybe you are looking for
-
How do I use an on contract iPhone 5 purchased in the US in India?
I am moving to India for a 6 month work related project in a couple of months and am planning to buy an iPhone 5 on contract here in New York. The contract can be seasonally suspended for 6 months so no issues about breaking the contract. I was decid
-
Reading a text file and putting it in a textarea
hi can u tell me how to read a text file and display the contents in a text area using jsp please? thanks :o)
-
Making new photo albums and slide shows
Is there a way to make new photo albums or slides shows on the iPad? I wish to organize photos and create slide shows while I am on the road, away from my sync computer.
-
How to install osx 10.6 on Apple iMac "Core Duo" 1.83 with 1 gb ram
Apple iMac "Core Duo" 1.83 with 1GM Ram and Preinstalled Tiger 10.4.11, How can i Install leopard 10.6 on this imac, please give me the link also to osx 10.6
-
Missing "places" grouping in photo' app.
In new iOS 7 the grouping of places is missing. Is there an alternatieve?? When Will this be fixed??