BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: HP HP-UX¿¡ °³¶óŬÀνºÅç[2] Á¶È¸¼ö: 7881


Oracle version : 9.2.0
Platform : HP-UX

===========================================================================================
1. O/S Information
===========================================================================================

O/S version
# uname -a
//11.0, 11.11(11i) (32bit/64bit)
11.0 (64bit), 11.11 (64bit), 11.22 (IA64 - Itanium)

CPU
# psrinfo -v

Kernel Bits
# getconf KERNEL_BITS

Memory : 512Mb ÀÌ»ó
# dmesg | grep -i mem

Swap : ¸Þ¸ð¸®¿Í °°°Å³ª 1Gb ÀÌ»ó
# swapinfo -q

/tmp : 400Mb ÀÌ»ó
# bdf

Disk Space : full optionÀÏ °æ¿ì oracle s/w°¡ ¼³Ä¡µÉ µð·ºÅ丮¿¡ 4.5G ÇÊ¿ä
# bdf

¡Ø /usr/dt/bin/rpc.ttdbserver

O/S Patches
HP OS 64bit·Î Install ½Ã¿¡ default·Î Çß´Ù¸é Bug°¡ ÀÖÀ½
(Doc ID: KBRC00003627) X library symbolic links°¡ Á¦´ë·Î »ý¼ºµÇÁö ¾ÊÀ½

Oracle S/W link ½Ã¿¡ make.log ÆÄÀÏ¿¡ ´ÙÀ½°ú °°Àº ¿¡·¯¸Þ½ÃÁö°¡ ¹ß»ýÇÏ´Â °æ¿ì°¡ ÀÖ´Ù.

" /usr/ccs/bin/ld : Can't find library for -lXm *** Error exit code 1 "
" /usr/ccs/bin/ld : Can't find library for -lXt *** Error exit code 1 "
" /usr/ccs/bin/ld : Can't find library for -lX11 *** Error exit code 1 "

/usr/lib µð·ºÅ丮·Î °¡¼­ À§ÀÇ Xm, Xt, X11 °°Àº argument¸¦ °¡Áö°í ÀÖ´Â ÆÄÀÏÀ» ã´Â´Ù.
ex) ls -al *Xm* ....
ÇØ´ç ÆÄÀÏ Áß¿¡¼­ °¡Àå ³ôÀº ¹øÈ£ÀÇ È®ÀåÀÚ¸¦ °¡Áö´Â fileÀ» .sl ÆÄÀÏ·Î link ½ÃÄÑÁÖ¸é µÈ´Ù.

ln -s /usr/lib/libX11.3 libX11.sl
ln -s /usr/lib/libXIE.2 libXIE.sl
ln -s /usr/lib/libXext.3 libXext.sl
ln -s /usr/lib/libXhp11.3 libXhp11.sl
ln -s /usr/lib/libXi.3 libXi.sl
ln -s /usr/lib/libXm.4 libXm.sl
ln -s /usr/lib/libXp.2 libXp.sl
ln -s /usr/lib/libXt.3 libXt.sl
ln -s /usr/lib/libXtst.2 libXtst.sl

# /usr/sbin/swlist -l fileset | grep -i
11.0(64 bit) patches:
PHCO_23792 s/b PHCO_26960
PHCO_24148 s/b PHCO_25707 s/b PHCO_27608
PHKL_24268 s/b PHKL_27178
PHKL_24729
PHKL_25475 s/b PHKL_27510
PHKL_25525 s/b PHKL_27364
PHNE_24715 s/b PHNE_26771
PHSS_23670 s/b PHSS_26138
PHSS_24301 s/b PHSS_26273
PHSS_24303 s/b PHSS_26559
PHSS_24627
PHSS_22868
-----------------------------------------
11i(64 bit) patches:
PHNE_27114
PHNE_26388
PHNE_23502
PHKL_25506
PHSS_26263
PHSS_24638
PHSS_26674
PHSS_23441
PHSS_26946
PHSS_26560
PHCO_27740
PHCO_24402
PHCO_23094
PHCO_23772
-----------------------------------------
11.22(IA64) patches:
PHSS_27284
PHSS_27285
PHSS_27286
PHSS_27287
PHSS_27288
PHSS_27289
PHSS_27290
PHSS_27291
PHSS_27292
PHSS_27293
PHKL_28465

Kernel Parameter
# SAM or /etc/sysdef or /usr/sbin/kmtune
KSI_ALLOC_MAX (NPROC*8)
MAX_THREAD_PROC 256
MAXDSIZ 1073741824 bytes
MAXDSIZ_64BIT 2147483648 bytes
MAXSSIZ 134217728 bytes
MAXSSIZ_64BIT 1073741824
MAXSWAPCHUNKS 16384
MAXUPRC ((NPROC*9)/10)
MSGMAP (MSGTQL+2)
MSGMNI NPROC
MSGSEG 32767
MSGTQL NPROC
NCALLOUT (NKTHREAD+16)
NCSIZE ((8*NPROC+2048)+VX_NCSIZE)
NFILE (15*NPROC+2048)
NFLOCKS 4096
NINODE (8*NPROC+2048)
NKTHREAD (((NPROC*7)/4)+16)
NPROC 4096
SEMMAP (SEMMNI+2)
SEMMNI 4096
SEMMNS (SEMMNI*2)
SEMMNU (NPROC - 4)
SEMVMX 32768
SHMMAX AvailMem
SHMMIN 1
SHMMNI 512
SHMSEG 32
VPS_CEILING 64

# vi /stand/system

===========================================================================================
. User, Directory Creation
===========================================================================================

O/S ±×·ì ¹× À¯Àú »ý¼º
# vi /etc/group
groupname::gid:username1, username2, ...
ex) dba::300:oracle Ãß°¡
# vi /etc/passwd
username:x:uid:gid:description:directory:shell
ex) oracle:x:500:300:Oracle Admin:/u01/app/oracle/product/9.2.0:/bin/ksh Ãß°¡
(cshÀÏ °æ¿ì /bin/csh)

µð·ºÅ丮 »ý¼º
# mkdir -p /u01/app/oracle/product/9.2.0
# chown -R oracle:dba u01

===========================================================================================
. Mount
===========================================================================================

# ioscan -fun -C disk

disk 1 0/0/1/1.15.0 sdisk CLAIMED DEVICE SEAGATE ST39204LC
/dev/dsk/c1t15d0 /dev/rdsk/c1t15d0
disk 1 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-
ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
# mkdir /cdrom
# chmod 777 /cdrom
# ps -ef | grep rpc·Î È®ÀÎÈÄ ¾øÀ¸¸é
/usr/sbin/rpc.lockd ------------|
/usr/sbin/rpc.statd |==> ÀÌ ¼¼°³´Â ÀÖ´ÂÁö È®Àθ¸ ÇÒ°Í!
/usr/sbin/nfsd & ------------|

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
ÇÑÈÄ¿¡ ´Ù½Ã ps -ef|grep rpc·Î ÇÁ·Î¼¼½º°¡ Á¤»óÀûÀ¸·Î ¶°ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.

# ps -ef | grep rpc

/usr/sbin/rpcbind
/opt/dce/sbin/rpcd
/usr/sbin/rpc.statd
/usr/sbin/rpc.lockd
/usr/sbin/rpc.mountd ==> ¾ø¾îµµ µÊ.
pfsd.rpc
pfs_mountd.rpc

# pfs_mount -o xlat=unix /dev/rdsk/c3t2d0 /cdrom
# pfs_umount /cdrom


% 9204 ÆÐÄ¡ - cpio -idcmv < ÆÄÀϸí

===========================================================================================
. JDK & JRE
===========================================================================================

JDK 1.3.1.02 => Apache¿¡¼­ »ç¿ë, Apache¸¦ »ç¿ëÇÏÁö ¾Ê´Â´ÙÇصµ ²À ¼³Ä¡°¡ µÇÀÖ¾î¾ß ÇÔ
JRE 1.1.8.06
/usr µð·ºÅ丮 ¾Æ·¡ java1.x È®ÀÎ

===========================================================================================
. Xwindow
===========================================================================================

# xhost +
access control disabled, clients can connect from any host
$ xclock
GUIÇÁ·Î±×·¥ÀÌ Àß ÀÛµ¿ÇÏ´ÂÁö È®ÀÎ (.profile¿¡ /usr/openwin/bin Ãß°¡ÇØÁà¾ß ÇÔ)

===========================================================================================
. .profile or .cshrc
===========================================================================================

kshÀÏ °æ¿ì

$ vi .profile
umask 022
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=SSAMMAI
export NLS_LANG=American_America.KO16KSC5601
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export PATH=/bin:/usr/bin:/usr/sbin:/etc:/opt/bin:/usr/ccs/bin:/usr/local/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib
export SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export ORACLE_TERM=vt100
export EDITOR=vi
export DISPLAY=172.22.13.208:0.0
stty erase ^H
PS1=`hostname`:'$PWD] '


$ . ./.profile or Àç·Î±×ÀÎ

cshÀÏ °æ¿ì

$ vi .cshrc
umask 022
stty erase ^H
set path=(/bin /usr/bin /usr/sbin /usr/ucb /usr/ccs/bin /etc .)
#
#------------------ General Setup ------------------------------------------------
#
setenv LANG ko
set path=(/opt/SUNWspro/bin /bin /usr/bin /usr/ucb /usr/contrib/bin)
set path=($path /usr/local/bin /sbin /usr/sbin /usr/ccs/bin)
set path=($path /etc /usr/etc /opt/bin .)
setenv LD_LIBRARY_PATH /usr/ucb:/usr/ucblib
setenv LD_INCLUDE_PATH /usr/include
setenv MANPATH /usr/man
#
#------------------ Oracle Setup -------------------------------------------------
#
setenv TMPDIR /tmp
setenv ORACLE_HOME /u01/app/oracle/product/9.2.0
setenv ORACLE_SID SSAMMAI
setenv ORACLE_TERM vt100
setenv NLS_LANG American_America.KO16KSC5601
setenv TNS_ADMIN $ORACLE_HOME/network/admin
setenv ORA_CLIENT_LIB shared
setenv EPC_DISABLED TRUE
setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
set path=($ORACLE_HOME/bin $path .)
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:$ORACLE_HOME/network/lib:$LD_LIBRARY_PATH
setenv SHLIB_PATH $ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
setenv DISPLAY DBSE:0.0

$ source .cshrc

===========================================================================================
. runInstaller
===========================================================================================

$ /cdrom/runInstaller &
......
$ su root
# sh oraInstRoot.sh
/etc/oraInst.loc È®ÀÎ
......
# sh root.sh
/etc/oratab È®ÀÎ

===========================================================================================
. SQL*Net
===========================================================================================

listener.ora ³»¿ë È®ÀÎ

LISTENER =
(DESCRIPTION_LIST =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.22.13.202)(PORT = 1521))
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = SSAMMAI)
(ORACLE_HOME = /u01/app/oracle/product/9.2.0)
(SID_NAME = SSAMMAI)
)
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/9.2.0)
(PROGRAM = extproc)
)
)


tnsnames.ora ³»¿ë È®ÀÎ

FASTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =172.22.13.202)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = SSAMMAI)
)
)

===========================================================================================
. Database
===========================================================================================

shell script·Î ÀúÀåÇÏ¿© ½ÇÇàÇϰųª dbca »óÅ¿¡¼­ »ý¼º

===========================================================================================
. User Creation
===========================================================================================

$ sqlplus '/as sysdba'

SQL> create user scott identified by tiger
2 default tablespace users
3 temporary tablespace temp;

SQL> grant connect, resource to scott;
SQL> exit

$ splplus scott/tiger@fastest Á¢¼Ó È®ÀÎ

SQL> @ ?/sqlplus/demo/demobld.sql

===========================================================================================
. Pro*C test
===========================================================================================

C compiler ¼³Ä¡ È®ÀÎ ÈÄ (HP ANSI C compiler Release A.11.01.20 ÀÌ»ó, HP aC++ A03.25.ÇÊ¿ä)
$ORACLE_HOME/precomp/demo/proc·Î À̵¿ ÈÄ
$ make -f demo_proc.mk sample1
$ ./sample

===========================================================================================
. JDK ¼³Ä¡ ¹æ¹ý
===========================================================================================

sdkXXX.depot ´Ù¿î·Îµå ( ÆÄÀÏÅ©±â : 33M )

installation instructions

If you download the software from the website, you need approximately 60MB of disk space
to download the .depot file. To install the software from the .depot file,
you need an additional 100MB disk space.
After installing the software, you can remove the .depot file.
The HP-UX SDK, for the Java 2 Platform installs under /opt/java1.3.
As root user, use the SD-UX swinstall command to install the software:

/usr/sbin/swinstall

It will lead you through the installation.
Change Source Depot Type to "Local Directory" and Source Depot Path to /tmp/<filename>.
(If you used a directory other than /tmp in the previous step,
replace /tmp with that directory name.)
We recommend you select the "Reinstall filesets" and unselect the "Mount filesystems" option
from the options menu.

WARNING: Do not unarchive rt.jar, il8n.jar, jpda.jar, and tools.jar.
These files are needed by the SDK tools and the runtime environment.

Add the directory /opt/java1.3/bin to your PATH.

For information on setting important system parameters required for correct execution
of Java programs go to the programmer's guide which can be found at

http://www.hp.com/go/JAVA, by selecting this product and then selecting information library.

file structure

The diagram below displays an abbreviated form of the file structure:

java1.3
|
___|_____________________________________________________
| | | | | |
bin lib jre src.jar demo include
| | |
java tools.jar |
javac dt.jar |
javadoc ir.idl |
javah orb.idl |
javap |
jdb |
|_____________
| |
bin lib
| |
__________________|_____________|_____________________________________
| | | | | | | | |
java PA_RISC PA_RISC2 IA64 rt.jar security PA_RISC PA_RISC2.0 IA64
___|___ ___|_______|__ il8n.jar _____|__ __|_____ ___|_____
| | | | | | | | |
native native native classic HS* classic HS* classic HS*
threads threads threads
| | |
java java java

H* = hotspot

The tools install under opt/java1.3/bin and the libraries install under opt/java1.3/lib.
The tools.jar file contains the classes for supporting the tools and utilities.
The file dt.jar contains the DesignTime archive of BeanInfo files.
The jre directory includes the runtime environment.
The file rt.jar contains the runtime classes for the core API.
The file il8n.jar contains the internationalization and localization classes and files.
The security directory contains security management files.
The PA_RISC and PA_RISC2 directories contain the shared libraries used by the HP-UX platform.
The file src.jar contains an archive of source files for the core API for informational
purposes. To view the files, enter the command

$ jar xvf src.jar.
The include directory contains the header files for supporting JNI and JVMDI.

Bookmark Fixed font Go to End

Doc ID: Note:109621.1
Subject: HP-UX: LD_LIBRARY_PATH and SHLIB_PATH
Type: BULLETIN
Status: PUBLISHED
Content Type: TEXT/PLAIN
Creation Date: 22-MAY-2000
Last Revision Date: 24-FEB-2003

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2005/12/05 17:19 from 218.38.148.205

  ¿À¶óŬ Datafile º¹±¸ ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ HP-UX¿¡ °³¶óŬÀνºÅç  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡