In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install Oracle12.1 client in CentOS7.1". In daily operation, I believe many people have doubts about how to install Oracle12.1 client in CentOS7.1. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to install Oracle12.1 client in CentOS7.1". Next, please follow the editor to study!
1.hostnamectl set-hostname p164-modify hostname
2.vim / etc/hosts-modify hosts, otherwise ORA-21561: OID generation failed will appear and add local parsing
192.168.1.164 p164
3. Install-oracle instantclient dependent package, that is, rzsz tool
Yum-y install libaio bc flex blas
-- install rzsz tools to facilitate Xshell to upload files
Yum-y install lrzsz
4. Murray-upload three software packages sqlplus basic devel
Rz
Upload the following three customer files (download from oracle's official website)
Oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
Oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
Oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
5.While-one-time installation
Rpm-ivh oracle*
6. Murray-create a directory of ORA files
Mkdir-p / usr/lib/oracle/12.1/client64/network/admin
-- modify the .bashrc file to create environment variables
Echo'# Convoluted undocumented Oracle bullshit.' > > $HOME/.bashrc
Echo 'export ORACLE_VERSION= "12.1" > $HOME/.bashrc
Echo 'export ORACLE_HOME= "/ usr/lib/oracle/$ORACLE_VERSION/client64" > $HOME/.bashrc
Echo 'export PATH=$PATH: "$ORACLE_HOME/bin" > $HOME/.bashrc
Echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: "$ORACLE_HOME/lib" > $HOME/.bashrc
Echo 'export TNS_ADMIN= "$ORACLE_HOME/network/admin" > $HOME/.bashrc
-- solve sqlplus garbled
-- echo 'export NLS_LANG= "SIMPLIFIED CHINESE_CHINA.ZHS16GBK" > $HOME/.bashrc
Echo 'export NLS_LANG= "AMERICAN_AMERICA.UTF8" > $HOME/.bashrc
7.When-update environment variables
. $HOME/.bashrc
Cd / usr/lib/oracle/12.1/client64/network/admin
-- upload tnsnames.ora files
Rz
8. Install cx_Oracle
Pip install cx_Oracle
This is the end of the content of "how to install the Oracle12.1 client for CentOS7.1". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
At this point, the study on "how to install the Oracle12.1 client in CentOS7.1" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.