Sign Up

Sign Up to our social questions and Answers to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In
Continue with Google
or use


Have an account? Sign In Now

Sign In

Login to our social questions & Answers to ask questions, answer people’s questions & connect with other people.

Sign Up Here
Continue with Google
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Continue with Google
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Oraask Logo Oraask Logo
Sign InSign Up

Oraask

  • Write
    • Add A New Post
    • Ask A Question

Oraask Navigation

Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

isouravghosh

Juniorisouravghosh
Ask isouravghosh
118 Visits
3 Followers
0 Questions
Home/ isouravghosh/Followers Answers
  • About
  • Questions
  • Answers
  • Best Answers
  • Posts
  • Polls
  • Asked Questions
  • Followed
  • Favorites
  • Comments
  • Followers Questions
  • Followers Answers
  • Followers Posts
  • Followers Comments
  1. Asked: June 20, 2016In: PL/SQL

    Return more than one row from stored procedure in pl/sql

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on August 13, 2017 at 7:09 pm

    hello aya, as you know the procedure you can't use inside query so if you need to create procedure to return multiple row or values you can use : create or replace procedure myprocedure(retval in out sys_refcursor) is begin open retval for select employee_id,last_name from employees; end myprocedureRead more

    hello aya,

    as you know the procedure you can’t use inside query so if you need to create procedure to return multiple row or values you can use :

    create or replace procedure myprocedure(retval in out sys_refcursor) is
    begin
    open retval for
    select employee_id,last_name from employees;
    end myprocedure;

    and here you can call procedure inside anonymous pl/sql block :

    [code]

    DECLARE
    myrefcur SYS_REFCURSOR;
    employee_id employees.employee_id%TYPE;
    last_name employees.last_name%TYPE;
    BEGIN
    myprocedure (myrefcur);

    LOOP
    FETCH myrefcur INTO employee_id,last_name;

    EXIT WHEN myrefcur%NOTFOUND;
    DBMS_OUTPUT.put_line (‘Employee Id: ‘ || employee_id || ‘ Last Name: ‘|| last_name);
    END LOOP;

    CLOSE myrefcur;
    END;
    [/code]

    hope this help.

    See less
      • -1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  2. Asked: July 30, 2017In: Oracle Database

    How to Create the TKPROF Trace File in oracle ?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on August 6, 2017 at 8:35 am

    Hello , Solution : For the TKPROF a) tkprof rawtrace.trc output_file explain=apps/apps/sort=(exeela,fchela) sys=no b) rawtrace.trc: Name of trace file output_file: tkprof out file explain: This option provides the explain plan for the SQL statements sort: This provides the sort criteria in which allRead more

    Hello ,

    Solution :

    • For the TKPROF
      a) tkprof rawtrace.trc output_file explain=apps/apps/sort=(exeela,fchela) sys=no
      b) rawtrace.trc: Name of trace file
      output_file: tkprof out file
      explain: This option provides the explain plan for the SQL statements
      sort: This provides the sort criteria in which all SQL statements will be sorted. This will bring the bad SQL at the top of the outputfile.
      sys=no: Disables SQL statements issued by user SYS

    Regards ,

    Mahmoud Morsy

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  3. Asked: July 31, 2017In: Oracle Applications DBA

    How to see lock on table and query?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on August 6, 2017 at 8:31 am

    Hi Mina , Try this query : [code] SELECT c.owner, c.object_name, c.object_type, b.sid, b.serial#, b.status, b.osuser, b.machine FROM v$locked_object a, v$session b, dba_objects c WHERE b.sid = a.session_id AND a.object_id = c.object_id AND xidsqn != 0; [/code] Regards , Mahmoud Morsy

    Hi Mina ,

    Try this query :

    [code]
    SELECT c.owner,
    c.object_name,
    c.object_type,
    b.sid,
    b.serial#,
    b.status,
    b.osuser,
    b.machine
    FROM v$locked_object a, v$session b, dba_objects c
    WHERE b.sid = a.session_id AND a.object_id = c.object_id AND xidsqn != 0;
    [/code]

    Regards ,

    Mahmoud Morsy

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  4. Asked: June 19, 2016In: Oracle SQL

    What is the difference between schema and user ?

    Hassan AbdElrahman
    Hassan AbdElrahman Master Oracle ACE Pro Alum ♠ | Oracle Senior ERP Technical Consultant
    Added an answer on August 5, 2017 at 9:37 pm

    SCOTT is a schema that includes the EMP, DEPT and BONUS tables with various grants, and other stuff. SYS is a schema that includes tons of tables, views, grants, etc etc etc. SYSTEM is a schema.....   Technically -- A schema is the set of metadata (data dictionary) used by the database, typicalRead more

    SCOTT is a schema that includes the EMP, DEPT and BONUS tables with various grants, and other stuff.

    SYS is a schema that includes tons of tables, views, grants, etc etc etc.

    SYSTEM is a schema…..

     

    Technically — A schema is the set of metadata (data dictionary) used by the database, typically generated using DDL. A schema defines attributes of the database, such as tables, columns, and properties. A database schema is a description of the data in a database.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  5. Asked: July 30, 2017In: Oracle Applications DBA

    I need query to get Apps_user_name , Date , SID , SERIAL#, oracle process , application process , Module , responsibility name in EBS R12.

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 31, 2017 at 1:48 pm

    Hello , The below query help you : select usr.user_name apps_username ,ses.osuser ,ses.machine ,i.first_connect "First Connect Date" ,ses.sid ,ses.serial# ,ses.module ,v.spid "Oracle Server Process" ,ses.process "Application Server Process" ,rsp.responsibility_name "Responsibility Name" ,null "RespoRead more

    Hello ,

    The below query help you :

    select usr.user_name apps_username
    ,ses.osuser
    ,ses.machine
    ,i.first_connect "First Connect Date"
    ,ses.sid
    ,ses.serial#
    ,ses.module
    ,v.spid "Oracle Server Process"
    ,ses.process "Application Server Process"
    ,rsp.responsibility_name "Responsibility Name"
    ,null "Responsibility Start Time"
    ,fuc.function_name "Function Name"
    ,i.function_type "Function Type"
    ,i.last_connect function_start_time
    from icx_sessions i
    ,fnd_logins l
    ,fnd_appl_sessions a
    ,fnd_user usr
    ,fnd_responsibility_tl rsp
    ,fnd_form_functions fuc
    ,gv$process v
    ,gv$session ses
    where i.disabled_flag = 'N'
    and i.login_id = l.login_id
    and l.end_time is null
    and i.user_id = usr.user_id
    and l.login_id = a.login_id
    and a.audsid = ses.audsid
    and l.pid = v.pid
    and l.serial# = v.serial#
    and i.responsibility_application_id = rsp.application_id(+)
    and i.responsibility_id = rsp.responsibility_id(+)
    and i.function_id = fuc.function_id(+)
    and i.responsibility_id not in (select t1.responsibility_id
    from fnd_login_responsibilities t1
    where t1.login_id = l.login_id)
    and rsp.language(+) = 'US'
    union
    select usr.user_name apps_username
    ,ses.osuser
    ,ses.machine
    ,l.start_time
    ,ses.sid
    ,ses.serial#
    ,ses.module
    ,v.spid
    ,ses.process
    ,rsp.responsibility_name
    ,r.start_time
    ,null
    ,null
    ,null function_start_time
    from fnd_logins l
    ,fnd_login_responsibilities r
    ,fnd_user usr
    ,fnd_responsibility_tl rsp
    ,gv$process v
    ,gv$session ses
    where l.end_time is null
    and l.user_id = usr.user_id
    and l.pid = v.pid
    and l.serial# = v.serial#
    and v.addr = ses.paddr
    and l.login_id = r.login_id(+)
    and r.end_time is null
    and r.responsibility_id = rsp.responsibility_id(+)
    and r.resp_appl_id = rsp.application_id(+)
    and rsp.language(+) = 'US'
    and r.audsid = ses.audsid
    union
    select usr.user_name
    ,ses.osuser
    ,ses.machine
    ,l.start_time
    ,ses.sid
    ,ses.serial#
    ,ses.module
    ,v.spid
    ,ses.process
    ,null
    ,null
    ,frm.user_form_name
    ,ff.type
    ,f.start_time function_start_time
    from fnd_logins l
    ,fnd_login_resp_forms f
    ,fnd_user usr
    ,fnd_form_tl frm
    ,fnd_form_functions ff
    ,gv$process v
    ,gv$session ses
    where l.end_time is null
    and l.user_id = usr.user_id
    and l.pid = v.pid
    and l.serial# = v.serial#
    and v.addr = ses.paddr
    and l.login_id = f.login_id(+)
    and f.end_time is null
    and f.form_id = frm.form_id(+)
    and f.form_appl_id = frm.application_id(+)
    and frm.language(+) = 'US'
    and f.audsid = ses.audsid
    and ff.form_id = frm.form_id
    order by function_start_time

    Regards,

    Mahmoud Morsy

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  6. Asked: July 30, 2017In: Oracle Database

    How to check Archive log sequence in Oracle DB 11g?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 31, 2017 at 1:44 pm

    Hi, Use the below query : [code] SELECT * FROM v$archived_log ORDER BY stamp DESC [/code] Regards, Mahmoud Morsy

    Hi,

    Use the below query :

    [code]
    SELECT *
    FROM v$archived_log
    ORDER BY stamp DESC
    [/code]

    Regards,

    Mahmoud Morsy

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  7. Asked: July 30, 2017In: Oracle Applications DBA

    How to check Workflow Mailer Status By query in EBS R12?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 31, 2017 at 1:42 pm
    This answer was edited.

    Hi , You can use the below query : SELECT component_name AS Component, component_status AS Status FROM apps.fnd_svc_components WHERE component_type = 'WF_MAILER' Regards, Mahmoud Morsy

    Hi , You can use the below query :

    SELECT component_name AS Component, component_status AS Status 
    FROM apps.fnd_svc_components 
    WHERE component_type = 'WF_MAILER'

    Regards,
    Mahmoud Morsy

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  8. Asked: July 30, 2017In: Oracle Applications DBA

    How to query Gather schema statistic For Last week NonApps schemas in EBS R12?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 31, 2017 at 1:36 pm

    Hello , Check the below Query: [code] SELECT * FROM apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r WHERE r.concurrent_program_id = p.concurrent_program_id AND r.program_application_id = p.application_id AND p.user_concurrent_program_name IN ('Gather Statistics for NonApps Schema')Read more

    Hello ,

    Check the below Query:

    [code]
    SELECT *
    FROM apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r
    WHERE r.concurrent_program_id = p.concurrent_program_id
    AND r.program_application_id = p.application_id
    AND p.user_concurrent_program_name IN (‘Gather Statistics for NonApps
    Schema’)
    AND ( r.phase_code = ‘C’
    AND r.status_code = ‘C’
    AND r.actual_start_date >= SYSDATE)
    [/code]

    Regards

    Mahmoud Morsy

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  9. Asked: July 30, 2017In: Oracle Applications DBA

    How to query Gather schema statistic For Last week For Apps schema in EBS R12?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 31, 2017 at 1:34 pm

    Hi, Try the below Query: [code] SELECT * FROM apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r WHERE r.concurrent_program_id = p.concurrent_program_id AND r.program_application_id = p.application_id AND p.user_concurrent_program_name IN ('OnDemand Gather Schema Statistics', 'GatherRead more

    Hi,

    Try the below Query:

    [code]
    SELECT *
    FROM apps.fnd_concurrent_programs_vl p, apps.fnd_concurrent_requests r
    WHERE r.concurrent_program_id = p.concurrent_program_id
    AND r.program_application_id = p.application_id
    AND p.user_concurrent_program_name IN (‘OnDemand Gather Schema Statistics’,
    ‘Gather Schema Statistics’,
    ‘Gather Schema Statistics (IT_ANALYZE)’)
    AND ( r.phase_code = ‘C’
    AND r.status_code = ‘C’
    AND r.actual_start_date >= sysdate)
    [/code]

     

    Regards,

    Mahmoud Morsy.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
  10. Asked: July 27, 2017In: Oracle Database

    How to kill current session in Oracle (ORA-00027 ) ?

    Mmorsy
    Mmorsy Junior mahmoudmorsymm1985@gmail.com
    Added an answer on July 31, 2017 at 1:40 pm
    This answer was edited.

    You can use this SQL statement to get the SID, SERIAL# of the current session: SELECT s.sid,s.serial#,spid,TRIM (s.machine) machine,TRIM (s.module) module,statusFROM v$session s, v$process pWHERE paddr = addr AND module IS NOT NULLORDER BY 1, 2 Then with sqlplus Run ALTER SYSTEM KILL SESSION 'sid,seRead more

    You can use this SQL statement to get the SID, SERIAL# of the current session:


    SELECT s.sid,
    s.serial#,
    spid,
    TRIM (s.machine) machine,
    TRIM (s.module) module,
    status
    FROM v$session s, v$process p
    WHERE paddr = addr AND module IS NOT NULL
    ORDER BY 1, 2

    Then with sqlplus Run

    ALTER SYSTEM KILL SESSION 'sid,serial#';

    Or by shell commnad:

    kill -9 spid.

    Regards,

    Mahmoud Morsy.

    See less
      • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
1 … 11 12 13 14 15 … 19

Sidebar

Adv 250x250

Explore

  • Categories
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Dev Tools
    • Online Compiler
    • Base64 Converter
    • Oraask XML Formatter
    • Oraask JSON Formatter
  • Wiki
    • SQL Tutorials
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials

Footer

Oraask

About

Oraask is a website for developers and software engineers who want to learn new skills, share their knowledge, and solve their coding problems. Oraask provides free content on various programming languages and topics, such as Oracle, Python, Java, etc. Oraask also allows users to ask questions and get answers from other members of the community.

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy
  • Terms & Conditions

Follow

Oraask is licensed under CC BY-NC-SA 4.0Oraask CopyrightOraask CopyrightOraask CopyrightOraask Copyright

© 2019 Oraask. All Rights Reserved
With Love by Oraask.