在NetBSD/i386上執行Oracle(轉)
源地址:
Running Oracle 9.2.0.4/9.2.0.7 on NetBSD/i386
For any question send a email to: joseyluis at gmail dot com
Page by Jose Luis Rodriguez Garcia
At the moment it is possible to create and use Oracle databases and these tools/servers:
Database Configuration Assistant (dbca)
Net Configuration Assistant (netca)
Oracle Enterprise Manager (OEM) Console in standalone mode (oemapp console)
Oracle Performance Manager
Oracle Listener (lsnrctl)
These are the tools servers that don't work at the moment:
Intelligent Agent (lsnrctl)
Version 1.2 27/11/2005
Guide for installing Oracle 9.0.4 on NetBSD/i386.
Installation of the 9.2.0.7 patch
Database creation
Graphical database creation
Manual database creation
Network configuration (OracleNet)
Graphical administration
Known issues
Screenshots
Logs : kdumps, etc..
Changes to the document
Guide for installing Oracle 9.0.4 on NetBSD/i386.
First, you need a NetBSD kernel with the last changes on the ipc stuff for Linux compatibility:
Current: After of 10 November of 2005. This version has all the required patches applied.
Othere releases: 3.x after 5 November of 2005, and current after 3 November 2005, you need to apply only this kernel patch: diff.linux-shm.6.
Other releases: 2.x, 3.x and current you need to apply these kernel patches: diff.linux-shm.6 and diff.semopm.
Using NetBSD 1.6.x is not possible, because the Linux Java doesn't work with this version: The installer and the graphical tools use java.
I have installed the next Suse packages:
pc-jose# pkg_info|grep -i suse
suse_base-9.1nb7 Linux compatibility package
suse_expat-9.1nb1 Linux compatibility package for expat binaries
suse_fontconfig-9.1 Linux compatibility package for fontconfig binaries
suse_freetype2-9.1 Linux compatibility package for FreeType2 library
suse_libjpeg-9.1nb1 Linux compatibility package for the JPEG library
suse_libpng-9.1nb1 Linux compatibility package for the PNG library
suse_libtiff-9.1nb1 Linux compatibility package for the TIFF library
suse_x11-9.1nb2 Linux compatibility package for X11 binaries
suse_gtk2-9.1nb3 Linux compatibility package for GTK2 binaries
suse_locale-9.1 Locale files for the Linux compatibility package
suse_glx-9.1 Linux compatibility package for the GL library
suse_compat-9.1 Linux compatibility package with old shared libraries
pc-jose#
Java 1.3 must be installed for use the Oracle Installer:
pc-jose# pkg_info|grep -i sun-jre13
sun-jre13-1.0.15nb2 Sun's Java(tm) Runtime Environment 1.3.1
pc-jose#
Download and uncompress the following rpms:
binutils-2.15.90.0.1.1-31.i586.rpm
coreutils-5.2.1-23.8.i586.rpm
cpp-3.3.3-41.i586.rpm
gcc-c++-3.3.3-41.i586.rpm
gcc_old-2.95.3-175.2.i586.rpm
glibc-devel-2.3.3-98.i586.rpm
grep-2.5.1-416.i586.rpm
libstdc++-devel-3.3.3-41.i586.rpm
make-3.80-184.i586.rpm
orarun-1.8-109.15.i586.rpm
For uncompress the rpms, I executed:
cd /emul/linux
rpm2pkg /path-to-rpm-file
Set default compiler for Linux gcc/c++ 2.95
bash$ cd /emul/linux/usr/bin
mv c++ c++.old
mv g++ g++.old
ln -s ../../opt/gcc295/bin/gcc gcc
ln -s ../../opt/gcc295/bin/c++ c++
ln -s ../../opt/gcc295/bin/gcc gcc
Create symbolic links for awk and sed:
cd /emul/linux/bin
ln -s /usr/bin/awk awk
ln -s /usr/bin/sed sed
Create the arch script
cd /emul/linux/bin
#!/emul/linux/bin/bash
cat > arch
echo i686
^D
chmod a+x arch
Download the software
Download the 3 CDs from:
Choose Oracle 9i Database Release 2 Enterprise/Standard Edition for Linux. For download these CDs you have to register. It is free and easy to do.
Uncompress the 3 CDs:
gzcat ship_9204_linux_disk1.cpio | cpio -idmv
gzcat ship_9204_linux_disk2.cpio | cpio -idmv
gzcat ship_9204_linux_disk3.cpio | cpio -idmv
Mount procfs with the following options in the /etc/fstab file:
Add this line to vfstab:
/emul/linux/proc procfs rw,linux
Mount the procfs filesystem:
$ mount procfs
Create /proc/stat and /proc/swaps
I don't know that Oracle searchs for these files. May be that installation works without these files.
Copy these files to /proc: stat and swaps.
Create the Oracle account and groups:
It is needed a oracle user. I have chosen the linux bash as shell.
Two groups are needed: oinstall: owns the files for any installation of Oracle on the machine. By example: if there is a Oracle9i and Oracle 10g, and if it is created two users: oracle8 and oracle9 both users must have oinstall as primary group) and dba. The oinstall group must be the primary group (the one that appears as gid in /etc/passwd/etc.masterpasswd.
A optional third group: oper. It has restricted privileges and is useful for operators.
You can choose any name for the user and group accounts. I have chosen the default accounts: oracle, oinstall, dba and oper. These are the resulting /etc/passwd and /etc/group:
/etc/passwd:
oracle:*:101:100:Oracle administrator:/usr/oracle:/emul/linux/bin/bash
/etc/group:
oinstall:*:1000:oracle
dba:*:1001:oracle
oper:*:1002:oracle
Kernel options
I have used the following kernel options:
options SYSVMSG # System V-like message queues
options SYSVSEM # System V-like semaphores
options SEMMNI=128 # number of semaphore identifiers
options SEMMNS=256 # number of semaphores in system
#options SEMUME=10 # max number of undo entries per process
#options
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752019/viewspace-941828/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在NETBSD上配置ADSL+IPF+IPNAT(轉)
- 在Linux機器上安裝執行Oracle(三)(轉)LinuxOracle
- 在Linux機器上安裝執行Oracle(二)(轉)LinuxOracle
- 轉:在Linux上執行WinFormLinuxORM
- 在掌上電腦HPiPAQ上執行Linux(轉)Linux
- 在NuoDB上執行AsteriskAST
- 在window上執行bash
- 在unix下定時執行oracle的sql方法(轉)OracleSQL
- 在Oracle里加快SQL執行的三種方法(轉)OracleSQL
- wine-在mac上執行exe執行檔案Mac
- i386 PC 上多系統共存安裝方案(轉)
- 在 Azure 上使用 Docker 執行 MonoDockerMono
- 透明的閘道器:在Linux上執行IPchains(轉)LinuxAI
- NetBSD的網路配置(轉)
- 學習NetBSD-pkgsrc(轉)
- oracle中執行os命令(轉)Oracle
- 在Linux作業系統上執行Windows應用程式(轉)Linux作業系統Windows
- ORACLE在“域”上的問題【轉】Oracle
- Hazelcast JET在Spring Boot上執行ASTSpring Boot
- Phoenix:在HBase上執行SQL查詢SQL
- 在Heroku上執行Go+Revel程式Go
- 在APACHE上執行ASP.NET程式ApacheASP.NET
- NetBSD 常用軟體安裝(轉)
- NetBSD 中使用 IPSec 指南 (轉)
- 口袋裡的Linux:在您的隨身碟上執行SLAX(轉)Linux
- 在單機上執行julia並行加速的例子並行
- 檢視oracle執行計劃 - 轉Oracle
- ORACLE中檢視執行計劃(轉)Oracle
- 怎樣在 Kubernetes 上執行 PostgreSQLSQL
- 在kubernetes上執行WASM負載ASM負載
- 在 WASI 上執行 .NET 7 應用程式
- 在 Windows 系統上執行 VIC 水文模型Windows模型
- Clojure執行環境在windows上安裝Windows
- 配置 Rational Functional Tester 在 Linux 上執行FunctionLinux
- 使用 ARChon 執行時環境在 Ubuntu 上執行 Android 應用UbuntuAndroid
- 讓Pqmagic在Server版中執行 (轉)Server
- 在單獨執行緒中執行物件成員函式 (轉)執行緒物件函式
- NetBSD PXE boot Install (without NFS)(轉)bootNFS