① 如何修改HP UX 用户密码,生手,希望能详细点;修改后要不要重启系统。
普通用户只能修改自己的密码,root用户可以修改一切用户密码。修改后直接下次登录就生效,不需要重启机器。
方法:#passwd 用户名
输入密码即可完成更改。
② HP unix root密码过期
摘要 HP unix 修改root密码及重置密码 设置用户密码期限
③ HPUX,想在开机的时候进入单用户模式,可是网上说的那些10秒中断输入bo,然后再hpux -is我没发现
第一个10秒中断是与EFI进行交互,主要用来选择引导路径
第二个10秒中断是与ISL/IPL交互,主要用来选择启动模式。
进入单用户是在第二个10秒中断,与ISL交互的时候,在
hpux>的提示菜单下输入:
hpux>hpux -is
④ 虚拟机linux与主机WINDOWS文件共享如何实现
简单!!!
首先你的确定VMTools安装好没有。如果没有安装,在VMWare工具栏下:
setting->vmware tools install
然后切换到linux里面。在终端里:mount /dev/cdrom /mnt/cdrom
解压vmware tools的tar包,解开执行vmware-tools-install.pl脚本(命令:.\vmware-tools-install.pl)。
再者,要安装samba哦。一般如果你选择的全部安装都自动安装上了。
在windows下边共享要共享的文件夹。例如文件夹叫:sharefiles
然后在linux终端:
smbmount //172.18.79.222/shareFiles /mnt -o username=user%password(用这个命令要安samba哦) 172.18.79.222和是我的主机IP。换成你的就OK。 user和password都是windows的啊。
如果安装好了,其实不需要共享可以直接从windows下面复制文件或文件夹到VM的linux里面。
⑤ hpux 磁带备份怎么恢复默认磁带
HP工程师过来装完了系统,后来按照 Prims 系统服务器的标准,发现分区的a大小不符合标准,装系统的时候没有那份标准文档,最要紧的是 / 根分区的大小都不对,只能重装系统,但是里面有很多配置,还挂了很多个 emc 存储的磁盘,是 emc 供应商过来配的,本人不会,只能想个办法不改变配置又要更改分区。 最后想到个办法,先用磁带机备份系统到磁带,然后恢复时可以改分区,又可以不更改配置。 1.在系统中安装 Ignite 软件,该软件可在HP提供的光盘中找到,装完后用 swlist 命令查看到的信息如下,不同版本的 HP-UX 显示可能不同: Ignite-UX-11-11 C.6.2.241 HP-UX Installation Utilities for Installing 11.11 Systems 2.通过 SCSI 口接上磁带机,接外设时最好要关机进行。 3.放入磁带,注意磁带机发现磁带后,要把磁带 load 上去,否则备份时系统可以找到磁带机,但是找不到磁带,会报错,Fail to open tape device /dev/rmt/0mn/ . No such device or address,ckeck tape device failure. 4.改内核参数,否则系统不能找到磁带机 进 SAM-->Kernel Configuration-->Drivers-->找到 stape 项,把它的状态改为in,Action-->Add driver to kernel. 同时也要把 schgr 项状态也改为 in. 重新编译内核后重启。 5.重启完成后,用 ioscan 命令扫描磁带机 # ioscan -fnCtape 记住磁带机的 hard path ,恢复系统时要用到。 6.备份系统 # make_tape_recovery -Av -A 指定备份整个 Root disk / Volume Group -v 显示备份过程的提示信息 开始备份系统,纯系统备份大约需要半个小时的时间。 7.恢复系统 重启系统,中断 Boot 进程,进入十秒中断,不要进单用户。 运行 sea(rch) 命令,找到刚才记录的磁带机的 hardware path bo(ot) PX (X为磁带机对应的号码) 中断磁带机的 Boot 进程,不选取 non-interactive 选择 [Install HP-UX ] --> [Advanced Installation] 就可以重新配置磁盘分区了,还可以配置 disks, file systems, hostname, IP address, timezone, root password. 配置完成后,就可以开始安装系统了,纯系统大约需要半个小时的时间。
⑥ 请教HPUX安装问题
HPux安装过程 HP-UX 11.0 操作系统安装(详细安装)
安装所需的介质和资料:HP-UX 11.0 Core OS Install/Update/Recovery 光盘(1 张)HP-UX 11.0 Support Plus 光盘(1 张)HP-UX 11.0 Application Software 光盘(5 并且在确保各个外设(磁带机.磁盘阵列等)加电后,然后再开机。
2.在屏幕上将看到:"Processor bootingfrom fist availiable deviceTo discontinue.press any keuy within 10 seconds"在10 秒之内按任意键,之后屏幕将显示一9 个命令集画面: Main Menu CommandDescriptionBoot[PRI|ALT|] Boot from specified path……………………… ………………………MainMenu Entercommand
3.将HP-UX11.0CoreOSInstall/Update/Recovery放入光驱或DVD,
4.键入命令SEA,系统会查询硬件设备的物理路径:Main menu :Enter command >sea(例如) Path Number Device path Device TypeP0 8/4.5 Random access mediaP1 8/4.9 Random access mediaP2
5.根据'devicepath 如:8/4.5'与机器前门内标注(D250)确定光驱或 DVD 的路径,假设为 P1 8/4.9 键入命令bo p1 回车:Main Menu:Enter command>bo p1 注意::接下来可 能出现屏幕乱码现象,解决方法:按User System 键,屏幕底出现8 个小亮块,最右边一块为 TERMINALCONFIGURATIONJIEMIAN 界面,将TERM MODE 项的值改为 EM100),然后按 F1,保存 设置
7.系统要求选择安装方式:Welcome HP-UXinstallation/recovery process!Use key navigatebetween fields,and arrowkeys Within fields.Use item.Use orto pop-up choiceslist.If theMenus "Help"item moreinformation.[Install HP-UX ][Run RecoveryShell][Advance Options ]选择[Install HP-UX],回车继续
8.屏幕出现: User Interface MediaOptionslllllllllSource Location Options: Mediaonly installation Networkenabled(allows use SDdepots) Idnite-UXserver based installationUser Interface Option: [*]Guided Installation (recommand basicinstalls) ]AdvancedInstallation 选择[*]Media only installation 和[*]Advanced Installation 两项,[*] 为选中状态,然后OK. BasicSoftware System File system AdvancedConfigrations:[ Description…]Environments:[……………………………………....][HP-UX B.11.00][Root Disk….]……………………………………………………………File System :[Logical Volume Manager VxFS][Root Swap(MB)] PhysicalMemory (RAM) [Languages…….]……[Keyboards…] [Additional….]对于 Basic 中的内容不要做任何修改, 保留默认值。
9.选中File System,显示如下(表中数据只是为例,有的数据被省略)Basic Software System File system AdvancedMount Dir Usages Size(MB) usedVG Name/stand HFS 84 24 vg00 [Add]Primary SWAP+D VGname: MountDir :………..Size: [Fixed MB Avail:------[Add/Remove Disks…] [---Additional Task---] TypeFilesystem kbytes used avail %used Mounted hfs/dev/vg00/lvol1 199381/200M 29440 150002 16% /stand /dev/vg00/lvol2199381/2048M vxfs/dev/vg00/lvol3 258048/252M 152942 98537 61% vxfs/dev/vg00/lvol4 1048576/1024M 1357 981768 0% /home vxfs /dev/vg00/lvol5 1048576/1024M 309329 693045 31% /opt vxfs /dev/vg00/lvol6 512000/500M 1449 478642 0% /tmp vxfs /dev/vg00/lvol7 1048576/1024M 530219 485960 52% /usr vxfs /dev/vg00/lvol8 2097152/2048M 397013 1593881 20% /var vxfs /dev/vg00/lvol9 2097152/2048M 1776350 300752 86% /sybase 根据要求设置 各文件系统的大小与下表一致:Mount Dir L2000(MB) UsagePrimary swap xxx Swap+D/ xxx VxFS/stand xxx HFS/var xxx VxFS/usr xxx VxFS/Tmp xxx VxFS/Opt xxx VxFS/home xxx VxFS 如果屏幕上的各个文件系统的缺省值与用户要求不一样,要进行修改, 每次修改之 后要按Modify 项确认,以便保留设置。设置完毕,GO,继续下一步。
10.接着系统会提示被安装的硬盘上的原有数据将被破坏,选GO,继续。 11.这时候系统文件的安装开始,屏幕显示,Loading configuration utilitys……..*Starting system configuration…….*…………………………………..………………………………………整个 过程包括710 个文件的安装,需要较长时间(大约2 小时),请耐心等待,最后系统自动重 启两次,显示大大的OK 字样,提示安装成功。
12.重启后,,系统要求配置网络 youready network?Press[y]for yes press[Return]键入y,回车
13 .系统询问是否使用 DHCP :Do you wish useDHCP obtainnetworking information ?Press press[Return]键入n,回车
14.系统询问是否继续下面的主机名。Ip 地址。时间的配置:*Your system name (host name)*Your internet protocol (IP0 address.*Your time zoneAre you wish continue(answering press[Return]键入y,回车
15.接着下一个画面底下两行将显示:Enter systemname press[Return].Just pressing [Return]will keep recommended)name"unhost": root 在光标处输入你想要的系统名, 例如root 然后回车然后系统询问是否正确:You have chosen root press[Return]键入y,回车 16.屏幕要求你选择你所在的位置:1) North America Hawaii2)Central America3) South America4) Europe5) Africa6) Asia7) Australia,New Zealand Enter yourlocation (1-70then press [return]键入6,选择Asia ,然后回车
17.接下来要求选择时间:Select your time zone from followinglist: 1)Western Russia 6)Phillipines,hongkong,Eastern China ,Taiwan 2)India 7)Japan 3)Pakistan 8)Korea 9)Thailand 9)Unliste timezone 5)Singapore 10)Previous menuEnter yourtiiiiiime zone(1-10),then press [Return]键入6,回车继续系统会询问选择是否正确:Is correct?Press press[Return]键入y,回车
18.屏幕显示:The current system time press[Return]看系统的时间是否正确,如果不需要修改,键入y,回车
19.系统询问是否想设root 的密码:Do you want rootpassword press[Return]键入y,回车,系统提示输入新密码,键入密码,回车 继续
20.系统要求输入IP 地址:Enter your IP address,then press [Return]or just press [Return] selectDefaultaddress:输入IP 地址,回车,屏幕出现:You have chosen------as IPaddress correct?Press press[Return]如果觉得输入的IP 没有错误,键入y,回车确认。 21.屏幕出现:You may configure some additional network parameters time:*Subnetwork Mask DefaultGateway*Domain Name System(DNS)*Network Information Service(NIS)Do want additionalnetwork parameters?Press press[Return]键入y,回车
22.接下来系统问是否要设置子网掩码和网关:*Subnetwork mask*Default gateway IP addressDo you wish information?Press press[Return] 键入y,回车
23.屏幕底行出现:The subnetwork mask shown above systemdefault value possiblyshould newsubnetwork mask,then press [Return]or just prss [Return] defaultvalue above:输入你要的子网掩码,回车
24.接着系统要求输入网关:Enter gatewayIP address,then press [Return]输入网关,回车
25.系统询问刚才的输入是否正确:Are parametersabove correct?Press press[Return]确认无误,键入y,回车之后,系统显示:Are you continue ?确认继续后,回车。
26.系统询问是否进行DNS设置:To configure DNS you :*Localdomain name*DNS server IP addressDo you wish information?Press press[Return]键入n,回车。
27.系统询问是否设置NIS:Do you wish specifyNIS client information ?Press press[Return]键入n,回车。 28.在屏幕出现Press [Return] continue……时,回车继续。 29.接着又出现Press [Return] continue……时,回车继续
30.这时候屏幕出现进程检测状态,然后用户便可登录系统了,安装结束。
⑦ HP-UX系统怎么设置普通用户的密码策略密码过期时间为90天,提前30天提醒。急用
开始菜单里—》运行(输入gpedit.msc)-》组策略{计算机配置->windows设置->安全设置->本地策略->安全选项->第21条选项}-》交互式登陆:在密码到期前提示用户更改密码-(右键)属性->更改为你想要提前通知的几天 这是XP版组策略设置,如是03域策略就由开始菜单里进入域安全策略! 希望GG你能看懂! o o...
⑧ HPUX怎样添加新的磁盘
在HPUX 下正确使用硬盘的顺序及相应命令如下:
1. 先建物理卷
# pvcreate -f /dev/rdsk/cCdDtT
这里必须使用硬盘的字符设备文件
2. 再建逻辑卷组
# mkdir /dev/vg0X
X:0~f,逻辑卷组名
# mknod /dev/vg0X/group c 64 0x0X0000
# vgcreate vg0X /dev/dsk/cCdDtT
# vgcreate –s 8 vg0X /dev/dsk/cCdDtT(对于大于256G的硬盘)
# vgcreate –s 8 vg0X /dev/dsk/cCdDtT /dev/dsk/c
3. 然后划分逻辑卷
# lvcreate -L size –n /dev/vg0X/lvolY vg0X
size:该逻辑卷大小
4. 在LV 上建文件系统
# newfs -F file_system_type /dev/vg0X/rlvolY
file_system_type:文件系统类型,包括hfs 和vxfs,注意此时用该逻辑卷的字
符设备文件。
5. 将此文件系统Mount 到一个目录下
# mkdir /directory
# mount /dev/vg0X/lvolY /directory
⑨ HP unix root密码过期
咨询记录 · 回答于2021-02-06
⑩ 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