30. 1. 2010, 18.39
SQL> col nm for a8
select nm, max(description) descript
from
(select regexp_replace( name, ‘[0-9a-z]‘, ‘#’ ) nm, description
from v$bgprocess)
group by nm
order by nm
/SQL>
NMÂ Â Â Â Â Â DESCRIPT
——– —————————————————————-
ACMSÂ Â Â Â Atomic Controlfile to Memory Server
ARB#Â Â Â Â ASM Rebalance 9
ARBAÂ Â Â Â ASM Rebalance 10
ARC#Â Â Â Â Archival Process 9
ASMBÂ Â Â Â ASM Background
CJQ#Â Â Â Â Job Queue Coordinator
CKPTÂ Â Â Â checkpoint
CTWRÂ Â Â Â Change Tracking Writer
DBRMÂ Â Â Â Resource Manager process
DBW#Â Â Â Â db writer process 9
DIA#Â Â Â Â diagnosibility process 9
DIAGÂ Â Â Â diagnosibility process
DMONÂ Â Â Â DG Broker Monitor Process
DSKMÂ Â Â Â slave DiSKMon process
EMNCÂ Â Â Â EMON Coordinator
FBDAÂ Â Â Â Flashback Data Archiver Process
FMONÂ Â Â Â File Mapping Monitor Process
FSFPÂ Â Â Â Data Guard Broker FSFO Pinger
GMONÂ Â Â Â diskgroup monitor
GTX#Â Â Â Â Global Txn process 9
INSVÂ Â Â Â Data Guard Broker INstance SlaVe Process
LCK#Â Â Â Â Lock Process 0
LGWRÂ Â Â Â Redo etc.
LMD#Â Â Â Â global enqueue service daemon 0
LMONÂ Â Â Â global enqueue service monitor
LMS#Â Â Â Â global cache service process 9
LNS#Â Â Â Â Network Server 9
LSP#Â Â Â Â Set Guard Standby Information for Logical Standby
MARKÂ Â Â Â mark AU for resync koordinator
MMANÂ Â Â Â Memory Manager
MMNLÂ Â Â Â Manageability Monitor Process 2
MMONÂ Â Â Â Manageability Monitor Process
MRP#Â Â Â Â Managed Standby Recovery
NSV#Â Â Â Â Data Guard Broker NetSlave Process 9
OFSCÂ Â Â Â OFS CSS
PINGÂ Â Â Â interconnect latency measurement
PMONÂ Â Â Â process cleanup
PSP#Â Â Â Â process spawner 0
QMNCÂ Â Â Â AQ Coordinator
RBALÂ Â Â Â ASM Rebalance master
RCBGÂ Â Â Â Result Cache: Background
RECOÂ Â Â Â distributed recovery
RMS#Â Â Â Â rac management server
RSM#Â Â Â Â Data Guard Broker Resource Guard Process 1
RSMNÂ Â Â Â Remote Slave Monitor
RVWRÂ Â Â Â Recovery Writer
SMCOÂ Â Â Â Space Manager Process
SMONÂ Â Â Â System Monitor Process
VBG#Â Â Â Â Volume BG 9
VDBGÂ Â Â Â Volume Driver BG
VKTMÂ Â Â Â Virtual Keeper of TiMe process
51 rows selected.
SQL>
Regards,
Tom
30. 1. 2010, 17.32
Hi,
there are two ways how to get information about disk group usage.
Sqlplus
——–
SQL> set lines 255
SQL> col path for a35
SQL> col Diskgroup for a15
SQL> col DiskName for a20
SQL> col disk# for 999
SQL> col total_mb for 999,999,999
SQL> col free_mb for 999,999,999
SQL> compute sum of total_mb on DiskGroup
SQL> compute sum of free_mb on DiskGroup
SQL> break on DiskGroup skip 1 on report -
>
SQL> set pages 255
SQL>
SQL> select a.name DiskGroup, b.disk_number Disk#, b.name DiskName, b.total_mb, b.free_mb, b.path, b.header_status
2Â from v$asm_disk b, v$asm_diskgroup a
3Â where a.group_number (+) =b.group_number
4Â order by b.group_number, b.disk_number, b.name
5Â /
set lines 122
set pages 66
DISKGROUPÂ Â Â Â Â Â DISK# DISKNAMEÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â TOTAL_MBÂ Â Â Â Â FREE_MB PATHÂ Â Â Â Â Â HEADER_STATU
————— —– ——————– ———— ———— ———————————– ————
DATAÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 DATAÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 238,747Â Â Â Â Â Â 37,328 ORCL:DATAÂ MEMBER
***************Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ———— ————
sum                                            238,747      37,328
ASMCMD tool
———–
oracle@antarctic:~> asmcmd
ASMCMD> lsdg
State   Type   Rebal Sector Block      AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name
MOUNTEDÂ EXTERNÂ NÂ Â Â Â Â Â Â Â 512Â Â 4096Â 1048576Â Â Â 238747Â Â Â 37293 0Â Â Â Â Â Â Â Â Â Â 37293Â Â Â Â Â Â Â Â Â Â Â Â Â 0Â DATA/
Regards,
Tom
13. 1. 2010, 20.05
DISABLE Database vault
1) Shutdown database
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
2) Stop database control
[oracle@centos53 datvault]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://centos53.server.cz:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ……Â Stopped.
3) Relink Oracle
[oracle@centos53 datvault]$ cd $ORACLE_HOME/rdbms/lib
[oracle@centos53 lib]$ make -f ins_rdbms.mk dv_off
/usr/bin/ar d /u01/app/oracle/product/11.1.0/db_1/rdbms/lib/libknlopt.a kzvidv.o
/usr/bin/ar cr /u01/app/oracle/product/11.1.0/db_1/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.1.0/db_1/rdbms/lib/kzvndv.o
[oracle@centos53 lib]$ cd $ORACLE_HOME/bin
[oracle@centos53 bin]$ relink oracle
4) startup database
[oracle@centos53 bin]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Jan 13 11:43:00 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 238530560 bytes
Fixed Size                 1299116 bytes
Variable Size            155192660 bytes
Database Buffers          79691776 bytes
Redo Buffers               2347008 bytes
Database mounted.
Database opened.
5) Disable triggers
SQL> ALTER TRIGGER DVSYS.DV_BEFORE_DDL_TRG DISABLE;
Trigger altered.
SQL> ALTER TRIGGER DVSYS.DV_AFTER_DDL_TRG DISABLE;
Trigger altered.
ENABLE Database vault
ALTER TRIGGER DVSYS.DV_BEFORE_DDL_TRG ENABLE;
ALTER TRIGGER DVSYS.DV_AFTER_DDL_TRG ENABLE;
make -f ins_rdbms.mk dv_on
Regards,
Tom