oracle10g 修改 sga pga
C:\Users\Administrator>sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on 星期二 5月 26 11:12:48 2015Copyright (c) 1982, 2005, Oracle. All rights reserved.连接到:Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - ProductionWith the Partitioning, OLAP and Data M...
Oracle PGA内存的配置和使用
--预备知识PGA(Process Global Area),是server process一段私有内存区,它包含有全局变量,数据结构和一些控制信息。在Oracle8i 中,PGA调整非常复杂,要调整SORT_AREA_SIZE、HASH_AREA_SIZE、BITMAP_MERGE_AREA_SIZE、 CREATE_BITMAP_AREA_SIZE等参数。在ORACLE9I中,只需要调整 PGA_AGGREGATE_TARGET。--PGA_AGGREGA...
binlog 选项和变量
expire-log-days=days:binlog需要保留的天数。当二进制日志已经轮换或服务器重启时,比指定数值老的文件将从文件系统中清除。默认为0,binlog文件永不删除。log-bin[=basename]:通过在my.cnf文件中添加log-bin选项来开启二进制日志,提供binlog文件的基本名称log-bin-index[=filename]:给出索引文件的名称。log-bin-t...
mysqlbinlog 工具
mysqlbinlog 工具说明:它可以审查binlog文件及中继日志文件的内容。除了在本地去读binlog文件,mysqlbinlog同样可以从其他服务器上远程读取binlog文件基本用法:启动一个客户端连接到master,执行下面的命令查看它们在二进制日志中如何结束的。mysql> reset master;Query OK, 0 rows affected (0.10 sec)mysql> sh...
表类型对AUTO_INCREMENT的影响
如果有一张表,里面有个字段为id的自增主键,当已经向表里面插入了10条数据之后,删除了id为8,9,10的数据,再把mysql重启,之后再插入一条数据,那么这条数据的id值应该是多少,是8,还是11? 如果表的类型为MyISAM,那么是11。如果表的类型为InnoDB,则id为8。 这是因为两种类型的存储引擎所存储的最大ID记...
linux下mysql卸载
1. 查找安装的mysql包[root@root ~]# rpm -qa|grep -i mysqlmysql-community-libs-compat-5.6.24-3.el6.x86_64mysql-community-libs-5.6.24-3.el6.x86_64mysql-community-server-5.6.24-3.el6.x86_64mysql-community-common-5.6.24-3.el6.x86_64mysql-community-client-5.6.24-3.el6.x86_642. 停止mysql服务器...
Connecting to the MySQL Server
客户端程序连接MySql服务1. 不指定连接参数因为没有指定参数,将使用默认值语法:shell> mysql默认主机名为:localhost[root@root ~]# mysqlWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 10Server version: 5.6.24 MySQL Community Server (GPL)Copy...
mysql 下的提示和含义
提示含义mysql> 等待新的命令->等待下一行,多行命令中'>等待下一行,等待完成一个字符串,开始于一个单引号">等待下一行,等待完成一个字符串,开始于一...
Installing MySQL on Linux6 Using the MySQL Yum Repository
r操作系统:rhel6 1. 下载yum包 下载地址:http://dev.mysql.com/downloads/repo/yum/2. 选择下载对应的平台的包[root@root home]# sudo yum localinstall mysql-community-release-el6-5.noarch.rpm Loaded plugins: fastestmirror, refresh-packagekit, securitySetting up Local Pa...
Oracle 降低高水位线
高水位线什么是高水位线(High Water Mark)?所有的oracle段(segments)都有一个在段内容纳数据的上限,我们把这个上限称为“High Water Mark”或HWM。这个HWM是一个标记,用来说明已经有多少没有使用的数据块分配给这个segment。HWM通常增长的幅度为一次5个数据库,原则上HWM只会增大,不会缩小,即使将表中的数据...
ORA-00845: MEMORY_TARGET not supported on this system
数据库安装完成后,正常启动,运行一段时间后,需要修改参数 要重启实例重启报错 ORA-00845以下为查看错误代码给出的原因SQL> host oerr ora 0084500845, 00000, "MEMORY_TARGET not supported on this system"// *Cause: The MEMORY_TARGET parameter was not supported on this operating system or /dev/shm ...
Linux 防火墙配置
一、iptables服务状态查看防火墙:service iptables status开启防火墙:service iptables start关闭防火墙:service iptables stop查看iptables当前配置iptables -L -n接受一切请求iptables -P INPUT ACCEPT清空默认所有规则iptables -F清空自定义所有规则iptables -X计数器置0iptables -Z保存service ip...
安装rlwrap-0.37.tar.gz报错You need the GNU readline library to build
安装rlwrap-0.37.tar.gz报错安装步骤如下:# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.37.tar.gz# tar zxvf rlwrap-0.37.tar.gz# cd rlwrap-0.37/# ./configure# make# make install但是在执行完./configure后报如下错误:configure: WARNING: No termcap nor curses library foundchecking for ...
linux下增加swap分区
1.创建swap分区例如: # fdisk /dev/sdb Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (...
Linux 系统挂载数据盘
适用系统:Linux(Redhat , CentOS,Debian,Ubuntu)1、查看数据盘。在没有分区和格式化数据盘之前,使用“df -h”命令无法看到数据盘,可以使用“fdisk -l”命令查看。2、对数据盘进行分区、执行“fdisk -S 56 /dev/xvdb”命令,对数据盘进行分区;根据提示,依次输入“n”,“p”“1”,两次回车,“wq”,分区就开始...
修改linux主机名
1. 修改/etc/sysconfig/network 下的HOSTNAME 2.修改 /etc/hosts 3. 重启计算机
分页优化语句格式
select /*+ first_rows */ * from --11g 之前加这个hint,之后可以加也可以不加 (select * from (select a.*, rownum rn from (代码放这里,另外需要根据排序列,建立合适索引) a)...
oracle11g + centos6.5 静默安装
操作系统centos6.5oracle:11g一、检查安装oracle所需的rpm包二、环境配置ROOT用户下操作1)修改用户的SHELL的限制,修改/etc/security/limits.conf文件[root@localhost /]# vi /etc/security/limits.conf添加以下内容oracle soft nproc 2047oracle hard n...
Cent os 6.3上安装rlwrap
此文来自http://www.cnblogs.com/mchina/archive/2013/03/08/2934473.html在此谢谢原创作者。I. yum方式安装CentOS系统默认的yum软件仓库中没有rlwrap这个包,需要通过第三方yum源安装。a. 安装第三方yum源# r...
11G Oracle报ORA-01078和LRM-00109错解决方法
数据库安装完成后启动数据库时报错如下:SQL> startupORA-01078: failure in processing system parametersLRM-00109: could not open parameter file '/u01/app/oracle/product/11.2/db_1/dbs/initorcl.ora'[root@oracle dbs]# cd /u01/app/oracle/product/11.2/db_1/dbs/[root@oracle dbs]# lltotal 20-r...