Segment Usage/Freespace by device.

I need the ability to monitor my segment usage by device in MB for data growth.  The scripts I have found/developed are not providing the information I need.   At a minim the devices are separated by data and index.  Would any one have a good script for this?
Example.
Database ScoobyDoo.
database_name database_size
ScoobyDoo 284536.0 MB  
reserved           data                 index_size    unused    
164417808 KB 92098352 KB   70607632 KB 1709536 KB
Segment            Device                                   PhyDvSize   AssignedDvSize        DataUsed    %Avail
Seg_SD_Data    ScoobyDoo _Data1                 81920          81000                       79,999          0%
Seg_SD_Data    ScoobyDoo _Data2                 81920          81000                       54,399          33%
Seg_SD_IDX1    ScoobyDoo _IDX_Shaggy        30000          29500                       12,853          57%
Seg_SD_IDX2    ScoobyDoo _IDX_Velma          30000          29200                       15,478          48%

Here is the code:
Select 'Segment Usage'
  select db_name(d.dbid) as db_name, v.name,
   "Data Size," = sum(size * abs(sign(segmap - 4))) *16/1024,
   "Data Used," = sum((size - curunreservedpgs(d.dbid, lstart, unreservedpgs)) * abs(sign(segmap - 4)))*16/1024 ,
  convert(varchar(10),100-ceiling(100 * (1 - 1.0 * sum(case when u.segmap != 4 then curunreservedpgs(u.dbid, u.lstart, u.unreservedpgs) end) / sum(case when u.segmap != 4 then u.size end)))) as '% data spacee avail'
  from master..sysdatabases d, master..sysusages u,
       master..sysdevices v
  where u.dbid = d.dbid  and d.status != 256 and
  db_name(d.dbid) not like '%model%' and
  db_name(d.dbid) not like 'temp%' and
  db_name(d.dbid) not like 'sybsystem%' and
  upper(v.name) not like 'TAPEDUMP%' and
  upper(v.name) not like '%LOG%' and
  v.vdevno = u.vdevno
group by d.dbid, v.name
order by d.dbid, v.name
Results From Dev Environment:
Segment Usage   
db_name                        name                                   Data Size,  Data Used,  % data space avail   
master                         master                                            400          36              90   
BuggsB                        WBA_BuggsB_Data                     37000    13973              62   
WillyECoyote                WBA_WillyECoyote_Data              1000        157              84   
Sylvester                       WBA_Sylvester_Data1                 81000    79855               1   
Sylvester                       WBA_Sylvester_Data2                 81000    55995              30   
Sylvester                       WBA_Sylvester_IDX_CatData       29500    11223              61   
Sylvester                       WBA_Sylvester_IDX_CatItems      29500      9137              69   
TweetyB                        WBA_TweetyB_Data                    37000    36999               0   
TweetyB                        WBA_TweetyB_Data2                  37000    16184             56   
TweetyB                        WBA_TweetyB_IDX_BirdTables     40000      6625             83   
TweetyB                        WBA_TweetyB_TBL_BirdTables    10000      1505             84   
UserHome                     WBA_UserHome_Data                    348         27              91   
ElmerFudd                    WBA_ElmerFudd_Data                 10240       448              95   
SybMonitor                   WBA_SybMonitor_Data                 10000        51              99   
RoosterCogburn            WBA_RoosterCogburn_Data            1500     1016              32   
CrunchData                  WBA_CrunchData_Data1               50000   31771              36   

Similar Messages

  • Find the usage for each device on the router per day or month (megabytes per mac address)

    HI --
    We have a single cable connection and a router network with over 10 unrelated users in our complex.  We want to keep usage fair, the network unstressed and to identify machiines that might have viruses or otherwise be using more than the owner is aware of. We are running a WRT1900AC.
    Does the router itself keep statistics for usage over time per ip/mac address?  If so, how can we access these statistics?  Can the router be instructed to keep this, say in firmware?
    If not is there a program available (free or reasonably cheaply) that can poll the router and produce an estimate of usage? 
    Any advice? 
    Others may wish to know what is going on in their network.
    Many thanks,
    Outis

    The router has an Internet Usage feature in its Network Map. You may use this feature to monitor the bandwidth consumption of each device. Check this link:
    http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=29285

  • Roll back segment usage

    Hi, i have a script which will report usage of roll back segments in my db, it gives me rb name #, username, and the table/schema.
    I want to have a script which i can maybe enter a variable into (say, concurrent program id) and then have a list of the rbs its using and anything else that may be using the same ?
    Anyone help?
    regards

    doh! i meant to after i posted but got sidetracked :-)
    col "User" form a10
    col "Table Name" form a10
    col "Rollback segment name" form a21
    select /*+ RULE */
    rn.usn "Rollback segment number",
    rn.name "Rollback segment name",
    sess.schemaname "User",
    sess.sid "sess",
    o.name "Table Name"
    from
    v$rollname rn,
    v$session sess,
    sys.obj$ o,
    v$lock lck1,
    v$transaction t
    where
    sess.taddr = t.addr
    and lck1.sid = sess.sid
    and lck1.id1 = o.obj#
    and lck1.type = 'TM'
    and t.xidusn = rn.usn

  • Is there a way to check usage on my device?

    I have a enVy2.
    I'd love it if there was a quick and easy way to check the number of texts I've sent or received in a simple fashion.
    I was hoping there was a *XX code I could send, then get a text back from Verizon telling me how many M2M texts, and how many off network texts I sent.
    Hell, a list of the different *XX features would be nice.
    Thanks!

    Here is a list fo some, but I do not know if texts are broken out as in or out of network
    Description
    # Features allow you to check key account information from your wireless phone – airtime free. It's a great option when you are unable to login to My Verizon online.  You can access the following info:
    #MIN - Check current month's unbilled airtime usage.*
    #BAL - Check your current account balance.
    #DATA - Check your current monthly usage of TXT, PIX and FLIX Messaging
    #PMT - Make a payment
    The information will be stated verbally and you'll also receive a free text message.
    How to Get It
    This feature is available to all Verizon Wireless customers.
    How to Use It
    Dial # plus the 3-4 numbers that correspond with the letters you want and then press SEND.
    #MIN = #646
    #BAL = #225
    #DATA = #3282
    #PMT = #768
    The information will be stated verbally and you’ll also receive a free text message.

  • Broadband fusion usage by device

    We have two computers and three iphones that share our Fusion router. Is there any way to measure how much usage each device is responsible for?

        We know monitoring usage is important oiseaux831! You should be able to track usage on each device by dialing #DATA or accessing your My Verizon account online. http://tiny.cc/ssw65w
    JonathanK_VZW
    VZW Support
    Follow Us on Twitter@VZWSupport

  • What's the difference setting autoextend between on segment and on device?

    suppose I have name segment with is on device mydevice in mydb. Then I try to set autoextend for the the database when segment is full.
    The final reason for full is the device is full.
    Then I could have 2 option to set this autoextend: on segment or on device:
    sp_dbextend ’set’, ’database’, mydb, myseg, ’10%’
    sp_dbextend ’set’, ’device’, mydev, ’10%’
    So question: if set on segment, ase will extend the device automatically for that segment? about both are same or not?

    802.11a gives you 802.11g speeds but using 5GHz (54mbps
    802.11n gives you 144Mbps (600 peak) at 2.4GHz or 5GHz

  • Show power usage for devices

    Is there anyway I can see the power usage on either a 3550 switch and/or 7301 router? I have some far away I wish to see the usage off.
    Devices with module power supplies like cat 4500s/6500s/7600 etc all have commands like "show power ...", which will show me input voltage, current and power usage in watts. Is there anything like this for devices without module power supplies?

    Sadly that doesn't seem to be very useful on a 3550 or 7301. I know these platform are bit old but there are many of them out there in the wild still churning away. Bit of a shame they can't do something I would consider basic, to show their own power usage. Still thanks for the suggestion!
    3550#show env all
    FAN is OK
    TEMPERATURE is OK
    POWER is OK
    RPS is NOT PRESENT
    7301#show environment all
    Power Supplies:
    Power Supply is Redundant AC Power Supply. Unit is on.
    Temperature readings:
    Thermal Sensor 1 measured at 24C/75F
    Thermal Sensor 2 measured at 29C/84F
    Voltage readings:
    +3.30 V       measured at +3.27 V
    +2.50 V       measured at +2.47 V
    +12.25 V      measured at +12.31 V
    +5.00 V       measured at +4.96 V
    -12.00 V      measured at -11.96 V
    +5.20 V       measured at +5.16 V
    +1.50 V       measured at +1.48 V
    +1.20 V       measured at +1.20 V
    +1.25 V       measured at +1.24 V
    Fans:
    Fan 1 is believed to be working
    Fan 2 is believed to be working
    Fan 3 is believed to be working
    Fan 4 is believed to be working
    Fan 5 is believed to be working
    Envm stats saved 0 time(s) since reload

  • Where to see CPU and RAM usage in IPAD 1

    Hi:-)
    While i have Apps running , I would like to be able to see CPU and RAM in use..and ideas how/where?
    Thanks

    There are several apps in the app store that can show you cpu and ram usage of your device, e.g. "system info"

  • Data usage scam?  Really upset customer seeking help!

    I have been a long time customer with Verizon. Our data usage has become unmanageable!. We have 5 iphones on our family share plan.  We began with 10 GB after upgrading one of our phones & being talked into the family share plan by the in-store salesperson!  We had the unlimited plan on all lines until then!  This is where the trouble started.  Each month our data has increased when we've made no changes to how we use our phones.  Each time I increase our limit our usage always goes up!  We have high speed wireless at home and all use it when at home.  We also use Wifi at work.  Our kids are in school all day so their usage wouldn't increase drastically.
    We are now up to 16 GB.  Two of the lines doubled in recent months.  I've called Verizon on 2 occasions and spend at least 30-45 minutes on the phone talking with either a Verizon rep or an Apple rep to help determine what the problem is.  I honestly believe Verizon is ripping us off!  This last time I put what I had learned about data usage to a test using 3 of our 5 phones.  I went the cellular data and turned off all apps.  I left on the main cellular data so the statistics data would still show.  I made sure all apps were closed in the background.  I turned off all notifications and turned off all email accounts from checking for mail.  I shut down location services also. This should have completely shut down data usage on each phone while they weren't being used.  I cleared the data usage statistics on each phone and went to the home screen on each phone. (I took screen shots of each step on all phones for evidence)  I waited 5 minutes to go in and check the statistics for data usage on each phone.  Guess what I found?  Data usage on all 3 phones when nothing was being used!!!  After investigating further, I found out the data usage on all phones was under "System Services"  When I asked the customer service rep on my last call about this, she offered to give me a credit for usage but would not tell me what the credit would be for or how the phones were using System Services when all data was supposed to be restricted.  What a scam - I'm paying $450+ a month now for 5 lines and am stuck with contracts on all of them. It is enough to make anyone mad.  Has anyone experienced this and if so, can you provide any help on how to fix this?

    micgunn2
    You should check your usage on each device to see what may be using data. This can be done via Settings > Cellular > (Optional) System Services.
    When you start a new billing cycle, you can reset your usage on each device to account for your usage via Settings > Cellular > Reset Statistics. It's recommended that you setup a reminder via your Calendar to Reset Statistics on the beginning of each billing cycle.
    Lastly, there was an issue at one point causing the iPhone (while sleeping) to drop the WiFi connection and default back to the cellular connection. That has since been addressed via an update, but you want to keep each device up-to-date otherwise. [ iOS: Updating your carrier settings ]

  • High CPU usage - Rapid Battery Drain - Running HOT

    Looking for help.. PLEASE!
    Z10 - Model STL100-3 Software release 10.2.1.2179
    Symptoms;
    Occasionally, and for no apparent reason, I notice my Z10 getting hot in my pocket. I run the device monitor App and see a very high CPU usage, which consequently drains the batter very quickly.
    I've tried all the solutions from every support group thread and blog. And I mean ALL!
    Pulling the battery
    Replaced the battery
    Removed the SIM
    Deleted G Mail
    Removed all 3rd party Apps (2)
    Stopped email sync
    Stopped calendar sync
    Turned off all radio
    Turned Off Wi-Fi
    Let it sit for hours, even days to let it finish doing whatever its trying to do
    Etc Etc Etc.
    Finally, I called BB support, they wanted $50 to talk to someone. I told them the issue, they said the device is bad and must be replaced. I said its software related!! They said.. no, its a hardware issue. Device is under warranty and they want me to just go get a new one. I don't want a new one, I want a fix! Stop the waste of BB $
    Temporary solution
    Eventually, I decided I would do a restore, back to the factory settings, and here's when I found something
    I run BB Link, connect the device, do a back-up... and LOW AND BEHOLD.. this fixes the high CPU usage and the device runs great, very cool, low cpu and extremely long battery life.
    Sadly! .. this problem reoccurs, after a few days, sometimes after a couple of weeks and just out of the blue.
    I can force this fault to occur, simply by doing a restart of the device. Sure enough, it will run hot, use all the cpu and I will have to do a back-up to get it to settle down again. I've tried to wait for the so called 'indexing' to finish, but it never stops running with high cpu and doesn't help.
    Can any one tell me whats happening and how to make this a permanent fix?
    There are hundreds if not thousands of people having very similar issues, and many different methods to fix it. Its my belief that there is an underlying bigger problem that relates to all these differing fixes, but as yet.. I cant find it and none of these fixes work for me. For now... I will keep doing the occasional back-up and hope I get a response that can help.
    Thanks to all that read this.

    curve8530curve8330 wrote:
    The heat may be normal. After a little water damage incident, which I repaired, I disassembled my Z10 the find a small heat sink will thermal compound. This helps dissipate heat efficiently. I found a large number of air bubbles and possibly a large air pocket by the way the paste stuck to both sides. I removed the old paste and replaced it with artic silver paste and the z10 has been much much cooler. It use to run about 105*f and now it is around 85*f.
    See this thread I posted for before and after pictures using a thermal imager.
    http://supportforums.blackberry.com/t5/BlackBerry-​Z10/Z10-heating-up-fix/m-p/3031220#M71390
    @Curve8530 .....as much a s your discovery is appreciated, I hardly believe that most people will actually dismantle their phone to remove the paste and replace with arctic silver. Besides, what you are doing is not a fix for the actual problem....
    In most cases, this heat is associated with apps using the CPU resources beyond the normal limits.
    As an easy fix, finding and removing the app(s) in question followed by a reboot, solves the issue. In some cases an OS reload is necessary.... but under no circumstances I would even remotely suggest to any member to dismantle their phone and do what you did...     

  • Data usage in BlackBerry Curve 9380

    I am on a 250Mb allowance contract but don't know how to check how much data I have used so far. I am on Orange and I spoke to an advisor who said its best to reset the counter every month but I cant seem to find the counter. Any help??

    Hello Weezy12, 
    Welcome to the forums. 
    You can see the life time data usage by doing the following. ***Note*** This number cannot be reset and you should any you should always rely on your wireless service provider for the most up to date and accurate information. 
    Go to Options - Device - Device and Status Information Once on this screen type buyr
    You will see a new field at the bottom that will show your total data usage since the device was purchased. You will need to note this number on the first day of your billing cycle every month to get an idea of how much data you are using. 
    Hope this helps. Have a good day. 
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Can you Identity users primary device assgined by the user agent via Powershell?

    Hi,
    I've been using the Get-CMUserDeviceAffinity to find a users primary device, however i'm experiancing problems when a user has more than 1 primary device (I have 2, my laptop and an RDS server). Is there a way to query a users
    primary device filtered on the User Affinity type? i.e. User Agent assigned?
    Regards,
    Chris
    Chris Gibson

    it looks like you want Source "4", per the dbo.UserMachineSources table:
    SourceID            Name
    1            Software Catalog
    2            Administrator
    3            User
    4            Usage Agent
    5            Device Management
    6            OSD
    7            Fast Install
    8            Exchange Server connector
    Mike Crowley | MVP
    My Blog --
    Baseline Technologies

  • How do I determine who/what device is connected to my home wifi?

    Need to see who is connected to my home wifi and how much usage.

    As EG said, when you put in your username and password on the Comcast gateway (Default username: adminpassword: password ) on that very first page you'll see in orange :"Connected Devices" which will show any device connected to your wi-fi.  Click on "View Connected Devices" for more information.   You obviously should not see more devices than you have in your household.  If you click on "Edit" you'll be able to name each device.   If there's something you don't recognize just click on the "X" and it'll be gone. If this is a problem change your network key password by clicking "Connection" and then "Wi-Fi" from that home page.  There you can click on "Edit" and change your network password to keep them out.   There is no way with the Comcast firmware you can see the usage from each device.  

  • Enhancement request:  Show actual songs downloaded to device in General|About

    After switching to iCloud for my iPhone 4S, when I go to Settings|General|About I am shown the number of "available" songs in the cloud rather than the number of songs actually downloaded to the phone.  While this is certainly impressive to imagine that I have so many tracks available to me, I really would rather have a clear picture of what is actually on the device. Even if I put the device in Airplane Mode so that it has no access to the cloud, I'm still shown the cloud statistics. 
    I can plug the device into my Mac and see in iTunes how many songs are on the device, but that is obviously not a convenient way to measure usage.  Of course, I can also look into "Usage" on the device and see how much physical memory is being taken up by songs, but I'd still like a way to see how many of each available item are actually ON the device, and not just what I have available to me in the cloud.
    Thanks.
    Danita

    Maybe your "iTunes Music Library.xml" file got corrupted?? Try searching this file for some of the songs in question and see if they're in there at all and if so if there's anything funky about them.
    Next step:
    Try uninstalling iTunes and verifying that "iTunes Music Library.xml" is REMOVED and then reinstall and drag all your music into it again. I believe this will remove any playlists as well, so you should back them up...not quite sure how to do that.

  • How to release the capturing device

    Dear helper
    I have developed an applet for video conference. I stored it in tomcat server. The client browsed a parant window and click the button, javascript window.open() will open another child window for the applet. In the first time, the applet was working normal. While I closed the child window and clicked the button again, the child window could not init the applet. I suspected the capturing device was not been released. As I closed the parant window and re-open it and then click the button, the applet worked properly in the child window.
    Would you please let me know how to relesae the device while i close the child window without close the parant window. I checked the applet code, the disposal code had be added.
    Thank you for your advise in advance.

    Hi Indu,
    Have you already thought of moving such "outsorted" devices to a special stock? Alternatively you may choose to allocate a special (user-) status(for example, BLOCKED)  to the device/equipment. This also will also prevent a further usage of this device.
    Kind regards,
    Fritz

Maybe you are looking for

  • Printing from Editor in PSE 8 on Windows 7

    When I try to print from the editor I get a message stating that I must install a printer first.  My printers are installed.  When I go to the organizer I can print without getting this message.  How do I fix this problem?

  • How can I find/fix bad USB Port on MBP 2012 ivy 15' WITH SUPERDRIVE

    I have a 2012 15' ivy bridge macbook pro with the super drive. I am a DJ and I get terrible static and other audio problems when the mixer/soundcard is connected to one of the USB ports, how can I determine which one it is and how can I fix it?

  • I cannot preview in browser

    I am new to Muse, and I use a french version. I have no problem to translate.  Imade a design, and first, it does not seem to show the links from the main menu when I  click on one menu item. Also I would like to preview in Chrome and other Browser.

  • No client status update in dashboard

    Hi, I have the problem that the WSE 2012 (NOT R2) dashboard always shows all my clients as "offline". I re-installed the connector software on all connected clients without success (full process: leave Domain, deinstall connector software, delete com

  • BADI triggered from Portal for Termination process

    Hi, I have the requirement to check for User parameters and verify data while a PERNR is terminated from Portal side. To do this I will need a BADI which is triggered from Portal. I have got a couple of BADIs but not sure which one to use. Anyone has