total 32
drwxr--r-- 2 root root 4096 Dec 20 23:04 package1
drwxr-xr-x 2 root root 4096 Dec 20 23:07 package2
-rw-r--r-- 1 root root 30 Dec 20 23:16 test1
-rwxr--r-x 1 root root 28 Dec 20 23:16 test2
[root@localhost test]# su - oracle
[oracle@localhost ~]$ cd /test/
[oracle@localhost test]$ ll
total 32
drwxr--r-- 2 root root 4096 Dec 20 23:04 package1
drwxr-xr-x 2 root root 4096 Dec 20 23:07 package2
-rw-r--r-- 1 root root 30 Dec 20 23:16 test1
-rwxr--r-x 1 root root 28 Dec 20 23:16 test2
[oracle@localhost test]$ cd package1
-bash: cd: package1: Permission denied
[oracle@localhost test]$ cd
package1/ package2/ test1 test2
[oracle@localhost test]$ cd package2
[oracle@localhost package2]$ touch oracle1
touch: cannot touch `oracle1': Permission denied
[oracle@localhost package2]$
总结:当是一个目录时,假如只有读的权限还是不够的,一定需要具备XR两个权限才能进入该目录
当是一个文件时,假如只有读的权限,那么就可以读取你面的内容
oracle002
oracle的安装
Checking the Software Requirements
1. 切换到系统用户:su root 2. grep MemTotal /prop/meminfo 检查内存大小 3. grep SwapTotal /pro/meminfo 检查swap分区大小 4. free 查看RAM 和 swap 5. 查看硬盘使用情况 6. grep "model name" /prop/cpuinfo 检查cpu 7. cat /prop/version 检查版本 8. uname -r Linux的内核 9. rpm -qa | grep packagename 检查某个安装包是否安装Checking the Network Setup
1. cat /etc/nsswitch.conf | grep hosts 检查hosts文件是否存在 2. hostname 查看主机名 3. domainname 查看域名 4. cat /etc/hosts | grep 'eva l hostname' 查看文件中是否有hostname配置 5. cat /etc/sysconifg/network-scripts/ifcfg-etho //查看网络配置Creating Required Operating System Groups and Users//建立用户组
[root@localhost /]# groupadd oinstall[root@localhost /]# groupadd dba
[root@localhost /]# useradd -g oinstall -G dba oracle
Configuring Kernel Parameters//配置系统的核心参数
[root@localhost /]# vi /etc/sysctl.conf[root@localhost /]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 262144 net.core.wmem_default = 262144 net.core.wmem_max = 262144
Setting Shell Limits for the oracle User
[root@localhost /]# cd /etc/secur
securetty security/
[root@localhost /]# vi /etc/security/limits.conf
[root@localhost /]# vi /etc/pam.d/login
[root@localhost /]# vi /etc/pro
profile profile.d/ protocols
[root@localhost /]# vi /etc/pro
profile profile.d/ protocols
[root@localhost /]# vi /etc/profile
Identifying Required Software Directories
[root@localhost /]# mkdir /u01/app/oracle -p[root@localhost /]# chmod -R oracle:oinstall /u01
chmod: invalid mode: `oracle:oinstall'
Try `chmod --help' for more information.
[root@localhost /]# chown -R oracle:oinstall /u01
[root@localhost /]# chmod -R 755 /u01
Configuring the oracle User's Environment
[oracle@localhost ~]$ vi .bash_profile[oracle@localhost ~]$ exit
logout
[root@localhost /]# su - oracle
[oracle@localhost ~]$
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/product/10.2.0/db_1
export ORACLE_SID=jiagulun
export NLS_LANG=american_america.zhs16gbk
~
Installing the Oracle Database Software
[root@localhost oraapp]# lsdatabase winx64_12c_database_1of2.zip winx64_12c_database_2of2.zip
[root@localhost oraapp]# cd database/
[root@localhost database]# ls
install response setup.exe stage welcome.html
[root@localhost database]# w
0