In Linux, cat <eof replaces multiple lines of echo. when writing the environment configuration script before Oracle installation, you need to go to/etc/sysctl. add multiple lines to the conf file. Previously, the echo is used, which is a little troublesome. we can use cat & lt; EOF to replace it. Www.2cto. comcat <EOF...
In Linux, cat <eof replaces multiple lines of echo. when writing the environment configuration script before Oracle installation, you need to go to/etc/sysctl. multiple lines are added to the conf file. Previously, echo was used, which is a little troublesome. it can be replaced by cat <EOF. Www.2cto.com cat <EOF>/etc/sysctl. conf ### install oracle by liups echo beginkernel. shmmni = 4096kernel. sem = 250 32000 100 fs. file-max = 65536net. ipv4.ip _ local_port_range = 1024 65000net. core. rmem_default = 262144net. core. rmem_max = 262144net. core. wmem_default = 262144net. core. wmem_max = 262144 ### install oracle by liups echo endEOF
In this way, you can easily solve the problem. you do not need to modify the values in the echo every time ., It is found that when cat <eof contains a $ variable, the $ variable name and variable name will be converted into spaces. it can be done after the escape character is added. Similarly, when cat <eof contains ', the command in ''is converted to the result. you also need to add escape characters such as www.2cto.com cat <EOF>/home/oracle /. bash_profilePATH = $ PATH: $ HOME/binexport ORACLE_BASE =/u01/app/oracleexport ORACLE_HOME = $ ORACLE_BASE/10.2.0/db_1export ORACLE_SID = yqptexport PATH = $ PATH: $ ORACLE_HOME/binexport NLS_LANG = "AMERICAN_AMERICA.AL32UTF8" EOF
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.