Skip to content
This repository has been archived by the owner on Feb 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #38 from raffaelloferrari/master
Browse files Browse the repository at this point in the history
dbmounted script problem with database standby in mounted mode #73
  • Loading branch information
amreo authored Oct 23, 2019
2 parents 0f63223 + 4bcf554 commit 65c309b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sql/dbmounted.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.

set markup html on spool on
set lines 200 pages 0 feedback off verify off
set lines 32767 pages 0 feedback off verify off
set colsep "|||"
col owner for a30
col Nome_Acronimo for a8
col segment_name for a60

select
(select value from v$parameter where name='db_name') as Nome_DB,
(select db_unique_name from v$database) as DB_Unique_name,
(select instance_number from v$instance) as Instance_number,
(select status from v$instance) as DB_Status,
((SELECT version FROM V$INSTANCE)||(select (case when UPPER(banner) like '%EXTREME%' then ' Extreme Edition' when UPPER(banner) like '%ENTERPRISE%' then ' Enterprise Edition' else ' Standard Edition' end) from v$version where rownum=1)) as Versione,
(SELECT platform_name FROM V$database) as platform,
Expand Down

0 comments on commit 65c309b

Please sign in to comment.