❶ 如何修改HP UX 用户密码,生手,希望能详细点;修改后要不要重启系统。
普通用户只能修改自己的密码,root用户可以修改一切用户密码。修改后直接下次登录就生效,不需要重启机器。
方法:#passwd 用户名
输入密码即可完成更改。
❷ HP unix root密码过期
摘要 HP unix 修改root密码及重置密码 设置用户密码期限
❸ 如何设置HPUX的启动盘为光盘启动
第一步,设置光启:
??所谓光启,意思就是计算机在启动的时候首先读光驱,这样的话如果光驱中有具有光启功能的光盘就可以赶在硬盘启动之前读取出来(比如从光盘安装系统的时候)。
??设置方法:
??1.启动计算机,并按住DEL键不放,直到出现BIOS设置窗口(通常为蓝色背景,黄色英文字)。
??2.选择并进入第二项,“BIOS SETUP”(BIOS设置)。在里面找到包含BOOT文字的项或组,并找到依次排列的“FIRST”“SECEND”“THIRD”三项,分别代表“第一项启动”“第二项启动”和“第三项启动”。这里我们按顺序依次设置为“光驱”“软驱”“硬盘”即可。(如在这一页没有见到这三项E文,通常BOOT右边的选项菜单为“SETUP”,这时按回车进入即可看到了)应该选择“FIRST”敲回车键,在出来的子菜单选择CD-ROM。再按回车键
??3.选择好启动方式后,按F10键,出现E文对话框,按“Y”键(可省略),并回车,计算机自动重启,证明更改的设置生效了。
❹ HPUX,想在开机的时候进入单用户模式,可是网上说的那些10秒中断输入bo,然后再hpux -is我没发现
第一个10秒中断是与EFI进行交互,主要用来选择引导路径
第二个10秒中断是与ISL/IPL交互,主要用来选择启动模式。
进入单用户是在第二个10秒中断,与ISL交互的时候,在
hpux>的提示菜单下输入:
hpux>hpux -is
❺ HP unix root密码过期
MP控制台中可以用在正常启动时进入ISL,在ISL中输入HPUX -is进入单用户.进了单用户后用命令#passwd root就可以重设root密码了
不想重启就没有办法了,除非你记起root的password
❻ hpux 11.23支持oracle 11gr2么
可以。安装步骤如下:
一、检查硬件需求:
1、内存:
# /usr/contrib/bin/machinfo | grep -i Memory
swap:
1GB-2GB 1.5 times the size of the RAM
2GB-16GB Equal to the size of the RAM
More than 16 GB 16 GB
查看swap大小:
# /usr/sbin/swapinfo -a
2、磁盘空间:
/tmp空间至少需要1GB:
# bdf /tmp
oracle软件所占空间:
Enterprise Edition 7.10GB
Standard Edition 6.10GB
数据文件所占空间:
Enterprise Edition 2.20GB
Standard Edition 1.51GB
二、软件需求:
1、操作系统需求:
# uname -a
检查操作系统版本,要安装oracle 11gR2,必须是HP-UX 11i V3 patch Bundle Sep/ 2008 (B.11.31.0809.326a) or higher
# /usr/sbin/swlist -l bundle |grep QPK
QPKAPPS B.11.31.1009.353a Applications Patches for HP-UX 11i v3, September 2010
QPKBASE B.11.31.1009.353a Base Quality Pack Bundle for HP-UX 11i v3, September 2010
官方文档:
The QPK (Quality Pack) bundles have version numbers of the form. B.11.31.0809.326a (for the September 2008 release), B.11.31.0903.334a (for the March 2009 release), and
so on.
If a required bundle, proct, or fileset is not installed, then you must install it. Refer to your operating system or software documentation for information about
installing procts.
2、Compiler Requirements
The following are the compiler requirements for HP-UX systems Pro*C/C++, Oracle Call Interface, Oracle C++ Call Interface, and Oracle XML Developer’s Kit (XDK) with
Oracle Database 11g Release 2 (11.2):
A.06.20 (HP C/aC++ Swlist Bundle - C.11.31.04) - Sep 2008
3、补丁需求:
补丁下载网站:http://itrc.hp.com/
For HP-UX 11i V3 (11.31):
PHCO_41479 11.31 Disk Owner Patch
PHKL_38038 VM patch - hot patching/Core file creation directory
PHKL_38938 11.31 SCSI cumulative I/O patch
PHKL_40941 Scheler patch: post wait hang
PHSS_36354 11.31 assembler patch
PHSS_37042 11.31 hppac (packed decimal)
PHSS_37959 Libcl patch for alternate stack issue fix (QXCR1000818011)
PHSS_39094 11.31 linker + fdp cumulative patch
PHSS_39100 11.31 Math Library Cumulative Patch
PHSS_39102 11.31 Integrity Unwind Library
PHSS_38141 11.31 aC++ Runtime
PHSS_39824 - 11.31 HP C/aC++ Compiler (A.06.23) patch
For HP-UX 11i V3 (11.31) VERITAS File System:
PHKL_39773: 11.31 VRTS 5.0 GARP6 VRTSvxfs Kernel Patch
检查命令:
# /usr/sbin/swlist -l patch | grep PHSS_37959
安装补丁命令:
# tar xvf hpux_11.31_08230142.tar
# sh create_depot_hpux.11.31
# swinstall -s /tmp/patches/depot
4、附加软件需求:
三、创建用户和组:
# /usr/sbin/groupadd -g 501 oinstall
# /usr/sbin/groupadd -g 502 dba
# /usr/sbin/groupadd -g 503 oper
# /usr/sbin/useradd -u 501 -m -d /home/oracle -g oinstall -G dba,oper oracle
# passwd oracle
# id oracle
四、配置内核参数:
# /usr/sbin/kcweb -F
或者
kctune -h 参数名="值"
不想一个个检查的话,可以再安装时检查的时候针对具体不合格参数进行调整
eg:kctune -h ksi_alloc_max="32768"
ksi_alloc_max 32768
executable_stack 0
max_thread_proc 1024
maxdsiz 1073741824 (1 GB)
maxdsiz_64bit 2147483648 (2 GB)
maxssiz 134217728 (128 MB)
maxssiz_64bit 1073741824 (1 GB)
maxuprc 3686
msgmni 4096
msgtql 4096
ncsize 35840
maxfiles_lim 63488
maxfiles 1024
nflocks 4096
ninode 34816
nkthread 7184
nproc 4096
semmni 4096
semmns 8192
semmnu 4092
semvmx 32767
shmmax 1073741824
shmmni 4096
shmseg 512
tcp_smallest_anon_port 9000
tcp_largest_anon_port 65500
udp_smallest_anon_port 9000
udp_largest_anon_port 65500
修改完后需要重启。
检查UDP和TCP内核参数:
# /usr/bin/ndd /dev/tcp tcp_smallest_anon_port tcp_largest_anon_port
# /usr/bin/ndd /dev/udp udp_smallest_anon_port udp_largest_anon_port
# cp /etc/rc.config.d/nddconf /etc/rc.config.d/nddconf.bak
# vi /etc/rc.config.d/nddconf
添加如下内容(按照顺序排列):
TRANSPORT_NAME[5]=tcp
NDD_NAME[5]=tcp_largest_anon_port
NDD_VALUE[5]=65500
TRANSPORT_NAME[6]=tcp
NDD_NAME[6]=tcp_smallest_anon_port
NDD_VALUE[6]=9000
TRANSPORT_NAME[7]=udp
NDD_NAME[7]=udp_largest_anon_port
NDD_VALUE[7]=65500
TRANSPORT_NAME[8]=udp
NDD_NAME[8]=udp_smallest_anon_port
NDD_VALUE[8]=9000
修改完需要重启
官方文档:
Ensure that the entries are numbered in proper order. For example, if there are three entries present for TCP ports in nddconf, then they are numbered 0 through 3:
TRANSPORT_NAME[0]=tcp, TRANSPORT_NAME[1]=tcp, and TRANSPORT_NAME[2]=tcp. The entries you add are then TRANSPORT_NAME[3]=tcp and TRANSPORT_NAME[4]=tcp.
五、创建必须的目录:
# cd /
# mkdir oraInventory
# chown oracle:oinstall oraInventory
# mkdir oracle
# chown oracle:oinstall oracle
六、配置oracle用户编辑环境变量
# vi .profile
添加如下内容:
umask 022
TMP=/tmp
TMPDIR=$TMP
ORACLE_SID=uat
ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/proct/11.2.0/dbhome_1
ORACLE_TERM=xterm
PATH=$ORACLE_HOME/bin:$PATH
NLS_LANG="simplified chinese_china.ZHS16GBK"
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/bin
export TMP TMPDIR ORACLE_SID ORACLE_BASE ORACLE_HOME ORACLE_TERM PATH NLS_LANG LD_LIBRARY_PATH
七、上传安装包,解压并安装
附:
1、主机名解析问题:
# swlist
# Initializing...
# Contacting target "zat"...
WARNING: An attempt to get the network host entry for "zat" failed.
This may result in denial of access to users and agents at
this host. Check the spelling of this name, then your
"/etc/hosts" file, or your "/etc/resolv.conf" file and DNS
resolver configuration. The nslookup program may be helpful
in isolating this problem.
ERROR: Internal error. Security check failed unexpectedly. This
error occurred in function "idam_LocateLocalFile", source file
"id.c", line 4765. Please give this information to your
Hewlett-Packard support contact.
ERROR: "zat:/": You do not have permission for this operation.
The depot owner, system administrator, or alternate root owner
may need to use the "swreg" or "swacl" command to give you
permission. Or, to manage applications designed and packaged
for nonprivileged mode, see the "run_as_superuser" option in
the "sd" man page.
这样的错误解决办法是
1)ping `hostname`
是否能解析出本机IP
2)cat /etc/resolv.conf
如果配置了 nameserver
将 nameserver 以#注释掉
3)cat /etc/nsswitch.conf
是否配置解析顺序。
正确的解析 顺序是 host: files dns (这个和linux 里的host.conf 有不一样)
先找hosts文件,然后再用DNS (根据个人配置)
2、逻辑卷管理:
pvcreate -f /dev/rdisk/disk4
pvcreate -f /dev/rdisk/disk6
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate -l 255 -s 32 -p 100 /dev/vg01 /dev/disk/disk4 /dev/disk/disk6
lvcreate -L 51200 -n lvwork /dev/vg01
newfs -F vxfs /dev/vg01/rlvwork
cd /
mkdir work
vi /etc/fstab
/dev/vg01/lvwork /work vxfs delaylog 0 2
❼ hpux 怎么查看某个进程 内存使
1. 在系统维护的过程中,随时可能有需要查看 CPU 使用率,并根据相应信息分析系统状况的需要。在 CentOS 中,可以通过 top 命令来查看 CPU 使用状况。运行 top 命令后,CPU 使用状态会以全屏的方式显示,并且会处在对话的模式 -- 用基于 top 的命令,可以控制显示方式等等。退出 top 的命令为 q (在 top 运行中敲 q 键一次)。
top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器,可以直接使用top命令后,查看%MEM的内容。可以选择按进程查看或者按用户查看,如想查看oracle用户的进程内存使用情况的话可以使用如下的命令:
$ top -u oracle
2. 释义:
PID:进程的ID
USER:进程所有者
PR:进程的优先级别,越小越优先被执行
NInice:值
VIRT:进程占用的虚拟内存
RES:进程占用的物理内存
SHR:进程使用的共享内存
S:进程的状态。S表示休眠,R表示正在运行,Z表示僵死状态,N表示该进程优先值为负数
%CPU:进程占用CPU的使用率
%MEM:进程使用的物理内存和总内存的百分比
TIME+:该进程启动后占用的总的CPU时间,即占用CPU使用时间的累加值。
COMMAND:进程启动命令名称
❽ HPUX如何关闭telnet服务,求解
在/etc下建立一个securetty文件,里面输入console
❾ hpux df命令
关于linux系统命令您可以直接咨询。suse linux支持电话:8008106500;01065339000红旗Linux公司联系方式: 800-810-8362/400-650-8362 010-65391027 也可以参考下面的链接 http://www.xitongjia.net/xtjc/20141226/33580.html 您可以关注【惠普服务】微信公众平台,获得更多售前售后一体化服务。
❿ hpux怎么重启X server
Shutdown -r