Sign Up

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

Have an account? Sign In

Have an account? Sign In Now

Sign In

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

Sign Up Here

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.

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 46589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:59:22+00:00 2026-05-10T15:59:22+00:00

I’m using a custom-built inhouse application that generates a standard set of reports on

  • 0

I’m using a custom-built inhouse application that generates a standard set of reports on a weekly basis. I have no access to the source code of the application, and everyone tells me there is no documentation available for the Oracle database schema. (Aargh!)

I’ve been asked to define the specs for a variant of an existing report (e.g., apply additional filters to constrain the data set, and modify the layout slightly). This sounds simple enough in principle, but is difficult without any existing documentation.

It’s my understanding that the logs can’t help me because the report only queries the database; it does not actually insert, delete, or update database values, so there is nothing to log (is this correct?).

So my question is this: is there a tool or utility (Oracle or otherwise) that I can use to see the actual SQL statement that is being executed while the report generation job is still running? I figure, if I can see what tables are actually being accessed to produce the existing report, I’ll have a very good starting point for exploring the schema and determining the correct SQL to use for my own report.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:59:23+00:00Added an answer on May 10, 2026 at 3:59 pm

    On the data dictionary side there are a lot of tools you can use to such as Schema Spy

    To look at what queries are running look at views sys.v_$sql and sys.v_$sqltext. You will also need access to sys.all_users

    One thing to note that queries that use parameters will show up once with entries like

    and TABLETYPE=’:b16’ 

    while others that dont will show up multiple times such as:

    and TABLETYPE=’MT’ 

    An example of these tables in action is the following SQL to find the top 20 diskread hogs. You could change this by removing the WHERE rownum <= 20 and maybe add ORDER BY module. You often find the module will give you a bog clue as to what software is running the query (eg: ‘TOAD 9.0.1.8’, ‘JDBC Thin Client’, ‘runcbl@somebox (TNS V1-V3)’ etc)

    SELECT   module,   sql_text,   username,   disk_reads_per_exec,   buffer_gets,   disk_reads,   parse_calls,   sorts,   executions,   rows_processed,   hit_ratio,   first_load_time,   sharable_mem,   persistent_mem,   runtime_mem,   cpu_time,   elapsed_time,   address,   hash_value  FROM    (SELECT    module,     sql_text ,     u.username ,     round((s.disk_reads/decode(s.executions,0,1, s.executions)),2)  disk_reads_per_exec,     s.disk_reads ,     s.buffer_gets ,     s.parse_calls ,     s.sorts ,     s.executions ,     s.rows_processed ,     100 - round(100 *  s.disk_reads/greatest(s.buffer_gets,1),2) hit_ratio,     s.first_load_time ,     sharable_mem ,     persistent_mem ,     runtime_mem,     cpu_time,     elapsed_time,     address,     hash_value    FROM    sys.v_$sql s,     sys.all_users u    WHERE    s.parsing_user_id=u.user_id     and UPPER(u.username) not in ('SYS','SYSTEM')    ORDER BY    4 desc)  WHERE  rownum <= 20; 

    Note that if the query is long .. you will have to query v_$sqltext. This stores the whole query. You will have to look up the ADDRESS and HASH_VALUE and pick up all the pieces. Eg:

    SELECT  * FROM  sys.v_$sqltext WHERE  address = 'C0000000372B3C28'  and hash_value = '1272580459' ORDER BY   address, hash_value, command_type, piece ; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 79k
  • Answers 79k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You need to get the referring URL and then strip… May 11, 2026 at 4:11 pm
  • Editorial Team
    Editorial Team added an answer The first thing to do is to separate the behavior(s)… May 11, 2026 at 4:11 pm
  • Editorial Team
    Editorial Team added an answer We're using CMake for Linux projects. CMake can generate KDevelop… May 11, 2026 at 4:11 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.