Originally posted by NickFitz
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Quick Question for the Experts: How to check the size of the Temp tablespace Oracle
Collapse
X
-
-
and the moral of the story is folks, as ever in life, if you want a job done properly do it yourself,
here's the answer...
SQL> SELECT tablespace_name, SUM(bytes_used), SUM(bytes_free) FROM V$temp_space_header GROUP BY tablespace_name;
Milan.Comment
-
-
alright alright less of it
that SQL is all well and god but how do I get the results in gb's instead of bytes ?
TIA
Milan.Comment
-
Comment
-
-
Hmmmm.
You said
Originally posted by milanbenes View Postanyone happen to know the sql for oracle 10 to check the size of the temp tablespace ? and more importantly to return a figure in mb's or gb's which is understandable for dunces like me and not these damn extents and blocks and bytes.
TIA
Milan.
Originally posted by TheFaQQer View PostCode:SELECT file_name, tablespace_name, ROUND(bytes/1024000) MB FROM dba_temp_files ORDER BY file_name;
Your code ofCode:SELECT tablespace_name , SUM(bytes_used) , SUM(bytes_free) FROM V$temp_space_header GROUP BY tablespace_name;
If you need to convert your answer to MB, then divide the summation by 1024000, if you want it in GB then divide the MB figure by 1024.
You're welcome.Comment
-
Mr FAQqer,
many thanks for your reply, your initial code didn't work on a cut and paste.
In the high flying world in which I work for blue chip clients I need immiediate answers with the correct information and not misleading best guesses
try to learn from this experience I am sure your approach and career will benefit
all the best
Milan.Comment
-
Originally posted by milanbenes View PostMr FAQqer,
many thanks for your reply, your initial code didn't work on a cut and paste.
In the high flying world in which I work for blue chip clients I need immiediate answers with the correct information and not misleading best guesses
try to learn from this experience I am sure your approach and career will benefit
all the best
Milan.
Maybe your blue chip clients need to employ someone who knows this stuff, rather than someone who can't even find it on Google, or who can spell immediate correctly.Comment
-
nah you see, blue chip clients need doers and not people who get hung up and slowed down by small details
there you see, second lesson of the day
I should start charging for this advice
Milan.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment