日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

solaris 10安装Oracle10.2g

發布時間:2023/12/10 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 solaris 10安装Oracle10.2g 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1> 檢查相關的安裝包
官方要求的包: SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

執行命令
bash-3.00# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms SUNWsprot SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt
system SUNWarc Lint Libraries (usr)
system SUNWbtool CCS tools bundled with SunOS
system SUNWhea SunOS Header Files
system SUNWi1of ISO-8859-1 (Latin-1) Optional Fonts
system SUNWlibm Math & Microtasking Library Headers & Lint Files (Usr)
system SUNWlibms Math & Microtasking Libraries (Usr)
system SUNWsprot Solaris Bundled tools
system SUNWtoo Programming Tools
system SUNWxwfnt X Window System platform required fonts
錯誤: 未發現"SUNWi1cs"的信息
錯誤: 未發現"SUNWi15cs"的信息


發現有2個包未安裝,分別是: "SUNWi1cs" "SUNWi15cs"
這2個包可以在solaris的安裝包里找到。mount上光盤,把這些差的包裝起來

bash-3.00#cd /cdrom/sol_10_1009_x86/Solaris_10/Product/
bash-3.00#ls ./SUNWi1*
./SUNWi13cs:
archive install pkginfo pkgmap reloc
./SUNWi13rf:
archive install pkginfo pkgmap reloc
./SUNWi15cs:
archive install pkginfo pkgmap reloc
./SUNWi15rf:
archive install pkginfo pkgmap reloc
./SUNWi1cs:
archive install pkginfo pkgmap reloc
./SUNWi1of:
archive install pkginfo pkgmap reloc
確認這里有這些包。

2> 安裝所需要的軟件包:
bash-3.00#pkgadd -d . SUNWi1cs
處理軟件包范例<SUNWi1cs>來自</cdrom/sol_10_1009_x86/Solaris_10 /Product>
X11 ISO8859-1 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
使用</>作為包的基本目錄
## 正在處理軟件包信息.
## 正在處理系統信息.
8軟件包路徑名已經正確地安裝
## 檢查軟件包的依賴性
## 檢查磁盤空間需求
## 檢查同已經安裝的軟件包之間的沖突.
## 檢查setuid/setgid程序。

在這個軟件包中包含了正文程序,只有具有超級-用戶的權限才能在這個軟件包
的安裝過程中執行它們.

要繼續安裝<SUNWi1cs> [y,n,?] y
安裝X11 ISO8859-1 Codeset Support成為<SUNWi1cs>
##正在安裝1部分- 1.
232 塊
安裝<SUNWi1cs>成功
bash-3.00#pkgadd -d . SUNWi15cs

處理軟件包范例<SUNWi15cs>來自</cdrom/sol_10_1009_x86/Solaris_10 /Product>

X11 ISO8859-15 Codeset Support(i386) 2.0,REV=2004.10.17.15.04
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
使用</>作為包的基本目錄
## 正在處理軟件包信息.
## 正在處理系統信息.
6軟件包路徑名已經正確地安裝
## 檢查軟件包的依賴性
## 檢查磁盤空間需求
## 檢查同已經安裝的軟件包之間的沖突.
## 檢查setuid/setgid程序。

在這個軟件包中包含了正文程序,只有具有超級-用戶的權限才能在這個軟件包
的安裝過程中執行它們.
要繼續安裝<SUNWi15cs> [y,n,?] y
安裝X11 ISO8859-15 Codeset Support成為<SUNWi15cs>
##正在安裝1部分- 1.
1460 塊
安裝<SUNWi15cs>成功

3> 調整內核參數

bash-3.00# cp /etc/system /etc/system.org???? //備份內核參數文件
bash-3.00#vi /etc/system
set noexec_user_stack=1
set semsys:seminfo_semmni = 100
set semsys:seminfo_semmns = 1024
set semsys:seminfo_semmsl = 256
set semsys:seminfo_semvmx = 32767
set shmsys:shminfo_shmmax = 4294967295
set shmsys:shminfo_shmmin = 1
set shmsys:shminfo_shmmni = 100
set shmsys:shminfo_shmseg = 10

4> 創建用戶與組:
bash-3.00# groupadd dba
bash-3.00# groupadd oinstall
bash-3.00# useradd -g oinstall -G dba -d /u01/oracle -m oracle
bash-3.00# passwd oracle
bash-3.00# su - oracle
#bash
bash-3.00$ mkdir -p /u01/oracle/ora10g/product?? //實例安裝目錄
bash-3.00$ mkdir /u02/oradata??????????????????? //數據存放目錄
bash-3.00$ chown oracle:oinstall /u02/oradata

5> 配置oracle用戶的環境變量
bash-3.00$ vi .profile
export ORACLE_BASE=/u01/oracle/ora10g
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=oradb
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export PATH=$ORACLE_HOME/bin:/bin:/sbin:/usr/ccs/bin:/usr/local/bin
export TMPDIR=/var/tmp
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:/lib64:/usr/local/lib
export DISPLAY=127.0.0.1:0.0?
umask 022

6> oracle 軟件安裝。

bash-3.00# xhost +
access control disabled, clients can connect from any host
bash-3.00# su oracle
$ bash
bash-3.00$ cd /opt/database/
bash-3.00$ ls
doc?????????? response????? stage
install?????? runInstaller? welcome.html
bash-3.00$ ./runInstaller
正在啟動 Oracle Universal Installer...

正在檢查安裝程序要求...
檢查操作系統版本: 必須是5.10。??? 實際為 5.10? 通過
檢查臨時空間: 必須大于 250 MB。?? 實際為 1967 MB??? 通過
檢查交換空間: 必須大于 500 MB。?? 實際為 2291 MB??? 通過
檢查監視器: 監視器配置至少必須顯示 256 種顏色。??? 實際為 16777216??? 通過
所有安裝程序要求均已滿足。
備從以下地址啟動 Oracle Universal Installer /tmp/OraInstall2011-10-16_11-57-33PM. 請稍候...bash-3.00$ Warning: Missing charsets in String to FontSet conversion
正在以高級模式啟動安裝程序...
Oracle Universal Installer, 版本 10.2.0.2.0 正式版
版權所有 (c) 1999, 2006, Oracle。保留所有權利。
圖形界面操作省略。。。。。。。。

安裝過程中出現的小問題:
bash-3.00$ pwd
/u01/oracle/ora10g/product/10.2.0/db_1/bin
bash-3.00$ sqlplus /nolog
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory

解決方法:
bash-3.00#vi /etc/profile??????????????????????????? //添加以下內容
ORACLE_BASE=/u01/oracle/ora10g
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=oradb
NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
PATH=$ORACLE_HOME/bin:/bin:/sbin:/usr/ccs/bin:/usr/local/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:/lib64:/usr/local/lib
TMPDIR=/var/tmp
DISPLAY=127.0.0.1:0.0
export ORACLE_BASE
export ORACLE_HOME
export ORACLE_SID
export NLS_LANG
export PATH
export TMPDIR
export LD_LIBRARY_PATH
export DISPLAY
umask 022
bash-3.00# source /etc/profile????????????????????? //使配置文件即使生效
bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.2.0 - Production on Mon Oct 17 23:42:05 2011

Copyright (c) 1982, 2005, Oracle.? All Rights Reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area? 289406976 bytes
Fixed Size????????????????? 1279820 bytes
Variable Size???????????? 100665524 bytes
Database Buffers????????? 184549376 bytes
Redo Buffers??????????????? 2912256 bytes
Database mounted.
Database opened.
SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
oradb

SQL> shutdown immediate;???????????????????????? //關閉數據庫
Database closed.
Database dismounted.
ORACLE instance shut down.

bash-3.00$ lsnrctl start???????????????????????? //啟動監聽

LSNRCTL for Solaris: Version 10.2.0.2.0 - Production on 17-OCT-2011 23:46:39

Copyright (c) 1991, 2005, Oracle.? All rights reserved.

Starting /u01/oracle/ora10g/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Solaris: Version 10.2.0.2.0 - Production
System parameter file is /u01/oracle/ora10g/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/oracle/ora10g/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=liuxiong.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias???????????????????? LISTENER
Version?????????????????? TNSLSNR for Solaris: Version 10.2.0.2.0 - Production
Start Date??????????????? 17-OCT-2011 23:46:41
Uptime??????????????????? 0 days 0 hr. 0 min. 0 sec
Trace Level?????????????? off
Security????????????????? ON: Local OS Authentication
SNMP????????????????????? OFF
Listener Parameter File?? /u01/oracle/ora10g/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File???????? /u01/oracle/ora10g/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
? (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
? (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=liuxiong.com)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
? Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

bash-3.00# poweroff????????????????????????????????????????????? //關閉主機

轉載于:https://blog.51cto.com/mrxiong/690489

總結

以上是生活随笔為你收集整理的solaris 10安装Oracle10.2g的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。