Some Commands in HP-UX

xiaoxiao2021-03-06  52

Some Commands Related To The Installation of Oracle ON HP-UX1. For 10g RAC ON HP-UX, 512 MB of Physical Ram is Required. To Check The Ram Size, Use: # / usr / sbin / dmesg | GREP "Physical:"

2. 1Gb or 2ce the size of ram is needed as swap space. To check swap information, us: # / usr / sbin / swapinfo -a

3. AT Least 400M of TMP Space is needed. To check tmp space, use: # bdf / tmp

4. To Check The Disk Free Space, Use: # bdf

5. To DETERMINE WHETHER THE SYSTEM ARCHITECTURE CAN Run The Software, Enter the Command: # / bin / getconf kernel_bitsthe expected output is the value 64.

6. To Check The Version of HP-UX, Use: # uname -a

7. To DETERMINE IF A Package Is Installed, Use: # / usr / sbin / swlist -l level | morewhere level is the package name.

8. To DETERMINE WHETHER An Oracle Software Owner EXISTS, USE: # id Oraclein All Nodes, User Name and ID for Oracle Software Must Be The Same.

9. To create the Oracle User, Enter a commist similar to the folload: # / usr / sbin / useradd -u 200 -g oinstall -g dba [, Oper] Oraclewhere -g Specifies Primary Group -g Specifies Secondary Group -u Specifies The User ID

10. Create Group, Use: # / usr / sbin / groupadd -g 200 oinstallwhere -g specifies the group id, to change a group, use "groupmod"

11. To Define User Equivalence for Each Node, ON All The Nodes, Modify The File named /etc/hosts.equiv add in Following Entries:

Node1-public oraclenode1-public.domain oraclenode2-public oraclenode2-public.domain Oracle

Where: noden_public is the host name associated with the primary public network interface domain is the domain name of the system, for example method d.com

12. To test user equivalence on all nodes use:. # Su oracle $ remsh nodename1 date $ remsh nodename2 date $ exitFor each "remsh nodename1 date" command, if it prompts for a password or displays any other information, it means... The user equivalence is not setup correrm.

File named .rhosts in ~ Oracle Can Also Achieve this.

13. Grant privileges to group.a edit / etc / privgroup, add dba MLOCK RTPRIO RTSCHED b to grant privilege to OSDBA group, use:... # / Usr / sbin / setprivgrp -f / etc / privgroupc to verify the privilege granted Uses: # / usr / sbin / getprivgrp dba

14. To Identify EXISTING ORACLE HOEM, USE: # more / etc / oracab

15. To check WHETHER AN ASM HOME IS ALREADY INSTALED, USE: # more / etc / oatabthere must be " asm: oracle_home_path: n" if thee's an existing asm Home

16. Get information of each disk attached to the system # / usr / sbin / ioscan -fun -C diskIf this command does not display device name information, enter the following command to install the special device files: # / usr / sbin / insf -EFOR Each Disk Group, Enter the Following Command To Verify That IT ITOTY ALREADY Part of An LVM Volume Group: # / sbin / pvdisplay / dev / dsk / cxtydz

Network requirement of RAC on HP-UX1. 2 NICs for each node, one for public ip and the other for private interconnection.2. The interface name of each NIC for each network must be the same. Eg, public network nic must has the same name for all nodes.3. Each NIC for public network must support TCP / IP4. an ip address and an associated host name registered in DNS for each public NIC.5. One unused virtual IP address and virtual host name register in DNS that 'll be used for publich nic.6. Virtual public ip address must be in The Same Sub-network as The public network.to Identify The Interface Name and Associated IP Address, Use: # / usr / bin / netstat -in

转载请注明原文地址:https://www.9cbs.com/read-117999.html

New Post(0)