[root@oracle /]# xdpyinfo | grep "name of display"
name of display: :1.0
[root@oracle /]#
在Oracle用户下执行命令:
export DISPLAY=:1.0 (上面name of display:后面的 :1.0)
prvf-0002:无法检索本地节点名
host文件 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.
//
解决方法:https://www.uoften.com/article/92720.htm
调整虚拟机的内存到600多M(原来1G多),启动oracle时提示:
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system
SQL> !oerr ora 00854
00854, 00000, "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