solve sqlplus garbled code
Notes:system is oracle linux8,oracle is 19.3
# in the sqlplus interface .
when you type ctrl+c ,it will stay in the input interface.
and you can't delete the 'ctre+c' use any key like backsapce.
so you should install the file below and follow the instructions below.
first: install the readline-devel
#in your linux with oracle installed.
yum -y install readline-devel
second:install rlwrap
download the plugin online. bacause it can’t find easily, so you can download it throw github if you’ve already install the git in your windows pc.
download it from github
# create a new folder ,right-click in the folder to open gitbash.
git clone git@github.com:hanslub42/rlwrap.git
#transfer this rlwrap folder to your linux system with the oracle19c installed.
# In linux system.Enter the rlwrap folder.
# if there has a file named configure.issue the following command
./configure
# if there no 'configure'.
Open the file named INSTALL with 'vim ',then you see some tips like the following command.
this can help you recreate the configure file.
autoreconf --install
# issue the command
autoreconf --install
#when it recreated,then issue the following command.
./configure
next step
# issue the commond below
make
make all
# vim the '/etc/home/oracle/.bash_profile add the below scripts
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias lisnrctl='rlwrap lsnrctl'
# then reboot your linux.the problems is solved.