原创 使用rlwrap增強sqlplus

添加epel源https://fedoraproject.org/wiki/EPEL 設置alias [oracle@ocp01 ~]$ cat ~/.bashrc alias sqlplus='rlwrap sqlplus'

原创 non-root用戶執行psql的問題

安裝postgresql後,普通用戶執行psql報錯:'''Can't locate strict.pm: /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/strict.pm: Permissio

原创 oracle安裝中文顯示方框

安裝中文字體 # yum install cjkuni-uming-fonts 複製一份重命名 # mkdir -p /usr/share/fonts/zh_CN/TrueType # cp /usr/share/fonts/cjkuni

原创 python遞歸次數限制引起的錯誤

使用BeautifulSoup時,可能會拋出如下錯誤: RecursionError: maximum recursion depth exceeded while calling a Python object 查看系統遞歸限制,調大即可

原创 sqlplus 中文顯示爲問號

操作系統語言: [oracle@ocp01 ~]$ echo $LANG zh_CN.UTF-8 查詢數據庫語言: SQL> select userenv('language') from dual; USERENV('LANGUAGE'

原创 正則表達式拾遺

貪婪 非貪婪

原创 bs4使用lxml報錯

環境 win10 python 3.7 lxml 4.2.4 報錯信息 bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: l