Linux Centos6.5 64bit下安装oracle12c:
/*安装vnc*/
检测是否有安装以下程序:
为使上述配置生效而不重启系统,执行如下命令
# /sbin/sysctl -p
root用户:修改 /etc/security/limits.conf 文件,加上下面的参数
修改用户验证选项
root用户下:修改/etc/pam.d/login文件加上如下参数
修改用户配置文件
root用户下:修改/etc/profile文件加入如下参数:
修改oracle用户bash_profile:
$ vi .bash_profile
增加如下内容,主要是修改
安装oracle:
安装oracle无法使用命令/usr/bin/xdpyinfo自动检查显示器颜色:
prvf-0002:无法检索本地节点名
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简单的启动脚本:
本文出自 “尽管错,让我错到死!” 博客
原文链接:https://www.f2er.com/oracle/65033.html