In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Create Oracle User
useradd oracle
2. Create a soft folder under oracle users
mkdir -p /home/oracle/soft/
3. Upload corresponding software and decompress
unzip basic-10.2.0.5.0-linux-x64.zip
unzip sqlplus-10.2.0.5.0-linux-x64.zip
Edit environment variables
vim .bash_profile
Add the following two lines
export LD_LIBRARY_PATH=/home/oracle/soft/instantclient_10_2
export PATH=$PATH:$LD_LIBRARY_PATH
5 Create tnsname.ora folder
/home/oracle/soft/instantclient_10_2/network/admin
edit
[oracle@maxscale62 ~]$ cat /home/oracle/soft/instantclient_10_2/network/admin/tnsnames.ora
ora169 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =192.168.0.169)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME =orcl10g.us.oracle.com)
)
)
[oracle@oracleinstall ~]$ ifconfig |grep inet
inet 192.168.0.169 netmask 255.255.255.0 broadcast 192.168.0.255
[oracle@oracleinstall ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 23-MAY-2019 14:56:33
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 22-MAY-2019 18:46:58
Uptime 0 days 20 hr. 9 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracleinstall)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "TSH1XDB.us.oracle.com" has 1 instance(s).
Instance "TSH1", status READY, has 1 handler(s) for this service...
Service "orcl10g.us.oracle.com" has 1 instance(s).
Instance "TSH1", status READY, has 1 handler(s) for this service...
Service "orcl10g_XPT.us.oracle.com" has 1 instance(s).
Instance "TSH1", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oracleinstall ~]$
Mainly find: Service
connection confirmation
$ sqlplus test/test@ora169
SQL*Plus: Release 10.2.0.5.0 - Production on Thu May 23 14:59:46 2019
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>
Connection confirmation 2:
$ sqlplus test/test@//192.168.0.169:1521/orcl10g.us.oracle.com
SQL*Plus: Release 10.2.0.5.0 - Production on Thu May 23 15:00:31 2019
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>
Connection confirmation 3
$ sqlplus test/test@//192.168.0.169:1521/TSH1XDB.us.oracle.com
SQL*Plus: Release 10.2.0.5.0 - Production on Thu May 23 15:01:25 2019
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>
Connection confirmation 4
$ sqlplus test/test@//192.168.0.169:1521/orcl10g_XPT.us.oracle.com
SQL*Plus: Release 10.2.0.5.0 - Production on Thu May 23 15:02:00 2019
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL>
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.