๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Back-end/DB

[Oracle] sqlplus์—์„œ ๋ฐฉํ–ฅํ‚ค ๋ฐ backspaceํ‚ค ์ž‘๋™ ์•ˆ๋  ๋•Œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

728x90
๋ฐ˜์‘ํ˜•

๐ŸŸก sqlplus์—์„œ ๋ฐฉํ–ฅํ‚ค ๋ฐ backspaceํ‚ค ์ž…๋ ฅ์‹œ  ^[[A^[[A^[[A^H^ ์™€ ๊ฐ™์ด ๋‚˜์˜ค๋Š” ์˜ค๋ฅ˜ ํ•ด๊ฒฐํ•˜๊ธฐ

 

 

โœ… ํ•„์š”ํ•œ ํŒŒ์ผ ์„ค์น˜ํ•˜๊ธฐ

sudo yum -y install epel-release
sudo yum list install rlwrap
sudo yum -y install rlwrap

 

 

 

โœ… bashrc ํŽธ์ง‘ํ•ด์„œ alias ์„ค์ •ํ•˜๊ธฐ

vi ~/.bashrc

์œ„์™€ ๊ฐ™์ด ํŽธ์ง‘์ฐฝ์— ์ถ”๊ฐ€ํ•ด์ฃผ๊ธฐ

alias sqlplus='rlwrap sqlplus'

 

 

 

โœ… ์ €์žฅ ํ›„ ์กฐํšŒํ•˜๊ธฐ

source ~/.bashrc
alias

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋‚˜์˜ค๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค!

 

 

 

 

์„ฑ๊ณต๐Ÿ˜

728x90
๋ฐ˜์‘ํ˜•