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');
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.
SELECT * FROM dba_objects WHERE object_name LIKE '%STRING%';
SELECT owner, table_name, column_name FROM all_tab_columns WHERE column_name LIKE '%COL_STRING%';
alter system set processes=150 scope=spfile;
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 27 14:46:58 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> select * from v$resource_limit where resource_name in ('processes','sessions');
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION
------------------------------ ------------------- ---------------
INITIAL_ALLOCATION
----------------------------------------
LIMIT_VALUE
----------------------------------------
processes 38 40
40
40
sessions 42 49
49
49
RESOURCE_NAME CURRENT_UTILIZATION MAX_UTILIZATION
------------------------------ ------------------- ---------------
INITIAL_ALLOCATION
----------------------------------------
LIMIT_VALUE
----------------------------------------
SQL> alter system set processes=150 scope=spfile;
System altered.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
gabo@gabo-Precision-M6600:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server$ sudo /etc/init.d/oracle-xe restart
Shutting down Oracle Database 10g Express Edition Instance.
Stopping Oracle Net Listener.
Starting Oracle Net Listener.
Starting Oracle Database 10g Express Edition Instance.
create unique index INDEX_NAME on TABLE (lower(trim(COL_1)));
SQL Error: ORA-00001: unique constraint (TABLE.INDEX_NAME) violated
00001. 00000 - "unique constraint (%s.%s) violated"
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
For Trusted Oracle configured in DBMS MAC mode, you may see
this message if a duplicate entry exists at a different level.
*Action: Either remove the unique restriction or do not insert the key.