因为我也是一个初学者,所以可能有出错的地方,如果有希望大家告诉我QQ:7343696.大家公共学习,进步。
Oracle的安装
实验的环境是vmware server 1.06  rehl 5.2最小安装。
oracle安装的要求。
1 建议的内存1G(10g)   9i中是512M   8i中要求是256M
2 空间 安装要1.5GB   如果要数据库  这个根据自己的需要 模版库是1.7GB
3 /tmp 分区要大于>=400MB
4 linux  --->oracle可以读/etc/redhat-release这个文件。    如果其他的linux建立这个文件就可以了
5 建立oracle相关的用户和组 oinstall  dba  oper(可以建,可以不建)
建立一个用户oracle    -g  oinstall -G  dba,oper组
建立使用/bin/ksh  但是大家都用的/bin/bash,但是用那个没有关系。
6 oracle产品的安装路径  权限 环境变量的定义
oracle  --->$ORACLE_BASE    $ORACLE_HOME   $PATH   $ORACLE_SID(这个是可选,oracle事列)
[root@huang11 ~]# unzip /mnt/yuanwenjian/10201_database_linux32.zip -d /usr/src
[root@huang11 ~]# groupadd -g 110 oinstall
[root@huang11 ~]# groupadd -g 111 dba
[root@huang11 ~]# useradd -g 110 -G -u 110111 -d /sof/oracle oracle
[root@huang11 ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@huang11 ~]# tail -6 /etc/sysctl.conf  添加下面的几行。
kernel.sem = 250        32000   100     128
net.ipv4.ip_local_port_range = 1024     65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144
net.core.wmem_default = 262144
[root@huang11 ~]# sysctl -p
本试验oracle的安装的家目录是/sof/oracle。
[root@huang11 ~]# su - oracle
[oracle@huang11 ~]$ vim .bash_profile
[oracle@huang11 ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/sof/oracle
export ORACLE_HOME=/sof/oracle/10g
export ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export PATH
[oracle@huang11 ~]$ source ~/.bash_profile
[oracle@huang11 ~]$ cd /usr/src/database/
[oracle@huang11 database]$ ls
doc  install  response  runInstaller  stage  welcome.html
ava.lang.UnsatisfiedLinkError: /tmp/OraInstall2009-12-22_09-58-18AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)
上面原因是因为我们没有安装libXp这个软件包的原因。
[root@huang11 ~]# yum install libXp
[oracle@huang11 database]$ ./runInstaller
我们在root用户下面执行刚才提示的那个两个命令就可以了。
[root@huang11 ~]# /sof/oracle/10g/root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /sof/oracle/10g
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.
上面就成功的安装好了oracle.
如果是在win在下面ssh连接linux安装oracle的时候就要注意了。
我们这里使用的是putty和xming这个两个软件。
并且记得要用oracle用户登陆哦。不要用root用户登陆再来su - oracle,这样是不能安装成功的。
[root@huang12 ~]# groupadd -g 110 oinstall
[root@huang12 ~]# groupadd -g 111 dba
[root@huang12 ~]# useradd -g 110 -G 111 -u 110 -d /oracle oracle
[root@huang12 ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@huang12 ~]# rpm -ivh /iso/Server/libXp-1.0.0-8.1.el5.i386.rpm
Preparing...                ########################################### [100%]
   1:libXp                  ########################################### [100%]
下面就是修改内核参数。
[root@huang12 ~]# sysctl -a|grep sem
kernel.sem = 250        32000   32      128
[root@huang12 ~]# sysctl -a|grep sem|sed 's/32/100/2'
kernel.sem = 250        32000   100     128
[root@huang12 ~]# sysctl -a|grep sem|sed 's/32/100/2'>>/etc/sysctl.conf
[root@huang12 ~]# sysctl -a|grep file-m
fs.file-max = 42166
[root@huang12 ~]# sysctl -a|grep file-m|sed 's/42166/65535/'
fs.file-max = 65535
[root@huang12 ~]# sysctl -a|grep file-m|sed 's/42166/65535/'>>/etc/sysctl.conf
[root@huang12 ~]# sysctl -a|grep ip_l
net.ipv4.ip_local_port_range = 32768    61000
[root@huang12 ~]# sysctl -a|grep ip_l|sed -e 's/32768/1024/' -e 's/61000/65535/'
net.ipv4.ip_local_port_range = 1024     65535
[root@huang12 ~]# sysctl -a|grep ip_l|sed -e 's/32768/1024/' -e 's/61000/65535/'>>/etc/sysctl.conf
[root@huang12 ~]# sysctl -a|grep wmem_ma
net.core.wmem_max = 109568
[root@huang12 ~]# sysctl -a|grep wmem_ma|sed 's/109568/262144/'
net.core.wmem_max = 262144
[root@huang12 ~]# sysctl -a|grep wmem_ma|sed 's/109568/262144/'>>/etc/sysctl.conf
[root@huang12 ~]# sysctl -a|grep wmem_defa
net.core.wmem_default = 109568
[root@huang12 ~]# sysctl -a|grep wmem_defa|sed 's/109568/262144/'
net.core.wmem_default = 262144
[root@huang12 ~]# sysctl -a|grep wmem_defa|sed 's/109568/262144/'>>/etc/sysctl.conf
[root@huang12 ~]# sysctl -a|grep rmem_defa|sed 's/109568/262144/'>>/etc/sysctl.conf
[root@huang12 ~]# sysctl -a|grep rmem_ma|sed 's/109568/262144/'>>/etc/sysctl.conf
[root@huang12 ~]# tail -7 /etc/sysctl.conf
kernel.sem = 250        32000   100     128
fs.file-max = 65535
net.ipv4.ip_local_port_range = 1024     65535
net.core.wmem_max = 262144
net.core.wmem_default = 262144
net.core.rmem_default = 262144
net.core.rmem_max = 262144
[root@huang12 ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.sem = 250        32000   100     128
fs.file-max = 65535
net.ipv4.ip_local_port_range = 1024     65535
net.core.wmem_max = 262144
net.core.wmem_default = 262144
net.core.rmem_default = 262144
net.core.rmem_max = 262144
[root@huang12 ~]# unzip /mnt/yuanwenjian/10201_database_linux32.zip -d /usr/src
[root@huang12 ~]# su - oracle
[oracle@huang12 ~]$ more .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/10g
export ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export PATH
现在我们用oracle来远程登陆linux
启动xming就可以了,
配置putty
点open
[oracle@huang12 ~]$ cd /usr/src/database/
[oracle@huang12 database]$ ./runInstaller   就出现下面图片。
下面的步骤就跟上面一样啊。
执行脚本后点OK就可以了。
上面就是oracle的安装
下面就是让oracle支持翻页的功能。
我们要安装下面三个软件
[root@huang11 ~]# ls /mnt/yuanwenjian/IO-Tty-1.08.tar.gz 
/mnt/yuanwenjian/IO-Tty-1.08.tar.gz
[root@huang11 ~]# ls /mnt/yuanwenjian/Term-ReadLine-Gnu-1.19.tar.gz 
/mnt/yuanwenjian/Term-ReadLine-Gnu-1.19.tar.gz
[root@huang11 ~]# ls /mnt/yuanwenjian/uniread-1.01.tar.gz 
/mnt/yuanwenjian/uniread-1.01.tar.gz
前两个的下载地址在http://search.cpan.org后一个下载地址在www.sf.net
[root@huang11 ~]# tar zxvf /mnt/yuanwenjian/uniread-1.01.tar.gz  -C /usr/src
uniread-1.01/
uniread-1.01/CHANGES
uniread-1.01/COPYING
uniread-1.01/Makefile.PL
uniread-1.01/MANIFEST
uniread-1.01/README
uniread-1.01/uniread
[root@huang11 ~]# cd /usr/src/uniread-1.01/
[root@huang11 uniread-1.01]# perl Makefile.PL 
Detecting Term::ReadLine implementation...
Found Term::ReadLine::Stub. uniread requires Term::ReadLine::Gnu.
Checking if your kit is complete...
Looks good
Warning: prerequisite IO::Tty 1.02 not found.
Warning: prerequisite Term::ReadLine::Gnu 1.14 not found.
Writing Makefile for uniread
[root@huang11 uniread-1.01]# make
cp uniread blib/script/uniread
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/uniread
Manifying blib/man1/uniread.1
[root@huang11 uniread-1.01]# make install
Installing /usr/share/man/man1/uniread.1
Installing /usr/bin/uniread
Writing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/uniread/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
其它两个的方法是一样的安装。
安装我们修改oracle的环境变量
[oracle@huang11 ~]$ more ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/sof/oracle
export ORACLE_HOME=/sof/oracle/10g
export ORACLE_SID=orcl
alias  sqlplus="uniread sqlplus"
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export PATH
[oracle@huang11 ~]$ source .bash_profile
下面就说明了可以翻页了。
[oracle@huang11 ~]$ sqlplus "/as sysdba"
[uniread] Loaded history (0 lines)
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Dec 24 18:35:20 2009
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> conn scott/oracle;
Connected.
SQL> select * from tab;
TNAME                          TABTYPE  CLUSTERID
------------------------------ ------- ----------
DEPT                           TABLE
EMP                            TABLE
BONUS                          TABLE
SALGRADE                       TABLE
SQL> select * from tab;
  本文转自7343696 51CTO博客,原文链接:http://blog.51cto.com/luoping/249392,如需转载请自行联系原作者

oracle的本地安装和PUTTY+XMING远程连接安装和oracle翻页功能相关推荐

  1. Windows10安装Ubuntu子系统+配置SSH连接+安装xfce4图形界面+配置xrdc远程桌面连接

    前言 WIN10的所有非精简版的系统,都已经内置Linux内核,可以直接打开一个PC应用一样使用Ubuntu子系统.这是非常Cool的体验,并且经历了一段时间的完善和摸索,现在应用起来都非常成熟. 本 ...

  2. 树莓派4B安装系统,配置远程连接和WiFi,更新源,更新中文支持,基本Linux命令,用Python输出hello和“你好,世界”

    树莓派4B 系列1 从入门到进阶 作者(当然就是我本人了,哈哈哈哈哈),写这篇文章的目的是给刚入门树莓派或者从3B/3B+版本过度到4B的小朋友们总结出一些成系统的规律和方法,以及4B全新版本的变化. ...

  3. WMWare(虚拟机)下SUSE11-SP4的安装、配置和远程连接(详细图文)

                                WMWare(虚拟机)下SUSE11-SP4的安装.配置和远程连接 一:软件准备 1. WMWare Workstation(百度自行安装10- ...

  4. 吐血整理阿里云安装MySQL8.0及远程连接失败问题

    目录 一.绪论 二.安装MySQL 安装命令 三.远程连接 解决方案 四.参考资料 一.绪论 小编昨天狠心买了一年的阿里云服务器,想要搭建自己的服务器.有人可能会思考为什么要买阿里云服务器呢?作为开发 ...

  5. 数据库的安装、授权和远程连接

    数据库的安装.授权和远程连接 文章目录 数据库的安装.授权和远程连接 准备工作 安装所需的MySQL包 关闭防火墙 开启mysql服务 查看临时密码 使用临时密码登入 修改密码 将mysql服务初始化 ...

  6. 向日葵远程linux vnc,CentOS安装配置VNC实现远程连接图形桌面

    CentOS安装配置VNC实现远程连接图形桌面,我们在使用centos时候肯定会用到远程链接图形桌面,现在又很多远程链接桌面软件向日葵远程控制,teamviewer等远程控制软件实现远程链接图形图像软 ...

  7. Fedora安装anydesk后无法远程连接解决

    电脑系统为Fedora,安装anydesk后能够远程连接其他已经安装了anydesk的电脑,但是其他电脑无法远程连接该电脑,同时无法设置自主访问,点击解锁安全设置后弹出了让输入密码的对话框,输入密码后 ...

  8. [转] PuTTY + Xming 远程使用 Linux GUI

    [From] http://www.zw1840.com/blog/zw1840/2008/10/putty-xming-linux-gui.html By zw1840 on October 28, ...

  9. putty远程桌面连接linux,PuTTY + Xming 远程使用 Linux GUI

    8种机械键盘轴体对比 本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选? 就目前而言,将 linux 作为个人电脑操作系统使用的人还比较少,而 linux 也一直以来因为其占用资源少,系统稳定, ...

最新文章

  1. 【Elasticsearch 5.6.12 源码】——【3】启动过程分析(下)...
  2. 有赞订单管理的三生三世与“十面埋伏”
  3. python合并pdf 加书签_使用Python批量合并PDF文件(带书签功能)
  4. python画切片图_python切片操作
  5. 分析“HTTP500内部服务器错误”解决方法
  6. 恒大贾跃亭和解;快播处罚细节曝光;天津三星工厂关闭 | 极客头条
  7. svn服务端及客户端搭建和使用(一)
  8. java多线程下载图片_java多线程批量下载图片(通用版)
  9. 一元多项式的带余除法
  10. 【连载】第三章刚体的定轴转动第二节转动惯量 刚体定轴转动定律
  11. Entrez检索实例 - NCBI
  12. PAT乙级题解——1093 字符串A+B (20分)
  13. Sony电视投屏 Android,怎样把手机画面投影到电视上观看 乐播投屏使用方法
  14. 话题 | 手机充电越充越少,90%的人都遇过这些囧事,有你吗?
  15. 最全Flume常用配置文件详情解析
  16. 第2章第19节:如何在幻灯片中使用书法艺术文字 [PowerPoint精美幻灯片实战教程]
  17. 【UE4】PMC程序化生成戈德堡多面体详解(六边形星球)
  18. java 打印 日历 详细 注解_Java类库 LocalDate类的简单使用(一)之打印本月的日历...
  19. 海康设备云平台简单控制
  20. Spring源码深度解析(郝佳)-学习-Spring Boot体系原理

热门文章

  1. JDK 8 新特性 之 Lambda表达式
  2. PostgreSQL Huge Page 使用建议 - 大内存主机、实例注意
  3. touch 修改文件时间戳,或者新建一个不存在的文件 - 副本
  4. linux curl模拟登录网页
  5. hackgame汇总
  6. SmartFoxServer资料
  7. spring mvc 入门配置
  8. BO QUERY BUILDER - SI_INSTANCE相关属性
  9. 【java设计模式之Command(菜单命令) 】
  10. 转:编写高效的Android代码