Install Oracle and WebLogic under Linux Centos7

Source: Internet
Author: User
Tags chmod dba create domain

1.oracle Installation 1.1 installation package 1.2 system resource parameter Configuration 1.2.1 sysctl.conf 1.2.2 limits.conf 1.3 Installation 1.3.1 Installation database software 1.3.2 Build database instance 1.3.3 configuration listening 1.4 possible questions 2.weblogic Installation 2.1 Installation package 2.2 Installation 2.2.1 Pre-preparation 2.2.2 Installation WebLogic 2.2.2 Create domain 2.2.3 Publish 2.3 problems that may be encountered

1.oracle Installation 1.1 Installation Package

ORACLE-LINUX-64-11G Official installation package
Download Link: Https://pan.baidu.com/s/12NpwmcEl_eOuRzQQTwAXUQ
Password: 5q2f
Two zip packets are downloaded and extracted to the same folder (unzip/share/linux.x64_11gr2_database_*.zip-d/share/) 1.2 system resource parameter configuration 1.2.1 Sysctl.conf

Vi/etc/sysctl.conf
Add the following paragraph to the end of the document:

FS.AIO-MAX-NR = 1048576

Fs.file-max = 6815744

Kernel.shmall = 2097152

Kernel.shmmax = 536870912

Kernel.shmmni = 4096

Kernel.sem = 250 32000 100 128

Net.ipv4.ip_local_port_range = 9000 65500

Net.core.rmem_default = 262144

Net.core.rmem_max = 4194304

Net.core.wmem_default = 262144

Net.core.wmem_max = 1048576

Net.ipv4.tcp_wmem = 262144 262144 262144

Net.ipv4.tcp_rmem = 4194304 4194304 4194304

Note the comment out

# Disable NetFilter on bridges.
#net. Bridge.bridge-nf-call-ip6tables
#net. bridge.bridge-nf-call-arptables = 0 1.2.2 limits.conf

Vi/etc/security/limits.conf
Add the following paragraph to the end of the document:

Oracle Soft Nproc 2047

Oracle Hard Nproc 16384

Oracle Soft Nofile 1024

Oracle Hard Nofile 65536

Oracle Hard Stack 10240

(Reload these parameters, be sure to reboot the system, otherwise it will not work)
1.2.3
Install Dependency Pack
Yum install gcc make binutils gcc-c++ compat-libstdc++-33elfutils-libelf-devel elfutils-libelf-devel-static ksh Libaio Libaio-develnumactl-devel sysstat unixodbc unixodbc-devel pcre-devel–y 1.3 installation

The installation method here is installed through the configuration file. The database folder is a folder that is unpacked after the installation of the package 1.3.1 Install the DB software

Create the folder you want
Mkdir-p/opt/oracle/app
Mkdir-p/opt/oracle/orainventory

Building Users and Groups
Groupadd Oinstall
Groupadd dba
Useradd Oracle
Usermod-g OINSTALL,DBA Oracle
passwd Oracle

Give user permissions
Chown-r oracle:oinstall/opt/oracle
Chown-r oracle:dba/opt/oracle

To the installation file read and write execution permissions, I directly to the full authority, the province of the tangle ...
chmod 777/opt/oracle
chmod 777/share/database

Configuring Oracle Environment Variables
Under Oracle Users
Vi. Bash_profile, add the following paragraph below:

Export path= path:p A T h:path:oracle_home/bin: $HOME/bin

Export Oracle_home= $ORACLE _base/product/11.2.0/db_1

Export Oracle_base=/opt/oracle/app

Export ORACLE_SID=ORCL

Export path= path:p A T h:path:oracle_home/bin: $HOME/bin

Executes command source after editing. Bash_profile

Edit Database Response File/database/response/db_install.rsp

Oracle.install.responsefileversion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0

Oracle.install.option=install_db_swonly

ORACLE_HOSTNAME=IZBP1ID7AJV83GQFTPAX5JZ Unix_group_name=oinstall

Inventory_location=/opt/oracle/orainventory

Selected_languages=en,zh_cn

Oracle_home=/opt/oracle/app/product/11.2.0/db_1

Oracle_base=/opt/oracle/app

Oracle.install.db.installedition=ee

Oracle.install.db.iscustominstall=false

oracle.install.db.customcomponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0 , Oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms : 11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0, oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0

Oracle.install.db.dba_group=dba

Oracle.install.db.oper_group=oinstall

oracle.install.db.cluster_nodes=

Oracle.install.db.config.starterdb.type=general_purpose

Oracle.install.db.config.starterdb.globaldbname=orcl

Oracle.install.db.config.starterdb.sid=orcl

Oracle.install.db.config.starterdb.characterset=al32utf8

Oracle.install.db.config.starterdb.memoryoption=true

oracle.install.db.config.starterdb.memorylimit=81920

Oracle.install.db.config.starterdb.installexampleschemas=false

Oracle.install.db.config.starterdb.enablesecuritysettings=true

Oracle.install.db.config.starterdb.password.all=oracle

oracle.install.db.config.starterdb.password.sys=
oracle.install.db.config.starterdb.password.system=
oracle.install.db.config.starterdb.password.sysman=
oracle.install.db.config.starterdb.password.dbsnmp=

Oracle.install.db.config.starterdb.control=db_control

Oracle.install.db.config.starterdb.gridcontrol.gridcontrolserviceurl=

Oracle.install.db.config.starterdb.dbcontrol.enableemailnotification=false

oracle.install.db.config.starterdb.dbcontrol.emailaddress=
Oracle.install.db.config.starterdb.dbcontrol.smtpserver=

Oracle.install.db.config.starterdb.automatedbackup.enable=false

Oracle.install.db.config.starterdb.automatedbackup.osuid=
Oracle.install.db.config.starterdb.automatedbackup.ospwd=
Oracle.install.db.config.starterdb.storagetype=
oracle.install.db.config.starterdb.filesystemstorage.datalocation=
oracle.install.db.config.starterdb.filesystemstorage.recoverylocation=
oracle.install.db.config.asm.diskgroup=
oracle.install.db.config.asm.asmsnmppassword=
Myoraclesupport_username= myoraclesupport_password=
security_updates_via_myoraclesupport=

Decline_security_updates=true

proxy_host= proxy_port= proxy_user= proxy_pwd=

Execute the Silent Install Database command (under Oracle users):

/share/database/./runinstaller-silent-force-ignoreprereq-responsefile/share/database/response/db_install.rsp

Then just wait a minute ....
Then follow the instructions described at the end of the installation and run orainsroot.sh and root.sh
1.3.2 Instance of building a database

The following database instance is built (under Oracle users):

Dbca-silent-createdatabase-templatename general_purpose.dbc-gdbname orcl-sid Orcl-syspassword oracle-systempasswor D oracle-diskgroupname Datadg-nationalcharacterset "Al16utf16"-characterset "Al32utf8"-sampleSchema false- Asmsyspassword Oracle

1.3.3 Configuration Monitor

To edit a file under $oracle_home//network/admin:
Listener.ora

Sid_list_listener =
    (sid_list = (
         Sid_desc =
             (global_dbname = ORCL)
             (oracle_home =/opt/oracle/app/ product/11.2.0/db_1)
             (sid_name = ORCL)
         )
LISTENER = (DESCRIPTION = (address
        = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))
    

Tnsnames.ora

ORCL =
(DESCRIPTION = (
    address_list =
    (address = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))
    )
    ( Connect_data =
    (SERVER = dedicated)
    (service_name = ORCL)
    )

Sqlnet.ora

Sqlnet. authentication_services= (All) NAMES. Directory_path=
 (Tnsnames,hostname,ezconnect)

Start Listener: Lsnrctl start
Stop listener: Lsnrctl stop
Viewing listening: Lsnrctl status 1.4 problems that may be encountered

Lrm-00109:could not open parameter file Initorcl.ora appears
Solution: mv/opt/oracle/app/admin/orcl11g/pfile/init.ora.913201713916/opt/oracle/app/product/11.2.0/db_1/dbs/ Initorcl.ora

Inclusive Mode
Http://www.cnblogs.com/kerrycode/p/3656655.html
http://blog.csdn.net/abc5382334/article/details/45311279
Ps-ef|grep mcfcm|grep-v grep|cut-c 9-15|xargs kill-9 2.weblogic installation 2.1 installation package

WEBLOGIC12 (Fmw_12.1.3.0.0_wls.jar)
Baidu Network disk Download address:
[HTTPS://PAN.BAIDU.COM/S/1B7QOFSTPDD1XSCMUTOZEWG] 2.2 Installation 2.2.1 Preliminary Preparation

Create the folder you want
Mkdir-p/opt/weblogic/orainventory
Mkdir-p/opt/weblogic/app

Building Users and Groups
Groupadd WebLogic
Useradd WebLogic
Usermod-g WebLogic WebLogic
passwd WebLogic

Give user permissions
Chown-r Weblogic:weblogic/opt/weblogic
Chown-r Weblogic:weblogic/share/fmw_12.1.3.0.0_wls.jar

To the installation file read and write execution permissions, I directly to the full authority, the province of the tangle ...
chmod 777/opt/weblogic
chmod 777/share/fmw_12.1.3.0.0_wls.jar

Install JDK, if you already have it, you don't have to ignore this step
Mkdir-p/OPT/JDK
Unzip the JDK installation package to the specified directory:
Tar-zxvf/share/jdk7u79linuxx64.tar.gz-c/opt/jdk/

JAVA_HOME=/OPT/JDK/JDK1.7.0_79 Export
JRE_HOME=/OPT/JDK/JDK1.7.0_79/JRE Export
Classpath=.: Javahome/lib:j a V a h O M e/l i b:java_home/lib:jre_home/lib:classpathexportpath= C l a s P a T H E x P o r T p A t h = CLASSPATH export path=java_home/bin:jrehome/bin:j r E H o M e/b i N:jre_home/bin:path

After the edit is finished, execute the source ~/.BASHRC command to take effect
You can quit WebLogic users to log on again, java-version to see if a successful 2.2.2 installation is configured WebLogic

Here you need to create two required installation files
Response file
Vim/share/wls.rsp

################################### #wls. RSP [ENGINE] #DO not change this. Response File version=1.0.0.0.0 [GENERIC] #The Oracle home location. This can is a existing Oracle home or a new Oracle home Oracle_home=/opt/weblogic/app #Set This variable value to the Ins Tallation Type selected.
e.g. WebLogic Server, coherence, Complete with examples. Install_type=weblogic Server #Provide The My Oracle Support Username.
If you are wish to ignore Oracle Configuration Manager Configuration provide the string for user name. Myoraclesupport_username= #Provide the My Oracle Support Password myoraclesupport_password=<secure value> #Set This to True if you are wish to decline the security updates. Setting this to true and providing empty string for my Oracle Support username'll ignore the Oracle Configuration Manage R configuration Decline_security_updates=true #Set this to True if I Oracle Support Password is specified security_update S_via_myoraclesupport=false #Provide the Proxy Host proxy_host= #Provide the proxy Port proxy_port= #Provide the proxy Username proxy_user= #Provide the proxy Password proxy_pwd=<se CURE value> #Type String (URL format) indicates the OCM Repeater URL which should be of the format [Scheme[http/https]] ://[repeater Host]:[repeater Port]
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.