欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 安装RedHat Advanced Server 我装RedHat Advanced Server一直都是先择最小安装的,然后再装必须的开发环境及X11组件, 这样可以节约很多的空间(RHEL3最小安装为580M,RHEL4为646M左右,加上X11和必要的
欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入
安装RedHat Advanced Server
我装RedHat Advanced Server一直都是先择最小安装的,然后再装必须的开发环境及X11组件, 这样可以节约很多的空间(RHEL3最小安装为580M,RHEL4为646M左右,加上X11和必要的开发环境100M多一点吧). 如何手工安装必要的开发库和X11环境呢?
RHEL3
放入第二张安装盘,运行以下命令:
mount /mnt/cdrom
cd /mnt/cdrom/RedHat/RPMS
rpm -ivh cpp*.rpm
rpm -ivh XFree86-4.3*.rpm XFree86-base-fonts-4*.rpm \
XFree86-font-utils-4*.rpm XFree86-xauth-4*.rpm \
XFree86-xfs-4*.rpm chkfontpath*.rpm xinitrc*.rpm \
switchdesk*.rpm ttmkfdir*.rpm XFree86-tools*.rpm \
desktop-file-utils*.rpm gtk+-1.2*.rpm qt-3.1.2*.rpm \
libmng-1*.rpm XFree86-Mesa-libGLU*.rpm xterm*.rpm \
gdk-pixbuf*.rpm
放入第三张安装盘,运行以下命令:
mount /mnt/cdrom
cd /mnt/cdrom/RedHat/RPMS
rpm -ivh gcc-3*.rpm glibc-devel*.rpm glibc-headers*.rpm \
glibc-kernheaders*.rpm \
gcc-c++-3.2.3-42.i386.rpm \
libstdc++-devel-*.i386.rpm \
compat-libstdc++-*.i386.rpm
RHEL4
RedHat 安装开发包
Disk2: rpm -i cpp-3.4.3-22.1.i386.rpm
Disk3: rpm -i gcc-3.4.3-22.1.i386.rpm \
glibc-devel-2.3.4-2.9.i386.rpm \
glibc-headers-2.3.4-2.9.i386.rpm \
glibc-kernheaders-2.4-9.1.87.i386.rpm \
kernel-devel-2.6.9-11.EL.i686.rpm
RedHat 安装X11
Disk2: rpm -i xorg-x11-font-utils-6.8.2-1.EL.13.6.i386.rpm \
xorg-x11-xauth-6.8.2-1.EL.13.6.i386.rpm \
xorg-x11-xfs-6.8.2-1.EL.13.6.i386.rpm \
switchdesk-4.0.6-3.noarch.rpm \
ttmkfdir-3.0.9-14.i386.rpm \
xterm-192-1.i386.rpm \
xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.6.i386.rpm
Disk3 rpm -i xorg-x11-6.8.2-1.EL.13.6.i386.rpm \
chkfontpath-1.10.0-2.i386.rpm \
xinitrc-4.0.14-1.noarch.rpm \
fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm \
xorg-x11-6.8.2-1.EL.13.6.i386.rpm \
安装前的准备工作
1,改一下sys.shmmax参数默认值为32M,你可以改成256M或512M就足够了,在/etc/sysctl.conf最后加入一行sys.shmmax=, 运行sysctl -p使其生效.
2,在RHEL4 Update1上运行 ln -s /usr/lib/libstdc++.so.6.0.3 /usr/lib/libstdc++.so.5
3,安装libaio库,应当在第三张安装盘上.
安装Oracle 10g Release 2
安装过程不会有任何问题,我为了节约空间,删除了一些东西,$ORACLE_HOME目录下有jre和jdk目录, 可以将jre下面的内容删除,再建一个软件连链接,就可以了,命令如下:
rm -fr $ORACLE_HOME/jre
ln -s $ORACLE_HOME/jdk/jre $ORACLE_HOME/jre/1.4.2
之外还删除了$ORACLE_HOME/assistants/dcba/templates下面的一些大文件,两部总共可以空出160M空间吧.在安装时不会现什么问题,和第一版或Oracle 9i没什么本质区别.
创建数据库
可以用dbca来创建生成数据库的角本,然后退出dbca,再运行生成的创建角本,不会有什么问题的. 我在一个3G空间的VMware 5 Workstation的机器上安装操作系统,Oracle并生成了一个库,还多余200M空间左右.
附件A:创建Database的语句
connect "SYS"/"&&sysPassword" as SYSDBA
set echo on
spool /home/oracle/createdb/CreateDB.log
startup nomount pfile="/home/oracle/createdb/init.ora";
CREATE DATABASE "DB10G"
MAXINSTANCES 8
MAXLOGHISTORY 1
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
DATAFILE '/home/oracle/oradata/DB10G/system01.dbf' SIZE 256M REUSE EXTENT MANAGEMENT LOCAL
SYSAUX DATAFILE '/home/oracle/oradata/DB10G/sysaux01.dbf' SIZE 64M REUSE SMALLFILE
DEFAULT TEMPORARY TABLESPACE TEMP TEMPFILE '/home/oracle/oradata/DB10G/temp01.dbf'
SIZE SIZE SIZE 48M REUSE SMALLFILE
UNDO TABLESPACE "UNDOTBS1" DATAFILE '/home/oracle/oradata/DB10G/undotbs01.dbf' SIZE 128M REUSE
CHARACTER SET WE8ISO8859P1
NATIONAL CHARACTER SET AL16UTF16
LOGFILE
GROUP 1 ('/home/oracle/oradata/DB10G/redo01.log') SIZE 51200K,
GROUP 2 ('/home/oracle/oradata/DB10G/redo02.log') SIZE 51200K,
GROUP 3 ('/home/oracle/oradata/DB10G/redo03.log') SIZE 51200K
USER SYS IDENTIFIED BY "&&sysPassword" USER SYSTEM IDENTIFIED BY "&&systemPassword";
spool off
附件B:创建Database需要运行的角本
connect "SYS"/"&&sysPassword" as SYSDBA
set termout off
set echo on
spool /home/oracle/createdb/CreateDBCatalog.log
@/home/oracle/product/10g/rdbms/admin/catalog.sql;
@/home/oracle/product/10g/rdbms/admin/catblock.sql;
@/home/oracle/product/10g/rdbms/admin/catproc.sql;
@/home/oracle/product/10g/rdbms/admin/catoctk.sql;
@/home/oracle/product/10g/rdbms/admin/owminst.plb;
connect "SYSTEM"/"&&systemPassword"
@/home/oracle/product/10g/sqlplus/admin/pupbld.sql;
connect "SYSTEM"/"&&systemPassword"
set echo on
spool /home/oracle/createdb/sqlPlusHelp.log
@/home/oracle/product/10g/sqlplus/admin/help/hlpbld.sql helpus.sql;
spool off

How to effectively monitor MySQL performance? Use tools such as mysqladmin, SHOWGLOBALSTATUS, PerconaMonitoring and Management (PMM), and MySQL EnterpriseMonitor. 1. Use mysqladmin to view the number of connections. 2. Use SHOWGLOBALSTATUS to view the query number. 3.PMM provides detailed performance data and graphical interface. 4.MySQLEnterpriseMonitor provides rich monitoring functions and alarm mechanisms.

The difference between MySQL and SQLServer is: 1) MySQL is open source and suitable for web and embedded systems, 2) SQLServer is a commercial product of Microsoft and is suitable for enterprise-level applications. There are significant differences between the two in storage engine, performance optimization and application scenarios. When choosing, you need to consider project size and future scalability.

In enterprise-level application scenarios that require high availability, advanced security and good integration, SQLServer should be chosen instead of MySQL. 1) SQLServer provides enterprise-level features such as high availability and advanced security. 2) It is closely integrated with Microsoft ecosystems such as VisualStudio and PowerBI. 3) SQLServer performs excellent in performance optimization and supports memory-optimized tables and column storage indexes.

MySQLmanagescharactersetsandcollationsbyusingUTF-8asthedefault,allowingconfigurationatdatabase,table,andcolumnlevels,andrequiringcarefulalignmenttoavoidmismatches.1)Setdefaultcharactersetandcollationforadatabase.2)Configurecharactersetandcollationfor

A MySQL trigger is an automatically executed stored procedure associated with a table that is used to perform a series of operations when a specific data operation is performed. 1) Trigger definition and function: used for data verification, logging, etc. 2) Working principle: It is divided into BEFORE and AFTER, and supports row-level triggering. 3) Example of use: Can be used to record salary changes or update inventory. 4) Debugging skills: Use SHOWTRIGGERS and SHOWCREATETRIGGER commands. 5) Performance optimization: Avoid complex operations, use indexes, and manage transactions.

The steps to create and manage user accounts in MySQL are as follows: 1. Create a user: Use CREATEUSER'newuser'@'localhost'IDENTIFIEDBY'password'; 2. Assign permissions: Use GRANTSELECT, INSERT, UPDATEONmydatabase.TO'newuser'@'localhost'; 3. Fix permission error: Use REVOKEALLPRIVILEGESONmydatabase.FROM'newuser'@'localhost'; then reassign permissions; 4. Optimization permissions: Use SHOWGRA

MySQL is suitable for rapid development and small and medium-sized applications, while Oracle is suitable for large enterprises and high availability needs. 1) MySQL is open source and easy to use, suitable for web applications and small and medium-sized enterprises. 2) Oracle is powerful and suitable for large enterprises and government agencies. 3) MySQL supports a variety of storage engines, and Oracle provides rich enterprise-level functions.

The disadvantages of MySQL compared to other relational databases include: 1. Performance issues: You may encounter bottlenecks when processing large-scale data, and PostgreSQL performs better in complex queries and big data processing. 2. Scalability: The horizontal scaling ability is not as good as Google Spanner and Amazon Aurora. 3. Functional limitations: Not as good as PostgreSQL and Oracle in advanced functions, some functions require more custom code and maintenance.


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

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

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.

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

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.