Oracle/SQL Query Optimisations

Closed Posted 5 years ago Paid on delivery
Closed

We have an enterprise solution and have recently lost our primary DBA resource. We have a small number of specific database queries/updates that are causing major performance issues for a number of clients.

In addition, we are not currently using BIND VARIABLES in either SQL or Oracle and would seek input/guidance on adoption thereof.

Our application is an [login to view URL] webforms solution.

We are seeking DBA support to help on this.

This is a typical query (in Oracle format):

SELECT * FROM (SELECT JOB_HEADERS_FW.*, COALESCE(STATUS_CODES_FW.DESCRIPTION_FW,JOB_HEADERS_FW.JOB_STATUS_FW) AS JOB_STATUS, COALESCE(JOB_REASONS_FW.DESCRIPTION_FW,JOB_HEADERS_FW.REASON_CODE_FW) AS REASON_CODE, COALESCE(FITTERS_FW.FITTER_NAME_FW,JOB_HEADERS_FW.FITTER_FW) AS FITTER_NAME, (SELECT SUM(COALESCE(STANDARD_HOURS_FW,HOURS_FW)) FROM JOB_DETAILS_fW WHERE JOB_DETAILS_FW.JOB_NUMBER_FW=JOB_HEADERS_FW.JOB_NUMBER_FW AND JOB_DETAILS_FW.JOB_DETAIL_STATUS_FW='FINISH' AND (JOB_DETAILS_FW.JOB_TYPE_FW = 'L' OR (JOB_DETAILS_FW.JOB_TYPE_FW IS NULL OR LENGTH(JOB_DETAILS_FW.JOB_TYPE_FW) = 0) ) ) AS STANDARD_COMPLETED, (SELECT SUM(COALESCE(STANDARD_HOURS_FW,HOURS_FW)) FROM JOB_DETAILS_fW WHERE JOB_DETAILS_FW.JOB_NUMBER_FW=JOB_HEADERS_FW.JOB_NUMBER_FW AND (JOB_DETAILS_FW.JOB_TYPE_FW = 'L' OR (JOB_DETAILS_FW.JOB_TYPE_FW IS NULL OR LENGTH(JOB_DETAILS_FW.JOB_TYPE_FW) = 0) ) ) AS STANDARD_TOTAL, STATUS_CODES_FW.BACKGROUND_COLOUR_FW FROM JOB_HEADERS_FW LEFT OUTER JOIN JOB_REASONS_FW ON JOB_HEADERS_FW.REASON_CODE_FW=JOB_REASONS_FW.CODE_FW AND JOB_REASONS_FW.ARCHIVE_STATUS_FW='N' LEFT OUTER JOIN FITTERS_FW ON JOB_HEADERS_FW.FITTER_FW=FITTERS_FW.FITTER_FW AND FITTERS_FW.ARCHIVE_STATUS_FW='N' LEFT OUTER JOIN STATUS_CODES_FW ON JOB_HEADERS_FW.JOB_STATUS_FW=STATUS_CODES_FW.STATUS_CODE_FW AND STATUS_CODES_FW.JOB_HEADERS_FW=1 AND STATUS_CODES_FW.ARCHIVE_STATUS_FW='N' WHERE JOB_HEADERS_FW.ARCHIVE_STATUS_FW='N' AND (JOB_HEADERS_FW.DEPOT_ID_FW='MDNK1N' OR (JOB_HEADERS_FW.DEPOT_ID_FW IS NULL OR LENGTH(JOB_HEADERS_FW.DEPOT_ID_FW) = 0)) AND (NOT (STATUS_CODES_FW.CLOSING_FW=1 OR STATUS_CODES_FW.EXCLUDE_WORKSHOP_SCHEDULE_FW =1) OR JOB_HEADERS_FW.JOB_END_DATE_FW=TO_DATE('2018-05-14', 'yyyy-mm-dd')) AND JOB_HEADERS_FW.JOB_STATUS_FW<>'FINISH' AND JOB_HEADERS_FW.JOB_NUMBER_FW IN (SELECT DISTINCT JOB_NUMBER_FW FROM JOB_DETAILS_FW WHERE ARCHIVE_STATUS_FW ='N' AND FITTER_FW ='8226157841' AND (JOB_DETAIL_STATUS_FW IN ('','WND','WIP','AWP','FINISH') OR JOB_DETAIL_STATUS_FW IS NULL ) AND (JOB_DETAILS_FW.JOB_TYPE_FW = 'L' OR (JOB_DETAILS_FW.JOB_TYPE_FW IS NULL OR LENGTH(JOB_DETAILS_FW.JOB_TYPE_FW) = 0) ) UNION ALL (SELECT DISTINCT JOB_NUMBER_FW FROM JOB_DETAILS_FW WHERE ARCHIVE_STATUS_FW ='N' AND FITTER_FW ='8226157841' AND JOB_DETAIL_STATUS_FW IN ('COMPLETED','DFT','CHO') AND (JOB_DETAILS_FW.JOB_TYPE_FW = 'L' OR (JOB_DETAILS_FW.JOB_TYPE_FW IS NULL OR LENGTH(JOB_DETAILS_FW.JOB_TYPE_FW) = 0) ) AND JOB_NUMBER_FW NOT IN ( (SELECT DISTINCT JOB_NUMBER_FW FROM JOB_DETAILS_FW WHERE FITTER_FW = '8226157841' AND ARCHIVE_STATUS_FW = 'N' ) INTERSECT (SELECT DISTINCT JOB_NUMBER_FW FROM JOB_DETAILS_FW WHERE ARCHIVE_STATUS_FW ='N' AND FITTER_FW <>'8226157841' AND (JOB_DETAIL_STATUS_FW IN('','WND','WIP','AWP') OR JOB_DETAIL_STATUS_FW IS NULL ) AND (JOB_DETAILS_FW.JOB_TYPE_FW = 'L' OR (JOB_DETAILS_FW.JOB_TYPE_FW IS NULL OR LENGTH(JOB_DETAILS_FW.JOB_TYPE_FW) = 0) ) )) )) AND JOB_STATUS_FW<>'CLOSED' AND JOB_STATUS_FW<>'COMPLETE' AND JOB_STATUS_FW<>'WFS_COMPLETE_FW' AND JOB_STATUS_FW<>'DFT' AND JOB_STATUS_FW<>'DEFERRED' AND JOB_STATUS_FW<>'WFS_C_FW' AND JOB_STATUS_FW<>'A' AND JOB_STATUS_FW<>'WFS_DFT_FW' AND STATUS_CODES_FW.CLOSING_FW=0) tmpsqltop WHERE ROWNUM <= 50 ORDER BY FITTER_NAME,PRIORITY_FW,JOB_DATE_FW,JOB_NUMBER_FW

Database Administration Database Programming Microsoft SQL Server Oracle SQL

Project ID: #17081358

About the project

49 proposals Remote project Active 5 years ago

49 freelancers are bidding on average £31/hour for this job

aanvikm

Hello Sir, I am an expert with query optimization and would like to discuss this project with you. Requesting you to open chat for discussion. Thanks Aanvik

£30 GBP / hour
(55 Reviews)
6.9
Yknox

Dear employer. I am Gang Lee, web developer . I've just read your job posting and I'm very interested. I'm a certificated freelancer with almost 1000 good reviews from clients. I'm a Good ASP.NET , MS SQL ,Oracle, More

£30 GBP / hour
(24 Reviews)
6.7
jagdishbhatt38

I am having more than 9 years of experience in IT industry.I have worked on .net(c#.net,vb.net,asp,asp.net,mvc) with sql server 2005/2008/2012/2014/2016 and oracle(pl/sql). I can provide you better solution by utili More

£30 GBP / hour
(35 Reviews)
5.2
qualifiedcoders

Hi, Good Day. I have read your post and would like to discuss things further as I am an expert database developer and administrator as I am having advanced knowledge of sql and query optimizations.I have worked i More

£30 GBP / hour
(13 Reviews)
5.2
sreenivas2903

Hi i could able to perform optimizations

£33 GBP / hour
(21 Reviews)
4.5
c4cuteconain

I am a professional with a decade of experience working with Oracle currently serving in a US based NASDAQ registered company. Have just implemented Complete Oracle setup in the company. Can help you with any related i More

£27 GBP / hour
(3 Reviews)
3.2
asif2478

hi there! I am an expert in oracle database management and administration. I have already completed similar tasks with high reviews. I can provide you the MOST OPTIMIZED AND FASTEST FUNCTIONING SQL QUERIES. It s More

£25 GBP / hour
(5 Reviews)
3.3
donovan6

I'm an Oracle DBA/Developer with over 15 years experience and that is one of the most horrible queries I have ever seen - I'm not surprised your users are having performance issues. I can sort this out for you but I More

£26 GBP / hour
(2 Reviews)
3.5
dzdzegc

Hello! I have experience in enterprise etl/dwh development using Oracle db for 5 years. Projects i've been working for were for credit organizations with huge amount of data, big projects: terrabytes of data, avg proj More

£26 GBP / hour
(7 Reviews)
3.4
pratikgedia

As an Oracle Database Administrator have performance tuned SQL's using SQL hints, Tuning Advisor,Segment Advisor, ADDM reports,ASH reports,AWR reports. Could we please have an discussion? Thanks,

£22 GBP / hour
(4 Reviews)
3.3
kurbsky

I've selected the most time consuming query from your data (that with duration of 747,89) and tried to rewrite it. Please tell me whether this attempt brings any improvement. select * from ( select SH.RECORD_NUMB More

£24 GBP / hour
(5 Reviews)
1.6
gosaidarshan066

Hi, I have good knowlege of sql.i can make your query faster but for that i need to check once database design and query s which you are using for fetch data. Please let me know for more contact. Thanks, Darshan

£35 GBP / hour
(0 Reviews)
0.0
rinkugautam1331

Hi, I will help you in your SQL query optimization. I have 6+ years of professional experience as an Oracle DBA in Infosys Limited. Looking forward to hear from you. Thanks, Rinku Gautam

£30 GBP / hour
(0 Reviews)
0.0
Musta80

Complexed Query, from first look I can see some changes are required to make it better. Although modifications on Table(s) are most probably required. I will be glad to check and fix it with you in a minimum time.

£22 GBP / hour
(0 Reviews)
0.0
pkosanam

Worked on many projects with SQL and dynamic sql. Used trace files, Explain plan a nd Oracle Enterprise manager to optimize the queries and deliver very high performance. Expert in performance tuning, Tuned some querie More

£38 GBP / hour
(0 Reviews)
0.0
sunilmudunuri

I would be able to deliver your solution within the timeline with better quality I have 9 years of experience in SQL Server design, development and optimization. I have used Erwin tool for data modelling and i am we More

£30 GBP / hour
(0 Reviews)
0.0
dondetelj

This query is so poor..... Here is a quick sample of a more efficient query GO WITH detail AS ( SELECT JOB_NUMBER_FW, SUM(CASE WHEN f.JOB_DETAIL_STATUS_FW = 'FINISH More

£111 GBP / hour
(0 Reviews)
0.0
rbmurussi

I'm work the company credit card with so much transactions, of which I already had problems with performance also, the database is oracle, can I optimize the table as a whole depending of the oracle version with compre More

£30 GBP / hour
(0 Reviews)
0.0
VISITNKS

I have 10 year of strong PL/SQL development experience.

£27 GBP / hour
(0 Reviews)
0.0
baluyedida

i want to do this project because i am having good skills in sql and you people want to solve complicated queries. so iam expert in it

£20 GBP / hour
(0 Reviews)
0.0