bash: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: そのファイルやディレクトリはありません。

bash: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: そのファイルやディレクトリはありません。

端末を開くと、端末の上部にこのような内容が表示されます。 Oracle XEを削除しました。しかし、私の端末ではこの行を削除できません。また、私のグループからOracleユーザーを削除することはできません。どうですか?

bash: /u01/app/oracle/product/11.2.0/xe/bin/nls_lang.sh: そのファイルやディレクトリはありません。

ベストアンサー1

/etc/profile.d ファイルはインストールプロセス中に残すことができます。可能な名前oracle-xe.shまたは20oos_oracleexe.sh。ファイルを見つけて削除します。例:

rm /etc/profile.d/oracle-xe.sh
rm /etc/profile.d/20oos_oraclexe.sh

ファイル名が異なる場合は、次のコマンドを使用して検索します。

egrep -l 'ORACLE_HOME|11.2.0/xe' /etc/profile.d/*.sh

~によるとOracle® Database Express Edition インストール・ガイド、 ~/.profile にエントリが追加された可能性があります。

エコ」。 /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh'>>./.profile

...この場合、.profileから次の行を削除する必要があります。

sed -i '/oracle\/product\/11.2.0\/xe/d' ~/.profile

おすすめ記事