Showing posts with label WINSCP. Show all posts
Showing posts with label WINSCP. Show all posts

Thursday, May 8, 2014

How to find Trace file location when you are given Trace ID

select name,value from v$parameter where name='user_dump_dest';


SELECT 'Request id: '||request_id ,
'Trace id: '||oracle_Process_id,
'Trace Flag: '||req.enable_trace,
'Trace Name:
'||dest.value||'/'||lower(dbnm.value)||'_ora_'||oracle_process_id||'.trc',
'Prog. Name: '||prog.user_concurrent_program_name,
'File Name: '||execname.execution_file_name|| execname.subroutine_name ,
'Status : '||decode(phase_code,'R','Running')
||'-'||decode(status_code,'R','Normal'),
'SID Serial: '||ses.sid||','|| ses.serial#,
'Module : '||ses.module
from fnd_concurrent_requests req, v$session ses, v$process proc,
v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog,
fnd_executables execname
where req.request_id = 65791130
and req.oracle_process_id=proc.spid(+)
and proc.addr = ses.paddr(+)
and dest.name='user_dump_dest'
and dbnm.name='db_name'
and req.concurrent_program_id = prog.concurrent_program_id
and req.program_application_id = prog.application_id
and prog.application_id = execname.application_id
and prog.executable_id=execname.executable_id;



Replace Trace ID with your trace ID and find the location of trace file and extract

Thursday, April 24, 2014

How to login to WinSCP and Putty?



The username and password of WinSCP and Putty are the same

Hostname can be the name of the host found in TNS or even you can use the IP Address as well and password is given by the DBA. Make sure the connection type is SSH and the port number usually gets defualted to 22. Save the credentials and login to the unix box.

To change the password using putty. You can use passwd command

Friday, April 18, 2014

Debug file, UTL and Trace File Directories

The following paths gives the way to access debug and trace directories.

However, they may vary depending on their set ups

Trace /dev2_bin/pebbles/db/tech_st/11.2.0.2/admin/DEV2_scdoratst1/diag/rdbms/dev2/DEV2/trace

Debug /dev2_bin/pebbles/db/tech_st/11.2.0.2/appsutil/outbound/DEV2_scdoratst1

UTL  /usr/tmp, /dev2_bin/pebbles/db/tech_st/11.2.0.2/appsutil/outbound/DEV2_scdoratst1, /dev2_bin/pebbles

Log Directory

/dev2_bin/pebbles/inst/apps/DEV2_scdoratst1/logs