oracle12c安装問題,Oracle 12c安装方法及一些使用问题

Linux Centos6.5 64bit下安装oracle12c:

文件复制到 /u01/oracle目录下

[root@oracle /]# cd /etc/skel/

[root@oracle skel]# ll -a

-rw-r--r--. 1 root root 18 7月 18 2013 .bash_logout

-rw-r--r--. 1 root root 176 7月 18 2013 .bash_profile

-rw-r--r--. 1 root root 124 7月 18 2013 .bashrc

注:useradd添加用户时,会自动从这个目录下的文件复制到用户的家目录

password oracle

chown -R oracle:oinstall /u01

chmod -R 775 /u01/

/*安装vnc*/

检测是否有安装以下程序:

修改 /etc/sysctl.conf 文件,加上如下参数

为使上述配置生效而不重启系统,执行如下命令

# /sbin/sysctl -p

root用户:修改 /etc/security/limits.conf 文件,加上下面的参数

修改用户验证选项

root用户下:修改/etc/pam.d/login文件加上如下参数

required pam_limits.so

修改用户配置文件

root用户下:修改/etc/profile文件加入如下参数:

修改oracle用户bash_profile:

$ vi .bash_profile

增加如下内容,主要是修改

安装oracle:

安装oracle无法使用命令/usr/bin/xdpyinfo自动检查显示器颜色:

用户下执行命令:

export DISPLAY=:1.0 (上面name of display:后面的 :1.0)

prvf-0002:无法检索本地节点名

文件 ip与名称对应

192.168.198.188 oracle

sql> create user admin identified by zerostudy;

create user admin identified by zerostudy

*

ERROR at line 1:

ORA-65096: invalid common user or role name

sql> !oerr ora 65096

65096,00000,"invalid common user or role name"

// *Cause: An attempt was made to create a common user or role with a name

// that wass not valid for common users or roles. In addition to

// the usual rules for user and role names,common user and role

// names must start with C## or c## and consist only of ASCII

// characters.

// *Action: Specify a valid common user or role name.

//

解决方法:

调整虚拟机的内存到600多M(原来1G多),启动oracle时提示:

sql> startup

ORA-00845: MEMORY_TARGET not supported on this system

sql> !oerr ora 00854

00854,"ASM IOServer Instance Fence monitor process terminated."

// *Cause: The ASM IOServer Fence monitor process died.

// *Action: Warm start the instance.

原因就是Linux系统的shm的大小比SGA设置的小造成的。

可以调整shm的大小:

vi /etc/fstab

修改如下行的设置

tmpfs /dev/shm tmpfs defaults 0 0

改成

tmpfs /dev/shm tmpfs defaults,size=6G 0 0

重新mount下shm使其生效

mount -o remount /dev/shm

TNS-12514: TNS:listener does not currently know of service requested in connect descriptor

需要更改listener.ora文件(跟径在$ORACLE_HOME/network/admin),然后重启lsnrctl

oracle简单的启动脚本:

sqlplus / as sysdba

startup

EOF

本文出自 “尽管错,让我错到死!” 博客

总结

如果觉得编程之家网站内容还不错,欢迎将编程之家网站推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值