특정 세션을 날린 사람의 IP를 알고 싶은데 v$session에서는 machine이름만 알수 있더라구요 자료를 찾아봤더니
select utl_inaddr.get_host_address(TERMINAL) from v$session
하면 된다고 하던데 sys user에서 위처럼 실행하면
ORA-20000: UNKNOWN 에러가 떨어집니다.
20000에러를 찾아봤더니
20000, 00000, "%s" // *Cause: The stored procedure 'raise_application_error' // was called which causes this error to be generated. // *Action: Correct the problem as described in the error message or contact // the application administrator or DBA for more information.
이던데 현재 stored procedure를 찾아봤더니 'raise_application_error'가 없는데
생성해 줘야하는 건가요? 생성해야한다면 어떻게 해야하는지요?
고수님들 조언 부탁드립니다. ^^
|