Can u please explain the difference between both the queries.
col TABLESPACE_NAME format a15;
col MAXSPACE format 9999999;
col USEDSPACE format 999999;
col FREESPACE format 999999;
col "% Free Space" format a6;
select tablespace_name,
sum((((8192*maxextend)/1024)/1024)) maxspace,
((sum(bytes)/1024)/1024) usedspace,
(sum((((8192*maxextend)/1024)/1024)) - ((sum(bytes)/1024)/1024)) freespace,
round((((sum((((8192*maxextend)/1024)/1024)) - ((sum(bytes)/1024)/1024))*100)/sum((((8192*maxextend)/1024)/1024))))||
' %' "% Free Space"
from dba_data_files a,
sys.filext$ b
where a.file_id = b.file#(+)
group by tablespace_name;
AND
SELECT size_free_gb.tablespace_name,
SUM( size_free_gb.size_gb) SIZe_gb,
SUM( size_free_gb.free_gb) free_gb
FROM ( SELECT DFS.FREE_GB,
SUM(DDF.BYTES / 1024 / 1024 / 1024) SIZE_GB,
DDF.FILE_ID,
DDF.TABLESPACE_NAME
FROM (SELECT SUM(BYTES / 1024 / 1024 / 1024) FREE_GB, FILE_ID
FROM DBA_FREE_SPACE
GROUP BY FILE_ID) DFS,DBA_DATA_FILES DDF
WHERE DDF.FILE_ID = DFS.FILE_ID
GROUP BY DDF.FILE_ID, DDF.TABLESPACE_NAME, DFS.FREE_GB) size_free_gb
GROUP BY size_free_gb.tablespace_name;
Why maxextend in first query.... ?
Thanks in Advance..
Hi Vivek,
Please see if it explains.
Sample output of query1
===============
TABLESPACE_NAME MAXSPACE USEDSPACE FREESPACE % Free
CDCRPT_IDX 4608 %
LM_8M_IDX_01 4096 %
XDB 256 %
MDM_DAT 1012 %
SYSTEM 800 %
CPM_DAT 10240 5500 4740 46 %
LM_128K_DAT_01 65536 6144 59392 91 % Sample Output of query2
===============
TABLESPACE_NAME SIZE_GB FREE_GB
LM_8M_IDX_01 4 2.8125
CDCRPT_IDX 4.5 4.22113037
MDM_DAT .98828125 .538330078
XDB .25 .203491211
SYSTEM .78125 .243713379
LM_128K_DAT_01 6 3.96582031
CPM_DAT 5.37109375 .469665527
CPM_IDX 6.59375 2.86303711Your 1st query will hold true only for datafiles which are AUTOEXTENSIBLE, because the table SYS.FILEXT$ holds entry for those file_ids (datafiles) which has AUTOEXTENSIBLE as YES in DBA_DATA_FILES. If all your datafiles of all tablespaces are AUTOEXTENSIBLE (YES), then you should get entry like
CPM_DAT 10240 5500 4740 46 %.
Now, maxspace is calculated as sum((((8192*maxextend)/1024)/1024)) from table SYS.FILEXT$. maxextend signifies the maximum number of blocks that a file_id (datafile) can extend upto. That is, as the datafile is AUTOEXTENSIBLE, it has been allocated a minimum extend initially and then it can INCREMENT BY some particular EXTENTs until it reach MAX EXTENTS. So, this maxentend denote the same. Now if your database is using 8K block size (show parameter DB_BLOCK_SIZE), then we can get the maximum size of the datafile it can grow upto by using 8192*maxextend, and converted to MB (/1024/1024).
USEDSPACE and SIZE_GB calculated sam way using SUM(BYTES) from dba_data_files, just one is in MB and another in GB.
FREESPACE in 1st query is calculated as MAXSPACE - USEDSPACE, that is, space available for the file_id(datafile) to grow until reached maxextend. That is, we can guarantee that the datafile will not throw error until this value is reached and can be used out of the operating system disk space. It doesn't signify the free space for the datafile available in DB. FREE_GB in 2nd query signifies that.
% FREE is usual.
Thanks,
Tapan
Edited by: TapanKumar Saha on Apr 2, 2013 1:13 AM
Similar Messages
-
Can any please explain the integration business process between PS and CS
Dear Guru's
Can any please explain the integration business process between Project systems (PS) and customer service (CS).
Business Process: We do machinery Erection or commissioning, later we do provide service warranty for one year.
How we map this Business scenario in sap.
Regards,
Bhanubasic steps for such a process would be
1) Use PS functionality for your machinery erection or commisioning work. Once the physical work is completed then close porject
2) Use CS functionality for warranty and service - set up the work as a functional location on customer site (PM/CS functionality)
3) Use service order to manage any service calls on the object which could require billing via SD module - bill value may be zero if under warranty -
Can somebody please explain the vbr-nrt scr pcr in easier way?
Hello,
Please confirm if my presentation is correct. Thank you very much in advance....
First, I have called Telstra to ask what is the upload speed of the link in our atm link. They said it is 910Kbps.
Then I checked also our router and I have executed a show command à sh controller atm0/1/0
Output:
Interface: ATM0/1/0, Hardware: MPC ATMSAR, State: up
IDB: 0x30AB0424 Instance: 0x30AC1288 PHY Inst: 0x00000000 us_bwidth: 910 --> I am assuming that this is Upload Speed = 910Kbps and this is automatically detected by the router interface.
Second, I have checked the EF priority value. For my 5 ip phones in this site.
Class-map: cm-voice-out (match-all)
653566 packets, 134229712 bytes
1 minute offered rate 0000 bps, drop rate 0000 bps
Match: ip dscp ef (46)
Priority: 26% (133 kbps), burst bytes 3300, b/w exceed drops: 1359 --> The QoS only take effect itself if there is a congestion. If the voice packets exceeded above 133Kbps , packets will drop.
Third, My question to myself: Why Priority 26% got the corresponding bandwidth of 133 Kbps???
My assessment: I’m assuming that it depends on what was configured on this command line --> vbr-nrt <SCR> <PCR> = vbr-nrt 512 512 (In my understanding, This is ATM shaping).
512Kbps X .26 = 133.12 approx. 133Kbps
My Conclusion:
From current configuration vbr-nrt 512 512 .... I’m thinking if we can change it to this new configuration --> vbr-nrt 910 910 , Does it affect the call delay?
So that there will be a higher bandwidth for EF packets.
910Kbps X .26 = 236.6 approx. 237KbpsHello,
Please confirm if my presentation is correct. Thank you very much in advance....
First, I have called Telstra to ask what is the upload speed of the link in our atm link. They said it is 910Kbps.
Then I checked also our router and I have executed a show command à sh controller atm0/1/0
Output:
Interface: ATM0/1/0, Hardware: MPC ATMSAR, State: up
IDB: 0x30AB0424 Instance: 0x30AC1288 PHY Inst: 0x00000000 us_bwidth: 910 --> I am assuming that this is Upload Speed = 910Kbps and this is automatically detected by the router interface.
Second, I have checked the EF priority value. For my 5 ip phones in this site.
Class-map: cm-voice-out (match-all)
653566 packets, 134229712 bytes
1 minute offered rate 0000 bps, drop rate 0000 bps
Match: ip dscp ef (46)
Priority: 26% (133 kbps), burst bytes 3300, b/w exceed drops: 1359 --> The QoS only take effect itself if there is a congestion. If the voice packets exceeded above 133Kbps , packets will drop.
Third, My question to myself: Why Priority 26% got the corresponding bandwidth of 133 Kbps???
My assessment: I’m assuming that it depends on what was configured on this command line --> vbr-nrt <SCR> <PCR> = vbr-nrt 512 512 (In my understanding, This is ATM shaping).
512Kbps X .26 = 133.12 approx. 133Kbps
My Conclusion:
From current configuration vbr-nrt 512 512 .... I’m thinking if we can change it to this new configuration --> vbr-nrt 910 910 , Does it affect the call delay?
So that there will be a higher bandwidth for EF packets.
910Kbps X .26 = 236.6 approx. 237Kbps -
Please explain the use of all the below movt types
Hi friends,
Can you Please explain the use of all the below movt types and how it is triggered.
901 GR Area for Production
902 GR Area External Rcpts
904 Returns
910 GI Area General
911 GI Area for Cost Center
912 GI Area Customer Order
913 GI Area - Fixed Assets
914 GI Area Production Orders
915 Fixed Bin Picking Area
916 Shipping Area Deliveries
917 Quality Assurance
920 Stock Transfers (Plant)
921 Stock Transfers (StLoc)
922 Posting Change Area
980 R/3 --> R/2 cumulative
998 Init.entry of stock bal.
999 Differences
Regards,
Balu R.VHi,
The below mentioned objects are interim storage types, not movement types.
Interim storage types are used as a sort of bridge between IM and WM.
MZ -
Please explain the magic! (Question)
The ActionScript snippet below is from the BlaseDS chat sample app. Can someone please explain the magic that declares the chatMessage property of AsyncMessage.body (IMessage.body?) object? It's not in the docs anywhere so I'm guessing it is not built into AsyncMessage. And it's not defined in any of the sample app source files.
Coming from a strongly-typed development world, seeing a property that apparently has no declaration and is not explicitly instantiated does not pass the sniff-test.
Thanks.
<mx:Script>
<![CDATA[
import mx.messaging.messages.AsyncMessage;
import mx.messaging.messages.IMessage;
private function send():void
var message:IMessage = new AsyncMessage();
message.body.chatMessage = msg.text;
producer.send(message);
msg.text = "";
private function messageHandler(message:IMessage):void
log.text += message.body.chatMessage + "\n";
]]>Hold your nose, because that is the dynamic "feature" of Actionscript. Pretty much every class derives from Object (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Object.html) which is a dictionary of key-value property pairs. The {"chatMessage", msg.text as Object} pair is created upon assignment.
I am fairly new to Flex/AS, and while not having to declare types is convenient for quick and dirty coding, I try to avoid it in production code...I have been bitten by refactoring a class and not catching all the places where it was referenced dynamically. I'm sure there are comprehensive pro and con arguments out there. -
Could someone please explain the difference between Projects Intelligence and Projects Analytics?
Thanks,
AdrienOlder iPads got 3G service and were called Wi-Fi + 3G. Newer iPads can connect to faster cellular networks and those are given different names by the major carrier so to simplify things Apple calls the newer models Wi-Fi + Cellular.
iPads with 3G or Cellular are NOT used like a mobile phone. They do not make phone calls or send SMS or MMS text messages, They do connect to the data network and can connect to the web. -
I have bought an iPhone 4S in Brazil and I would like to know if I can replace my old iPhone for a new one (iPhone 5S), at some Apple Store in USA, if I pay just the difference between both values.
You're welcome.
I would advise against that for the reasons I provided.
Could I have my iPad 2 for the new one paying the difference between their values?
No. Sell the existing yourself and use the proceeds to purchase a new iPad. -
Can anybody explain me difference between test cases and test data
Hi All,
Can anybody explain me difference between test cases and test data.
Testing procedure for FS.
Thanks & Regards,
SmithaHi,
Test case is a procedure how to do the testing of particular functionality and it consists the data that to be given for testing a particular requirement of the given Functional Spec and it also consists the result whether the desired functionality is fullfilling or not.
Regards
Pratap -
HT5457 So can somebody please explain to me why the first gen iPad missed out on ios 6?
So can somebody please explain to me why the first gen iPad missed out on ios 6?
safrones wrote:
Is that what you really believe?
I don't know cause Apple decided for me.
As does Microsoft anytime that they release a new update that is no longer compatible with the old PC hardware.
I would hope that Microsoft and Apple would both know what operating systems will run on the hardware that is produced for them.
I would also hope that Microsoft and Apple know better than you do as to what would work on their devices, tablets, computers, phones .... How much time and money have you put into research and development on the iPad? -
In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE! Thank god Pages 09 is still there.
…and the other 98 missing features.
Just use Pages '09, which should be in your Applications/iWork folder.
Rate/review Pages 5 in the App Store.
Peter -
I recently migrated from a MBP with OS 10.6 to a MCB with OS 10.8. Some glitches are popping up. Here's the one on my mind at the moment:
When saving or opening documents, I get a warning such as: "Word cannot save this document due to a naming or permissions error on the destination volume." Can someone please explain?Since this is isolated to a single file, try exporting it to Interchange Format (.inx), then open and save the resulting file as a new InDesign file.
Since the problem occurs during export, that may not be possible. Another option to try would be to copy all elements, page by page, and "paste in place" into a new document the same size. If you used layers, be sure to enable "paste remembers layers" in the layers panel menu.
This kind of problem is often indicative of an underlying font issue. You said there are only three fonts, and you should verify that in Type > Find Font... Try replacing, at least temporarily the fonts in use with something else that you know to be reliable from other documents. You might want to do this before the other steps.
Peter -
Within music Library can anyone please explain why after I select the option to sort 'Album by Artist' a number of tracks are being treated as separate albums? How can I fix this? I have tried to manually correct by 'drag and drop' individual tracks but that doesn't work. My music library includes a number of repeat album artwork images simply because not all tracks are being listed under the one album making my library more difficult to use than it should. Any advise would be appreciated.
See Grouping tracks into albums.
tt2 -
Can you please explain how this query is fetching the rows?
here is a query to find the top 3 salaries. But the thing is that i am now able to understand how its working to get the correct data :How the data in the alias table P1 and P2 getting compared. Can you please explain in some steps.
SELECT MIN(P1.SAL) FROM PSAL P1, PSAL P2
WHERE P1.SAL >= P2.SAL
GROUP BY P2.SAL
HAVING COUNT (DISTINCT P1.SAL) <=3 ;
here is the data i used :
SQL> select * from psal;
NAME SAL
able 1000
baker 900
charles 900
delta 800
eddy 700
fred 700
george 700
george 700
Regards,
Renu... Please help me in understanding the query.
Your query looks like anything but a Top-N query.
If you run it in steps and analyze the output at the end of each step, then you should be able to understand what it does.
Given below is some brief information on the same:
test@ora>
test@ora> --
test@ora> -- Query 1 - using the non-equi (theta) join
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p1.sal AS p1_sal, p1.NAME AS p1_name, p2.sal AS p2_sal,
12 p2.NAME AS p2_name
13 FROM psal p1, psal p2
14 WHERE p1.sal >= p2.sal;
P1_SAL P1_NAME P2_SAL P2_NAME
1000 able 1000 able
1000 able 900 baker
1000 able 900 charles
1000 able 800 delta
1000 able 700 eddy
1000 able 700 fred
1000 able 700 george
1000 able 700 george
900 baker 900 baker
900 baker 900 charles
900 baker 800 delta
900 baker 700 eddy
900 baker 700 fred
900 baker 700 george
900 baker 700 george
900 charles 900 baker
900 charles 900 charles
900 charles 800 delta
900 charles 700 eddy
900 charles 700 fred
900 charles 700 george
900 charles 700 george
800 delta 800 delta
800 delta 700 eddy
800 delta 700 fred
800 delta 700 george
800 delta 700 george
700 eddy 700 eddy
700 eddy 700 fred
700 eddy 700 george
700 eddy 700 george
700 fred 700 eddy
700 fred 700 fred
700 fred 700 george
700 fred 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
43 rows selected.
test@ora>
test@ora>This query joins PSAL with itself using a non equi-join. Take each row of PSAL p1 and see how it compares with PSAL p2. You'll see that:
- Row 1 with sal 1000 is >= to all sal values of p2, so it occurs 8 times
- Row 2 with sal 900 is >= to 9 sal values of p2, so it occurs 7 times
- Row 3: 7 times again... and so on.
- So, total no. of rows are: 8 + 7 + 7 + 5 + 4 + 4 + 4 + 4 = 43
test@ora>
test@ora> --
test@ora> -- Query 2 - add the GROUP BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
700 32 32 4 700 1000
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>Now, if you group by p2.sal in the output of query 1, and check the number of distinct p1.sal, min of p1.sal etc. you see that for p2.sal values - 800, 900 and 1000, there are 3 or less p1.sal values associated.
So, the last 3 rows are the ones you are interested in, essentially. As follows:
test@ora>
test@ora> --
test@ora> -- Query 3 - GROUP BY and HAVING
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal
20 HAVING COUNT(DISTINCT p1.sal) <= 3;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>
test@ora>That's what you are doing in that query.
The thing is - in order to find out Top-N values, you simply need to scan that one table PSAL. So, joining it to itself is not necessary.
A much simpler query is as follows:
test@ora>
test@ora>
test@ora> --
test@ora> -- Top-3 salaries - distinct or not; using ROWNUM on ORDER BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
900
test@ora>
test@ora>
test@ora>And for Top-3 distinct salaries:
test@ora>
test@ora> --
test@ora> -- Top-3 DISTINCT salaries; using ROWNUM on ORDER BY on DISTINCT
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT DISTINCT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
800
test@ora>
test@ora>
test@ora>You may also want to check out the RANK and DENSE_RANK analytic functions.
RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions123.htm#SQLRF00690
DENSE_RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions043.htm#SQLRF00633
HTH
isotope -
I am using iPhone 3GS. I am living in Saudi Arabia. I cannot find the directions with in GCC contries in the Navigation Application "COMPASS" of iphone. Only the map is displayed. I am not gtting the directions or information when I use it. Can you please explain me how to work on it??
See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
<pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#context-sendlink {display:none !important;}</nowiki></pre>
See also http://kb.mozillazine.org/Chrome_element_names_and_IDs -
Excuse me apple I had the police nock on my door about an iPad that was located at our house and the owner lost the iPad in-between bowral nsw and Sydney can you please fix the app (Find My IPhone) so that person can find their iPad coz the police would of taken mine if I did not show proof of purchase
You are not communicating with Apple by posting here. Everyone here is just a fellow user and cannot fix anything.
The Find My iPad service may have indeed been accurate to the limits of the technology. Unless the iPad was a 3G unit, location is determined based on the nearest WiFi router which in your case could just happened to have been yours. The police may be the ones who need to "fix" their understanding of how the technology works and its limitations.
If you want to provide feedback to Apple on the matter, you can do so via their feedback pages:
http://www.apple.com/feedback/ipad.html
but to be of any good you'll have to provide them with more precise details.
Regards.
Maybe you are looking for
-
Can I use the same Apple ID for two iPhone's?
Can I use the same Apple ID on both mine and my partners iPhones? and will there be any troubles or problems that may occur? Thank you
-
Iphone not showing up in itunes
I have just installed windows 8 developer preview on my system but now my iPHONE 4 is not showing up in itunes , It works in b/w sometime,, ny idea ?
-
Javascript problem in HTML version of XDP file
Hi All, I have designed a XDP form in adobe livecycle desinger 7.0. It has three pages and i have a page navigation custom control for navigation between the three pages. From my application i am displaying this xdp form in HTML format. my problem is
-
Hi, Not sure if this would be the correct place for this, but here is my issue We have a client with Exchange 2010, and Outlook 2010 and they seem to be getting sync issues. the error that comes up is 10:58:52 Synchronizer Version 14.0.6117 10:58:52
-
How can I find the buttons that there are in Searchaccount view IUICMD ??
Hello experts, Could you tell my where can I find the buttons ("Search", "Reset", "Create Account") that appear in the view "SearchAccount", please could help me?? Thanks in advance.