Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the sql used by EBS DBA for daily maintenance?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article is about what sql is used to maintain EBS DBA on a daily basis. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Query the number of sessions of the application server

Select 'Number of user sessions:' | | count (distinct session_id)

How_many_user_sessions

From icx_sessions icx

Where disabled_flag! ='Y'

And PSEUDO_FLAG ='N'

And (last_connect + decode (FND_PROFILE.VALUE ('ICX_SESSION_TIMEOUT'), NULL)

Limit_time, 0century timepiece FNDworkshop PROFILE.Vale ('ICX_SESSION_TIMEOUT') / 60) / 24) > sysdate

And counter

< limit_connects; 查看当前正在运行的报表(如果查不到,则把这行注释and a.phase_code in ('I','P','R','T')) select q.concurrent_queue_name qname ,f.user_name || ': ' || f.description ,a.request_id "Req Id" ,decode(a.parent_request_id,-1,NULL,a.parent_request_id) "Parent" ,a.concurrent_program_id "Prg Id" ,decode(a.phase_code,'C','Completed','I','Inactive','P','Pending','R','Running',a.phase_code) "Phase_Code" ,decode(a.status_code,'G','Warning','C','Normal','E','Error','R','Normal','D','Cancelled','I','Scheduled', 'X','Terminated',a.status_code) "Status_Code" -- ,b.os_process_id "OS" -- ,vs.sid -- ,vs.serial# "Serial#" -- ,vp.spid ,a.oracle_process_id "spid" ,a.actual_start_date ,a.actual_completion_date ,round((nvl(a.actual_completion_date,sysdate)-a.actual_start_date)*1440,2) "Time--Minutes" ,c.concurrent_program_name||' - '|| c2.user_concurrent_program_name||' '||a.description "Program" ,a.argument_text from APPLSYS.fnd_Concurrent_requests a ,APPLSYS.fnd_concurrent_processes b ,applsys.fnd_concurrent_queues q ,APPLSYS.fnd_concurrent_programs_tl c2 ,APPLSYS.fnd_concurrent_programs c ,APPLSYS.fnd_user f -- ,v$session vs -- ,v$process vp where a.controlling_manager = b.concurrent_process_id and a.concurrent_program_id = c.concurrent_program_id and a.program_application_id = c.application_id and c2.concurrent_program_id = c.concurrent_program_id and c2.application_id = c.application_id and a.phase_code in ('I','P','R','T') and a.requested_by = f.user_id and b.queue_application_id = q.application_id and b.concurrent_queue_id = q.concurrent_queue_id and c2.language = 'US' 查看报表名称为CUX:下单明细表最近100天的运行情况 select -- q.concurrent_queue_name qname f.user_name || ': ' || f.description ,a.request_id "Req Id" -- ,decode(a.parent_request_id,-1,NULL,a.parent_request_id) "Parent" ,a.concurrent_program_id "Prg Id" ,decode(a.phase_code,'C','Completed','I','Inactive','P','Pending','R','Running',a.phase_code) "Phase_Code" ,decode(a.status_code,'G','Warning','C','Normal','E','Error','R','Normal','D','Cancelled','I','Scheduled', 'X','Terminated',a.status_code) "Status_Code" -- ,b.os_process_id "OS" -- ,vs.sid -- ,vs.serial# "Serial#" -- ,vp.spid ,a.oracle_process_id "spid" ,a.actual_start_date ,a.actual_completion_date ,round((nvl(a.actual_completion_date,sysdate)-a.actual_start_date)*1440,2) "Time--Minutes" ,c.concurrent_program_name||' - '|| c2.user_concurrent_program_name||' '||a.description "Program" ,a.phase_code ,a.argument_text from APPLSYS.fnd_Concurrent_requests a ,APPLSYS.fnd_concurrent_processes b ,applsys.fnd_concurrent_queues q ,APPLSYS.fnd_concurrent_programs_tl c2 ,APPLSYS.fnd_concurrent_programs c ,APPLSYS.fnd_user f -- ,v$session vs -- ,v$process vp where a.controlling_manager = b.concurrent_process_id and a.concurrent_program_id = c.concurrent_program_id and a.program_application_id = c.application_id and c2.concurrent_program_id = c.concurrent_program_id and c2.application_id = c.application_id -- and a.phase_code in ('I','P','R','T') and a.requested_by = f.user_id and b.queue_application_id = q.application_id and b.concurrent_queue_id = q.concurrent_queue_id and c2.language = 'US' and c2.user_concurrent_program_name='CUX:下单明细表' and a.actual_start_date>

Sysdate-30

Order by a.actual_start_date

-- find the corresponding Session information according to Request ID:

Select *

From v$session

Where paddr in

(select addr

From v$process

Where spid =

(select b.oracle_process_id

From apps.fnd_concurrent_requests b

Where b.request_id = & req_id))

-- query default application users, such as whether they need to be locked or modified

SELECT ROWID

, user_name

, description

, password_lifespan_days

, password_lifespan_accesses

, email_address

, fax

, start_date

, end_date

, user_id

, last_logon_date

, encrypted_foundation_password

, encrypted_user_password

, password_date

, password_accesses_left

, employee_id

, customer_id

, supplier_id

, person_party_id

, session_number

, last_update_date

, last_updated_by

, created_by

, creation_date

, last_update_login

FROM apps.fnd_user

WHERE user_name IN ('AME_INVALID_APPROVER','ANONYMOUS','APPSMGR','ASADMIN','ASGADM','ASGUEST','AUTOINSTALL','CONCURRENT MANAGER','FEEDER SYSTEM'

'GUEST','IBE_ADMIN','IBE_GUEST','IBEGUEST','IEXADMIN','INDUSTRY DATA','INITIAL SETUP','IRC_EMP_GUEST','IRC_EXT_GUEST','MOBILEADM','MOBILEDEV','OP_CUST_CARE_ADMIN'

'OP_SYSADMIN','ORACLE12.0.0','ORACLE12.1.0','ORACLE12.2.0','ORACLE12.3.0','ORACLE12.4.0','ORACLE12.5.0','ORACLE12.6.0','ORACLE12.7.0','ORACLE12.8.0','ORACLE12.9.0','PORTAL30'

'PORTAL30_SSO','STANDALONE BATCH PROCESS','SYSADMIN','WIZARD','XML_USER') and end_date is null order by 1

-- the users that cannot be found in the WEB window are ANONYMOUS, AUTOINSTALL, INITIAL SETUP, FEEDER SYSTEM, CONCURRENT MANAGER, STANDALONE BATCH PROCESS, so these users cannot disable it manually, that is, set end_date to null on the web page. However, the end_date system of these users has been automatically disabled by default on 1951-1-1, and only AUTOINSTALL can be found in the above statement, so AUTOINSTALL cannot be disabled only by changing the password.

Thank you for reading! This is the end of this article on "what are the sql for daily maintenance of EBS DBA?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report