UNIX与ORACLE培训资料

上传人:飞*** 文档编号:47497462 上传时间:2018-07-02 格式:PDF 页数:50 大小:347.36KB
返回 下载 相关 举报
UNIX与ORACLE培训资料_第1页
第1页 / 共50页
UNIX与ORACLE培训资料_第2页
第2页 / 共50页
UNIX与ORACLE培训资料_第3页
第3页 / 共50页
UNIX与ORACLE培训资料_第4页
第4页 / 共50页
UNIX与ORACLE培训资料_第5页
第5页 / 共50页
点击查看更多>>
资源描述

《UNIX与ORACLE培训资料》由会员分享,可在线阅读,更多相关《UNIX与ORACLE培训资料(50页珍藏版)》请在金锄头文库上搜索。

1、宏智公司 UNIX 与 ORACLE 培训资料page 1 of 50 第一章介绍 UNIX 系统管理一、系统管理人员职责:系统安装配置 启动与关闭机器 控制用户登录 磁盘空间管理 用户管理 设备管理 系统备份 监控系统 问题排除 性能调整二、UNIX 层次结构 见下图 :Hardware Application programsShell Kernel Device drivers 宏智公司 UNIX 与 ORACLE 培训资料page 2 of 50 三、超级用户和 root 登录1、相关重要文件: /etc/securettys 例如: /dev/console local:0 :0 1

2、34.132.9.79:0 ptys 允许远程登录 在 solaris 操作系统上,有关的文件是/etc/default/login文件,如果需要允 许远程登录,屏蔽CONSOLE=/dev/console即可。/var/adm/sialog 记录从其他用户用su 命令的登录情况 (一个用户如果需要su 到 root 用户,该用户必需在system 组中(可以使 该用户的第二个组为system ,或者修改 /etc/group 文件如下: system:*:0:root,oracle7 ) SIA:EVENT Wed Jun 17 12:57:37 1998 Successful authen

3、tication for su from oracle7 to root SIA:EVENT Wed Jun 17 12:57:37 1998 Successful launching of session 2、系统安全 在默认的情况下,系统运行在一般模式下,利用如下命令可以使系统进入 高安全级: # setup For more information about the items on the menu and the questions you must answer, see the System Administration and Network Administration g

4、uides. 1) Network Configuration Application 2) BIND Configuration Application 3) NIS - Network Information Service 4) NFS Configuration Application 5) SLIP and PPP Configuration 6) License Manager 7) Mail Configuration Application 8) LAT - Local Area Transport 9) UUCP - UNIX-to-UNIX Copy System 10)

5、NTP - Network Time Protocol 11) Printer Configuration Application 12) Security (BSD/C2) 13) Security Auditing 14) Prestoserve I/O Acceleration 宏智公司 UNIX 与 ORACLE 培训资料page 3 of 50 15) Update Administration Utility 16) Graphical UI Selection Facility 17) Exit Enter the menu item number that you want:

6、12 Enter system security level(BASE ENHANCED ?)ENHANCED: 在高安全级模式下,可以利用usermod 命令强制用户在一定的时间内 及时修改口令。 如: # usermod x passwd_min_change_time=10 oracle7 在 SUN 的 solaris 操作系统下,则可以直接利用passwd 命令限制用户修 改口令,或者强制用户定期修改口令。 例如: # passwd s oracle7 oracle7 ps 3 9 6/20/98 11 90 7 使用 usermod 命令设置帐号停止使用时间。宏智公司 UNIX 与

7、 ORACLE 培训资料page 4 of 50 第二章磁盘管理与文件系统一、分区以及文件系统1、磁盘分区 磁盘的逻辑划分。c a b g h d e f 可以使用如下命令对磁盘的分区进行查看和修改。 # disklabel r rz8 # disklabel e rz9 分区表: /etc/inittab 2、文件系统 文件系统是一个包含文件及目录的层次结构。 每个磁盘可以有多个文件系统,每个分区只能有一个文件系统。 每个文件系统有独立的逻辑磁盘或分区。 文件系统不能相互重叠,分区可以相互重叠。 Advanced File System AdvFS 可以视多个物理磁盘或分区为一个单元 Uni

8、x File System UFS Network File System NFS Memory File System MFS ISO 9660 Compact Disk File System CDFS File-on-File Mounting System FFM /proc File System 允许运行的进程象文件一样被系统调用,存储所有进程。 /dev/fd File System FDFS Virtual File System VFS 3、LSM 视若干个磁盘或若干个不同磁盘的分区为一个逻辑单位。二、创建文件系统1、 ufs # disklabel e rz1 # newf

9、s /dev/rrz1g RZ28 # fsck /dev/rz1g 物理磁盘宏智公司 UNIX 与 ORACLE 培训资料page 5 of 50 # mount /dev/rz1g /usr1 # vi /etc/fstab 2、 AdvFS # disklabel rw rz9 rz29b # mkdir /oracle # mkfdmn /dev/rz9g oracle_domain # mkfset oracle_domain oracle # mount t advfs oracle_domain#oracle /oracle # vi /etc/fstab 3、/etc/fsta

10、b 文件 root_domain#root / advfs rw 0 0 /proc /proc procfs rw 0 0 usr_domain#usr /usr advfs rw 0 0 /dev/rz0b swap1 ufs sw 0 2 4、给已有的 domain 增加磁盘空间 # addvol t advfs /dev/rz0h usr_domain 注:使用以上命令需要有相关的许可证。 # showfdmn -k usr_domain 三、用户管理和磁盘空间限额0、增加组与用户 # groupadd g 200 dba # useradd g 200 u 200 d /usr/ap

11、p/oracle/product/7.3.2 oracle7 利用 motif 界面增加组和用户 修改用户的 .profile 文件1、# vi /sys/conf/HOST_NAME 增加如下一行: options QUOTA 2、# vi /etc/fstab 如: /dev/rz0g /usr/users Advfs rq,userquota 1 1 # quotacheck -a|filesystem # quotaon -a|filesystem 3、# edquota username|-g groupname edquota 格式: pathname:blocks in use:

12、 #,limits(soft = #,hard = #) inodes in use: #,limits (soft = #,hard = #) 宏智公司 UNIX 与 ORACLE 培训资料page 6 of 50 soft : 逾越则给出警告,在一段时间(grace period )后变为 hard 限制。 hard: 绝对限度,不可逾越 如果 soft 或 hard 等于 0 则意味着这个目录对该用户没有限额。4、# edquota t patchname:block grace period :# ,file grace period :# 5、# repquota a v # quo

13、ta u username 6、# quotaoff a 去除 /etc/fstab 文件中列出的所有文件系统的空间限额。宏智公司 UNIX 与 ORACLE 培训资料page 7 of 50 第三章启动与关闭一、关闭命令1、shutdown # shutdown -r now # shutdown -k will shutdown the system 10min later # shutdown -h +10 (yymmddhhmm) # shutdown now 关闭机器至单用户状态2、halt、fasthalt 以上命令建议在单用户状态下使用 例如: # shutdown now #

14、sync # halt 3、init 建议采用 # init 0 关机 # init s 单用户 # init 2 多用户不启动网络 # init 3 多用户且启动网络二、初始化文件/sbin/init.d /sbin/rc3.d /sbin/rc2.d /sbin/rc0.d /sbin/rc0 /sbin/rc2 /sbin/rc3 /etc/inittab 例如: is:3:initdefault: ss:Ss:wait:/sbin/rc0 shutdown /dev/console 2; ?stop ) shut_ora; *) echo usage: $0 start|stop es

15、ac # ln s /etc/sbin/init.d/oracle /etc/sbin/rc3.d/S99oracle ln s /etc/sbin/init.d/oracle /etc/sbin/rc0.d/K01oracle 如果该启动文件还使用到网络,则还需要链接到/sbin/rc2.d/KxxFile_name。宏智公司 UNIX 与 ORACLE 培训资料page 9 of 50 第四章系统安装1、从光盘引导,开始系统安装。 安装的 log 文件保存在 /var/adm/smlogs/install.log 2、打补丁。 拷贝补丁到 /usr/patch 目录下 # shutdown

16、 now patch the system # mount u / mount 根文件系统,并使之可写 # mount a mount /etc/fstab中所有的文件系统 # swapon -a # update # cd /usr/patch # ./dupatch 3、重新链接核心 # doconfig c HOST_NAME 4、系统升级 # shutdown +5 performing update installation # swapon e # bcheckrc (or mount u /) # /sbin/installupdate /dev/rz5c or # /sbin/installupdate /cdrom 5、安装其他软件 # df

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号