당신의 프로파일이 어떻게 작동하는지 이해하는 케리 오스본에서 this article의 방법을 사용합니다.
select hint as outline_hints
from
(
select
p.name,
p.signature,
p.category,
row_number() over
(partition by sd.signature, sd.category order by sd.signature) row_num,
extractValue(value(t), '/hint') hint
from
sys.sqlobj$data sd,
dba_sql_profiles p,
table(xmlsequence(extract(xmltype(sd.comp_data), '/outline_data/hint'))) t
where sd.obj_type = 1
and p.signature = sd.signature
and p.category = sd.category
and p.name like ('<add profile_name from above>')
)
order by row_num;
SQL 프로파일이 문서화되지 않은 힌트 가득 :
짧은 버전은 프로파일을 수용 select * from dba_sql_profiles order by last_modified desc;
와 함께 새로운 PROFILE_NAME을 찾은 다음 힌트를 찾기 위해이 쿼리를 실행하는 것입니다. 힌트를 질문에 추가 할 수는 있지만 해독 할 수는 없습니다. SQL 프로파일은 깔끔한 아이디어이지만 투명하지는 않습니다.
의견을 보내 주셔서 감사합니다. – user3171342