Q

Script for SHOW SGA command

Can please you send me the SQL script that SQL*Plus actually runs for SHOW SGA command? When you issue SHOW SGA

in SQL*Plus, then it runs the following SQL statement for you:

SELECT name,value FROM v$sga;

However, the first line of output from SHOW SGA is the following SQL statement:

SELECT 'Total System Global Area',SUM(value) FROM v$sga;

Performing a UNION ALL ties it all together:

SELECT 'Total System Global Area',SUM(value) FROM v$sga
UNION ALL
SELECT name,value FROM v$sga;

This was first published in March 2004

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close