Running Beautifier on Command Line

MartinF

Member²
Is it possible to run the Beautifier for a specific file using command line without opening PLSQL Dev?

Ex:
something like
c:\program files\plsqldev\beautifier.exe c:\my_file.sql

Regards,
 
It can only executed from with PL/SQL Developer. You can create a command file and run it from the PL/SQL Developer command-line though. The cmmand file can look something like this:

Code:
beautify c:\scripts\employee.spc
beautify c:\scripts\employee.bdy
exit application

This will beautify the 2 source files and subsequently exit PL/SQL Developer. You can run the script from the Windows command-line like this:

Code:
plsqldev.exe userid=scott/tiger commandfile=c:\tmp\beaut.sql
 
Hi Marco,

Quick question about this. Is it possible to run PLSQL Developer to run my command file to beautify but without connecting to the database?

I removed the part with userid and when running the script it prompt me for username and password and if i press "Cancel" it don`t run my script to beautify. Is there an option like "nologging" to prevent PLSQ Developer to prompt for username and password?

Thank
 
I just found the command nologon but when i specify it it don`t execute my command file is it a bug or a syntax error on my side. Here is my command

Code:
"C:\Program Files\PLSQL Developer\plsqldev.exe " nologon commandfile=c:\test\beaut.sql
 
Last edited:
No, it is not necessary for this command specifically. The Command Window requires it in general though.
 
Back
Top