In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article shows you how to install oracle in ubuntu. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
The specific steps are as follows:
(1)
Installation system
Never use the user name when installing the system
Oracle
This user name because of the installation
Oracle
Need to be created, and there are permission issues.
(2)
Update the system to the latest and install the following package
The Internet means to use commands.
Sudo
Apt-get install
Install all of the following packages
Most bags are necessary.
An error will be reported later in the installation process, and you have to find these packages and copy them to the appropriate directory.
Alien binutils gcc ia32-libs lesstif2
Lesstif2-dev lib32stdc++6 lib32z1 libaio1
Libc6 libc6-dev libc6-dev-i386 libc6-i386
Libmotif3 make libstdc++5 rpm
(3)
Create a user
Because
Oracle
Must
Oracle
The user will install it, so you need to create a
Oracle
Users and associated user groups
Yurocy@yurocy-desktop:~$ sudo addgroup
Oinstall
Yurocy@yurocy-desktop:~$ sudo addgroup dba
Yurocy@yurocy-desktop:~$ sudo addgroup
Nobody
Yurocy@yurocy-desktop:~$ sudo useradd-g
Oinstall-G dba-d / home/oracle-m-s / bin/bash oracle
Voluyurocylic desktop nobody $sudo usermod-g
Nobody
(4)
Create an installation directory
Yurocy@yurocy-desktop:~$ sudo mkdir-p
/ opt/oracle
Yurocy@yurocy-desktop:~$ sudo chown-R
Oracle:oinstall / opt/oracle/
Yurocy@yurocy-desktop:~$ sudo chmod-R 755
/ opt/oracle/
(5)
Modify
Linux
Kernel parameters
Yurocy@yurocy-desktop:~$ sudo vim
/ etc/sysctl.conf
#
Press
I
Go to edit and add the following parameters
Kernel.shmmax = 3147483648
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.sem = 250 32000 100 128
Fs.file-max = 65536
Net.ipv4.ip_local_port_range = 1024 65000
Yurocy@yurocy-desktop:~$ sudo vim
/ etc/security/limits.conf
#
Add the following parameters
Oracle soft nofile 65536
Oracle hard nofile 65536
Oracle soft nproc 16384
Oracle hard nproc 16384
#
Let the modified parameters take effect
Yurocy@desktop-desktop:~$ sudo sysctl-p
Create a link:
Yurocy@desktop-desktop:~$ sudo ln-s
/ usr/bin/awk / bin/awk
Yurocy@desktop-desktop:~$ sudo ln-s
/ usr/bin/rpm / bin/rpm
Yurocy@desktop-desktop:~$ sudo ln-s
/ usr/bin/basename / bin/basename
(6)
Set up the user environment
# switch to
Oracle
User
Yurocy@desktop-desktop:~$ su oracle
Password:
# enter the one you just created
Oracle
User password
Oracle@desktop-desktop:~$ vim / .profile
# Press
I
Enter edit mode and add the following
But the net said yes.
Bash_profile
File
It should be the same. It could be.
Ubuntu
Version problem
If [- f ~ / .bashrc]; then
~ / .bashrc
Fi
#
Press after editing
ESC
Press again
Shift+ZZ
Save and exit, then edit
.bashrc
Oracles@desktop-desktop:~$ vim
~
/. Bashrc
# add the following
Export ORACLE_BASE=/home/oracle/oracle
Export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_2
Export
PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
Export ORACLE_OWNER=oracle
Export ORACLE_SID=orcl
Export ORACLE_TERM=xterm
#
Create
Oracle
User password
Yurocy@yurocy-desktop:~$ sudo passwd oracle
(7)
Begin to prepare for installation
Need to be in the
/ etc/
Create a file under the directory
Redhat-release
Permission is required to create. After creation, add the following
Yurocy@yurocy-desktop:~$ sudo vim
/ etc/redhat-release
# add
Red Hat Linux release 3.1 (drupal)
And then on this machine
(windows)
Download one
Xmanager
, after installation
Xstart
Connect to
Ubuntu
Go up
Xmanager
Download address:
Http://www.onlinedown.net/softdown/32684_2.htm
Configure after installation
Protocol
Configure to
SSH,Execution Command
Select:
Xterm (Linux: Type 2)
(8)
Installation
Oracle
To
Http://www.oracle.com/technology/software/products/database/index.html
Download the appropriate version and check that your machine is
thirty-two
Bit or bit?
sixty-four
Bit
Need to register a user name and password, it is free of charge.
Then log in to
Xmanager
To do the following
#
I mentioned the need earlier.
Oracle
For installation, now log out and change the system to
Oracle
Log in
Oracle@yurocy-desktop:~$ unzip
10201_database_linux32.zip (
If the download is
.cpio
File, just use
Cpio
-idmv
< 10201_database_linux_x86_64.cpio 来解压) oracle@yurocy-desktop:~$ cd database 为了后面安装的时候界面不显示中文乱码,可以安装一下 jdk ,但是我直接选择使用英文显示,这样就不用安装 jdk ,直接在命令行输入如下命令就行了 oracle@yurocy-desktop:~/database$ export LANG=en_US 然后运行如下命令 , 就进入 oracle 的安装界面了 oracle@yurocy-desktop:~/database$ ./runInstaller (9) 安装过程中遇到的问题: 1. 在安装的过程中会报各种错误,但是最好是时刻查看一下 $ORACLE_HOME/oraInventory/logs 以 installActions 开头的日志,这个日志里面显示的内容比较全。出错信息也比较多。 2. 因为在前面的配置文件中设置了 $ORACLE_SID 等于 orcl ,所以在安装的过程中最好默认选择这个,并要记录下你的 global database name 和 database password 信息 3. 在安装的过程中遇到了 ora-27125 unable to create shared memory segment 的错误,这个时候查看 installerActions 日志,会有详细信息,因为每次安装的错误原因都不一样, 所以可能解决方式都会不一样,但是我这个错误网上写的是 export DISABLE_HUGETLBFS=1 ,但是不太生效,我查了很多资料终于搞清楚了,要解决该问题,在 Oracle 用户下执行 $export DISABLE_HUGETLBFS=1 # cd $ORACLE_HOME/bin # mv oracle oracle.bin # cat >Oracle create tablespace news_tablespace datafile'FRV _ afflux _ Oracle _ produce _ _ 10.1.0 _ _ oradata _ news_
Size 500M
Among them
'news_tablespace'
Is your custom tablespace name, which can be named at will
'FRU Universe oracleCompact productUniverse 10.1.0 Compact oradataCompact newsCompact newsCompact data.dbf'
Is the location where data files are stored
'news_data.dbf'
The file name is also arbitrarily taken.
'size 500m'
Specifies the size of the data file, that is, the size of the tablespace.
3.
Now it has been built called
'news_tablespace'
The user can be created as follows:
Its format is: format
:
Create user
User name
Identified
By
Password
Default tablespace
Table space table
Such as:
SQL > create user news identified by news default tablespace
News_tablespace
Default tablespace
'default tablespace'
Use the tablespace created above.
4.
Then authorize the newly created user:
SQL > grant connect,resource to news
--
Means to put
Connect,resource
Permission granted
News
User
SQL > grant dba to news
--
Means to put
Dba
Permissions are granted to
News
User
The above is how to install oracle in ubuntu. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.