Linux下安装Oracle11g
Linux下安装Oracle11g 1、下载安装VMware Workstation v9.0.2 虚拟机软件,下载rhel-server-6.0-x86_64-dvd.iso安装Red Hat Enterprise Linux 6 64-bit操作系统到VMware中,安装时候添加Linux用户oracle。 2、在Vmware虚拟机中设置光驱属性为使用ISO映像文件
Linux下安装Oracle11g
1、 下载安装VMware Workstation v9.0.2 虚拟机软件,下载rhel-server-6.0-x86_64-dvd.iso安装Red Hat Enterprise Linux 6 64-bit操作系统到VMware中,安装时候添加Linux用户oracle。
2、 在Vmware虚拟机中设置光驱属性为使用ISO映像文件linux.x64_11gR2_database.iso,并连接到虚拟机,拷贝光驱中的Oracle11G安装文件夹database到虚拟机的/u02/目录下
3、 修改Linux虚拟机的IP地址为192.168.1.121和主机名gpdb
Windows下查询主机的IP地址ipconfig /all
IP Address. . . . . . . . . . . . : 192.168.1.21
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 61.235.70.252
114.114.114.114
Linux下设置IP地址办法:System-Preferences-Network Connections
选择System eth0后点Edit按钮,切换到IPV4 Settings选项卡,设置Method为Manual,点[Add]
选择Auto eth1
4、 编辑部分配置文件
1>输入命令:vi /etc/security/limits.conf,按i键进入编辑模式,将下列内容加入该文件
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
编辑完成后按Esc键,输入“:wq”存盘退出
2>输入命令:vi /etc/pam.d/login,按i键进入编辑模式,将下列内容加入该文件。
session required /lib/security/pam_limits.so
session required pam_limits.so
编辑完成后按Esc键,输入“:wq”存盘退出
3>输入命令:vi /etc/profile,按i键进入编辑模式,将下列内容加入该文件。
#oracle setup
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
编辑完成后按Esc键,输入“:wq”存盘退出
4>输入命令: vi /etc/sysctl.conf ,按i键进入编辑模式,将下列内容加入该文件
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
编辑完成后按Esc键,输入“:wq”存盘退出
5>输入命令sysctl -p刷新配置
5、 创建Oracle安装时候需要的用户组,添加oracle用户并归属到刚才添加的用户组中
创建用户组命令
groupadd oinstall
groupadd dba
将oracle用户加入到刚建立的用户组中
usermod -a -G oinstall oracle
usermod -a -G dba oracle
6、 创建数据库软件目录和数据文件存放目录
mkdir /u01
mkdir /u02
mkdir /u02/database
7、 设置相关数据库安装目录和文件对应的权限
mkdir /u01/app
mkdir /u01/app/oracle
mkdir /u01/app/oradata
mkdir /u01/app/oracle/product
chown -R oracle:oinstall /opt
chown -R oracle:oinstall /u01/app
chown -R oracle:oinstall /u02/database
chmod 777 /opt
chmod 777 /u01
chmod 777 /u02/database/runInstaller
chmod 777 /u02/database/install/.oui
chmod 777 /u02/database/install/unzip
8、 切换用户到oracle,su - oracle.修改编辑环境变量vi .bash_profile,末尾添加
umask 022
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
9、 切换到数据库目录,
如果上次安装失败,则先删除掉文件夹
rm -rf /u01/app
rm -rf /u01/oraInventory
chown -R oracle:oinstall /opt
chown -R oracle:oinstall /u01/app
chown -R oracle:oinstall /u02/database
chmod 777 /opt
chmod 777 /u01
chmod 777 /u02/database/runInstaller
chmod 777 /u02/database/install/.oui
chmod 777 /u02/database/install/unzip
10、安装Oracle相关的Linux包
登录root用户界面,拷贝Redhat Enterprise Linux 6的光盘Packages目录中到/Packages中,使用下面两条命令检测Linux系统中没有安装的包
[root@gpdb Desktop]# rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel
[root@gpdb Desktop]# rpm -q libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat
进入Packages目录找到对应的包名
cd /Packages
find . -name compat-libcap1*
find . -name compat-libstdc++-33*
find . -name gcc*
find . -name ksh*
find . -name libstdc++-devel*
find . -name libaio-devel*
查找到对应包名后,运行相关的安装命令如下
rpm -ivh compat-libcap1-1.10-1.x86_64.rpm
rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
rpm -ivh ksh-20100621-2.el6.x86_64.rpm
rpm -ivh libstdc++-devel-4.4.4-13.el6.x86_64.rpm
rpm -ivh libaio-devel-0.3.107-10.el6.x86_64.rpm
rpm -ivh gcc-c++-4.4.4-13.el6.x86_64.rpm
11、注销root用户,使用oracle用户登录系统后,在命令行中执行命令
cd /u02/database
./runInstaller
启用安装界面,忽略掉其它错误,直到完成。
??

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Linux is suitable for servers, development environments, and embedded systems. 1. As a server operating system, Linux is stable and efficient, and is often used to deploy high-concurrency applications. 2. As a development environment, Linux provides efficient command line tools and package management systems to improve development efficiency. 3. In embedded systems, Linux is lightweight and customizable, suitable for environments with limited resources.

There are three ways to view instance names in Oracle: use the "sqlplus" and "select instance_name from v$instance;" commands on the command line. Use the "show instance_name;" command in SQL*Plus. Check environment variables (ORACLE_SID on Linux) through the operating system's Task Manager, Oracle Enterprise Manager, or through the operating system.

Using Docker on Linux can improve development and deployment efficiency. 1. Install Docker: Use scripts to install Docker on Ubuntu. 2. Verify the installation: Run sudodockerrunhello-world. 3. Basic usage: Create an Nginx container dockerrun-namemy-nginx-p8080:80-dnginx. 4. Advanced usage: Create a custom image, build and run using Dockerfile. 5. Optimization and Best Practices: Follow best practices for writing Dockerfiles using multi-stage builds and DockerCompose.

After Oracle is installed, you can use the following steps: Create a database instance. Connect to the database. Create a user. Create a table. Insert data. Query data. Export data. Import data.

When the Apache 80 port is occupied, the solution is as follows: find out the process that occupies the port and close it. Check the firewall settings to make sure Apache is not blocked. If the above method does not work, please reconfigure Apache to use a different port. Restart the Apache service.

The steps to start Apache are as follows: Install Apache (command: sudo apt-get install apache2 or download it from the official website) Start Apache (Linux: sudo systemctl start apache2; Windows: Right-click the "Apache2.4" service and select "Start") Check whether it has been started (Linux: sudo systemctl status apache2; Windows: Check the status of the "Apache2.4" service in the service manager) Enable boot automatically (optional, Linux: sudo systemctl

This article describes how to effectively monitor the SSL performance of Nginx servers on Debian systems. We will use NginxExporter to export Nginx status data to Prometheus and then visually display it through Grafana. Step 1: Configuring Nginx First, we need to enable the stub_status module in the Nginx configuration file to obtain the status information of Nginx. Add the following snippet in your Nginx configuration file (usually located in /etc/nginx/nginx.conf or its include file): location/nginx_status{stub_status

To execute SQL in the Oracle command window: Open the command window. Connect to the database: connect username/password. Enter the SQL statement and press Enter to execute. View the results. Enter exit to exit the command window.
