On Mac OS X 10.6.4 through installation of oracle10g

mac os x 10.6.4 After installation oracle10g

Reference article:

(1) http://www.readern.com/install-oracle-10gr2-on-mac-os-x.html  (great help, very grateful ern)

(2)http://blog.csdn.net/chijianqiang/archive/2010/04/14/5486923.aspx

(3)http://myrev.javaeye.com/blog/494145

 

Preparatory

1. From the official website to download the installation package db.zip

2. Install Xcode (bundled with the system disk has), because the installation process to use to make utility.

3. Create the oinstall group and the oracle user

Switch to root:

sudo -i

Create a group:

dscl . -create /groups/oinstall

dscl . -append /groups/oinstall gid 700

dscl . -append /groups/oinstall passwd "*"

Create a user:

dscl . -create /users/oracle

dscl . -append /users/oracle uid 700

dscl . -append /users/oracle gid 700

dscl . -append /users/oracle shell /bin/bash

dscl . -append /users/oracle home /Users/oracle

dscl . -append /users/oracle realname "Oracle software owner"

Note: the need to ensure the existing system ID and the user information does not conflict with the group, using 700 here.

         UserA can be viewed through the "id userA" ID-related information

4. Create the user's home directory:

mkdir /Users/oracle

chown oracle:oinstall /Users/oracle

 5. Modify oracle user password:

passwd oracle

6. The db.zip unzipped folder into the user oracle, the oracle and to chown

chown -R oracle:oinstall /Users/oracle/db

7. establish /etc/sysctl.conf:vi /etc/sysctl.conf

kern.sysv.shmmax=1073741824
kern.sysv.shmall=2097152
kern.maxfiles=65536
kern.maxfilesperproc=65536
kern.maxproc=2068
kern.maxprocperuid=2068
net.inet.ip.portrange.first=1024

Reboot the system to take effect.

8. Establish .bash_profile files in the / Users / oracle directory, as follows:

ORACLE_BASE=/Users/oracle/oracle
ORACLE_SID=orcl
ORACLE_HOME=/Users/oracle/oracle/product/10.2.0
PATH=/usr/local/bin:/Users/oracle/oracle/product/10.2.0/bin:$PATH
export ORACLE_BASE
export ORACLE_SID
export ORACLE_HOME
export PATH
DYLD_LIBRARY_PATH=$ORACLE_HOME/lib
export DYLD_LIBRARY_PATH
DISPLAY=127.0.0.1:0
export DISPLAY
ulimit -Hn 65536
ulimit -Sn 65536
export NLS_LANG="AMERICAN_AMERICA.UTF8"


Installation process

9. log off the current user, and then log in as user oracle

cd  ~/db/Disk1

./runInstaller -J-d32

Description: 32 represents a 32-bit run under OS, subsequent installation follow the prompts.

10. encountered calling target "all_no_orcl ipc_g ihsodbc32" error,

Do not exit the installation program, open a new terminal window, modify the file $ ORACLE_HOME / rdbms / lib / ins_rdbms.mk, commented out with the # $ (HSODBC_LINKLINE) beginning of the line, and then return to the installer, click "Retry."

11. encounter " OUI-25031: Some Configuration Assistant Failed" error, regardless of temporary,

But remember what the bottom of the "Configuration Assistant" window "/Users/oracle/oracle/product/10.2.0/cfgtoollogs/configToolFailedCommands", directly next step after OK.

12. Install the end prompted to use root privileges to run two sh file, open a new terminal:

sudo /Users/oracle/oraInventory/orainstRoot.sh

sudo /Users/oracle/oracle/product/10.2.0/db_1/root.sh

Suggested that the "oracle is not in the sudoers file This incident will be reported.." When switching to the previous user to perform the operation "su - userA", executed again, successfully.

13. OUI-25031 solving problems.

step12 not switch to userA yet? The implementation of "exit" to return to the oracle user, the direct implementation of " /Users/oracle/oracle/product/10.2.0/cfgtoollogs/configToolFailedCommands."

14. encountered an error "Invalid memory access of location 0x102100004 rip = 0x7fff81efab8d

/Users/oracle/oracle/product/10.2.0/jdk/jre/bin/java: line 2:  7602 Bus error              

 /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -Xbootclasspath/a:/Users/oracle/oracle/

product/10.2.0/jdk/jreb/ext:/Users/oracle/oracle/product/10.2.0/jdk/lib/ext $*”,

Modify the $ ORACLE_HOME / jdk / bin / java script, "java -Xbootclasspath ..." changed to "java -d32 -Xbootclasspath ..." can be.

15.重新执行/Users/oracle/oracle/product/10.2.0/cfgtoollogs/configToolFailedCommands”。

16. encountered ORA-03113 errors that need patching.

cd $ORACLE_HOME/bin

-The curl http://rayapps.com/downloads/oracle_ee.zip

unzip oracle_ee.zip

chmod + s oracle

rm oracle_ee.zip

Note: Installation Enterprise Edition oracle_ee.zip

         Installation Standard Edition uses oracle_se.zip

Note: This step button on the error dialog box is "suspended" or "Retry" muddy the mind, should be "suspended", otherwise there would be no re-run the next :)

17.重新执行/Users/oracle/oracle/product/10.2.0/cfgtoollogs/configToolFailedCommands”。


Follow-up

18. At this point the database instance and listeners have already started.

Start the listener lsnrctl start

Close listening lsnrctl stop

sqlplus sys / syspass as sysdba

sql> start to start the database instance

sql> stop Stop the database instance

19. My network configuration using DHCP 

 And modify listener.ora tnsnames.ora under /Users/oracle/oracle/product/10.2.0/network/admin/ directory, which will replace the ip address as localhost.


Published 18 original articles · won praise 16 · views 390 000 +

Guess you like

Origin blog.csdn.net/f_zongjian/article/details/5954490