Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avodonosov/fix-ora-output
Utility to pretty reformat SQL query output generated by Oracle development tools like SQL*Plus or TOAD, when the default value of the LINESIZE system variable was used.
https://github.com/avodonosov/fix-ora-output
Last synced: about 5 hours ago
JSON representation
Utility to pretty reformat SQL query output generated by Oracle development tools like SQL*Plus or TOAD, when the default value of the LINESIZE system variable was used.
- Host: GitHub
- URL: https://github.com/avodonosov/fix-ora-output
- Owner: avodonosov
- Created: 2012-08-04T18:04:55.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-06T11:45:32.000Z (over 12 years ago)
- Last Synced: 2023-04-22T06:40:10.610Z (over 1 year ago)
- Language: Common Lisp
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
The output produced by SQL*Plus or TOAD with the default value of the LINESIZE
system variable is quite nasty. Similar to the following:
```
SQL> select * from users;ID
----------
NAME
--------------------------------------------------------------------------------
SURNAME
--------------------------------------------------------------------------------
LOGIN
--------------------------------------------------------------------------------
PASSWORD
--------------------------------------------------------------------------------
REGISTRATION_TIME
-----------------------------
1
ivan
ivanov
vanya
123
26.06.08 21:16:12,000000
2
petr
petrov
petyaID
----------
NAME
--------------------------------------------------------------------------------
SURNAME
--------------------------------------------------------------------------------
LOGIN
--------------------------------------------------------------------------------
PASSWORD
--------------------------------------------------------------------------------
REGISTRATION_TIME
-----------------------------
qwerty
26.06.08 21:16:12,000000
3
sidor
sidorov
sid
password
26.06.08 21:16:12,000000
3 rows selected.
SQL> spool off;
```
Sometimes we need to deal with such data when we have no direct access to the database,
for example when the output is sent to you by customer.The ```fix-ora-output``` utility converts such an output to a pretty thing like this:
```
ID NAME SURNAME LOGIN PASSWORD REGISTRATION_TIME
---------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -----------------------------
1 ivan ivanov vanya 123 26.06.08 21:16:12,000000
2 petr petrov petya qwerty 26.06.08 21:16:12,000000
3 sidor sidorov sid password 26.06.08 21:16:12,000000```
Usage instructions are at the top of the _fix-ora-output.lisp_.