In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install oracle11g through tar, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
In the database dual-machine cluster done by veritas, the configuration and installation of the hardware and software environment of the two servers are the same. After installing an oracle, you can use tar to quickly install oracle11g on another server. After installation, you can make appropriate adjustments, and then you can use it normally.
First check the software package
Binutils- 2.17.50.0.6-2.el5
Compat-libstdc++-33-3.2.3-61
Elfutils-libelf-0.125-3.el5
Elfutils-libelf-devel-0.125
Gcc-4.1.1-52
Gcc-c++-4.1.1-52
Glibc-2.5-12
Glibc-common-2.5-12
Glibc-devel-2.5-12
Glibc-headers-2.5-12
Libaio-0.3.106
Libaio-devel-0.3.106
Libgcc-4.1.1-52
Libstdc++-4.1.1
Libstdc++-devel-4.1.1-52.e15
Make-3.81-1.1
Sysstat-7.0.0
UnixODBC-2.2.11
UnixODBC-devel-2.2.11
Then the following steps:
1. Add users and groups on another server
Useradd oracle
Passwd oracle
Groupadd oinstall
Groupadd dba
Groupuser-g oinstall-G dba oracle-m
2. Add relevant directories on the new server
Mkdir-p / opt/oracle/product/10.2/db_1
3. Set core parameters
Vi / etc/sysctl.conf, add
Kernel.shmall = 2097152
Kernel.shmmax = 8589934592
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
Net.core.rmem_default = 262144
Net.core.rmem_max = 262144
Net.core.wmem_default = 262144
Net.core.wmem_max = 262144
To make the settings take effect:
Sysctl-p
4. Modify the environment variables of oracle users
Su-oracle
Vi .bash _ profile add:
Export ORACLE_SID=orcl
Export ORACLE_BASE=/opt/oracle
Export ORACLE_HOME=/opt/oracle/product/10.2
Export PATH=$ORACLE_HOME/bin:$PATH
Export NLS_LANG= "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
5. Package the program on the original server
Package and compress the things under $ORACLE_HOME:
Cd $ORACLE_BASE/product
Tar-cvf oracle.tar 10.2
6. Transfer to the new server and decompress
Sftp or through scp.
Cd $ORACLE_BASE/product
Tar-xvf oracle.tar
7. Modify the owner of the decompressed file
[root@yans2 oracle] # chown-R oracle:oinstall / opt
Chown: changing ownership of `/ opt/oracle/product/10.2/rdbms/filemap': No such file or directory
There is an error indicating that the file does not exist. It is checked that this is a soft link:
[root@yans2 oracle] # ls-l / opt/oracle/product/10.2/rdbms/filemap
Lrwxrwxrwx 1 root root 22 Jan 10 17:22 / opt/oracle/product/10.2/rdbms/filemap-> / opt/ORCLfmap/prot1_64
After checking, the / opt/ORCLfmap directory does not exist on the current system. In fact, / opt/ORCLfmap is generated by root.sh. Delete this soft link first:
Rm-f / opt/oracle/product/10.2/rdbms/filemap
Re-execute the root.sh:
[root@yans2 opt] # / opt/oracle/product/10.2/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= / opt/oracle/product/10.2
Enter the full pathname of the local bin directory: [/ usr/local/bin]:
Copying dbhome to / usr/local/bin...
Copying oraenv to / usr/local/bin...
Copying coraenv to / usr/local/bin...
Creating / etc/oratab file...
Entries will be added to the / etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Both the soft connection and the directory already exist:
[root@yans2 opt] # ls / opt/oracle/product/10.2/rdbms/filemap
Bin etc log
[root@yans2 opt] # ls-l / opt/oracle/product/10.2/rdbms/filemap
Lrwxrwxrwx 1 root root 22 Jan 10 17:40 / opt/oracle/product/10.2/rdbms/filemap-> / opt/ORCLfmap/prot1_64
8. Create a database
Run dbca and set it up step by step.
9. Create a monitor and run netca
10. Clean up the original network related files, original application files, etc.
11. Use sqlplus / nolog
Conn / as sysdba
Startup
To start the database.
The above is all the contents of the article "how to install oracle11g through tar". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.