In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to use the answer file to install the Oracle11g database, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Note: if it is really impossible to connect to the graphical interface, you can choose this solution.
Before installation:
Open XShell and create the / oraInventory folder as root.
[root@Pet ~] # mkdir / oraInventory
[root@Pet ~] # cd /
[root@Pet /] # chown-R oracle:oinstall oraInventory
[root@XLJ181 ~] # export DISPLAY=:0.0
[root@XLJ181 ~] # xhost +
Access control disabled, clients can connect from any host
(add the user to the / etc/hosts file) as follows:
1. Locate the answer file corresponding to the oracle database.
two。 Switch to the Oracle user, modify the contents of the corresponding answer file and execute the relevant commands.
Db_install.rsp installs Oracle database software
Enter the / Oracle_11g/database directory first
Modify the following options for the response file:
Oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oraInventory
ORACLE_HOME=/Oracle_11g/oracle
ORACLE_BASE=/Oracle_11g
Oracle.install.db.InstallEdition=EE
Oracle.install.db.DBA_GROUP=dba
Oracle.install.db.OPER_GROUP=oinstall
DECLINE_SECURITY_UPDATES=true
Then execute the command:. / runInstaller-ignoreSysPrereqs-ignorePrereq-silent-responseFile / Oracle_11g/database/response/db_install.rsp-debug
Note:
This item must be added to 1.-ignoreSysPrereqs linux
two。 Silent installation. If you find the error "SEVERE: Email Address Not Specified.", you need to set:
DECLINE_SECURITY_UPDATES=true
The following prompt appears after execution:
When installed here, there will be two scripts that need to be run with the root user. Open XShell and run both scripts as the root user.
[root@Pet ~] # / oraInventory/orainstRoot.sh
[root@Pet ~] # / Oracle_11g/oracle/root.sh
After the script has been run, the Oracle 11g R2 database software has been installed.
II. Netca.rsp configuration listeners
[oracle@XLJ182 database] $/ Oracle_11g/oracle/bin/netca-silent-responseFile / Oracle_11g/database/response/netca.rsp
After running, the following prompt appears:
Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = / Oracle_11g/database/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/ Oracle_11g/oracle/bin/lsnrctl start LISTENER
Listener Control complete.
Listener started successfully.
Listener configuration complete.
Oracle Net Services configuration successful. The exit code is 0
If a similar exception occurs here, you need to log in to the server with root privileges and add to the / etc/hosts file:
IP hostname
3. Create a database by dbca.rsp
Modify the following options for the response file:
GDBNAME = "cams"
SID = "cams"
SYSPASSWORD = "*"
SYSTEMPASSWORD = "*"
SYSMANPASSWORD = "*"
DBSNMPPASSWORD = "*"
CHARACTERSET = "UTF8"-character set
NATIONALCHARACTERSET = "UTF8"-National character set, default
Then execute the command: / Oracle_11g/oracle/bin/dbca-silent-cloneTemplate-responseFile / Oracle_11g/database/response/dbca.rsp
Note:
If the following error occurs during installation:
Initializing Java Virtual Machine from / tmp/OraInstall2014-11-270853-23AM/jdk/jre/bin/java. Please wait...
. / runInstaller: line 92: 11535 Segmentation fault (core dumped) $CMDDIR/install/.oui $*
Execute:
[oracle@XLJ182 database] $cat runInstaller | tail-n + 80 | head-n 50
PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install
Export PATH
Fi
# Determine whether there is an existing CRS or not.
# Local is value of local_only in ocr.loc.
# False means there is an existing CRS installation on the system.
If [- r $OCR_LOC]; then
LOCAL= `$ AWK-F = / $LOCALONLY/' {print $2}'$OCR_LOC |\
$SED'ybind aeflrstubind AEFLRSTUP'`
Fi
Case "$BUNDLE" in
Db)
# One-click: only if there is no cmd line argument and it's not on CRS node
If [$#-gt 0-o "$LOCAL" = "FALSE"-o\
!-r $CMDDIR/install/oneclick.properties]; then
$CMDDIR/install/.oui $*
Else
$CMDDIR/install/.oui-oneclick
Fi
Client)
$CMDDIR/install/.oui $* CLUSTER_NODES= {}
Crs)
$CMDDIR/install/.oui $*-formCluster
Dv)
$CMDDIR/install/.oui $*-oneclick
Dbbundle)
For arg in "$@"
Do
Arg= `echo $arg | $SED 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
The 92-line code is: $CMDDIR/install/.oui $*-oneclick
Execute:
[oracle@XLJ182 tmp] $/ Oracle_11g/database/install/.oui $*-oneclick
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 30005 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3967 MB Passed
Checking monitor: must be configured to display at least 256 colors
> > Could not execute auto check for display colors using command / usr/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.