Calculate the total number of the schema rowset.

Hi all

I use the oracle 10g database on windows server 2003.

I want to calculate the total number of lines in a pattern.
I have only one method to select just count (*) from each table within each schema.
because it doesn't matter what possible query that could calculate the total number of lines in a pattern?


Thank you.

Published by: Maahjoor on May 13, 2013 23:21

Hello

Well, if you keep your cool failry statistics, you can get a very good grip on the number of lines through the NUM_ROWS in dba_tables column and then summarize the owner, on the top of my head:

select sum(NUM_ROWS) from dba_tables where owner like 'SCHEMA';

Do not forget that the number of lines shown this way will be the number of lines at the time of the last crawl (dbms_stats) has been run on the segment, so it may not always be equal to the number of the schema rowset did when running.

Tags: Database

Similar Questions

  • Count the total number of rows found in the schema

    Count the total number of lines present in the schema, including the table, sequence, view

    Desirable output

    Table sequence views
    20 of 1000 1000

    Do you mean that you need to count the number of Tables, views and sequence present in the schema?

    Hi something like that.

    SELECT a.view_cnt AS "View Count", b.tab_cnt AS "Table Count",
           c.seq_cnt AS "Sequence Count"
      FROM (SELECT COUNT (*) view_cnt
              FROM USER_VIEWS) a,
           (SELECT COUNT (*) tab_cnt
              FROM USER_TABLES) b,
           (SELECT COUNT (*) seq_cnt
              FROM USER_SEQUENCES) c
    

    Gives you,

    View Count      Table Count      Sequence Count
           153              878                   32
    

    Thank you
    Shankar

    Published by: Shankar Viji on August 28, 2012 03:03

  • How to include the total number of table one fact in another fact table to calculate the percentage

    I have a fact table in the grain of each document created in any organization, say the 1st table of facts. I have another table of facts (2nd fact table) seen those documents which are considered by different commentators. grain of this second fact table is so each review, even if I document in both IDs the fact table.

    Now, I want to calculate the percentage return documents reviewed. For this I need to divide count separate from the document of performance by the total performance document. Now this document of total performance can be obtained from the 1st table of facts, but I don't get how to bring this indictment in the 2nd table of facts to show the percentage.

    Please let me know if there is no ambiguity in my question, because I'm a starter in OBIEE.

    Thank you very much.

    then you can set new logical column with two columns of fact in the formula

  • Script to gather and calculate the total number og Sockets PR. cluster

    Hello

    for licensing purposes, I need to collect a report host information and decision-making by the host.

    I want the report to include the following text:
    -Display the host by cluster (attached script) information.

    -A title with NOMCLUSTER by cluster

    -The total catch by cluster

    I guess my problem is that I work in a table and I want to insert empty lines and headlines and my attempts have failed so far. I don't know if I should convert to html format and change the page in this way. (hope not)

    I'd appreciate any help...

    / Kim

    Hi Kim,

    Welcome to the VMware communities.

    I modified your script to include a row header per cluster with the name and the total number of outlets for the cluster:

    $clusters = get-cluster | sort name
    $vms = $null
    if(test-path report.htm)
    {
        remove-item report.htm
    }
    
    foreach ($cluster in $clusters){
        $report = @()
        $ClusterSockets = 0
        foreach ($ESXHost in ($cluster | Get-VMHost | Sort Name)){
            $row = "" | Select Name, Version, Build, ClusterName, Model, ProcessorType, Sockets, Cores, PNics
            $row.name = $ESXHost.name
            $row.version = $ESXHost.version
            $row.build = $ESXHost.build
            $row.clustername = $cluster.name
            $row.model = $ESXHost.model
            $row.ProcessorType = $ESXHost.ProcessorType
            $row.sockets = ($ESXHost | Get-View).Hardware.CpuInfo.NumCpuPackages
            $ClusterSockets += $row.sockets
            $row.cores = ($ESXHost | Get-View).Hardware.CpuInfo.NumCpuCores
            $row.PNics = ($ESXHost | Get-View).Config.Network.Pnic.Count
            $report += $row
        } # End foreach host
        "

    $($Cluster.Name), Number of sockets: $ClusterSockets

    " | Out-File report.htm -append $report | ConvertTo-HTML | Out-File report.htm -append } # End foreach cluster .\report.htm

    Best regards, Robert

  • How can I find the total number of items in a dim multi table

    How can I find the total number of items in a simple Sun table or multi?

    For example, a table 2 x 3 has 6 elements, and a 2 x 3 x 4 to 24. How can I calculate this very easily - is there a single VI do that?

    David

    Use "table size" (palette table) followed by "multiply the elements of the array" (digital palette)

    (Also works well for 3D arrays and higher)

  • Unable to get the total number of records processed by the processor of trade rules

    Details of the environment

    ======================

    Disqualification Version: 12.1.3.0.0


    I use a business rules processor to implement multiple business rules on one record and I am looking for a summary of the number of records increased and does not have a specific rule.


    To illustrate:
    Suppose there are 2 rules, invalid number in Column1 and valid number on Column2.
    10 records to process and 3 folders don't rule 1 (valid on column1) and 9 entered failure of rule 2 (valid number on Column2).

    In the browser of result of the processor Business, the number of past records and failed is displayed but is not part of the output of the processor itself. In the example above, there will be 1 pass and 9 fail records and given the values of said the total number of records can be derived which is 10.

    This is why the expected output will be:
    Success of failure
    Rule 1:7 (10-3) 3
    Rule 2: 1 (10-1) 9
    Note: The number of records that failed can be derived from the table of the rule ID but I don't know how to get the total number of records in order to calculate the number of records that a given rule.

    I tried to publish the County of acceptance and rejection in the browser of result of the processor Business in an intermediate table and ask the same intermediate table to get the pass and fail values but Disqualification does not allow to write and read the same intermediary object in a single process. What is the best way to get the number of records total handled by the processor business rules? This kind of attributes (that do not exist only in the browser of result) can be included in the output of the processor in the next version of the Disqualification?

    In addition, the intermediate table contains only 1 sheet with pass and failure values while the exceptions which have individual failure on each rule contains 12 Archives. What would be the best approach to merge a single record into multiple records according to the example below?

    Staging table
    Success of failure
    1 9

    Exception table
    Single ID ID rule
    Rule 1 Record1
    Rule 1 Record2
    Rule 1 record Record3
    Rule 2 Record1

    Exception table with: staging Table data merge
    Rule ID ID Unique Pass Fail Total
    Rule 1 1 9 10 Record1
    Rule 1 1 9 10 Record2
    Recording rule 1 Record3 1 9 10
    Record1 rule 2 1 9 10

    Please notify.

    Hi Jason,

    The best way to explain how to do this is with an example project (DXI). I'll send you one in offline mode.

    -Mike

  • How to calculate the Total price based on a rate of m² with different prices?

    Hello

    I'm guessing that it is a script, but I've never done any script so I would like to ask you guys...

    I have a form where I would calculate the total price for some carpet based on the price per sqm.

    -L the user enters the number of carpet needed.

    -There are different price points for 1-20, 21-60, 61 + m² (each with their own hidden field that contains the value of awards).

    -The Total Price field evaluates the relevant quantity and multiply by the square metre rate.

    Is it achievable?

    I guess that all solutions are placed in the "Custom calculation Script" field too?

    Thanks in advance!

    Yes. You can use something like this, as the custom of the price field calculation total (you may need to adjust the domain names):

    var sqm = Number (this.getField("SQM").value);

    rate of var = 0;

    If (sqm > 0 & m²)<=20) rate="">

    ElseIf (> 20 sqm & m²)<=60) rate="">

    ElseIf (> 60 sqm) rate = Number (this.getField("Rate3").value);

    M² = Event.Value * side;

  • Calculation of the break time lunch after midnight = total number of minutes?

    Hello, Im new to Livecycle please bare with me. I have a sheet that Im having trouble with.  I searched and searching the net for answers and I did not yet find something to help solve my problem.

    Here's my problem, Im trying to calculate the total number of minutes, an employee took a lunch break. I have a script that works fine for a normal move 08:00 to 17:00. The problem is that I can't him crossed e.g. 23:45 to 12: 15 to 12:30, calculate rather im get 24 h 30.

    Here is my script if anyone out there can you please help me with this id very happy, so far its been a nightmare, try to understand this.

    If (HasValue (morningshift. Row4.Cell5) and HasValue (morningshift. Row4.Cell6)) then

    var start = Floor (Time2Num (morningshift. Row4.Cell5.FormattedValue, "h: mm A") / 1000)

    finishing of the Floor (Time2Num(morningshift.) = var Row4.Cell6.FormattedValue, "h: mm A") / 1000)

    var = regular arrival - departure

    var Min = Right (Concat ('0', Mod (Floor(regular / 60), 60)), 2)

    var h = Right (Concat ("0", ground (regular /(60*60))), 2) Concat(Hrs,":",Min)

    endif

    I had a little problem with something similar.  However, I finally came up with a simple solution.  I just snuck in an if statement in my line of code that adds 24 hours to the end time, when the start time is the largest number. The way which you extracted and formatted the calculation time seems different from mine, but the idea should still work even if you have to make small adjustments.

    Code to get the start time and end in seconds

    ..

    Look for the late shift (86400 = 24 h in seconds)

    If (fStart > = fend) {}

    fend += 86400;

    }

    ..

    Calculate and display the result

  • How to calculate the number of bytes

    There is a general algorithm that calculates the total number of bytes in a pl/sql record?

    And dates may take up to 7 or 8 bytes (for data) with the data if they are a column on a table or not in function (this is to with internal C code date types)...

    SQL> select dt, dump(dt) from xx;
    
    DT
    --------------------
    DUMP(DT)
    ----------------------------------------------
    18-FEB-2011 15:00:35
    Typ=12 Len=7: 120,111,2,18,16,1,36
    
    SQL> select sysdate, dump(sysdate) from dual;
    
    SYSDATE
    --------------------
    DUMP(SYSDATE)
    ----------------------------------------------
    18-FEB-2011 15:01:04
    Typ=13 Len=8: 219,7,2,18,15,1,4,0
    
    SQL>
    
  • Calculate the number of days between two dates

    Hello

    Can someone help please change my formcalc script to calculate the number of working days between two date fields.  My script currently calculates the total number of days between two dates, including the weekends which must be excluded from the total.

    If

    (HasValue (Start_Date1) & HasValue (End_Date1)) then

    $

    = Date2Num (End_Date1, "YYYY-MM-DD" "en_IE") - Date2Num (Start_Date1, "YYYY-MM-DD" "en_IE") + 1

    on the other

    ""

    endif

    Any help will be most appreciated.

    Thank you.

    Check...

    (1) you said that you put the script on the event «days1» calculate My sample imitates the variable names used in the original message, "Start_Date1" and "End_Date1". If the names of variables for the start and end dates are different, you will need to modify the script to account for these names.

    (2) the Date2Num functions in the calculation of the "totalDays" use the date format "YYYY-MM-DD". If your date habits differ from "YYYY-MM-DD" FormCalc will complain.

    Steve

  • How to calculate the total of a mathematical operation

    Hello everyone,

    I'm new to Essbase calculations, and I'm trying to figure out how to make a recurring calculation and store the results in a specific data point. I have two accounts:
    Volume of sales (in units) - StoreData
    Rate of work (hours) - DynamicCalc based on a specific percentage by product rate

    These two pieces of information are by product. As each product has a different rate and volume, to calculate the total number of hours required for the production of all the elements, I have to do something like the calculation below where (sales volume * wage rate) for each product:

    Total hours = SUM (sales volume * wage rate)

    It is very easy to do in relational DB, but I need help with Essbase.

    Any ideas? Thank you very much.

    M.

    You try to do something of relationship in an OLAP cube. The way to proceed is different. In Essbase, you would make the Total number of hours of calculation = sales volume * wage rate) on each product and their aggregation up to the size to get a total at different levels.

  • calculate the number of minutes

    Hello citizens of oracle,

    I have a situation where I have to calculate the number of minutes took to run the package. I've seen proc_log that will give me proc_name (give me the name of the proc), START_DT (which gives the time when the process began exactly) and EXEC_TIME (gives having plenty of time each process taken in minutes and seconds). So I need to make the sum of the column EXEC_TIME. Please help me how to do this.

    Thanks for the help.

    Sam

    So, how do you intend to group on a varchar2 column? Can you change the view to the EXEC_TIME in an interval instead? Is even more logical design-wise.

    Please post some examples of data so I can get an idea of the format for the varchar2 column.  Want to most likely to convert it to an interval to summarize time exec, or converting varchar2 int to exec_time in a few seconds, then convert minutes to maintain granularity.

    NM, I see here the format, you are def going to need to set this view if you want to match the runtime.

    You are with your format makes it incredibly hard perform such an easy task. Change this EXEC_TIME column in the view to an int of total of seconds or milliseconds of delay of performance or do this column, an INTERVAL DAY TO SECOND data type. Once you do this, you can do a 'SELECT sum (exec_time) FROM WHERE XX... »

    Published by: TheDudeNJ on November 12, 2009 13:48

    Published by: TheDudeNJ on November 12, 2009 13:49

    Published by: TheDudeNJ on November 12, 2009 13:51

  • When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?

    When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?
    I'm more interested in the case when this number is smaller than the total.

    Hello

    I think you mean the text stating "x of there matches", to the right of the box where you entered the search term.

    The first number ("x" in my example above) indicates the current entry highlighted on the page that matches the search phrase. If you use the upper and down arrows to navigate through the instances of this term on the page, you will see this number go up and down.

    I hope this helps, but if not please come back here and we can look at another solution for you.

  • In 12.4.1.6, where do you see the total number of songs in your iTunes library?

    In 12.4.1.6, where do you see the total number of songs in your iTunes library?

    In my case (iTunes on OS X 10.9.5 12.4.1), in the library section of the box I choose songs and the number appears in the status bar at the bottom of the iTunes window.  If you do not have the visible status bar, it can be activated from the iTunes menu bar, display > show status bar.

    Good luck

    SRB

  • How can I find the total number of contacts on the iPhone 6 s?

    I used to be able to see the total number of contacts on my iPhone 6s, however, does not appear more.  How can I fix it?

    Go to iCloud.com then in contacts and made scroll down - it's the only place where I was able to find

Maybe you are looking for

  • x220t cushion loose?

    Hi everyone, I just bought a x220t a bit back and I love it. However, I started to notice that on my left cushion (on the edge of the left side of the keyboard) seems to be slightly loose compared with good cushion that seems fairly sturdy and rigid.

  • All-in-one HP Officjet Pro Premium 8600

    I am trying to download the latest drivers for my HP Officjet Pro 8600 Premium all-in-one. I have Microsoft 8.1 operating system and that you have connected the printer to my laptop Samsung cable. My problem is icannot download the latest drivers for

  • A dimesion 3000 video card update

    Hello I want to update the graphics card to my dimension 3000. I looked and I'm quite limited since it cannot take that PCI cards. I have a celeron 2.4 GHz CPU with a clock of 533 MHz system. I found a geforce GT610, which seems to be a good graphics

  • Problems of Q10 of blackBerry with activsync and Exchange

    Hi all, I have a problem with an e-mail with active sync account. As a single email address with the syntax: Sistonet.org syncs to my account. I have no business Aktivation only Active Sync with MS Eychange. I try with an Iphone and it works, I try w

  • How can I cancel my package! Been trying for days now!

    How can I cancel my plan... I tried for days!