Twitter wasn’t playing nice, so I’ll just blog this 🙂

Everything you can do with the History Command in Oracle SQLcl.
Everything you can do with the History Command in Oracle SQLcl.

Want to extend your history size from 100 statements/scripts?

Add this to your login.sql.

prompt Bumping up SQL History to 250 Items
script
 var MultiLineHistory = Java.type("oracle.dbtools.raptor.console.MultiLineHistory"); 
 MultiLineHistory.getInstance().setMaxItems(250);
/

Don’t go crazy, remember each item gets written to its own XML file. We load those on start-up.

Author

I'm a Distinguished Product Manager at Oracle. My mission is to help you and your company be more efficient with our database tools.

Write A Comment