ORACLE问题,每天10问(三)

发表于:2007-07-02来源:作者:点击数: 标签:
21. 在ORACLE TABLE中如何抓取MEMO类型字段为空的资料记录? select remark from oms_flowrec where trim(@# @# from remark) is not null ; 22. 如何用BBB表的资料去更新AAA表的资料(有关联的字段) UPDATE AAA SET BNS_SNM=(SELECT BNS_SNM FROM BBB WHERE AA
21. 在ORACLE TABLE中如何抓取MEMO类型字段为空的资料记录?  select remark from oms_flowrec where trim(@# @# from remark) is not null ;  22. 如何用BBB表的资料去更新AAA表的资料(有关联的字段)  UPDATE AAA SET BNS_SNM=(SELECT BNS_SNM FROM BBB WHERE AAA.DPT_NO=BBB.DPT_NO) WHERE BBB.DPT_NO IS NOT NULL;  23. P4计算机安装方法  将SYMCJIT.DLL改为SYSMCJIT.OLD  24. 何查询SERVER是不是OPS?  SELECT * FROM V$OPTION;  如果PARALLEL SERVER=TRUE则有OPS能  25. 何查询每个用户的权限?  SELECT * FROM DBA_SYS_PRIVS;  26. 如何将表移动表空间?  ALTER TABLE TABLE_NAME MOVE TABLESPACE_NAME;  27. 如何将索引移动表空间?  ALTER INDEX INDEX_NAME REBUILD TABLESPACE TABLESPACE_NAME;  28. 在LINUX,UNIX下如何激活DBA STUDIO?  OEMAPP DBASTUDIO        29. 查询锁的状况的对象有?  V$LOCK, V$LOCKED_OBJECT, V$SESSION, V$SQLAREA, V$PROCESS ;  查询锁的表的方法:  SELECT S.SID SESSION_ID, S.USERNAME, DECODE(LMODE, 0, @#None@#, 1, @#Null@#, 2, @#Row-S (SS)@#, 3, @#Row-X (SX)@#, 4, @#Share@#, 5, @#S/Row-X (SSX)@#, 6, @#Exclusive@#, TO_CHAR(LMODE)) MODE_HELD, DECODE(REQUEST, 0, @#None@#, 1, @#Null@#, 2, @#Row-S (SS)@#, 3, @#Row-X (SX)@#, 4, @#Share@#, 5, @#S/Row-X (SSX)@#, 6, @#Exclusive@#, TO_CHAR(REQUEST)) MODE_REQUESTED, O.OWNER||@#.@#||O.OBJECT_NAME||@# (@#||O.OBJECT_TYPE||@#)@#, S.TYPE LOCK_TYPE, L.ID1 LOCK_ID1, L.ID2 LOCK_ID2 FROM V$LOCK L, SYS.DBA_OBJECTS O, V$SESSION S WHERE L.SID = S.SID AND L.ID1 = O.OBJECT_ID ;  30. 如何解锁?  ALTER SYSTEM KILL SESSION ‘SID,SERIR#’;

原文转自:http://www.ltesting.net