Oracle 性能优化之内核的shmall 和shmmax 参数
error: install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1
SSH登录:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
ORA-20005:object statistics are locked (stattype = ALL)
把生产数据库得到一个用户数据导出到另一个数据库里,想收集统计信息的时候提示:ORA-20005:object statistics are locked (stattype = ALL)既然有锁,就肯定可以解锁:有两个办法,一个是对整个用户下所有的表解锁:DBMS_STATS.UNLOCK_schema_STATS('用户名');另一个是对单个表...
Oracle 11g系统自动收集统计信息的一些知识
在11g之前,当表的数据量修改超过总数据量的10%,就会晚上自动收集统计信息,如何判断10%,之前的帖子有研究过:Oracle自动统计信息的收集原理及实验。这个STALE_PERCENT=10%,是无法修改的,如果表非常大,10%是非常多的数据,非常有可能造成统计信息不准确。 在11g之后,STALE_PERCENT=10%是可以修改...
mysql批量kill session
有时候需要批量kill掉session,可以用以下办法,按照用户查出来,然后session信息,放到一个文件里,然后执行select concat('KILL ',id,';') from information_schema.processlist where user='xxx' into outfile '/var/lib/mysql-files/xxx.txt'; select concat('KILL ',id,';') from informati...
Oracle 11g的用户密码缺省为180天过期的修改方法
Oracle11g中,为了让使用者在半年时间内更改数据库用户密码,在缺省情况下,数据库用户的默认密码有效期为180天,而Oracle10g中缺省数据库用户密码为无期限。查看Oracle11g的默认数据库用户使用的密码参数文件 SQL> SELECT * FROM dba_profiles WHERE profile='DEFAULT' AND resource_n...
mysql报错Changed limits: max_open_files: 5000
OS:CentOS 7.4DB:mysql 5.7.17error.log日志里报错信息:2018-04-08T09:52:52.641263Z 0 [Warning] Changed limits: max_open_files: 5000 (requested 50000)2018-04-08T09:52:52.641467Z 0 [Warning] Changed limits: max_connections: 4190 (requested 10000)2018-04-08T09:52:52...
Centos 7 添加dns
修改etc下的resolv.conf,参照如下添加即可。[root@oracle etc]# vi resolv.conf nameserver 202.96.xxx.xxnameserver 202.96.xxx.xx
Centos 7 添加ip地址和网关
1.查看os版本[root@oracle network-scripts]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core)2.查看链接的是哪个网口,很多时候服务器上不只一个网口,本例就有4个,需要判断出目前网线插上的是哪个网口,本例是em1处于链接状态,那么配置ip的时候就配置这个em1...
load data infile ERROR 1045 (28000)
非root用户在mysql server部署机器通过load data infile命令导入数据时,报错:ERROR 1045 (28000): Access denied for user 'xxx'@'xxx' (using password: YES) 可能原因:这个一般是因为非root用户没有FILE Privilege,可以通过show grants查看当前登陆用户的权限,也可以通过select mysql.user查看...
关于oracle的空间查询
~~~~~~~~~~~~~ORACLE查看某用户占用了多少空间~~~~~~~~~~~~~~~~SELECT OWNER, TABLESPACE_NAME, ROUND(SUM(BYTES) / 1024 / 1024, 2) "USED(M)" FROM DBA_SEGMENTS GROUP BY OWNER, TABLESPACE_NAME ORDER BY SUM(BYTES) DESC;~~~~~~~~~~~~~~
Linux 7安装和配置phpmyadmin
1.在https://www.apachefriends.org/zh_cn/index.html这个网站下载xampp2.本文下载的是xampp-linux-x64-7.2.2-0-installer.runwget https://www.apachefriends.org/xampp-files/7.2.2/xampp-linux-x64-7.2.2-0-installer.run 3.修改文件的权限 chmod 755 xampp-linux-x64-7.2...
phpMyAdmin配置文件中的密文(blowfish_secret)太短
在phpMyAdmin页面上报错配置文件中的密文(blowfish_secret)太短查看下配置文件more config.inc.php/** * This is needed for cookie based authentication to encrypt password in * cookie. Needs to be 32 chars long. */$cfg['blowfish_secret'...
查看某个文件属于哪个RPM包
比如想知道/etc/httpd/conf.d属于哪个RPM包,如下:[root@aws yum.repos.d]# rpm -qf /etc/httpd/conf.dhttpd-2.4.6-67.el7_4.6.x86_64
安装zabbix需要php的两个模块php-bcmath和php-mbstring
1.操作系统版本[root@aws zabbix]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo)2.在安装zabbix的时候报错(红色是执行的语句),如下:yum install zabbix-server-mysql zabbix-web-mysql--> Finished Dependency Resoluti...
-bash: locate: command not found
1.刚才想用locate命令的时候提示没有这个命令,如下:[root@aws bin]# locate zabbix.conf-bash: locate: command not found2.用yum安装:[root@aws bin]# yum -y install mlocateLoaded plugins: amazon-id, rhui-lb, search-disabled-repos...
RedHat 7 安装PHP
1.操作系统版本[root@aws srclib]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo)2.下载php安装包,本例是5.6.30版本cd /usr/local/srcwget http://cn2.php.net/distributions/php-5.6.30.tar.gz3.解压tar -xzvf ph...
RedHat 7 安装HTTPD
1.查看操作系统版本[root@aws srclib]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo)2.首先安装apr,本例子是1.6.3版本wget http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz下载之后就是解压tar -xzvf apr-1.6.3.tar.gz...
Mysql在全局禁用自动提交
有一个参数init_connect可以实现这个功能,这个参数用来定义每个session建立时自动执行的query,也就是初始化会话根据这个参数,有3种方式禁用autocommit:1. mysql> set global init_connect='SET autocommit=0';Query OK, 0 rows affected (0.00 sec)mysql> show var...