Find Jobs
Hire Freelancers

UpdateLedgerBalanceJob is locking up inside a stored procedure

$10-30 USD

Closed
Posted over 4 years ago

$10-30 USD

Paid on delivery
One of our jobs in ledger service that runs inside a stored procedure seems to be locked up, the job normally completes in 1/2hr and is still running for 6 1/2hrs. Stored Procedures : Begin PRC_UPDATE_LEDGER_BALANCE; End; Begin PRC_CALC_LGR_ACCT_TOTAL; End; The session that is running these procedures has been killed at the DB level begin [login to view URL]( sid => 46, serial => 6283); end; ORA-00031: session marked for kill ORA-06512: at "RDSADMIN.RDSADMIN_UTIL", line 91 ------- ( its that sql. it is getting stuck running. used to take a half hour to run. Support SQL ID: CA1D372064F9D78B5F3B9DD6C958C1E11B628076SQL ID: bhkav9n9fu0ah Support Digest ID: CA1D372064F9D78B5F3B9DD6C958C1E11B628076Digest ID: bhkav9n9fu0ah it'd either be running as LGRADM or LGRAPP) this is the query that would return results if its working: Untitled select * from LGR_DAILY_LEDGER_ACCT_BALANCE where BALANCE_DATE >= '17-JUL-2019' ---------------- syntax ----- MERGE INTO LGR_DAILY_LEDGER_ACCT_BALANCE TGT USING ( SELECT SUM([login to view URL] * DECODE (PR.CREDIT_DEBIT_IND, 'C', -1, 'D', 1)) AMOUNT, TS.CLIENT_OFFERING_ID, TS.COUNTRY_CODE, TS.JURISDICTION_CODE, TS.OWNER_ID, LA.LEDGER_ACCOUNT_CD, TS.TRANS_STATE_EFFECTIVE_DATE NEWBAL_DATE FROM LGR_TRANSACTION_STATE TS JOIN LGR_TRANSACTION_POSTING_RULE PR ON TS.TRANSACTION_STATE_CD = PR.TRANSACTION_STATE_CD AND TS.TRANSACTION_TYPE_CD = PR.TRANSACTION_TYPE_CD JOIN LGR_LEDGER_ACCOUNT LA ON LA.LEDGER_ACCOUNT_CD = PR.LEDGER_ACCOUNT_FK WHERE TS.TRANS_STATE_EFFECTIVE_DATE=:B1 AND EXISTS ( SELECT 1 FROM LGR_LEDGER_ACCOUNT_RULE R WHERE R.TOTAL_AT_JURISDICTION_LEVEL = 1 AND R.CLIENT_OFFERING_ID = TS.CLIENT_OFFERING_ID AND R.COUNTRY_CODE = TS.COUNTRY_CODE AND R.LEDGER_ACCOUNT_CD = LA.LEDGER_ACCOUNT_CD) GROUP BY TS.CLIENT_OFFERING_ID, TS.COUNTRY_CODE, TS.JURISDICTION_CODE, TS.OWNER_ID, LA.LEDGER_ACCOUNT_CD, TS.TRANS_STATE_EFFECTIVE_DATE UNION
Project ID: 20468694

About the project

4 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $30 USD for this job
User Avatar
INTRODUCTION I am an experienced Professional with Database Programming and Administration skills across MySQL, MS SQL and Business Intelligence Development. I have 4+ years’ experience with Database Programming and Administration. I am also skilled in BI administration, building reports and customized dashboards and the ability to turn ideas into functional solutions. I possess ability to take the technical lead in projects and supporting technical implementation whilst working on multiple products. EDUCATION • BSc Computer Sciences, University of Hertfordshire, UK 2014 • Microsoft Certified Business Intelligence Developer 2009. • Microsoft Certified SQL Server Administrator 2008. • compTIA A+ Certified 2008.
$20 USD in 7 days
4.8 (21 reviews)
6.0
6.0
User Avatar
I am expertise in sql queries and query tuning . if you are interested ping me i will fix your issue. we will get rid of this merge and do the things .
$50 USD in 3 days
4.9 (12 reviews)
4.1
4.1
User Avatar
Hi, After reading the SQL Statements, looks like it will take a deep test to ensure the performance. I will try to write another one if we have to, to finally reach to the highest performance. I have 5 year's in developing PHP with Oracle. We can worke on it until solved. Wish to hear from you.
$30 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am an experienced Oracle Developer having good experience in Oracle database, SQL and PL/SQL and database performance tuning, I have vast industry exposure to solve this kind problem in PRODUCTION, UAT, DEV instance, I can quickly finish this.
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Aurora, United States
0.0
0
Payment method verified
Member since Jul 16, 2019

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.