oracle 9i Linux ϰ²×°Ê±³öÏÖ ÎÞ·¨½¨Á¢inventoryĿ¼£¬Äã¿ÉÄÜûÓÐÏàӦȨÏÞ£¬Çë¸ßÊÖ°ïæ
ÎÒÏÂoracle ÍøÕ¾ÏµÄoracle9204 for linux ÔÚ×Ô¼ºµÄ»úÆ÷(linux 13.8 fc1)Éϰ²×°µ½Ôö¼ÓÓû§×éµã»÷ÏÂÒ»²½Ê±³öÏÖ¡°·¨½¨Á¢inventoryĿ¼£¬Äã¿ÉÄÜûÓÐÏàӦȨÏÞ¡±µÄÌáʾ£¬²»¹ÜÄãÌî²»Ìî×éÃû(oinstall)²»ÄÜÕý³£°²×°ÏÂÈ¥£¬ÎÒ×Ô¼º×î½üÔÚÍøÉÏÕÒÁËÒ»ÏÂÎÄÕ£¬Ëµ¿ÉÒÔÄܹýÒÔrootÓû§À´Ö´ÐÐ/tmp/orainstRoot.sh£¬µ«ÎÒÖ´ÐÐʱ su - root /tmp/orainstRoot.shÈ´Ìáʾ"bash: /tmp/orainstRoot.sh: ûÓÐÄǸöÎļþ»òĿ¼"£¬»¹ÊDz»ÄܼÌÐø°²×°!ÎÒ¸ÃÔõô°ìÄØ£¿ÎÒÒѾ½¨ÁËoracleµÄ×éºÍÓû§£¬ÓÃoracleÓû§µÇ¼£¬Ö´Ðа²×°£¬²¿·ÖÃüÁîÈçÏÂ1.
su - root
groupadd dba # group of users to be granted with SYSDBA system privilege
groupadd oinstall # group owner of Oracle files
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle
2.
su - root
mkdir /temp
chown root.root /temp
chmod 1777 /temp
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
su - root
mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.2.0
chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle
3.ÒÔÏÂÊÇÎҵIJ¿·Ö.bash_profileÎļþ
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and
# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1
export LC_ALL="zh_CN"
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
#export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
#×Ô¼º×¢ÊÍ£¬ÒòΪҪÓÃÖÐÎÄexport NLS_LANG=AMERICAN;
#export NLS_LANG=AMERICAN
export NLS_LANG=american_america.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
CLASSPATH=$Oracle_HOME/JRE:$Oracle_HOME/jlib:$Oracle_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$Oracle_HOME/network/jlib
export PATH CLASSPATH
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
ÇëoracleºÍLinux¸ßÊÖÃǰïæ?ÔÚÏߵȣ¡Ð»Ð»£¡
ÌáʾºóÎÒÁí¿ªÒ»¸öÖÕ¶ËÔÙ
su - root
/tmp/orainstRoot.sh
Ìáʾ
bash: /tmp/orainstRoot.sh: ûÓÐÄǸöÎļþ»òĿ¼
ΪʲôÎÒµÄoracle°²×°Ã»ÓвúÉú: /tmp/orainstRoot.shÎļþ
ÎÒÔÙÊÔ×ÅÖ´ÐÐ/temp/orainstRoot.shÒ²ÊÇÒ»ÑùµÄ£¬ÒÔϸ¶ÉÏͼƬ,ÎÒ´ò¿ª´°¿Ú¿´/tmp /tempȷʵûÓÐÕÒµ½ÄǸöÎļþ£¬°¦£¬Õ⼸ÌìÔÚÍøÉÏÕÒÁ˺öàÎÄÕ¿´À²£¬»ù±¾ËùÓÐÓйØ
linux oracle °²×°µÄÎÄÕ¶¼¿´ÁËÒ»±é£¬»¹Êǽâ¾ö²»ÁËÎÊÌ⣬ÐÄÀïºÃÓôÃÆµÄ!
ÁíÍâÔÙ˵Ã÷£¬ÎÒÔÚ°²×°Ê±./runInstallerʱ³öÏÖÒÔÏÂ×ÖÌåÌáʾ£¬»á²»»á¿ÉÄܸúÕâ¸öÎÊÌâÓйØÄØ£¿ÒÔÏÂÊÇÌáʾ
[oracle@mzy Disk1]$ Initializing Java Virtual Machine from /temp/OraInstall2005- 01-26_11-39-43PM/jre/bin/java. Please wait...
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-r-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-i-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-r-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-i-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBindi ng
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type Virtual Binding
»¹ÓÐÎÒÔÚ°²×°Ê±ÖÐÎÄ¿òÒ»Ö±¶¼ÊÇÎʺţ¬ÔÚÍøÉÏ˵¿ÉÒÔÓà export LC_ALL=zh_CN export LANG=zh_CN ¿ÉÒÔ½â¾ö£¬µ«ÎÒµÄÒ»Ö±½â¾ö²»ÁË£¬ºóÀ´¼Ó
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/²Å¿ÉÒÔ¿´µ½ÖÐÎÄ£¬»á²»»áÒ²ÓйØÏµÄØ£¿ ÎÒÏÂoracle ÍøÕ¾ÏµÄoracle9204 for linux ÔÚ×Ô¼ºµÄ»úÆ÷(linux 13.8 fc1)Éϰ²×°µ½Ôö¼ÓÓû§×éµã»÷ÏÂÒ»²½Ê±³öÏÖ ¡°ÎÞ·¨½¨Á¢inventoryĿ¼£¬Äã¿ÉÄÜûÓÐÏàӦȨÏÞ¡±µÄÌáʾ£¬²»¹ÜÄãÌî²»Ìî×éÃû(oinstall)²»ÄÜÕý³£°²×°ÏÂÈ¥£¬ÎÒ×Ô¼º×î½üÔÚÍøÉÏÕÒÁËÒ»ÏÂÎÄÕ£¬Ëµ¿ÉÒÔÄܹýÒÔrootÓû§À´Ö´ÐÐ/tmp/orainstRoot.sh£¬µ«ÎÒÖ´ÐÐʱ su - root /tmp/orainstRoot.shÈ´Ìáʾ"bash: /tmp/orainstRoot.sh: ûÓÐÄǸöÎļþ»òĿ¼"£¬»¹ÊDz»ÄܼÌÐø°²×°!ÎÒ¸ÃÔõô°ìÄØ£¿ÎÒÒѾ½¨ÁËoracleµÄ×éºÍÓû§£¬ÓÃoracleÓû§µÇ¼£¬Ö´Ðа²×°£¬²¿·ÖÃüÁîÈçÏÂ
1.
su - root
groupadd dba # group of users to be granted with SYSDBA system privilege
groupadd oinstall # group owner of Oracle files
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle
2.
su - root
mkdir /temp
chown root.root /temp
chmod 1777 /temp
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
su - root
mkdir /opt/oracle
mkdir /opt/oracle/product
mkdir /opt/oracle/product/9.2.0
chown -R oracle.oinstall /opt/oracle
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle
3.ÒÔÏÂÊÇÎҵIJ¿·Ö.bash_profileÎļþ
# Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and
# for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !!
# Use the "Linuxthreads with floating stacks" implementation instead of NPTL:
export LD_ASSUME_KERNEL=2.4.1
export LC_ALL="zh_CN"
# Oracle Environment
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
#export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
#×Ô¼º×¢ÊÍ£¬ÒòΪҪÓÃÖÐÎÄexport NLS_LANG=AMERICAN;
#export NLS_LANG=AMERICAN
export NLS_LANG=american_america.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
CLASSPATH=$Oracle_HOME/JRE:$Oracle_HOME/jlib:$Oracle_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$Oracle_HOME/network/jlib
export PATH CLASSPATH
export TEMP=/temp # used by Oracle
export TMPDIR=/temp
ÇëoracleºÍLinux¸ßÊÖÃǰïæ?ÔÚÏߵȣ¡Ð»Ð»£¡
ÌáʾºóÎÒÁí¿ªÒ»¸öÖÕ¶ËÔÙ
su - root
/tmp/orainstRoot.sh
Ìáʾ
bash: /tmp/orainstRoot.sh: ûÓÐÄǸöÎļþ»òĿ¼
ΪʲôÎÒµÄoracle°²×°Ã»ÓвúÉú: /tmp/orainstRoot.shÎļþ
ÎÒÔÙÊÔ×ÅÖ´ÐÐ/temp/orainstRoot.shÒ²ÊÇÒ»ÑùµÄ£¬ÒÔϸ¶ÉÏͼƬ,ÎÒ´ò¿ª´°¿Ú¿´/tmp /tempȷʵûÓÐÕÒµ½ÄǸöÎļþ£¬°¦£¬Õ⼸ÌìÔÚÍøÉÏÕÒÁ˺öàÎÄÕ¿´À²£¬»ù±¾ËùÓÐÓйØ
linux oracle °²×°µÄÎÄÕ¶¼¿´ÁËÒ»±é£¬»¹Êǽâ¾ö²»ÁËÎÊÌ⣬ÐÄÀïºÃÓôÃÆµÄ!
ÁíÍâÔÙ˵Ã÷£¬ÎÒÔÚ°²×°Ê±./runInstallerʱ³öÏÖÒÔÏÂ×ÖÌåÌáʾ£¬»á²»»á¿ÉÄܸúÕâ¸öÎÊÌâÓйØÄØ£¿ÒÔÏÂÊÇÌáʾ
[oracle@mzy Disk1]$ Initializing Java Virtual Machine from /temp/OraInstall2005- 01-26_11-39-43PM/jre/bin/java. Please wait...
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-r-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-i-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-r-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-i-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-demibold-r-normal --*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidabright-medium-i-normal-- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-medium-r-normal-san s-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-bold-r-normal -sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidasans-bold-i-normal-sans- *-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucidatypewriter-medium-r-norm al-sans-*-%d-*-*-m-*-iso8859-1]
Warning: Cannot convert string "<Key>Escape,_Key_Cancel" to type VirtualBinding
Warning: Cannot convert string "<Key>Home,_Key_Begin" to type VirtualBinding
Warning: Cannot convert string "<Key>F1,_Key_Help" to type VirtualBinding
Warning: Cannot convert string "Shift<Key>F10,_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>F10,Shift_Key_Menu" to type VirtualBinding
Warning: Cannot convert string "<Key>KP_Enter,_Key_Execute" to type VirtualBindi ng
Warning: Cannot convert string "Alt<Key>Return,Alt_Key_KP_Enter" to type Virtual Binding
»¹ÓÐÎÒÔÚ°²×°Ê±ÖÐÎÄ¿òÒ»Ö±¶¼ÊÇÎʺţ¬ÔÚÍøÉÏ˵¿ÉÒÔÓà export LC_ALL=zh_CN export LANG=zh_CN ¿ÉÒÔ½â¾ö£¬µ«ÎÒµÄÒ»Ö±½â¾ö²»ÁË£¬ºóÀ´¼Ó
export JAVA_FONTS=/usr/share/fonts/zh_CN/TrueType/²Å¿ÉÒÔ¿´µ½ÖÐÎÄ£¬»á²»»áÒ²ÓйØÏµÄØ£¿
ÒÔÏÂÊǰ²×°µ½µÄ½çÃæ£¬²»¹ÜÌî²»Ìî×éoinstall,µãÏÂÒ»²½¶¼»áÌáʾµÚ¶þ¸öͼƬµÄ½çÃæ"ÎÞ·¨½¨Á¢inventoryĿ¼£¬Äã¿ÉÄÜûÓÐÏàӦȨÏÞ"
<img src="http://www.linuxeden.com/forum/attachment.php?attachmentid=603" width="650" height="504"><br>
Ìáʾ½çÃæÈçͼËùʾ£¬ÔÚÕâÒ»²½¾Íû»á¼ÌÐø°²×°ÏÂÈ¥À²!<br>
<img src="http://www.linuxeden.com/forum/attachment.php?attachmentid=602" width="394" height="158"><br>
Çë¸÷λ¸ßÊÖÃǰïæ£¬Ð¡µÜ¸Ð¼¤²»¾¡£¡ ÏȹرÕÔËÐгÌÐò£¬ÔÙÓÃrootµÇÈëµ½....../oracle/inventory/ ¾Í»á³öÏÖ£¡ ÎÒµÚÒ»´Î°²×°µÄʱºòÒ²³öÏÖÁËÕâÖÖÇé¿ö£¬ÎÒµÚ¶þ´Î°²×°µÄʱºò¾ÍºÜ˳ÀûÁË¡£×Ô¼ºÒ²²»¸ÒÈ·ÈÏÊÇʲôÎÊÌâ
ºÜÓпÉÄÜÊÇoracleÓû§ÖеÄ.bash_profile ûÓÐÉúЧ£¡
Ò³:
[1]