有朋友在一個儲存空間給asm使用,發生空間不足,然後使用另外一個儲存中的lun給asm的data磁碟組增加asm disk,運行了大概1天之後,asm磁碟組直接dismount,資料庫crash.然後就無法正常mount.包括這個儲存上的幾個其他磁碟組也無法正常mount.資料庫異常日誌Sun Oct 23 08:43:59 2016SUCCESS: diskgroup DATA was dismountedSUCCESS: diskgroup DATA was dismountedSun
線上重定義資料檔案:在oracle 12c R1之前的版本中,如果線上移動資料檔案需要將資料表空間或者資料檔案離線,然後作業系統mv,recover後online資料檔案或者資料表空間,在oracle 12c R1後可以直接線上重定義資料檔案,這個過程使用者可以進行查詢、DML以及DDL的任務,另外資料檔案也可以直接在存放裝置間遷移,比如ASM到檔案系統的相互遷移。SQL> select name from v$datafile;NAME--------------------------
oracle清理資料的方法一、刪除一個使用者下所有資料庫物件一種方法是刪除這個使用者然後重建,需要管理員操作:drop user wangyi cascade; --刪除使用者select * from dba_users where username = 'wangyi' --查詢預設資料表空間drop tablespace WANGYI_DTBS including contents and datafiles; --刪除資料表空間重建使用者:create user
資料庫版本和平台資訊資料庫版本為10.2.0.1版本,而且是32位的win 2003 sp2之上ORACLE V10.2.0.1.0 - Production vsnsta=0vsnsql=14 vsnxtr=3Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProductionWith the Partitioning, OLAP and Data Mining optionsWindows Server 2003
create or replace view V_WTK_ALL as select a.id, o.short as FindDeptName, u.realname as FindUserName, f.name as FindWay, o1.short as ProblemAtDeptName, z.name as szzz, a.yhnr, s.name as SSZY, k.name as kind, w.name as whhg, a.zgcs, a.zgfzr,