티스토리 뷰
ORA-38824: A CREATE OR REPLACE command may not change the EDITIONABLE property of an existing object.
개발자와코더사이가 PM일까? 2019. 4. 12. 11:08고객사에 가서 프로시져 및 함수를 배포 하는데 아래와 같은 오류(ORA-38824)가 발생했다.
내부적으로 개발 서버에서는 이상이 없는데 고객사에서만 나는 오류이다.
구글에서 찾아보면 EDITIONABLE 옵션을 프로시져 및 함수명 앞에 쓰면 된다고 하는데... 잘 안되는 것 같다.
ORA-38824: A CREATE OR REPLACE command may not change the EDITIONABLE property of an existing object.
Cause: An attempt was made to replace an existing object with a different value for the EDITIONABLE property.
Action: Switch the EDITIONABLE property in the REPLACE statement, or alter the existing object to have an EDITIONABLE property matching the EDITIONABLE property in the REPLACE statement.
따라서 우선 사용자 권한 및 역할을 개발 DB와 맞출 예정이다.
select * from dba_role_privs where grantee = '사용자명'
select grantee, privilege, admin_option from dba_sys_privs where grantee = '사용자명'
그이후에는 해당 함수 및 프로시져명의 editionable 옵션을 확인 예정이다.
--ditionable 옵션 확인
select * from ALL_OBJECTS where owner = '사용자명' and upper(object_name) = upper('객체명') and editionable = 'Y'
--위의 쿼리에서 editionable이 Y이면 프로시저, 함수를 drop시키고 재배포 예정이다.
drop procedure 프로시져명;
drop function 함수명;
--컴파일
alter procedure 프로시저명 compile;
alter function 함수명 compile;
- Total
- Today
- Yesterday
- PPTX
- 제주도여행
- jdk
- 덤프
- 대관령양떼목장
- 산외한우마을
- 가평팬션
- oracle
- 인스타그램
- ora-01940
- 인천여행
- 임자도
- 가평여행
- 이클립스
- 파주여행
- 담양 죽녹원
- 보성녹차밭
- 맛집
- 인천
- 테라로사
- java api
- 오라클
- 정동지
- 토드
- 밀리세컨드
- 부천역
- pdf ms워드 변환
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |