Re: [oracle_br] Sessão muito tempo ativa

2016-08-11 Por tôpico jlchia...@yahoo.com.br [oracle_br]
ok - fiquei espantado que issues que aparentemente já tinham sido apontadas e 
solucionadas há bastante tempo no 11gR2 de modo geral tenha tido re-raise aí no 
AIX mas blz... Talvez vc esteja rodando um AIX 5 aí ao invés dos mais recentes 
6 ou 7 e esse cara ainda tivesse issuezinha no kernel que o ASM não estivesse 
tratando, ou coisa assim, imagino... Mas blz, é pra isso que serve o Suporte...

 []s
 
   Chiappa

Re: [oracle_br] Sessão muito tempo ativa

2016-08-11 Por tôpico Rafael Mendonca raffaell.t...@yahoo.com [oracle_br]
Exato Chiappa, era realmente um BUG, o desenvolvedor da Oracle estava criando 
um one off patch para o meu problema e terminou exatamente ontem, segue 
p18077682_11204160419_AIX64-5L.zip  

Em Sexta-feira, 5 de Agosto de 2016 22:58, "Rodrigo Mufalani 
rodr...@mufalani.com.br [oracle_br]"  escreveu:
 

     Boa tarde,
    Last_call_et mostra a ultima vez em que ela fez uma chamada sql, qual o 
status da sessão? Vocé também pode usar um trace do S.O para verificar, veja o 
similar do strace pra AIX.  
Get Outlook for iOS



On Thu, Aug 4, 2016 at 11:47 AM -0300, "Rafael Mendonca raffaell.t...@yahoo.com 
[oracle_br]" wrote:

 Oracle 11.2.0.4.16 - AIX 64 bits
Verificando as sessões ativas do meu database, verifiquei que existem duas 
sessões do usuário "SYS" executando a mais de 15 horas.

SID,SERIAL = '2851,1421'SPID = 34144422   
USERNAME  = SYS
OSUSER = oracle   
SERVER = DEDICATED 
PROGRAM = oracle@hostname(O002) 
MACHINE = hostnameLAS_CALL_ET = 56282

Essa acima é uma delas...
Consultei a v$sql junto com a v$session e nada é mostrado, portanto, joguei um 
trace na sessão usando o oradebug event 10046 trace name context forever, level 
12;

Após 30 minutos nada é mostrado no trace:


Trace file: 
/u01/app/oracle/diag/rdbms/instancia/INSTANCIA/trace/INSTANCIA_o002_34144422.trc
Sort options: default


count    = number of times OCI procedure was executed
cpu  = cpu time in seconds executing 
elapsed  = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call

Trace file: 
/u01/app/oracle/diag/rdbms/instancia/INSTANCIA/trace/INSTANCIA_o002_34144422.trc
Trace file compatibility: 11.1.0.7
Sort options: default

   1  session in tracefile.
   0  user  SQL statements in trace file.
   0  internal SQL statements in trace file.
   0  SQL statements in trace file.
   0  unique SQL statements in trace file.
    1059  lines in trace file.
   0  elapsed seconds in trace file.


Gostaria de saber o motivo dessa sessão está tanto tempo ativa e o que está 
rodando, pois não consegui identificar, não sei se é viável matar a sessão ou 
não.

Poderiam ajudar?


  #yiv7013278807 #yiv7013278807 -- #yiv7013278807ygrp-mkp {border:1px solid 
#d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}#yiv7013278807 
#yiv7013278807ygrp-mkp hr {border:1px solid #d8d8d8;}#yiv7013278807 
#yiv7013278807ygrp-mkp #yiv7013278807hd 
{color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 
0;}#yiv7013278807 #yiv7013278807ygrp-mkp #yiv7013278807ads 
{margin-bottom:10px;}#yiv7013278807 #yiv7013278807ygrp-mkp .yiv7013278807ad 
{padding:0 0;}#yiv7013278807 #yiv7013278807ygrp-mkp .yiv7013278807ad p 
{margin:0;}#yiv7013278807 #yiv7013278807ygrp-mkp .yiv7013278807ad a 
{color:#ff;text-decoration:none;}#yiv7013278807 #yiv7013278807ygrp-sponsor 
#yiv7013278807ygrp-lc {font-family:Arial;}#yiv7013278807 
#yiv7013278807ygrp-sponsor #yiv7013278807ygrp-lc #yiv7013278807hd {margin:10px 
0px;font-weight:700;font-size:78%;line-height:122%;}#yiv7013278807 
#yiv7013278807ygrp-sponsor #yiv7013278807ygrp-lc .yiv7013278807ad 
{margin-bottom:10px;padding:0 0;}#yiv7013278807 #yiv7013278807actions 
{font-family:Verdana;font-size:11px;padding:10px 0;}#yiv7013278807 
#yiv7013278807activity 
{background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}#yiv7013278807
 #yiv7013278807activity span {font-weight:700;}#yiv7013278807 
#yiv7013278807activity span:first-child 
{text-transform:uppercase;}#yiv7013278807 #yiv7013278807activity span a 
{color:#5085b6;text-decoration:none;}#yiv7013278807 #yiv7013278807activity span 
span {color:#ff7900;}#yiv7013278807 #yiv7013278807activity span 
.yiv7013278807underline {text-decoration:underline;}#yiv7013278807 
.yiv7013278807attach 
{clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 
0;width:400px;}#yiv7013278807 .yiv7013278807attach div a 
{text-decoration:none;}#yiv7013278807 .yiv7013278807attach img 
{border:none;padding-right:5px;}#yiv7013278807 .yiv7013278807attach label 
{display:block;margin-bottom:5px;}#yiv7013278807 .yiv7013278807attach label a 
{text-decoration:none;}#yiv7013278807 blockquote {margin:0 0 0 
4px;}#yiv7013278807 .yiv7013278807bold 
{font-family:Arial;font-size:13px;font-weight:700;}#yiv7013278807 
.yiv7013278807bold a {text-decoration:none;}#yiv7013278807 dd.yiv7013278807last 
p a {font-family:Verdana;font-weight:700;}#yiv7013278807 dd.yiv7013278807last p 
span 

Re: [oracle_br] Sessão muito tempo ativa

2016-08-05 Por tôpico Rodrigo Mufalani rodr...@mufalani.com.br [oracle_br]
Boa tarde,

Last_call_et mostra a ultima vez em que ela fez uma chamada sql, qual o 
status da sessão? Vocé também pode usar um trace do S.O para verificar, veja o 
similar do strace pra AIX.

Get Outlook for iOS




On Thu, Aug 4, 2016 at 11:47 AM -0300, "Rafael Mendonca raffaell.t...@yahoo.com 
[oracle_br]" 
> wrote:



Oracle 11.2.0.4.16 - AIX 64 bits

Verificando as sessões ativas do meu database, verifiquei que existem duas 
sessões do usuário "SYS" executando a mais de 15 horas.

SID,SERIAL = '2851,1421'
SPID = 34144422
USERNAME  = SYS
OSUSER = oracle
SERVER = DEDICATED
PROGRAM = oracle@hostname(O002)
MACHINE = hostname
LAS_CALL_ET = 56282


Essa acima é uma delas...

Consultei a v$sql junto com a v$session e nada é mostrado, portanto, joguei um 
trace na sessão usando o oradebug event 10046 trace name context forever, level 
12;

Após 30 minutos nada é mostrado no trace:



Trace file: 
/u01/app/oracle/diag/rdbms/instancia/INSTANCIA/trace/INSTANCIA_o002_34144422.trc
Sort options: default


count= number of times OCI procedure was executed
cpu  = cpu time in seconds executing
elapsed  = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query= number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call

Trace file: 
/u01/app/oracle/diag/rdbms/instancia/INSTANCIA/trace/INSTANCIA_o002_34144422.trc
Trace file compatibility: 11.1.0.7
Sort options: default

   1  session in tracefile.
   0  user  SQL statements in trace file.
   0  internal SQL statements in trace file.
   0  SQL statements in trace file.
   0  unique SQL statements in trace file.
1059  lines in trace file.
   0  elapsed seconds in trace file.


Gostaria de saber o motivo dessa sessão está tanto tempo ativa e o que está 
rodando, pois não consegui identificar, não sei se é viável matar a sessão ou 
não.

Poderiam ajudar?






Re: [oracle_br] Sessão muito tempo ativa

2016-08-04 Por tôpico Rosivaldo Ramalho rosiva...@gmail.com [oracle_br]
Rafael,

Mata não! Rsrsrsrsrsrs

Esse cara é um processo entre o banco e o ASM para operações de metadados.
Segue a doc:
https://docs.oracle.com/cd/E11882_01/server.112/e40402/bgprocesses.htm#REFRN104

Atenciosamente
--
Rosivaldo Ramalho 
Diretor na RLXE - http://www.rlxe.com.br


OCP DB 10g | OCP DB 11g | OCE RAC 11g | OCE PT 11g
OCP OAS 10g | OCE WLS 10g

http://about.me/rosivaldo

On Thu, Aug 4, 2016 at 11:47 AM, Rafael Mendonca raffaell.t...@yahoo.com
[oracle_br]  wrote:

>
>
> Oracle 11.2.0.4.16 - AIX 64 bits
>
> Verificando as sessões ativas do meu database, verifiquei que existem duas
> sessões do usuário "SYS" executando a mais de 15 horas.
>
> SID,SERIAL = '2851,1421'
> SPID = 34144422
> USERNAME  = SYS
> OSUSER = oracle
> SERVER = DEDICATED
> PROGRAM = oracle@hostname(O002)
> MACHINE = hostname
> LAS_CALL_ET = 56282
>
>
> Essa acima é uma delas...
>
> Consultei a v$sql junto com a v$session e nada é mostrado, portanto,
> joguei um trace na sessão usando o oradebug event 10046 trace name context
> forever, level 12;
>
> Após 30 minutos nada é mostrado no trace:
>
>
>
> Trace file: /u01/app/oracle/diag/rdbms/instancia/INSTANCIA/trace/
> INSTANCIA_o002_34144422.trc
> Sort options: default
>
> 
> 
> count= number of times OCI procedure was executed
> cpu  = cpu time in seconds executing
> elapsed  = elapsed time in seconds executing
> disk = number of physical reads of buffers from disk
> query= number of buffers gotten for consistent read
> current  = number of buffers gotten in current mode (usually for update)
> rows = number of rows processed by the fetch or execute call
> 
> 
> Trace file: /u01/app/oracle/diag/rdbms/instancia/INSTANCIA/trace/
> INSTANCIA_o002_34144422.trc
> Trace file compatibility: 11.1.0.7
> Sort options: default
>
>1  session in tracefile.
>0  user  SQL statements in trace file.
>0  internal SQL statements in trace file.
>0  SQL statements in trace file.
>0  unique SQL statements in trace file.
> 1059  lines in trace file.
>0  elapsed seconds in trace file.
>
>
> Gostaria de saber o motivo dessa sessão está tanto tempo ativa e o que
> está rodando, pois não consegui identificar, não sei se é viável matar a
> sessão ou não.
>
> Poderiam ajudar?
>
>
>
>
> 
>