help explain the data in dba_histograms

Hi all

On Oracle 11 g 2, I need to understand the output of dba_histograms for a column with the base frequency histogram:

 COLUMN_ID COLUMN_NAME     DATA_TYPE    NUM_DISTINCT  NUM_NULLS    DENSITY HISTOGRAM
---------- --------------- ------------ ------------ ---------- ---------- ---------------
        94 DP_STR          DATE                    7          0 1.6182E-08 FREQUENCY

OWN  TABLE_NAME COLUMN_NAME    ENDPOINT_NUMBER ENDPOINT_VALUE  ENDPOINT_
---- ---------- -------------- --------------- --------------- --------------
FH   XF_TNOG_SL DP_STR         811              2456473
FH   XF_TNOG_SL DP_STR         1242             2456474
FH   XF_TNOG_SL DP_STR         1984             2456475
FH   XF_TNOG_SL DP_STR         2969             2456476
FH   XF_TNOG_SL DP_STR         3792             2456477
FH   XF_TNOG_SL DP_STR         4626             2456478
FH   XF_TNOG_SL DP_STR         5486             2456479


7 rows selected.

SQL> select DP_STR from FH.XF_TNOG_SL where rownum <= 10;


DAT_POST_
---------
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13
05-JUL-13


10 rows selected.

My question here is that since it is a basic frequency histograms, shouldn't he be showing me the real 7 different dates and their respective frequencies instead of a number as 811, 1241 etc.?

ENDPOINT_NUMBER is defined as the 'number of histogram bucket' in the documentation.  In your case a histogram of the frequency, this represents the number of lines for each bucket.  Thus, the first compartment has 811 rows, the second bucket has lines (1242-811), the third bucket (1984-1242) lines etc.

The ENDPOINT_NUMBER is a digital representation (internal Oracle) DATE of this column values.  Thus, 7 separate dates are represented in the form 2456473, 2456474, 2456475 etc.

Hemant K Collette

Tags: Database

Similar Questions

  • Need help with the data storage store, local array and network connections

    Need help with my ESXi 4.1 installation

    My hardware:

    I built a server with an Asus P6T whitebox, i7 920, 12 Gig RAM, NIC, Intel Pro1000 PT Quad, 3ware 9650SE-12ML with 8 1.5 TB SATA green in a raid 6 array gives me about 8 + TB with a spare drive all housed within a NORCO RPC-4220 4U Rackmount Server chassis.  I also have a 500 GB SATA drive which will hold the ESXi and virtual machines.

    The network includes a firewall, Netgear Prosafe FVS336G, GS724Tv of Netgear ProSafe 24 port Gigabit Managed Switch on a dhcp cable modem internet service provider.

    I also have 2 old NetGear SC101T NAS disks (4to) I want to connect to the system how some - at a later date have... data on them and want to transfer to the new storage array. I always looking into the question of whether they will work with ESXi 4.1, or I might have to only access it through Windows XP.

    My Situation:

    I have already installed ESXi 4.1 and vsphere client with no problems and it is connected to a dhcp cable internet service.  I've set up host via a dynamic DNS service name give me a static hostname on the internet.  I installed three machines to virtual OS successfully at the moment and now want to first start by creating a multimedia storage server which will use some of this new 8 TB array, then separate data storage for use with a web server small overhead storage and a backup.  It is a domestic installation.

    Help with the data store and network:

    I was doing some reading, because I'm new to this, and it looks like I'll probably want to set up my table via ESXi as a nfs disk format.  Now, the data store is usually in another physical box from what I understand, but I put my readers and ESXi all in the same box.  I'm not sure that the best way to put in place with grouped network cards, but I want to make this work.

    I understand that in ESXi 4.1 using iSCSi LUN must be less than 2 TB, but nfs - I should be able to add a bigger partition then 2 TB (for my multimedia) in nfs, right? or should I still add it separately as a separate 2 TB drives and then extend them to get the biggest space.

    Any suggestions or direct resources showing examples on how to actually add some parts of the table as data warehouses separate nfs.  I know that to go to the configuration tab, and then select Add to storage, and then select nfs. I have not my picture, but it's here that I don't know what to do because ESXi 4.1 system already has an address, should I put the same thing to the new data store array also (will it work?), and what should I use for the name of the folder and the store of data... just do something to the top.  I thought to later install Openfiler (for a multimedia storage using this table server) as a virtual machine, use the table with esxi so that I can access the same storage space with widows and linux-based systems.

    I also know I have to find a way to better use my quad nic card... put in place of virtual switches, grouping, etc HELP?

    Any direction, assistance, similar facilities to sample, suggestions or resources that would help would be great. I did a lot of hunting, but still a little confused on how to best to put in place.

    You must think of VMDK files of large databases with records of random size guest go read some data (a DLL or an INI file), maybe write some data back, then go read other data. Some files are tiny, but certain DLLs are several megabytes. It's random i/o all and heavy on the search time. IO Opsys is small random operations that are often sequential (go read data, write data, go read other data,...) so that deadlines are critical to the overall performance. That's why people say OPS are / s of reference and forget the MBs flow. The only time where you bulk transfers are when you read media (ISO files).

    Well, now forget all this. Actually the disk activity will depend on the specific applications (database? mail server? machines compiler?), but the above is true for boots, and whenever applications are idle. You should see the profile to know.

    RAID 10 is faster (and often more reliable) than RAID 5 or RAID-6 except in certain specific cases. In General RAID 10 is ideal for many random writes, since the calculation of parity for RAID-5 and - 6 adds to the overall latency between command and response - latency is cumulative if a little slow here and a little slow it adds up to a lot of overall slow synchronous especially with e/s on a network. OTOH RAID-5 and -6 can produce faster readings due to the number of heads, so you can use it for virtual machines that transfer bulk. Test. You may find that you need several different types subdashboards for best results.

    You said 3ware, they have some good grades on their site, but don't believe it. With my 9650 that I found myself with only a couple of their recommendations-, I put the (simple) table for allocation size 256 k, nr_requests at 2 x the queue_depth and use the planner date limit. I had the habit for the Ext4 file system formatted with stride and stripe-width synced to the table and used the options large_files with fewer inodes (do not use the huge_files option unless you plan to have single VMDK files in the terabyte range). Use a cache of great reading in advance.

    Virtual machines use VMDK files in all cases except raw iSCSI LUN that they treat native disks. VMDK is easier to manage - you can make a backup by copying the file, you can move it to a PC and load it into another flavour of VMware, etc. There could be some features iSCSI to your San as a transparent migration but nothing for me. NFS has less chatter of Protocol if latency lower times to complete an operation. NFS is good to read and write a block of data, that's all it boils down to.

    UPS is good, but it won't help if something inside the machine explodes (UPS does nothing if the PC power supply goes down). If the RAID card has an option for a battery backup module, so it can contain some writings in memory and may end up the disk i/o after replacing the power supply. 3ware also limits the types of caching available if help is not installed, and you get just the right numbers with the module.

  • Touch iPhone 5s does not not needing help for the data on it.

    iPhone 5 s (iOS 9) I have blue and red lines on the screen and the touch does not work at all, but the phone still works as usual outside the lines and contactless (voice on don't work/Siri as other items said worked, I do not have wifi for Siri). What I want is the data on the phone, I have a macbook pro (OS X 10.11) a fix would be better, but all I need is the data. I have icloud activated, but it was defective on my phone so don't know if I had a full backup and would like to know how to check. I have a form of computer backup about 2 months ago, but wanted all the pictures and data since then.

    At the back for up to my pc, I need is to unlock my phone, so any help will be appreciated.

    Thank you

    If connect to iTunes and perform a full backup

    And also connect on iCloud & see you backup recently

  • Need help with the date of Validation Urgent

    Hello

    We need help in the Validation Date.

    We have 2 fields of Date on the form the Start Date, End Date

    The requirement is: End Date (cannot be more than 30 years as of the start date).

    I wrote after the script on the exit eventof the End Date . But the problem is its calculation of 30 years from the current Date not from the Start Date

    var

    tDate = util.scand (' mm/dd/yyyy', new Date());

    var

    M = tDate.getMonth ();

    var

    D = tDate.getDate ();

    var

    Y = tDate.getFullYear ();

    var

    SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );

    App.Alert (SRes)

    If

    (SRes < = this.rawValue)

    {

    App.Alert ("cannot be greater than 30 years from the start date")

    () xfa.host.setFocus

    ce );

    }

    can someone help me please

    Kind regards

    Jay

    Hello

    You need to get the LCD field javascript and calculate & compare with the future date in date javascript.

    Try the following script.

    var sDate = StartDate.rawValue;
    var wkStartDate = util.scand ("yyyy-mm-dd", sDate);

    nYear var = wkStartDate.getFullYear ();
    nMonth var = wkStartDate.getMonth ();
    nJour var = wkStartDate.getDate ();

    var wkFutureDate = new Date (+ 30 nYear, nMonth, nJour);

    sDate = EndDate.rawValue;
    var wkEndDate = util.scand ("yyyy-mm-dd", sDate);

    If (wkEndDate.getTime () > wkFutureDate.getTime ()) {}
    xfa.host.messageBox ("cannot be more than 30 years from the start date");
    xfa.host.setFocus (this);
    }

  • Help register the date as quarters

    Hello world

    I did this in the transaction date and implement validation

    IF TO_CHAR(:BLK1.) EO_TRNX_DATE, "DD/MM/YYYY") not in (March 31, 2010 ", June 30, 2010" ", September 30, 2010" ", December 31, 2010", December 31, 2009 ", September 30, 2009") THEN
    message ('Invalid Date');
    message ('Invalid Date');
    RAISE FORM_TRIGGER_FAILURE;

    END IF;

    Here, I must set the date of the year.
    I want to do not to set the year, I want to just the inert user in the quarter of the year during the year
    for example

    30/09/2007
    30/09/2000
    31/12/2002

    I need to set it in the code

    Just leave the thema out of your TO_CHAR, as

    IF TO_CHAR(:BLK1.EO_TRNX_DATE,'DD/MM')not in ('31/03','30/06','30/09','31/12') THEN
    message('Invalid Date');
    message('Invalid Date');
    RAISE FORM_TRIGGER_FAILURE;
    
    END IF;
    
  • Help explain the flow meter VI

    After a lot of tinkering, I seem to have developed an effective VI for use with a type/pelton turbine flowmeter. The flow meter outputs a stream of pulses which

    can count on the counter of my 6501 line. Unfortunately this eureka moment happened somewhat by chance, and I'm hoping someone

    could be kind enough to explain step by step or in terms very simple for beginners (me) works of VI, thank you.

    Kind regards

    GER

    GER,

    Welcome to the Forums and LabVIEW.

    If you don't the have already made, please work through the tutorials online to get started with LabVIEW. The answers to some of the questions you may have are probably there.

    A brief description of your VI:

    1. the overall structure is a loop For. It works for the number of iterations that is connected to the Terminal in your case 5 N.

    2. the calendar of the loop is determined by the longest time required for any part of the code inside the loop execution. On the first iteration, the DAQ Assistant configures the counter and starts measurement. On all subsequent iterations, he reads everything simply an indictment. On these iterations, the 25 les 25 ms ms expect will dominate. This VI runs approximately 40 iterations per second (for 5 iterations).

    This means that the program will take place on 5 * 25 ms = 0.125 sec and then stops. If you run for more 1/8 of a second to help run it continuously button, STOP. Which is intended for certain types of troubleshooting only.

    3. the table of waveform and the flow rate meter only shows the last value of the five iterations. (This suggests also that you use run continuously)

    4. the registers at offset in this VI nothing do. The upper shift register calculates the cumulative number of the flow meter, but the result is never used. The underpass registry has nothing connected to the Terminal inside the loop on the left. It could be replaced by a terminal.

    Suggestions:

    1. in order to avoid using run continuously, replace the loop with a while for loop. Add a stop button on the front panel and connect it to the stop it real terminal in the loop. Move the graphic terminals of waveform and flow inside the loop.

    2 check your pulse to the algorithm of flow rate. The time for the count interval must be considered.  For example if the meter registers 25 pulse in 25 Member States, which represents 1 000 pulses per second. This isn't which will show your VI.

    3. see examples of code that uses counters.

    Lynn

  • display list, ranked by the help of the DATE

    Hello

    I'm looking to create a list view, which displays the list items that separated by date.

    I used ListField one to be on the list.

    But the separation as in the picture is confused me, I use OS 5.0

    Help, please.

    I get a list of objects not sorted with a date attribute. I have sort with a simplesortingvector and create a bean for each unique date (which contains all the objects for this date).

    i iterate through the list of beans and create a label and a list for each one. the listfield Gets the vector of the bean objects.

    hope that help, I rarely give code I have a job, not freelance.

  • Coding help - copy the date and the subject of the e-mail

    If I wanted to create a menu button that allows you to copy the object (and possibly date) of the email message that is highlighted, it is extremely difficult to achieve? I was told that the BIS, it is very delicate.

    Thanks for any help

    If you have no experience of java, then you should probably start learning java. Get a java book and work through the sample code provided with Eclipse everything first.

    There are a few books entry on Blackberry Java development - start here. The books of J2SE will confuse you by introducing libraries that are not part of Java fo distribution the BB.

    You can also take a look at Peter tutorials (search the Forum - Peter Strange)

  • Help with the data store migration script

    Hey everybody,

    I am currently responsible for the migration of disks in new storage. Each virtual computer might have multiple disks on different data warehouses. The script I'm working on that will check the VM for the disks located on a certain store of data, then if necessary to migrate the disk to the new data store. However, I'm lost. I hope I'm at least on the right track. Any help is very appreciated.

    Thank you!

    $csv = import-Csv-Path "e:\scripts\hunter\vantage_qadev.csv".

    foreach ($ent in ($csv))

    {

    $ds = get-Datastore ' QADEV_OS_HUS127 * ' | Sort descending FreeSpaceGB | Select-Object - 1 first

    $vmname = get-VM-name $ent.vmnames

    $vmds = $vmname | Get-hard drive | Select file name

    If ($vmds - eq "* QADEVOS_VSP986 *") {Get - VM $ent.vmnames |} Get-hard drive | Moving-hard drive - Datastore $ds}

    Else {Write-Host "Migration without any preconditions"}

    }

    That's what I did to make it work. The fact it's supposed to I would say...

    $csv = Import-Csv -way "e:\scripts\hunter\vantage_prod.csv".

    foreach ($ent in ($csv))

    {

    $ds = Get-Datastore ' DST_PROD_OS_HUS127 * ' | Sorting FreeSpaceGB -down | Select-Object -First 1

    Foreach ($HardDisk in (Get-VM -name $ent.vmnames |)) (( Get - hard drive))

    {

    $vm = Get-VM -name $ent.vmnames

    $hds = Get - hard drive -VM $vm

    $lunname = Get-VM -name $ent.vmnames | Get - hard drive | Select-Object -Property @{N = "Datastore"; E = {$harddisk. FileName.Split("]") [0]. TrimStart("[")}}

    If ($lunname - like "* DM_PROD_OS_VSP986 *") {Get-VM -name $ent.vmnames |} Get - hard drive | Moving - hard drive { -Data store $ds -confirm: $false}

    else {Write-Host $ent.vmnames ' not migrated '}

    }

    }

    What is a better way to do it?

  • help convert the date please

    I have 3 possible length Dates stored in a field of VARCHAR2 type, I'm trying to convert that to a friend:

    We are looking for this as a Date or a numeric field, or both in the end (this is what is needed)

    YYYYMMDD 20110829

    what I have is these different type of length on the ground:

    8

    13/07/13

    9

    30/06/2012

    10

    13/10/2011

    Can someone help me convert this field is number: 20120512 or Date YYYYMMDD? the two examples would help too:-) learning

    You can use the below to find the problem dates to your table. SELECT must of course be updated with your table/column names

    CREATE OR REPLACE FUNCTION dateconvert(p_chardate  VARCHAR2)
    RETURN VARCHAR2
    AS
      v_date  DATE;
    BEGIN
      v_date := TO_DATE(p_chardate, 'MM/DD/RR');
    
      RETURN 'OK';
    EXCEPTION
      WHEN OTHERS THEN
        RETURN   p_chardate;
    END;
    
    SELECT datecol
    FROM   datetable
    WHERE dateconvert(datecol) != 'OK';
    
  • What is the 'Live' page and need help with the data merge

    Hello

    Im very new to indesign naked with me. Im trying to merge data (need to create a fusion template?) and what I understand is that I need to be on the page 'Live '. Someone on the forum suggested this...

    There are two ways to set up the model of fusion. You can put your placholders on the master page or on the live page. If the placehlders are on the master page, only the frame (s) with placeholders, as well as other grouped objects, will be duplicated. On the live page, ID will try to duplictate EVERYTHING on the page, so you must be very careful about installation and sizing of objects.

    I want to be on the LIVE page... How can I do this? Got any other sort but can't get several records for the life of me to come.

    Thank you for your help adavance

    It is the opposite of multiple records per page. Make x copies of a single record on a page, put x sets of organized placeholders as you want on the page. A good way to do it is with Edit > step and repeat after you set up the left superior set. Now merge as one record per page.

  • Hi, I need help with the dates of the plugins added to my browser

    Hi I need to know when a plugin has been installed on my browser.

    openh264 / video codec provided by cisco systems.

    If you can't help, please point me in the direction of someone who can?
    

    Any help much appreciated.

    Hello, this particular plugin has been installed with the update for firefox 33.
    http://andreasgal.com/2014/10/14/openh264-now-in-Firefox/

  • Helps restore the data

    I use the Windows backup utility on a server (Windows 2000) to save in a directory on another server (windows 2003).

    A full backup works on Tuesday and then incremental on Mar, game, Friday and Monday.  The full backup file extension is bks where additional file types are bkf.

    Windows backup & restore utility does not recognize the bks file.  What can I do?

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Post your question in the Forum TechNet".

    http://social.technet.Microsoft.com/forums/en/categories/

    I hope this helps.

  • Help recover the data of Zire 21 with dead touchscreen and no connectivity or requests

    My old Zire 21 was suddenly no longer meets the stylus on the touch screen, so I can raise no longer any application to do a HotSync to save my data (and my old hotsynched data has been saved on another computer and doesn't have a lot of added information about the Zire).  I can still put the on and turned off and I can get to the calendar and address book using the buttons, but I can't be sure that the machine is always in charge when connected by a USB cable and I can't get the Zire to use HotSync to perform a HotSync operation.  Also, when I try to connect the Zire via the USB cable, it is not recognized as connected (it does not appear in the list of connected devices).  I tried the two running a business card inside the screen to dislodge dirt and do a soft restart, both without effect.  Anyone have an idea how I can get my data out the Zire21 and on the Palm desktop, I downloaded on my current computer, so that I won't lose data (especially if the Zire is discharged soon)?  And if I do, do anyone know how I can then download the information to my new Gmail account?  Thanks in advance.

    As if by magic, it just started working again.  Prayer seems to be an effective remedy for this problem...  And backup solves the problem, if it happens again.

  • Need help with the date

    Hi all

    I have a requirement where my table contains the values key1, Key2, and timestamp (example 24 January 2013 06:45:45)

    Now I have several values for the same key1, key2, and date with different stamps. I need to keep records only 2 with less output and max timestamp for key1 and key2.

    Can you please indicate how this can be done?

    Like this

    SQL > create table k (key1, key2 whole integer, date of ts);

    Table created.

    SQL > insert into k
    2. Select 1, 1, trunc (sysdate) + numtodsinterval (level, 'time')
    3 double
    4. connect by level<=>

    10 rows created.

    SQL > alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS ";

    Modified session.

    SQL > select * from k;

    CLE1 KEY2 TS
    ---------- ---------- --------------------
    1 1 31 JANUARY 2014 01:00
    1 1 31 JANUARY 2014 02:00
    1 1 31 JANUARY 2014 03:00
    1 1 31 JANUARY 2014 04:00
    1 1 31 JANUARY 2014 05:00
    1 1 31 JANUARY 2014 06:00
    1 1 31 JANUARY 2014 07:00
    1 1 31 JANUARY 2014 08:00
    1 1 31 JANUARY 2014 09:00
    1 1 31 JANUARY 2014 10:00

    10 selected lines.

    SQL > select key1
    2, key2
    3, ts
    4 of)
    5. Select k.*
    6, min (ts) over (partition by key1, key2, trunc (ts)) min_ts
    7, max (ts) over (partition by key1, key2, trunc (ts)) max_ts
    8 k
    9         )
    10 where ts = ts or min_ts = max_ts;

    CLE1 KEY2 TS
    ---------- ---------- --------------------
    1 1 31 JANUARY 2014 01:00
    1 1 31 JANUARY 2014 10:00

    SQL >

Maybe you are looking for

  • How to move from the photo library?

    How to move from the photo library? How to use more than one library?  I would like one on a second partition for work stuff and hand over folder for personal stuff.

  • Share crashes regardless of the function

    Regardless of the function in the action you are trying to use all the keyboard shortcuts hang and nothing happens. Worse, even trying to cut and paste blocks of text, including the URL address bar or click on hyperlinks, pretty much no matter what,

  • standard character of regexp

    Hello I'm looking for a regexp avoid the user using anything else than 1-9 a - z A - Z and '_' to a file name. concerning Tinnitus

  • No file write permission?

    I try to save my my application settings in a text file to be read next time, the application is open. I get permission errors when trying to load the application due to this code. It would be the right way to save your settings in a text file or the

  • BlackBerry Smartphones no email when I changed my provider

    I changed my operator OF THE United Arab Emirates, and while I can access Facebook, bbm, and other features, my mail has stopped: it is said after that I sent a message "user account is in suspoended mode. My provider says that, at their end, evedryt