本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
    经过前面的若干,我们已经了解并尝试了rman备份的一些命令,但是在实际环境中,不可能每次备份都要求DBA一条命令一条命令来敲(dba手指头都痉挛啦,老板看着更是肉疼,早知道就是打几个字母,雇个打字的,成本不是更低么),通过前章的学习我们已经立志一定要优化的干活,所以我们应该写好一段脚本,然后放在服务器端定时执行。DBA只需要时不时看看备份的结果就成了。 在写脚本之前,我们先明确一下我们的目标: 1、每天夜间1点执行; 2、数据库全备,同时备份控制文件及归档日志文件,备份文件保存至:D:\backup\目录下,并在完成归档日志文件备份后,自动删除已备份的归档日志; 3、备份保留7天,过期则自动删除; 4、保留操作日志备查;     以Windows环境为例(linux环境下与此基本类似,rman的脚本您甚至连改都不用改,就把调用rman脚本的命令行改改就行了): 1、编写rman批处理文件 保存至:E:\oracleScript\backup\database_backup_jssweb.rmanRUN {CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF7 DAYS;CONFIGURE CONTROLFILE AUTOBACKUP ON;CONFIGURE CONTROLFILE AUTOBACKUP FORMAT F...
plsql连接Oracle 12c时报错ORA-28040 问题描述:客户端连接Oracle 12c的时候,报错误:ORA-28040: No matching authentication protocol问题原因:Oracle 12c的参数SQLNET.ALLOWED_LOGON_VERSION默认等于11。当我们使用11g JDBC之前版本的thin驱动连接的时候,就会报错。解决方法:在数据库服务器上的oracle/network/admin/sqlnet.ora文件添加一行SQLNET.ALLOWED_LOGON_VERSION=8,重启数据库,重新连接数据库,可以成功连接,问题解决。
 
0
oracle10g windows系统定时备份新建一个脚本bat批处理文件。@echo off set name=%date%:~0,10% echo -------------------------------------------------- echo -------------正在执行数据库备份-------------- echo -------------------------------------------------- echo ... echo ... echo 导出Database... exp sys/sys@orcl file=e:\databasebak\%name%.dmp然后,作个定时任务。具体就不再说了。
opatch lsinventory 报oraInst.loc文件不存在   分类: Oracle 在检查数据库安装补丁信息时,需要使用opatch命令。这时就需要读取oraInst.loc文件,不同的系统这个文件的位置不一样。HP_UX 默认文件位置:  /var/opt/oracle/     AIX & LINUX 默认文件位置: /etc我遇到的情况显示如下信息:$ opatch lsinventoryInvoking OPatch 10.2.0.4.3Oracle Interim Patch Installer version 10.2.0.4.3Copyright (c) 2007, Oracle Corporation.  All rights reserved.Oracle Home       : /oracle10g/oracleCentral Inventory : n/a   from           : OPatch version    : 10.2.0.4.3OUI version       : 10.2.0.4.0OUI location      : /oracle10g/oracle/ouiLog file location : n/aOPatch cannot find a valid oraInst.loc file to locate Central Inventory.OPatch failed with error code 104根据自己的系统,到默认文件...
[INS-20802] Oracle Net Configuration Assistant failed。在安装Oracle 11g R2时出现了该错误提示。以前安装的时候没有碰到过类似的错误。原来是64bit和32bit系统兼容性的问题。如果基于64bit硬件安装32bit 的Linux 和32bit的Oracle 11g,则需要安装patch 8670579。下面给出patch的安装过程。一、错误提示    [INS-20802] Oracle Net Configuration Assistant failed .    Cause --  The plug-in failed in its perform method.    Action --  Refer to the logs or contact Oracle Support Services.    Log File Location      /u01/oraInventory/logs/installActions2011-10-27_02_42-57PM.log      查看日志文件:          INFO: Oracle Net Services Configuration:    INFO: #    INFO: # An unexpected error has been detected by HotSpot Virtual Machine:    INFO: #    INFO: #  SIGSEGV (0xb) at pc=0xa446a43c, pid=9431, t...
magento2 wdcp_v3安装程序时报错误:  exception 'Exception' with message 'Warning: Error while sending QUERY packet以下是修改的wdcp mysql5.6的配置文件,修改后重启,就可以了。# mysql conf /etc/my.cnf# Created by http://www.wdlinux.cn# Last Updated 2010.06.01[client]port        = 3306socket        = /tmp/mysql.sock[mysqld]port        = 3306socket        = /tmp/mysql.sockskip-external-lockingkey_buffer_size = 32Mmax_allowed_packet = 64Mtable_open_cache = 512sort_buffer_size = 1Mread_buffer_size = 1Mread_rnd_buffer_size = 2Mmyisam_sort_buffer_size = 8Mthread_cache_size = 8query_cache_size = 64Mthread_concurrency = 8max_connections = 5000wait_timeout = 100interactive_timeout = 30max_connect_errors = 9long_query_time = 1tmp_table_size = 32M#log-bin=mysql-bin#binlog_format=mixed#server-id    = 1[mysqldump]quickmax_allowed_packet = 8M[mysql]no-auto-rehash[my...
 
0

mysql-proxy读写分离

发表者:admin分类:数据库2016-06-07 17:17:01 阅读[2247]
下载地址:mysql-proxy-0.8.3-linux-glibc2.3-x86-64bit.tar.gzhttp://downloads.mysql.com/archives/proxy/添加用户:[root@martin  tools]# groupadd -r -g 303 mysql-proxy [root@martin  tools]# useradd -g mysql -u 303 -r -s /sbin/nologin mysql-proxy[root@martin tools]# tar xf mysql-proxy-0.8.3-linux-glibc2.3-x86-64bit.tar.gz  -C /usr/local/ [root@martin tools]# cd /usr/local/ [root@martin local]# ln -sv mysql-proxy-0.8.3-linux-glibc2.3-x86-64bit/ mysql-proxy配置服务脚本:[root@martin mysql-proxy]# vim /etc/rc.d/init.d/mysql-proxy #!/bin/bash # # mysql-proxy This script starts and stops the mysql-proxy daemon # # chkconfig: - 78 30 # processname: mysql-proxy # description: mysql-proxy is a proxy daemon for mysql # Source function library. . /etc/rc.d/init.d/functionsprog="/usr/local/mysql-proxy/bin/mysql-proxy"conf="/etc/mysql-proxy.cnf"PROXY_PID="/var/run/mysql-proxy.pid"  # Check that networking is up. [ ${NETWORKING} = "no" ] &...
Lepus(天兔) 是数据库企业监控系统,针对互联网企业开发的一款专业、强大的企业数据库监控管理系统,企业通过Lepus可以对数据库的实时健康和各种性能指标进行全方位的监控。目前已经支持MySQL、Oracle、MongoDB、Redis数据库的全面监控. Lepus可以在数据库出现故障或者潜在性能问题时,根据用户设置及时将数据库的异常进行报警通知到数据库管理员进行处理和优化,帮助企业解决数据库性能监控问题,及时发现性能和瓶颈,避免由数据库潜在问题造成的直接经济损失。Lepus能够查看各种实时性能状态指标,并且对监控、性能数据进行统计分析,从运维者到决策者多个层面的视角,查看相关报表。帮助决策者对未来数据库容量进行更好的规划,从而降低了硬件成本。Lepus 是一个真正的能够帮助企业解决数据库监控和运维的问题,主要可以帮企业解决如下问题:1.帮助企业解决数据库性能监控问题,及时发现性能和瓶颈,避免由数据库潜在问题造成的直接经济损失 "Lepus数据库企业监控系统"是针对互联网企业开发的一款专业、强大的企业数据库监控管理系统,企业通过Lepus可以对数据库的实时健康和各种性能指标进行全方位的监控。目前已经支持MySQL、Oracle、MongoDB、Redis数...
Table of Contents      Steps for a Fresh Installation of MySQL Installing Additional MySQL Products and Components Upgrading MySQL with the MySQL Yum Repository Replacing a Native Third-Party Distribution of MySQLSteps for a Fresh Installation of MySQLNote The following instructions assume that MySQL is not already installed on your system using a third-party-distributed RPM package; if that is not the case, follow the instructions given in Replacing a Native Third-Party Distribution of MySQL.Adding the MySQL Yum Repository First, add the MySQL Yum repository to your system's repository list. Follow these steps: Go to the download page for MySQL Yum repository at http://dev.mysql.com/downloads/repo/yum/. Select and download the release package for your platform. ...
SQL> startupORA-01081: 无法启动已在运行的 ORACLE - 请首先关闭它SQL> startupORA-01081: 无法启动已在运行的 ORACLE - 请首先关闭它SQL> shutdown abortORACLE 例程已经关闭。SQL> startupORACLE 例程已经启动。Total System Global Area  612368384 bytesFixed Size                  1250428 bytesVariable Size             306187140 bytesDatabase Buffers          297795584 bytesRedo Buffers                7135232 bytes数据库装载完毕。ORA-16038: 日志 1 序列号 77 无法归档ORA-19809: 超出了恢复文件数的限制ORA-00312: 联机日志 1 线程 1:'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG'查看报警文件,如下信息:ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes availableSQL>...
    总共51页,当前第22页 | 页数:
  1. 12
  2. 13
  3. 14
  4. 15
  5. 16
  6. 17
  7. 18
  8. 19
  9. 20
  10. 21
  11. 22
  12. 23
  13. 24
  14. 25
  15. 26
  16. 27
  17. 28
  18. 29
  19. 30
  20. 31
  21. 32