oracle临时段的处理
应用系统不能运行,告警日志报告临时表空间不能扩展,估计是业务sql存在大量排序,只能增加临时表空间缓解这个问题。
另外还可能要清理临时段重整临时表空间释放空间:
查看一下认谁在用临时段:
SQL> SELECT /*+ rule */ se.username,se.sid,se.serial#,se.sql_address,se.machine,se.program,
su.tablespace,su.segtype, su.contents
from v$session se,v$sort_usage su
WHERE se.saddr=su.session_addr;
USERNAME SID SERIAL# SQL_ADDR MACHINE PROGRAM TABLESPACE SEGTYPE CONTENTS
-------- ---------- ---------- -------- ---------------- ---------------- ---------------- ---------
SYS 154 12 257A8240 WORKGROUP\LENOVO sqlplusw.exe TEMP SORT TEMPORARY
-94B4B86F
杀掉这个会话:
SQL> Alter system kill session '154,12';
回缩 TEMP表空间
确定TEMP表空间的ts#
SQL> select ts#, name from v$tablespace;
TS# NAME
---------- --------------------------------------------------
0 SYSTEM
1 UNDOTBS1
2 SYSAUX
4 USERS
6 EXAMPLE
7 DNA
相关文档:
对于Oracle ORA-24343这种错误,Oracle的官方解释是:
Error Message: ORA-24343 user defined callback error
Error Cause:
The only valid return value for a user defined callback function is OCI_ CONTINUE. Any other value will cause this error.
Action:
Make sure that OCI_CONTINUE i ......
查询:
select distinct(empno) , name , age from t_person t where (t.age between 21 and 25 or name like '%王%') and
empno like '32%';
更新:
update t_person set name = 'ww' where empno = '321654';
update t_person set(empno,name,age) = (select empno,name,age f ......
转:http://oracle.chinaitlab.com/install/755900.html
简单来说,Oracle数据库的监听配置包括服务器端的配置和客户端的配置。服务器端是通过监听器即LISTENER来完成的,而客户端配置有多种,常用的是采用本地服务名来配置。关于监听器和本地服务名,详细解释如下:
一、 ......
要找Oracle 9i for Linux挺麻烦的,干脆自己留个记录比较方便。
Oracle9i Database Release 2 Enterprise/Standard/Personal Edition for Windows NT/2000/XP
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk1.zip
http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk2.zip
http://downlo ......