SELECT * FROM all_mviews;
Refresh an mview:
execute dbms_mview.refresh('my_cool_mview','f');
SELECT * FROM all_mviews;
execute dbms_mview.refresh('my_cool_mview','f');
public enum Type {
INFO,
WARNING,
ERROR;
final static Map<String, Type> lookup = new HashMap<String, Type>();
static {
for(Type type : Type.values()) {
lookup.put(type.name().toLowerCase(), type);
}
}
public static Type of(String value){
Type val = lookup.get(value == null ? null : value.toLowerCase());
if(val == null){
val = ERROR;
}
return val;
}
}
public enum Type {
INFO,
WARNING,
ERROR;
final static Map<String, Type> lookup = Arrays.stream(Type.values())
.collect(Collectors.toMap(t -> t.name().toLowerCase(), Function.identity()));
public static Type of(String value){
Type val = lookup.get(value == null ? null : value.toLowerCase());
if(val == null){
val = ERROR;
}
return val;
}
}
sqlplus / as sysdba SQL> startup ORACLE instance started. Total System Global Area 1068937216 bytes Fixed Size 2233344 bytes Variable Size 809503744 bytes Database Buffers 251658240 bytes Redo Buffers 5541888 bytes Database mounted. ORA-01114: IO error writing block to file 5 (block # 1) ORA-01110: data file 5: '/data/oracle/bb/bb1.dbf' ORA-27091: unable to queue I/O ORA-27041: unable to open file Linux-x86_64 Error: 13: Permission denied Additional information: 3
sudo chmod 660 /data/oracle/bb/bb1.dbf sqlplus / as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Fri Oct 16 17:59:36 2015 Copyright (c) 1982, 2011, Oracle. All rights reserved. Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production SQL> startup ORACLE instance started. Total System Global Area 1068937216 bytes Fixed Size 2233344 bytes Variable Size 809503744 bytes Database Buffers 251658240 bytes Redo Buffers 5541888 bytes Database mounted. Database opened.