# mpstat 1 10
# ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10
#ps -eo pcpu,pid,user,args,pmem | sort -k 1 -r | head -10
for i in `seq 1 10`; do ps -eo pcpu,pid,user,args,pmem | sort -k 1 -r | head -10; sleep 1; clear; done
пятница, 8 мая 2009 г.
среда, 6 мая 2009 г.
Oracle Table DUAL
SQL> DROP TABLE SYS.DUAL ;
Table dropped.
SQL> CREATE TABLE SYS.DUAL
2 (
3 DUMMY VARCHAR2(1 BYTE)
4 )
5 TABLESPACE SYSTEM;
Table created.
SQL> CREATE PUBLIC SYNONYM DUAL FOR SYS.DUAL;
Synonym created.
SQL> GRANT SELECT ON SYS.DUAL TO PUBLIC WITH GRANT OPTION;
Grant succeeded.
SQL> INSERT INTO dual VALUES ('X');
1 row created.
SQL> SELECT * FROM dual;
D
-
X
Не делать shutdown после drop
SQL> drop table dual;
Table dropped.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 188743680 bytes
Fixed Size 1286460 bytes
Variable Size 96472772 bytes
Database Buffers 88080384 bytes
Redo Buffers 2904064 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL>
Table dropped.
SQL> CREATE TABLE SYS.DUAL
2 (
3 DUMMY VARCHAR2(1 BYTE)
4 )
5 TABLESPACE SYSTEM;
Table created.
SQL> CREATE PUBLIC SYNONYM DUAL FOR SYS.DUAL;
Synonym created.
SQL> GRANT SELECT ON SYS.DUAL TO PUBLIC WITH GRANT OPTION;
Grant succeeded.
SQL> INSERT INTO dual VALUES ('X');
1 row created.
SQL> SELECT * FROM dual;
D
-
X
Не делать shutdown после drop
SQL> drop table dual;
Table dropped.
SQL> shutdown
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 188743680 bytes
Fixed Size 1286460 bytes
Variable Size 96472772 bytes
Database Buffers 88080384 bytes
Redo Buffers 2904064 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL>
Подписаться на:
Сообщения (Atom)