English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Linux Centos6.5 64Oracle unter bit installieren12c:
groupadd oinstall groupadd dba mkdir -p /u01/oracle useradd -g oinstall -G dba -d /u01/oracle oracle (Es ist nicht unbedingt erforderlich, das Home-Verzeichnis in/u01/oracle, das ist auch Standard) Kopieren Sie die folgenden drei Dateien nach /u01/Im oracle-Verzeichnis [root@oracle /]# cd /etc/skel/ [root@oracle skel]# ll -a -rw-r--r--. 1 root root 18 7Monat 18 2013 .bash_logout -rw-r--r--. 1 root root 176 7Monat 18 2013 .bash_profile -rw-r--r--. 1 root root 124 7Monat 18 2013 .bashrc Hinweis: Beim Hinzufügen eines Benutzers mit useradd wird automatisch aus den Dateien in diesem Verzeichnis in das Heimatverzeichnis des Benutzers kopiert password oracle chown -R oracle:oinstall /u01 chmod -R 775 /u01/
/*Installieren Sie vnc*/
yum -y install tigervnc-server vncserver Enter Geben Sie das Passwort ein ps -ef | grep vnc VNC-Client-Verbindung: ip:1
Überprüfen Sie, ob die folgenden Programme installiert sind:
binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 - elfutils-libelf-0.125 elfutils-libelf-devel-0.125 - elfutils-libelf-devel-static-0.125 - gcc-4.1.2 - gcc-c++-4.1.2 - glibc-2.5-24 glibc-common-2.5 glibc-devel-2.5 glibc-headers-2.5 kernel-headers-2.6.18 ksh-20060214 - libaio-0.3.106 libaio-devel-0.3.106 - libgcc-4.1.2 libgomp-4.1.2 libstdc++-4.1.2 libstdc++-devel-4.1.2 - make-3.81 sysstat-7.0.2 unixODBC-2.2.11 - unixODBC-devel-2.2.11 -
修改 /etc/sysctl.conf 文件,加上如下参数
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586
为使上述配置生效而不重启系统,执行如下命令
# /sbin/sysctl -p
修改用户限制
root用户:修改 /etc/security/limits.conf 文件,加上下面的参数
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
修改用户验证选项
root用户下:修改/etc/pam.d/login文件加上如下参数
session required pam_limits.so
修改用户配置文件
root用户下:修改/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用户bash_profile:
$ vi .bash_profile
增加如下内容,主要是修改
export ORACLE_BASE=/u01 export ORACLE_HOME=$ORACLE_BASE/product/12.1.0/db_1 export ORACLE_SID=hxw168 export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
安装oracle:
安装oracle无法使用命令/usr/bin/xdpyinfo自动检查显示器颜色:
[root@oracle /]# xdpyinfo | grep "name of display" name of display: :1.0 [root@oracle /]# 在Oracle用户下执行命令: export DISPLAY=:1.0 (above name of display: followed by :)}}1.0)
prvf-0002: Unable to retrieve the local node name
host file ip and name correspond to 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 was 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.
//
Solution: https://de.oldtoolbag.com/article/92720.htm
Adjust the virtual machine's memory to600 more M (originally1G more), when starting oracle, the following prompt is displayed:
SQL> startup
ORA-00845: MEMORY_TARGET is 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.
The reason is that the size of shm in the Linux system is smaller than the SGA setting.
You can adjust the size of shm:
vi /etc/fstab
Modify the settings of the following line
tmpfs /dev/shm tmpfs defaults 0 0
in
tmpfs /dev/shm tmpfs defaults,size=6G 0 0
Montieren Sie shm neu, um es wirksam zu machen
mount -o remount /dev/shm
TNS-12514: TNS: Der Listener kennt derzeit den in der Verbindungsskizze angeforderten Service nicht
Es muss die Datei listener.ora geändert werden (Pfad in $ORACLE_HOME/network/admin),dann lsrctl neu starten
# Erzeugt durch Oracle-Konfigurationswerkzeuge. #LISTENER = # (DESCRIPTION_LIST = # (DESCRIPTION = # (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521) # (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.198.188)(PORT = 1521) # ) # ) hxw168 = )(DESCRIPTION_LIST = )(DESCRIPTION = )(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.198.188)(PORT = 1521) ) ) SID_LIST_hxw168= (SID_LIST = (SID_DESC = (ORACLE_HOME = /u01/app/product/12.1.0/db_1) (SID_NAME = hxw168) ) )
oracle einfaches Startskript:
[root@oracle ~]# cat /etc/init.d/oracle su - oracle <<EOF lsnrctl start sqlplus / as sysdba startup EOF
Dieser Artikel stammt aus dem Blog "Obwohl ich falsch liege, lasse mich bis zum Ende des Lebens falsch liegen!"