In case of ins_precomp.mk error when installing oracle12C in LINUX7, the installation tutorial of oracle12c is as follows:
Original Works are from the blog of "Deep Blue blog". You are welcome to reprint them. Please note the following source when reprinting them. Otherwise, you will be held legally liable for copyright.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/45021597
Operating System: LINUX7
Database Version: Oracle 12C 12.1.0
The following error is reported during installation:
View logs:
INFO: make [1]: *** [/u01/app/oracle/product/12.1.0/db_1/precomp/lib/proc] Error 1
Make: *** [proc] Error 2
INFO: End output from spawned process.
INFO :----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'links proc gen_pcscfg procob' of makefile'/u01/app/oracle/product/12.1.0/db_1/precomp/lib/ins_precomp.mk '. see '/u01/app/oraInventory/logs/installActions2015-04-12_12-30-42AM.log' for details.
Exception Severity: 1
Solution:
The reason for this problem is that the first version of 12c does not support linux7, so you need to solve this problem manually.
[Root @ hyldb stubs] # cd/u01/app/oracle/product/12.1.0/db_1/lib/stubs
[Root @ hyldb stubs] # cp */bak
[Root @ hyldb bak] # rm-rf/u01/app/oracle/product/12.1.0/db_1/lib/stubs /*
[Root @ hyldb bak] #
Cp
/U01/app/oracle/product/12.1.0/db_1/rdbms/lib/env_rdbms.mk
/U01/app/oracle/product/12.1.0/db_1/rdbms/lib/env_rdbms.mk.orig
[Root @ hyldb bak] # vi/u01/app/oracle/product/12.1.0/db_1/rdbms/lib/env_rdbms.mk
176 rows
Before modification:
LINKTTLIBS = $ (LLIBCLNTSH) $ (ORACLETTLIBS) $ (LINKLDLIBS)
After modification:
LINKTTLIBS = $ (LLIBCLNTSH) $ (ORACLETTLIBS) $ (LINKLDLIBS)-lons
Lines 279-280
Before modification:
LINK = $ (FORT_CMD) $ (PURECMDS) $ (ORALD) $ (LDFLAGS) $ (COMPSOBJS)
LINK32 = $ (FORT_CMD) $ (PURECMDS) $ (ORALD) $ (LDFLAGS32) $ (COMPSOBJS)
After modification:
LINK = $ (FORT_CMD) $ (PURECMDS) $ (ORALD) $ (LDFLAGS) $ (COMPSOBJS)-Wl, -- no-as-needed
LINK32 = $ (FORT_CMD) $ (PURECMDS) $ (ORALD) $ (LDFLAGS32) $ (COMPSOBJS)-Wl, -- no-as-needed
Lines 3041-3042
Before modification:
TG4PWD_LINKLINE = $ (LINK) $ (OPT) $ (TG4PWDMAI )\
$ (LLIBTHREAD) $ (LLIBCLNTSH) $ (LINKLDLIBS)
After modification:
TG4PWD_LINKLINE = $ (LINK) $ (OPT) $ (TG4PWDMAI )\
$ (LLIBTHREAD) $ (LLIBCLNTSH) $(LINKLDLIBS)-lnnz12
After manual correction, continue the installation and no error is reported.
Then the installation is completed successfully.
Note:
Due to the newer LINUX version of LINUX7, Oracle12C has not yet been directly supported. We believe that oracle will solve this problem in later versions and add support for the new LINUX version.
Original Works are from the blog of "Deep Blue blog". You are welcome to reprint them. Please note the following source when reprinting them. Otherwise, you will be held legally liable for copyright.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/45021597