欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 一,基本配置: 1.以root登录,挂载linux iso文件 [root@oracle ~]# hostname oracle.junjie.com [root@oracle ~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=oracle
欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入
一,基本配置:
1.以root登录,挂载linux iso文件
[root@oracle ~]# hostname
oracle.junjie.com
[root@oracle ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=oracle.junjie.com
[root@oracle ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:65:FC:1D
inet addr:192.168.101.88 Bcast:192.168.101.255 Mask:255.255.255.0
[root@oracle ~]# mkdir /mnt/cdrom/
[root@oracle ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
2. 检查包是否安装
[root@oracle ~]# cd /mnt/cdrom/Server/
libXp-1.0.0-8.1.el5.i386.rpm
binutils-2.17.50.0.6-12.el5.i386.rpm
compat-db-4.2.52-5.1.i386.rpm
compat-libstdc++-296-2.96-138.i386.rpm
control-center-2.16.0-16.el5.i386.rpm
gcc-4.1.2-46.el5.i386.rpm
gcc-c++-4.1.2-46.el5.i386.rpm
glibc-2.5-42.i386.rpm
glibc-common-2.5-42.i386.rpm
libstdc++-4.1.2-46.el5.i386.rpm
libstdc++-devel-4.1.2-46.el5.i386.rpm
make-3.81-3.el5.i386.rpm
pdksh-5.2.14-36.el5.i386.rpm
sysstat-7.0.2-3.el5.i386.rpm
setarch-2.0-1.1.i386.rpm
[root@oracle Server]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
[root@oracle Server]# rpm -ivh binutils-2.17.50.0.6-12.el5.i386.rpm
[root@oracle Server]# rpm -ivh compat-db-4.2.52-5.1.i386.rpm
[root@oracle Server]# rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
[root@oracle Server]# rpm -ivh control-center-2.16.0-16.el5.i386.rpm
[root@oracle Server]# rpm -ivh gcc-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh gcc-c++-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh glibc-2.5-42.i386.rpm
[root@oracle Server]# rpm -ivh glibc-common-2.5-42.i386.rpm
[root@oracle Server]# rpm -ivh libstdc++-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh libstdc++-devel-4.1.2-46.el5.i386.rpm
[root@oracle Server]# rpm -ivh make-3.81-3.el5.i386.rpm
[root@oracle Server]# rpm -ivh pdksh-5.2.14-36.el5.i386.rpm
[root@oracle Server]# rpm -ivh sysstat-7.0.2-3.el5.i386.rpm
[root@oracle Server]# rpm -ivh setarch-2.0-1.1.i386.rpm
3.修改/etc/hosts文件
[root@oracle ~]# echo "192.168.101.88 oracle.junjie.com" 》/etc/hosts
4.新建用户和组
[root@oracle ~]# groupadd dba
[root@oracle ~]# groupadd oinstall
[root@oracle ~]# groupadd oper
[root@oracle ~]# useradd -g oinstall -G dba,oper oracle
[root@oracle ~]# echo 'zhu.110' |passwd --stdin oracle
Changing password for user oracle.
passwd: all authentication tokens updated successfully.
5.添加文件
[root@oracle ~]# vim /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@oracle ~]# vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@oracle ~]# vim /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
[root@oracle ~]# vim /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
6. 新建文件,修改权限
[root@oracle ~]# mkdir /u01
[root@oracle ~]# mkdir -pv /u01/app/oracle
mkdir: created directory `/u01/app'
mkdir: created directory `/u01/app/oracle'
[root@oracle ~]# chown -R oracle:oinstall /u01/app/oracle/
[root@oracle ~]# chmod -R 775 /u01/app/oracle/
[root@oracle ~]# mkdir /u01/flash_recovery_area
[root@oracle ~]# chown oracle:oinstall /u01/flash_recovery_area/
[root@oracle ~]# chmod 755 /u01/flash_recovery_area/
二。安装oracle
2.1.添加以下几行
[root@oracle ~]# su - oracle
[oracle@oracle ~]$ vim .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.2.0
export ORACLE_SID=xjzhujunjie
[oracle@oracle ~]$ . .bash_profile
[oracle@oracle ~]$ env | grep ORA
ORACLE_SID=xjzhujunjie
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0
2.2更换光盘
[root@oracle ~]# umount /mnt/cdrom/
我使用的光盘是:(ora102forlinux.iso)
[root@oracle ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@oracle ~]# ll /mnt/cdrom/
total 2
dr-xr-xr-x 1 root root 2048 Jul 2 2005 database
[root@oracle ~]#
2.3 测试图形界面($)
测试图形界面($)出现以下为正常,
若不成功则:#xhost local:oracle(后到VM中测试)
2.4 测试图形界面($)
2.5 运行以下命令,进行安装
超详细图解安装,如下:
[1] [2] [3] [4]
Oracle优化的几点经验
Oracle表空间和数据文件管理
Oracle Instant Client的安装和使用
oracle将表名和字段名变为大写
小表缓存到内存简析
ORACLE分组统计
Oracle中的kfed和kfod
Oracle 11g windows备份脚本
oracle远程登录解决办法
oracle 11g的ORA-28001处理
编辑推荐
? [安装配置]在同一台机器上装了双实例,出现的问题
? [安装配置]Oracle启动停止命令
? [备份恢复]Oracle10g的新特性flashback drop
? [备份恢复]Oracle数据库文件恢复与备份思路
? [开发技术]Oracle中表的四种连接方式讲解
? [性能调优]浅谈Oracle性能优化可能出现的问题
? [开发技术]Oracle数据库中表的四种连接方式讲解
? [性能调优]Oracle性能调整的十大要点
? [性能调优]数据库设计规范化的五个要求
相关产品和培训
文章评论
友情推荐链接
?Asp源码 PHP源码
?CGI源码 JSP源码
?建站书籍教程
?服务器软件 .net源码
?建站工具软件
?IDC资讯大全
?机房品质万里行
?IDC托管必备知识
?网站推广优化
?全国IDC报价

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


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

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

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.

SublimeText3 Mac version
God-level code editing software (SublimeText3)