반응형

1. Quick Batch File Compiler (Quick BFC)


1.png
Quick Batch File Compiler (Quick BFC) 는 BAT 파일을 EXE 파일로 변환하는 프로그램 입니다.
특히 프로그램 작업 하다 보면 BAT 파일을 자주 만지게 되는데 BAT 파일의 내용을 감추고 싶을때, 또는 lnk(바로가기) 파일에서 지원 되 지 않는 상대경로를 이용한 프로그램 실행 (Launcher) 을 만들때 유용합니다.





2. 프로그램 구하기


1359DB144B85303A18ED7A
Quick Batch File Compiler 3.2.4.0 (Portable, Registered)




18741C054B8549E55422B7
1. http://rapidshare.com 에서 미등록 사용자는 다운 받기위해 30초를 대기 하셔야 되요. ㅠ_ㅠ
 
2. 무설치 버전은 Windows7 에서 정상 동작 함을 확인 하였습니다.
3. 해당 파일은 저와는 무관한 파일 입니다. (구글링 했어요.)







3. 간단한 사용


<test.bat>

".\..\..\..\..\Program Files\7-Zip\7zFM.exe"

위 내용의 배치 파일을 만듭니다.
해당 내용은 7zFM.exe 파일을 실행하며 이때 7zFM.exe 파일을 test.bat 파일이 위치한 경로로부터 상대경로로 접근합니다.



2.png
Quick BFC 에서 해당 bat 파일을 Open 하고 Build 하는 것 만으로 원하는 exe 파일을 얻을 수 있습니다.
(어때요, 참 쉽죠잉~?)

헌데 만들어진 exe 파일을 실행시켜뜨니 이상합니다.

3.png
에레? cmd 창도 같이 떠버리네요?!!!



4.png
Option 에서 Output EXE type 을 Ghost Application 으로 변경해주고 다시 Build 합니다.
그러면 cmd 창은 뜨지 않을거에요.





4. 생성되는 exe 파일의 icon을 정하고 싶어요


5.png
Embedded Files 탭에서 Application Icon 을 선택하여 줍니다. (Icon 이미지 파일은 ico 파일만을 지원합니다.)
그러고 다시 Build를 하면 아래와 같이 exe 파일의 아이콘이 등록됩니다.

반응형
반응형

 proc: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory

proc를 컴파일 하다가 보면 발생할 수 있는 에러....

proc는 Server 용 오라클을 설치할 경우 같이 설치됨.

환경 변수에

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

추가하면 정상 작동한다...
반응형
반응형


오라클을 이관 후에는 컴파일을 일괄적으로 해야할 때가 존재한다...

1. 일괄 컴파일

 

Set heading off      
Set feedback off      
Set pages 1000      
 
 spool obj.sql
 select 'set termout on' from dual;
 select 'set echo on' from dual;      
      
 select 'alter trigger '||owner||'.'||object_name||' compile;'
 from dba_objects
 where status <> 'VALID'
 and object_type='TRIGGER';
     
 select 'alter package '||owner||'.'||object_name||' compile;'      
 from dba_objects      
 where status <> 'VALID'       
 and object_type='PACKAGE';      

 select 'alter package '||owner||'.'||object_name||' compile body;'     
 from dba_objects      
 where status <> 'VALID'       
 and object_type='PACKAGE BODY';

 select 'alter procedure '||owner||'.'||object_name||' compile;'       
 from dba_objects      
 where status <> 'VALID'       
 and object_type='PROCEDURE';      

 select 'alter function '||owner||'.'||object_name||' compile;'
 from dba_objects      
 where status <> 'VALID'
 and object_type='FUNCTION';

 select 'alter view '||owner||'.'||object_name||' compile;'       
 from dba_objects      
 where status <> 'VALID'       
 and object_type='VIEW';       
 
 spool off

[출처] [Oracle] 데이타베이스 한꺼번에 Compile하기|작성자 미친예언자




2. 일괄 컴파일

 host rm -rf comp1.sql comp2.sql
set pages 300
select count(1) as INVALID_OBJECT_COUNT from dba_objects where status !='VALID';
set pages 0
set line 1000
set echo off
set feedback off
set space 0
col compile for a1000
select systimestamp as start_time from dual;
spool comp1.sql
select 'prompt '||object_type||' '||object_name||' compiling'||'
prompt '||'
alter '||object_type||' '||owner||'.'||object_name||' compile;' as compile
from dba_objects
where status !='VALID'
and object_type !='PACKAGE BODY';
spool off
host ls -al comp1.sql
host echo "select systimestamp from dual;" >> comp1.sql
start comp1.sql
show error
spool comp2.sql
select 'prompt '||object_type||' '||object_name||' compiling'||'
prompt '||'
alter package '||owner||'.'||object_name||' compile body;' as compile
from dba_objects
where status !='VALID'
and object_type ='PACKAGE BODY';
spool off
host ls -al comp2.sql
host echo "select systimestamp from dual;" >> comp2.sql
start comp2.sql
show error
set echo on
set feedback on
set pages 3000
set space 1
col owner for a20
col object_name for a28
col object_type for a20
col status for a16
select owner,object_name,object_type,status from dba_objects
where status !='VALID';
select count(1) INVALID_OBJECT_COUNT from dba_objects where status !='VALID';
select systimestamp as end_time from dual;


3. 일괄 컴파일

 1. SQL> @?/rdbms/admin/utlrp.sql

2. utlrp를 parallel하게...
execute utl_recomp.recomp_parallel(4);

3. 만약 ERP라면...위의 두개로 해결이 안될때에는...
cd $AD_TOP/sql/adcompsc를 사용합니다.
adcompsc <== 이게 산타님 말씀하신것 처럼 alter문장을 생성하여 실행합니다.
참고하세요^^

반응형
반응형

** 질문

안녕하세요.

table 을 alter 하거나 하면 해당 table 을 사용하고 있는 procedure 가

invalid 가 되잖아요..

그래서 보통 alter 후에 toad 에서 compile invalid procedure 또는 compile all procedure

버튼을 눌러서 컴파일을 했는데

위의 두가지중에 아무거나 라도 혹시 pl/sql 에서 실행할수있는 쿼리좀 알수있을까요?

뒤져본다고 뒤져봤는데 도통 찾을수가 없어서요.

부탁드릴께요.

 

** 답변

set PageSize 100
SPOOL RECOM.sql
      SELECT distinct 'ALTER PACKAGE ' || OBJECT_NAME || ' COMPILE;'
        FROM USER_OBJECTS
       WHERE STATUS      = 'INVALID' and
             Object_Type in ( 'PACKAGE BODY' , 'PACKAGE')
union all
      SELECT  distinct 'ALTER ' || Object_Type || ' ' || OBJECT_NAME || ' COMPILE;'
        FROM USER_OBJECTS
       WHERE STATUS      = 'INVALID' and
             Object_Type in ( 'PROCEDURE', 'FUNCTION', 'VIEW');   
SPOOL OFF
@RECOM.sql

반응형

'Database > ORACLE' 카테고리의 다른 글

ORACLE 10G PL/SQL USER GUIDE AND REFERENCE  (0) 2009.03.08
DBMS_JOB PACKAGE의 사용 방법과 예제  (0) 2009.03.08
오라클 백업 방식과 백업 방법  (0) 2009.03.08
TAB 뷰 에 정보 생성하기  (0) 2009.03.08
SQL LOADER 사용예  (0) 2009.03.08

+ Recent posts