• Blog
  • Archives
  • Search
  • Comments
  • Tags
  • Links
  • xxshuo
  • RSS

有梦就有快乐[杨恒飞]

Reg | Login

人生旅途慢慢,但有梦就会有快乐!

阅读全文

配置linux下oracle sqlplus/rman等历史记录回调功能
By coldstar On 2010-07-07, 8:18 AM | Category: 数据库技术 | Comments: 0

############################################################
#
# Purpose: about oracle sqlplus
#
# USER          YYYY-MM-DD – ACTION
# Oldboy        2010-07-06 – Created
# QQ:49000448   老男孩       mail:49000448@qq.com
#转载请务必保留本文链接(http://blog.etiantian.org/?p=56)
############################################################

这么多年了,各类技术文档也写了不少了,不过实在懒得写博客,每次都是因为被学生问,被朋友问 才写出来总结下。
也许人都是这样子,自己鼓捣没劲,帮朋友,帮哥们了。再累都要搞出来。wordpress用的不顺手,是我没玩明白么?编辑器不好用。调个字体也费劲。还要改html代码。

安装rlwrap-0.37.tar.gz:
cd /home/rhy/tools/
wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz
tar zxvf rlwrap-0.37.tar.gz
cd rlwrap-0.37
./configure
make
make install

切换到oracle用户下

vi .bash_profile
加入别名sqlplus/rman配置

alias sqlplus=’rlwrap sqlplus’
alias rman=’rlwrap rman’

保存退出 source .bash_profile使生效或退出重登陆即可

这时执行sqlplus “/ as sysdba” 这个时候输入命令发现可以回调了。

也可以直接执行rlwrap sqlplus “/ as sysdba” 而不设置别名(麻烦点)。

Tags: sqlplus , oracle

阅读全文

CentOS 5.4 Oracle 11gR2 安装手记
By coldstar On 2010-07-01, 6:45 PM | Category: Linux | Comments: 0

=|= 添加oracle所需用户和组
--------------------------------------------
[root@oracle ~]# groupadd oinstall
[root@oracle ~]# groupadd dba
[root@oracle ~]# useradd -g oinstall -G dba oracle    #添加oracle用户到oinstall组dba副组
[root@oracle ~]# passwd oracle                        #设置oracle用户的密码
[root@oracle ~]# mkdir /oracle                        #创建oracle要安装的目录
[root@oracle ~]# chown -R oracle:oinstall /oracle     #设置目录权限


=|= 确认主机名和hosts中的主机名解析设置
--------------------------------------------
[root@oracle ~]# hostname
oracle.fei.cn
[root@oracle ~]#
[root@oracle ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
#::1            localhost6.localdomain6 localhost6
125.76.249.100          oracle.fei.cn oracle          #主要是这一行


=|= 为oracle用户设置shell限制,添加如下内容
--------------------------------------------
[root@oracle ~]# vi /etc/security/limits.conf
oracle             soft   nproc  2047
oracle             hard   nproc  16384
oracle             soft    nofile 1024
oracle             hard   nofile 65536

[root@oracle ~]# vi /etc/pam.d/login
session    required     /lib/security/pam_limits.so
session    required     pam_limits.so


[root@oracle ~]# vi/etc/profile
if [ $USER = "oracle" ]; then
       if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
             ulimit -n 65536
       else
             ulimit -u 16384 -n 65536
       fi
fi

切换到oracle用户,注意要用 su - root命令(注 意,‘-’的左右都有空格!)这样才确保把环境带过去

完整安装文档 点击下载:oracle-install-doc.zip

Read more
Tags: oracle , centos

阅读全文

runInstaller: line 132: 3892 Segmentation fault $CMDDIR/install/.oui $* $_bootClassPath
By coldstar On 2010-06-28, 4:46 PM | Category: Linux | Comments: 2

安装oracle,执行 ./runInstaller,报错:

..../runInstaller: line 132:  3892 Segmentation fault      $CMDDIR/install/.oui $* $_bootClassPath

原因:

空间不足,由于我是在虚拟机上安装,磁盘分配过小,加大磁盘,清理/tmp目录,重新执行,正常显示安装界面。

Tags: oracle
  • View Model: Nomal | List
  • Category

    nginx (28)

    win7 (20)

    Windows (39)

    Linux (51)

    WEB服务器 (73)

    网站架构 (11)

    存储与缓存 (2)

    数据库技术 (20)

    WEB开发 (24)

    网站建设 (30)

    安全相关 (27)

    软件开发 (3)

    网络观察 (20)

    精彩瞬间 (20)

    心情管理 (49)

    个人收藏 (29)

  • Calendar

    « 2010年09月 »
    日 一 二 三 四 五 六
    1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29 30
  • Hot Tags

    nginx win7 iis apache linux mysql 破解 管理 mssql php access 漏洞 四博新云 seo 加速 驱动 centos w32dasm yum lvs asp mm rewrite gzip resin 优化 awk 架构 cache 创业 oracle dedecms ip_hash div+css 程序员 感谢google baidu 百度 老公 女人 shutdown 服务器 apache+tomcat 黑竹沟 小小说 tomcat pure-ftpd iis7 工作 mrtg
  • Comments

    呵呵,你是为我而写的,谢谢!这里...
    09-05 - 爽爽

    你还弄到博客上了,哈哈!
    09-03 - mjxhehe

    我也遇到这问题,正想找人问问呢。...
    08-26 - 爽爽

    我是在工作,没看讲的是用户体验么...
    08-24 - coldstar

    --!你还有这爱好! 咋不加...
    08-24 - 商鹏龙

    这下全部明白了。
    08-16 - 化工泵

    换句话说就是,圈子决定财富
    08-02 - PHPma

    学习了,谢谢!
    07-21 - ajcheng

    不知道你这里用的什么备份工具。我...
    07-19 - apple

    牛哈~~~
    07-17 - Lanyd

  • FriendLinks

    99 Roses[叶涛]

    Alibaba DBA Team

    fovweb

    Franky

    MySQL 中文网

    nginx

    sclife

    SEM一家之言

    Zac 的SEO博客

    [支付宝] 冯大辉

    回忆未来[张宴]

    好朋友

    懒人运维

    田逸的博客

    简朝阳 Sky Jian

    网易高级DBA

    脸蛋网

    花的嫁纱

    西西说

    雨·漫步

    More

  • Others

    Article 415, Comment 100.

    Powered by SaBlog-X.

    Designed by Giki+Kula.

    有梦就有快乐[杨恒飞] All rights reserved.

    陕ICP备07009322号