欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 一、系统要求: 最低内存256M,建议512M,硬盘空间5G(AS3自定义安装,操作系统大概是2个G,oracle9204大概是2.5G),如果是把oracle安装文件复制到硬盘上再安装则需要7G;交换分区为内存倍,如果内
欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入
一、系统要求:
最低内存256M,建议512M,硬盘空间5G(AS3自定义安装,操作系统大概是2个G,oracle9204大概是2.5G),如果是把oracle安装文件复制到硬盘上再安装则需要7G;交换分区为内存倍,如果内存为1G或更大时为内存相同大小查看物理内存:# grep MemTotal /proc/meminfo查看交换分区大小:# /sbin/swapon ?s
二、安装前的准备:
oracle9204安装软件(一共三张盘,可到http://www.oracle.com下载),oracle9204补丁:p3006854_9204_LINUX.zip,p3119415_9204_LINUX.zip,p2617419_210_GENERIC.zip;在安装oracle9204前必须打p3006854_9204_LINUX.zip补丁,p3119415_9204_LINUX.zip和p2617419_210_GENERIC.zip是agent的补丁,如果不打这两个补丁agent就没法正常启动。因为是直接安装9204的版本,所以p3095277_9204_LINUX.zip的补丁就不用打了。
三、检查以下软件包是否已安装:
compat-db-4.0.14-5.i386.rpm compat-gcc-7.3-2.96.122.i386.rpm compat-gcc-c++-7.3-2.96.122.i386.rpm compat-libstdc++-7.3-2.96.122.i386.rpm compat-libstdc++-devel-7.3-2.96.122.i386.rpm openmotif21-2.1.30-8.i386.rpm setarch-1.3-1.i386.rpm tcl-8.3.5-92.i386.rpm检查软件包# rpm ?qa | grep compat compat-db-4.0.14-5.i386 compat-gcc-7.3-2.96.122.i386 compat-gcc-c++-7.3-2.96.122.i386 compat-libstdc++-7.3-2.96.122.i386 compat-libstdc++-devel-7.3-2.96.122.i386 # rpm ?qa | grep openmotif21 openmotif21-2.1.30-8.i386
# rpm ?qa | grep setarch setarch-1.3-1.i386
#rpm ?qa | grep tcl tcl-8.3.5-92.i386在AS3的第三张及其它光盘上有安装软件包,例:# rpm ?ihv compat- compat-gcc-7.3-2.96.122.i386.rpm注意:软件包的安装是有先后次序。
四、设置系统参数
1.更改gcc、g++版本mv /usr/bin/gcc /usr/bin/gcc323 ln -s /usr/bin/gcc296 /usr/bin/gcc mv /usr/bin/g++ /usr/bin/g++323 ln -s /usr/bin/g++296 /usr/bin/g++注意:如果gcc296,g++296没安装,请先安装该软件包2.设置内核参数修改/etc/sysctl.conf、/etc/security/limits.conf两个文件#vi /etc/sysctl.conf添加以下参数kernel.shmmax = 2147483648 (以字节为单位,物理内存*1024*1024*2,为物理内存的2倍)
kernel.shmmni=4096 kernel.shmall=2097152 kernel.sem=250 32000 100 128 fs.file-max=65536 net.ipv4.ip_local_port_range=1024 65000保存退出执行以下命令使配置马上生效# sysctl -p #vi /etc/security/limits.conf添加以下参数oracle hard nofile 65536 oracle soft nofile 65536 oracle hard nproc 16384 oracle soft nproc 16384
五、创建运行oracle数据
系统管理用户及设置其的环境变量1.创建组和用户# groupadd oinstall # groupadd dba # useradd -g oinstall -G dba oracle # passwd oracle
2.设置用户环境变量以oracle打开新的终端窗口或 在root 终端窗口上# su ? oracle $ vi $HOME/bash_profile添加export LD_ASSUME_KERNEL=2.4.1 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0 export ORACLE_SID=myora export ORACLE_TERM=xterm # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin――这是设置参数文件所在位置,例如:tnsnames.ora,sqlnet.ora, spfilexxx.ora export NLS_LANG=“Simplified Chinese_china”。ZHS16GBK export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data export LD_LIBRARY_PATH=$ LD_LIBRARY_PATH ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib export PATH=$PATHORACLE_HOME/bin $ source $HOME/.bash_profile――让设置马上生效或重新登录系统3.创建oracle安装目录以root用户身份打开另一个终端窗口# mkdir -p /u01/app/oracle # chown ?R oracle.oinstall /u01/app/oracle # chmod ?R 775 /u01/app/oracle # mkdir /var/opt/oracle # chown ?R oracle.dba /var/opt/oracle # chmod ?R 775 /var/opt/oracle
六、安装oracle数据库系统(当前用户是root)
1.解包# unzip ship_9204_linux_disk1.cpio.gz # unzip ship_9204_linux_disk2.cpio.gz # unzip ship_9204_linux_disk3.cpio.gz # cpio ?idmv
进入Disk1目录$ ./runInstaller数据库用户组为 “dba”
安装时一定要记得选择支持多语言核心字符集(AL32UTF,选择安装过程中自动创建数据安装过程中会提示用root 执行/tmp/orainstRoot.sh 、/u01/app/oracle/product/9.2.0/root.sh这两个脚本安装时agent会启动失败,略过继续下一步…。
打agent补丁以修正agent不能正常启动的bug (还是oracle 用户身份)
先停止oracle的一些后台服务$ sqlplus “sys/as sysdba” ――提示输入oracle sys用户的密码,直接回车就可以SQL>;shutdown immediate SQL>;lsnrctl stop $ unzip p3238244_9204_LINUX.zip $ cp p2617419_210_GENERIC.zip /tmp $ cd /tmp $ unzip p2617419_210_GENERIC.zip $ export PATH=$PATH:/tmp/Opatch $ export PATH=$PATH:/sbin $ cd ……/……/ 3238244 $ opatch apply $ cd $ORACLE_HOME/network/lib $ make ?f ins_oemagent.mk install $ sqlplus “sys/as sysdba” ――提示输入密码回车略过SQL>;startup SQL>;exit $ lsnrctl start运行 $ agentctl start 测试agent代理能否正常工作$ agentctl start如果数据库不能正常启动请执行$ dbca把旧库删除再创建一个新库七、安装好后打/u01/app/oracle/product/9.2.0/network/admin/sqlnet.ora文件添加SQLNET.AUTHENTICATION_SERVICE=(NTS)
只要在本地主机上运行sqlplus以数据库系统管理员登录都必须输入密码才可进入oracle数据库系统。

MySQLviewshavelimitations:1)Theydon'tsupportallSQLoperations,restrictingdatamanipulationthroughviewswithjoinsorsubqueries.2)Theycanimpactperformance,especiallywithcomplexqueriesorlargedatasets.3)Viewsdon'tstoredata,potentiallyleadingtooutdatedinforma

ProperusermanagementinMySQLiscrucialforenhancingsecurityandensuringefficientdatabaseoperation.1)UseCREATEUSERtoaddusers,specifyingconnectionsourcewith@'localhost'or@'%'.2)GrantspecificprivilegeswithGRANT,usingleastprivilegeprincipletominimizerisks.3)

MySQLdoesn'timposeahardlimitontriggers,butpracticalfactorsdeterminetheireffectiveuse:1)Serverconfigurationimpactstriggermanagement;2)Complextriggersincreasesystemload;3)Largertablesslowtriggerperformance;4)Highconcurrencycancausetriggercontention;5)M

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

Adding MySQL users through the PHP web interface can use MySQLi extensions. The steps are as follows: 1. Connect to the MySQL database and use the MySQLi extension. 2. Create a user, use the CREATEUSER statement, and use the PASSWORD() function to encrypt the password. 3. Prevent SQL injection and use the mysqli_real_escape_string() function to process user input. 4. Assign permissions to new users and use the GRANT statement.

MySQL'sBLOBissuitableforstoringbinarydatawithinarelationaldatabase,whileNoSQLoptionslikeMongoDB,Redis,andCassandraofferflexible,scalablesolutionsforunstructureddata.BLOBissimplerbutcanslowdownperformancewithlargedata;NoSQLprovidesbetterscalabilityand

ToaddauserinMySQL,use:CREATEUSER'username'@'host'IDENTIFIEDBY'password';Here'showtodoitsecurely:1)Choosethehostcarefullytocontrolaccess.2)SetresourcelimitswithoptionslikeMAX_QUERIES_PER_HOUR.3)Usestrong,uniquepasswords.4)EnforceSSL/TLSconnectionswith

ToavoidcommonmistakeswithstringdatatypesinMySQL,understandstringtypenuances,choosetherighttype,andmanageencodingandcollationsettingseffectively.1)UseCHARforfixed-lengthstrings,VARCHARforvariable-length,andTEXT/BLOBforlargerdata.2)Setcorrectcharacters


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Notepad++7.3.1
Easy-to-use and free code editor
