신문지한장

[Tech][Multitenant] 유저 생성시 C## 안붙이고 생성하는 방법 & 히든파라미터 조회 sql(파라미터 변경) 본문

Oracle/Tech

[Tech][Multitenant] 유저 생성시 C## 안붙이고 생성하는 방법 & 히든파라미터 조회 sql(파라미터 변경)

신문지한장 2024. 9. 3. 09:25

1. _oracle_script 히든 파라미터 조회

col name for a40
col current_value for a15
col default_value for a15
col default_t_f for a15
select
ksppinm "name",
ksppstvl "current_value",
b.ksppstdfl "default_value",
b.ksppstdf "default_t_f"
from x$ksppi a, x$ksppsv b
where 1=1
and a.indx=b.indx
and a.ksppinm like '_oracle_script';


-- default 값까지 확인
set lines 200 pages 1000
col desc for a70
col name for a40
col current_value for a15
col default_value for a15
col default_t_f for a15
select
ksppinm "name",
ksppdesc "desc",
ksppstvl "current_value",
b.ksppstdfl "default_value",
b.ksppstdf "default_t_f"
from x$ksppi a, x$ksppcv b
where 1=1
and a.indx=b.indx
AND SUBSTR(a.KSPPINM, 1, 1) = '_'
and a.ksppinm like '%_oracle_script%' 
order by 1;

 

2. 파라미터 변경

alter session set "_oracle_script" =true;