Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

14

积分

0

好友

1

主题
1#
发表于 2012-5-11 15:59:26 | 查看: 6954| 回复: 5
今日查看那些进程在使用临时段时候发现如下:
SELECT
distinct se.sid,
se.username,
se.serial#,
se.sql_address,
se.machine,
se.program,
su.tablespace,
su.segtype,
su.contents
FROM gv$session se,gv$sort_usage su
where  se.saddr=su.session_addr;
发现如下进程,想知道这些进程是干什么用的?
SIDUSERNAMESERIAL#SQL_ADDRESSMACHINEPROGRAMTABLESPACESEGTYPECONTENTS
961      
VGOPMK60963C00000062AA81378cpda02ude@cpda02 (TNS V1-V3)TBS_MK_TMPLOB_DATATEMPORARY
977      
VGOPMK8286C00000062065A8B0cpda02ude@cpda02 (TNS V1-V3)TBS_MK_TMPLOB_DATATEMPORARY
1021     
VGOPDW56042C00000062AA81378cpda02ude@cpda02 (TNS V1-V3)TBS_DW_TMPLOB_DATATEMPORARY
1011     
VGOPDW5770500cpda02oracle@cpda02 (DW01)TBS_DW_TMPLOB_DATATEMPORARY
943      
VGOPETL14669C00000063EA1CFD0cp-etl01ociexp@cp-etl01 (TNS V1-V3)TBS_KR_TMPHASHTEMPORARY
6#
发表于 2012-5-13 12:35:20
谢谢刘大的回复!
那另外一个是什么呢?
下面这个:
ociexp@cp-etl01 (TNS V1-V3)

回复 只看该作者 道具 举报

5#
发表于 2012-5-11 16:42:07
1.

首先 ,  是ORACLE  不是 ORCLE

2.

UDE 一般是 data pump client  如 使用 expdp 、 impdp  工具观察 data pump 作业的完成进度

[oracle@vrh8 ~]$ expdp attach="SYSTEM"."SYS_EXPORT_FULL_01"

Export: Release 10.2.0.5.0 - 64bit Production on Friday, 11 May, 2012 4:37:19

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Username: system
Password:

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Job: SYS_EXPORT_FULL_01
  Owner: SYSTEM                        
  Operation: EXPORT                        
  Creator Privs: FALSE                          
  GUID: BFBFA4D094C8E17EE040A8C0BF015B5B
  Start Time: Friday, 11 May, 2012 4:37:17
  Mode: FULL                           
  Instance: G10R25
  Max Parallelism: 1
  EXPORT Job Parameters:
  Parameter Name      Parameter Value:
     CLIENT_COMMAND        system/******** full=y                  
  State: EXECUTING                     
  Bytes Processed: 0
  Current Parallelism: 1
  Job Error Count: 0
  Dump File: /s01/oracle/product/10.2.0.5/db_1/rdbms/log/expdat.dmp
    bytes written: 4,096
  
Worker 1 Status:
  State: EXECUTING                     
  Object Schema: SYS
  Object Type: DATABASE_EXPORT/DIRECTORY/GRANT/OWNER_GRANT/OBJECT_GRANT
  Completed Objects: 14
  Total Objects: 14
  Worker Parallelism: 1


SQL> select program from v$session;

PROGRAM
------------------------------------------------
sqlplus@vrh8.oracle.com (TNS V1-V3)
ude@vrh8.oracle.com (TNS V1-V3)
oracle@vrh8.oracle.com (q004)


就帖子中的信息可以看到  有 data pump 作业正在被执行, 且有人 通过data pump client 监控 这一过程。

回复 只看该作者 道具 举报

4#
发表于 2012-5-11 16:17:55

版本信息

版本信息:
SQL> select * From v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE    11.1.0.7.0    Production
TNS for HPUX: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production

回复 只看该作者 道具 举报

3#
发表于 2012-5-11 16:02:24
想知道是ORCLE的什么行为产生了这个操作,UDE是什么用户? 还是ORCLE自身的什么功能?.
select  * from  gv$sqlarea t
where t.sql_id = 'gn74qsy7sv4z4'

INST_IDSQL_TEXTSQL_FULLTEXTSQL_IDSHARABLE_MEMPERSISTENT_MEMRUNTIME_MEMSORTSVERSION_COUNTLOADED_VERSIONSOPEN_VERSIONSUSERS_OPENINGFETCHESEXECUTIONSPX_SERVERS_EXECUTIONSEND_OF_FETCH_COUNTUSERS_EXECUTINGLOADSFIRST_LOAD_TIMEINVALIDATIONSPARSE_CALLSDISK_READSDIRECT_WRITESBUFFER_GETSAPPLICATION_WAIT_TIMECONCURRENCY_WAIT_TIMECLUSTER_WAIT_TIMEUSER_IO_WAIT_TIMEPLSQL_EXEC_TIMEJAVA_EXEC_TIMEROWS_PROCESSEDCOMMAND_TYPEOPTIMIZER_MODEOPTIMIZER_COSTOPTIMIZER_ENVOPTIMIZER_ENV_HASH_VALUEPARSING_USER_IDPARSING_SCHEMA_IDPARSING_SCHEMA_NAMEKEPT_VERSIONSADDRESSHASH_VALUEOLD_HASH_VALUEPLAN_HASH_VALUEMODULEMODULE_HASHACTIONACTION_HASHSERIALIZABLE_ABORTSOUTLINE_CATEGORYCPU_TIMEELAPSED_TIMEOUTLINE_SIDLAST_ACTIVE_CHILD_ADDRESSREMOTEOBJECT_STATUSLITERAL_HASH_VALUELAST_LOAD_TIMEIS_OBSOLETEIS_BIND_SENSITIVEIS_BIND_AWARECHILD_LATCHSQL_PROFILESQL_PATCHSQL_PLAN_BASELINEPROGRAM_IDPROGRAM_LINE#EXACT_MATCHING_SIGNATUREFORCE_MATCHING_SIGNATURELAST_ACTIVE_TIMEBIND_DATATYPECHECK_MEMIO_CELL_OFFLOAD_ELIGIBLE_BYTESIO_INTERCONNECT_BYTESIO_DISK_BYTES
1SELECT COUNT(*) FROM gv$datapump_job WHERE job_id = :1SELECT COUNT(*) FROM gv$datapump_job WHERE job_id = :1gn74qsy7sv4z419023420832640110000513640012012-05-07/15:47:150513640000670000003ALL_ROWS1###########################################347256428700SYS0C000000609CA7330240842032429328088633093310103ude@cpda02 (TNS V1-V3)-1469151939
00
2721000041335929
C000000609CA71F0NVALID02012-5-7 15:47:15NNN0


1080128601.16017E+191.16017E+192012-5-11 15:53:18
0000
2SELECT COUNT(*) FROM gv$datapump_job WHERE job_id = :1SELECT COUNT(*) FROM gv$datapump_job WHERE job_id = :1gn74qsy7sv4z418895420832640111175807758087580775807112012-04-20/17:11:240758550040220126920000758073ALL_ROWS1###########################################170918343200SYS0C00000062065A8B0240842032429328088633093310103ude@cpda02 (TNS V1-V3)-1469151939
00
4164000002777977700
C0000005FE3D6E68NVALID02012-4-20 17:11:24NNN0


1080128601.16017E+191.16017E+192012-5-11 15:53:23BEDA0B1007004FACC4B8000101C0172010BFBC663EEF420DAAE044001F290DA9110000

回复 只看该作者 道具 举报

2#
发表于 2012-5-11 16:00:19
我通过SID 查找到对应的session信息如下:
SID=977:
select * from gv$session t
where t.SID = '977';
INST_IDSADDRSIDSERIAL#AUDSIDPADDRUSER#USERNAMECOMMANDOWNERIDTADDRLOCKWAITSTATUSSERVERSCHEMA#SCHEMANAMEOSUSERPROCESSMACHINETERMINALPROGRAMTYPESQL_ADDRESSSQL_HASH_VALUESQL_IDSQL_CHILD_NUMBERSQL_EXEC_STARTSQL_EXEC_IDPREV_SQL_ADDRPREV_HASH_VALUEPREV_SQL_IDPREV_CHILD_NUMBERPREV_EXEC_STARTPREV_EXEC_IDPLSQL_ENTRY_OBJECT_IDPLSQL_ENTRY_SUBPROGRAM_IDPLSQL_OBJECT_IDPLSQL_SUBPROGRAM_IDMODULEMODULE_HASHACTIONACTION_HASHCLIENT_INFOFIXED_TABLE_SEQUENCEROW_WAIT_OBJ#ROW_WAIT_FILE#ROW_WAIT_BLOCK#ROW_WAIT_ROW#LOGON_TIMELAST_CALL_ETPDML_ENABLEDFAILOVER_TYPEFAILOVER_METHODFAILED_OVERRESOURCE_CONSUMER_GROUPPDML_STATUSPDDL_STATUSPQ_STATUSCURRENT_QUEUE_DURATIONCLIENT_IDENTIFIERBLOCKING_SESSION_STATUSBLOCKING_INSTANCEBLOCKING_SESSIONSEQ#EVENT#EVENTP1TEXTP1P1RAWP2TEXTP2P2RAWP3TEXTP3P3RAWWAIT_CLASS_IDWAIT_CLASS#WAIT_CLASSWAIT_TIMESECONDS_IN_WAITSTATEWAIT_TIME_MICROTIME_REMAINING_MICROTIME_SINCE_LAST_WAIT_MICROSERVICE_NAMESQL_TRACESQL_TRACE_WAITSSQL_TRACE_BINDSSQL_TRACE_PLAN_STATSSESSION_EDITION_IDCREATOR_ADDRCREATOR_SERIAL#
2C000000671152DE897782863.34E+08C00000066C9B789031VGOPMK32.147E+09C0000006617696A8
ACTIVEDEDICATED0SYSoracle7462cpda02pts/4ude@cpda02 (TNS V1-V3)USERC00000062065A8B02408420324gn74qsy7sv4z402012-4-20 18:33:0933555219C00000061AC098D02133220919d51ra7dzkcrjr02012-4-20 18:33:0933589034777512

ude@cpda02 (TNS V1-V3)2825815357
0
179709031-1000###############1804723NONONENONENO
DISABLEDENABLEDENABLED0
UNKNOWN

63966284PX Deq Credit: send blkdsleeptime/senderid2.69E+080000000010010E0Fpasses7E+0500000000000A6F3Eqref1.38351E+19C000000612BFFB1027231689086Idle00WAITING48180920181910SYS$USERSDISABLEDFALSEFALSEFIRST EXEC100C00000066C9B7890174



































































































































































































































[ 本帖最后由 qq33649394 于 2012-5-11 16:05 编辑 ]

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-15 17:25 , Processed in 0.058120 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569