2014-12-09 4 views
2

SQL 개발자의 "sdcli 형식"명령 줄 도구를 사용하여 PLSQL 코드를 형식화하려고합니다.sdcli 형식 - 사용자 정의 구성 파일 제공

출력을 사용자 지정하기 위해 사용자 지정 구성 파일을 제공하고 싶습니다.

아이디어는 GUI에서 내 "완벽한 설정"을 만든 다음 파일로 내보내고 내 보낸 파일을 sdcli를 호출하는 동안 다시 사용하는 것입니다.

가능성이 있습니까?

답변

0

새로운 SQLCL은 설명하는 기능을 지원합니다.

SQLcl: Release 17.4.0 Production on Tue Feb 20 16:08:22 2018 

Copyright (c) 1982, 2018, Oracle. All rights reserved. 

Connected to: 
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production 
With the Partitioning, Automatic Storage Management, OLAP, Data Mining 
and Real Application Testing options 


FORMAT 
--------- 

FORMAT BUFFER - formats the script in the SQLcl Buffer 
FORMAT RULES <filename> - Loads SQLDeveloper Formatter rules file to formatter. 
FORMAT FILE <input_file> <output_file> 

Format used is default or for SQLcl can be chosen by setting an environmental variable 
pointing to a SQLDeveloper export (.xml) of formatter options. 
The variable is called SQLFORMATPATH 
In SQLDeveloper the format options are the default chosen in the preferences. 

SQL> 

파일

의 전체 디렉토리를 처리 할 수있는 스크립트에 대한 https://community.oracle.com/thread/4110977 참조