Sunteți pe pagina 1din 3

Oracle 11g Release 2 installation on Debian 5 (Lenny) Step 1: Download the database from OTN Download and unzip

the installation sources in a local directory. Step 2: Preparing the OS Memory test: MemTotal grep / proc / meminfo At least 1GB of memory must be available. SwapTotal grep / proc / meminfo It should be 1.5 times physical memory. tmpfs examine and possibly enlarge: df-kh / dv / shm If less than 1GB is available, it is advisable to increase tmpfs. In / etc / fstab tmpfs adjust the line: tmpfs / dev / shm tmpfs defaults, size = 1024M ... mount-o remount / dev / shm Network setup: / Etc / hostname edit: yourmachine.yourdomain (important is the domain name if none exists) / Etc / hosts edit 127.0.0.1 localhost yourmachine.yourdomain your machine Installing Packages: Post-installation packages. apt-get install alien debhelper cpp-3.4 g + + gawk gcc-3.4 gcc-3.4-base gettext intltool-debian ksh html2text lesstif2 libaio-dev libdb4.2 libaio1 libbeecrypt6 apt-get install libelf-dev libelf1 libltdl3 libodbcinstq1c2 libltdl3-dev libqt4core libqt4-gui librpm4.4 libsqlite3-0 libstdc + +6 libstdc + +5 apt-get install libstdc + +6-4.3-dev lsb lsb-core lsb-cxx lsb-desktop lsb-graphi cs lsb-qt4 odbcinst1debian1 pax po-debconf rpm sysstat unixodbc unixodbc-dev Use GCC 4.1: ln-s / usr/bin/gcc-4.1 / usr / bin / gcc (possibly first delete the existing lin k) Groups and Users: addgroup - system oinstall addgroup - system dba useradd-r-g oinstall-G dba-m-s / bin / bash-d / var / lib / oracle oracle passwd oracle Kernel parameters: Edit / etc / sysctl.conf kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096

kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 262144 then sysctl-p to activate the new kernel parameter Creating Directories mkdir-p mkdir-p chown-R chmod-R / u01/app/oracle / u02/oradata oracle: oinstall / u01 / u02 775 / u01 / u02

Oracle for the Oracle User Environment. Can also be in the. Bashrc or. Profile c an be used for other users. In / var / lib / oracle / .profile umask 022 export ORACLE_BASE = / u01/app/oracle export ORACLE_HOME = $ ORACLE_BASE/product/11.1.0/db_1 export ORACLE_SID = your machine export NLS_LANG = AMERICAN_AMERICA.AL32UTF8 unset TNS_ADMIN if [-d "$ ORACLE_HOME / bin"] then PATH = "$ ORACLE_HOME / bin: $ PATH" fi Camouflage ln-s / usr ln-s / usr ln-s / usr ln-s / etc of the system, because Debian is not supported by Oracle System / bin / awk / bin / awk / bin / rpm / bin / rpm / bin / basename / bin / basename / etc / rc.d

and echo "Red Hat Linux release 4"> / etc / redhat-release Step 3: Installation The installation is done by invoking the runInstaller program in the database di rectory of the installation sources. Follow the instructions to ignore, then at the package check all messages about missing packages. The installer checks RPM packages above have ensured that the package dependenci es are met. Step 4: Starting and stopping the database During installation, the database is started automatically. Therefore, at first everything seems to be working. For the database to be manually stopped and started, the following steps: Create a file in $ ORACLE_HOME with the name inityourmachine.ora. Content is a s

ingle line: SPFILE =. / spfileyourmachine.ora spfileyourmachine.ora was created by the installer. (Been <yourmachine> is the m achine name from / etc / hostname. <yourmachine> Need to start without giving PF ILE be exported as ORACLE_SID. See. Profile of the Oracle user). Start (logged in as Oracle user, ORACLE_SID set): sqlplus / nolog >> Connect / as sysdba >> Startup Stop: sqlplus / nolog >> Connect / as sysdba Shutdown>> immediate Step 5: Start listener: lsnrctl start Step 6: Connect from another machine sqlplus user / password @ your machine: 1521/yourmachine.yourdomain (This is an easy connect as follows: user / password @ <server>: <port> / <servi ce_name>)

S-ar putea să vă placă și