select B.MACHINE,A.sid,A.CNT,to_char(B.LOGON_TIME,'yyyymmdd HH24MIss') as LDATE ,A.SQL_TEXT
from (
select sid, SQL_TEXT,count(*) as CNT
from v$open_cursor
group by sid,SQL_TEXT order by CNT
) A , v$session B
where A.sid = B.sid
--and B.MACHINE = 'cclsunap2'
order by B.MACHINE,CNT
SQL> set pages 5000
SQL> col owner for a10
SQL> select owner,CONSTRAINT_NAME,CONSTRAINT_TYPE,TABLE_NAME from dba_constraints where OWNER='VOIP' order by 3,4,1
OWNER CONSTRAINT_NAME C...
要更改NLS_CHARACTERSET的值, 例如要改成 AL32UTF8 , 步驟如下:
以 sysdba 角色進入 sqlplus 之後執行以下
shutdown immediate;
STARTUP MOUNT;
ALTER SESSION SET SQL_TRACE=TRUE;
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
ALTER SYSTEM SET AQ_TM_PROCESSES=0;
ALTER DATABASE OPEN;
ALTER DATABASE...