上一页 1 2 3 4 5 6 ··· 8 下一页
  2020年12月9日
摘要: mysql> select * from engine_cost; + + + + + + + + | engine_name | device_type | cost_name | cost_value | last_update | comment | default_value | + + + 阅读全文
posted @ 2020-12-09 21:49 InnoLeo 阅读(158) 评论(0) 推荐(0) 编辑
  2020年12月8日
摘要: 关闭selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config setenforce 0 修改系统限制参数 cat >> /etc/security/limits.conf << EOF # ###custom 阅读全文
posted @ 2020-12-08 22:27 InnoLeo 阅读(343) 评论(0) 推荐(0) 编辑
  2020年12月7日
摘要: 查看全局权限: select * from mysql.user 查看库级别权限: select * from mysql.db 查看表级别权限: select * from mysql.tables_priv 查看列级别权限: select * from mysql.columns_priv 阅读全文
posted @ 2020-12-07 15:48 InnoLeo 阅读(70) 评论(0) 推荐(0) 编辑
  2020年12月6日
摘要: 相关参数 计信息的持久化功能 系统级 innodb_stats_persistent = ON 表级- STATS_PERSISTENT = 1 统计信息的持久化优化自动计算 系统级--innodb_stats_auto_recalc 表级--STATS_AUTO_RECALC 持久化统计信息时包含 阅读全文
posted @ 2020-12-06 08:00 InnoLeo 阅读(301) 评论(0) 推荐(0) 编辑
  2020年11月20日
摘要: 在MGR下,当主节点关掉后,在其他节点可以看到哪个节点为是新的主节点 [root@win2 logs]# tail -n 10 alert_3306.log 2020-11-19T12:19:42.561360Z 4 [Note] Plugin group_replication reported: 阅读全文
posted @ 2020-11-20 00:55 InnoLeo 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.MYSQL配置文件 [root@win1 3306]# cat my.cnf [client] default-character-set = uft8 port = 3306 socket = /data/3306/tmp/mysql.sock [mysql] prompt="\u@mysql 阅读全文
posted @ 2020-11-20 00:16 InnoLeo 阅读(109) 评论(0) 推荐(0) 编辑
  2020年11月18日
摘要: 1.准备环境 --用户用户组 groupadd mysql useradd -g mysql mysql --目录 mkdir -p /data/PXC/{data,redo,binlog,tmp,logs} chown -R mysql:mysql /data/PXC chmod -R 755 / 阅读全文
posted @ 2020-11-18 23:02 InnoLeo 阅读(322) 评论(0) 推荐(0) 编辑
摘要: mysqldump 备份 $ mysqldump --login-path=d1 --all-databases > /data/all.sql Warning: A partial dump from a server that has GTIDs will by default include 阅读全文
posted @ 2020-11-18 10:34 InnoLeo 阅读(301) 评论(0) 推荐(0) 编辑
摘要: mysql 导入数据出现问题 [root@mar data]# mysql -uroot -p'1' --socket=/tmp/mysql3306.sock </data/all.sql mysql: [Warning] Using a password on the command line i 阅读全文
posted @ 2020-11-18 10:32 InnoLeo 阅读(1189) 评论(0) 推荐(0) 编辑
  2020年11月12日
摘要: 环境: cat /etc/redhat-release sqlplus -v olsnodes -n -i -s -t OS: [root@hzcity ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.6 ( 阅读全文
posted @ 2020-11-12 19:06 InnoLeo 阅读(207) 评论(0) 推荐(0) 编辑
  2020年11月11日
摘要: 问题,RAC安装后一切正常,但是sqlplus 进入空闲连接 [oracle@hzcity dbs]$ sqlplus / as sysdba SQL*Plus: Release 12.2.0.1.0 Production on Wed Nov 11 18:26:07 2020 Copyright 阅读全文
posted @ 2020-11-11 19:08 InnoLeo 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1.安装DNS包 yum -y install bind 2.配置 设定/etc/named.conf, 只更改颜色标示部分 cat /etc/named.conf |grep -v ^#|grep -v ^$|grep -v ^// options { listen-on port 53 { an 阅读全文
posted @ 2020-11-11 00:42 InnoLeo 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1.三台虚拟机 虚拟机的配置如下 2./etc/hosts 设定,一般情况下用Vmware 两张网卡就可以了,不过可以用三张网卡 [root@nymtx asm]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 阅读全文
posted @ 2020-11-11 00:01 InnoLeo 阅读(951) 评论(1) 推荐(0) 编辑
  2020年11月4日
摘要: 问题描述 $ mysql -uroot -p </data/alldb.sql Enter password: ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTE 阅读全文
posted @ 2020-11-04 01:02 InnoLeo 阅读(683) 评论(0) 推荐(0) 编辑
  2020年11月2日
摘要: mysql 导入出错 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 查看参数 root@mysqldb 15 阅读全文
posted @ 2020-11-02 15:12 InnoLeo 阅读(248) 评论(0) 推荐(0) 编辑
  2020年10月23日
摘要: oracle 起动错误 SQL> startup; ORA-27154: post/wait create failed ORA-27300: OS system dependent operation:semget failed with status: 28 ORA-27301: OS fail 阅读全文
posted @ 2020-10-23 19:23 InnoLeo 阅读(286) 评论(0) 推荐(0) 编辑
  2020年10月22日
摘要: mysql 慢查询设置 在多数据库环境下-->/etc/mym.cnf 单数数据库存: -->/etc/my.cnf #slow-query-Log slow_query_log=on long_query_time=1 slow_query_log_file=/data/mysql/d5/slow 阅读全文
posted @ 2020-10-22 23:43 InnoLeo 阅读(211) 评论(0) 推荐(0) 编辑
  2020年10月21日
摘要: 用响应文件,加快安装oracleDB 软件 1.指定DBNAME和版本号 ORACLE_BASE=/oracle/DBNAME ORACLE_HOME=/oracle/DBNAME/版本号 2.响应文件手动生成 3.oracle的安装目录指定为/oracle/database/ 以下是脚本 #!/b 阅读全文
posted @ 2020-10-21 23:38 InnoLeo 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 当服务器上有多台数据库时,如何管理: 思路通过 找文件"/bin/oracle" 确定oracle实例,列出本台服务器上所有的"/bin/oracle "文件,然后再根据此文件所有者(DB OWNER),通过sqlplus 脚本关闭和开起 以下是代码 #!/bin/bash #+++++++++++ 阅读全文
posted @ 2020-10-21 23:17 InnoLeo 阅读(283) 评论(0) 推荐(0) 编辑
  2020年10月17日
摘要: 当一台服务器上有很多侦听时,如何用脚本一次起动 #!/bin/bash #+++++++++++++++++++++++++++++++++++++++++++++ # stop and start all oracle database listener in a server # # Param 阅读全文
posted @ 2020-10-17 01:53 InnoLeo 阅读(90) 评论(0) 推荐(0) 编辑
摘要: tr [OPTION]... SET1 [SET2] -s 替换重复的字符 -s: squeeze-repeats,用SET1指定的字符来替换对应的重复字符 (replace each input sequence of a repeated character that is listed in 阅读全文
posted @ 2020-10-17 01:51 InnoLeo 阅读(468) 评论(0) 推荐(0) 编辑
  2020年10月14日
摘要: 1. 错误日志: mysql执行过程中的错误信息/告警信息 event scheduler运行时所产生信息 mysq启动和停止过程中产生的信息 主从复制结构中,重从服务器IO复杂线程的启动信息 mysql> show variables where variable_name="log_error" 阅读全文
posted @ 2020-10-14 22:24 InnoLeo 阅读(206) 评论(0) 推荐(0) 编辑
  2020年9月15日
摘要: 1、优化器的优化方式 Oracle的优化器优化方式: RBO方式 Rule-Based Optimization,简称为RBO)。优化器在分析SQL语句时,所遵循的是Oracle内部预定的一些规则。比如我们常见的,当一个where子句中的一列有索引时去走索引。 CBO方式 基于代价的优化方式(Cos 阅读全文
posted @ 2020-09-15 21:49 InnoLeo 阅读(350) 评论(0) 推荐(0) 编辑
  2020年9月8日
摘要: 表统计数据: • NUM_ROWS:表(或者分区、子分区)中的数据记录数; • BLOCKS:表(或者分区、子分区)数据占用的数据块数; • EMPTY_BLOCKS:表(或者分区、子分区)中的空数据块数; • AVG_SPACE:表(或者分区、子分区)中平均空闲空间; • CHAIN_CNT:表( 阅读全文
posted @ 2020-09-08 23:01 InnoLeo 阅读(356) 评论(0) 推荐(0) 编辑
摘要: oracle analyze 和dbms_stats 的不同 阅读全文
posted @ 2020-09-08 22:34 InnoLeo 阅读(252) 评论(0) 推荐(0) 编辑
  2020年8月4日
摘要: SE38--> RSMEMROY --> 点击 COPY 阅读全文
posted @ 2020-08-04 21:49 InnoLeo 阅读(273) 评论(0) 推荐(0) 编辑
  2020年7月5日
摘要: SAP note 说明了ORA-01017产生的原因 Reason and Prerequisites Unlike a database connect with a normal database user (such as SAPR3), the SYSDBA/SYSOPER/INTERNAL 阅读全文
posted @ 2020-07-05 07:55 InnoLeo 阅读(298) 评论(0) 推荐(0) 编辑
  2020年7月3日
摘要: 在做SAP系统迁移的时间发现一个问题 ORA-01017: invalid username/password; logon denied root@test:> brconnect -u // -c -f check BR0801I BRCONNECT 7.40 (36) BR0805I Star 阅读全文
posted @ 2020-07-03 23:55 InnoLeo 阅读(588) 评论(0) 推荐(0) 编辑
  2020年7月1日
摘要: 状态列表: In Oracle documentation explain SWITCHOVER_STATUS column of v$database can have the following values: NOT ALLOWED – Either this is a standby dat 阅读全文
posted @ 2020-07-01 13:47 InnoLeo 阅读(977) 评论(0) 推荐(0) 编辑
摘要: 检查共享的NFS权限 [root@nymtx ~]# id grid uid=6001(grid) gid=5001(oinstall) groups=5001(oinstall),5003(asmdba),5004(asmoper),5005(asmadmin) [root@nymtx ~]# i 阅读全文
posted @ 2020-07-01 13:35 InnoLeo 阅读(1060) 评论(1) 推荐(0) 编辑
摘要: 权限检查(两台RAC) cd $ORACLE_HOME chown oracle:asmadmin oracle chmod 6751 oracle [root@nymtx bin]# ls -ltr oracle -rwsr-s--x 1 oracle asmadmin 441159688 Jul 阅读全文
posted @ 2020-07-01 13:25 InnoLeo 阅读(622) 评论(0) 推荐(0) 编辑
摘要: 软件准备 su - oracle cd $ORACLE_HOME unzip -d $ORACLE_HOME /mnt/hgfs/soft/LINUX.X64_193000_db_home.zip 2.开始安装 在主机nymtx上 oracle: cd $ORACLE_HOME ./runInsta 阅读全文
posted @ 2020-07-01 13:03 InnoLeo 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1.准备安装包: 用grid 用户解压文件到grid_home 目录 su - grid cd $ORACLE_HOME unzip /mnt/hgfs/soft/LINUX.X64_193000_grid_home.zip rpm -Uvh /oracle/app/19c/grid/cv/rpm/ 阅读全文
posted @ 2020-07-01 12:59 InnoLeo 阅读(2906) 评论(0) 推荐(0) 编辑
摘要: 1.三台虚拟机 虚拟机的配置如下 [root@nymtx asm]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost 阅读全文
posted @ 2020-07-01 12:51 InnoLeo 阅读(986) 评论(0) 推荐(0) 编辑
  2020年6月30日
摘要: 笔记: rm /etc/systemd/system/default.targetln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target 命令模式ln -sf /lib/systemd/syste 阅读全文
posted @ 2020-06-30 19:45 InnoLeo 阅读(209) 评论(0) 推荐(0) 编辑
  2020年6月27日
摘要: 1.oracle 用户环境: 主库: [oracle@hzmtx admin]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi 阅读全文
posted @ 2020-06-27 23:45 InnoLeo 阅读(888) 评论(0) 推荐(0) 编辑
摘要: 主库: SQL> alter database commit to switchover to physical standby with session shutdown; Database altered. SQL> startup ORACLE instance started. Total 阅读全文
posted @ 2020-06-27 23:21 InnoLeo 阅读(789) 评论(2) 推荐(0) 编辑
  2020年6月26日
摘要: 在import queue 指定传输的客户端号出现错误 原因: 此传输已在import queue 中. 阅读全文
posted @ 2020-06-26 19:10 InnoLeo 阅读(439) 评论(0) 推荐(0) 编辑
  2020年6月25日
摘要: rfc/use_gwstart = 1 the external RFC server is started through the local gateway. rfc/use_gwstart = 0 he default value of the profile parameter is 0, 阅读全文
posted @ 2020-06-25 23:33 InnoLeo 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 2173569 - Error when opening an RFC connection 问题: Environment SAP Release Independent. Reproducing the Issue Execute a transport tools check; Refresh 阅读全文
posted @ 2020-06-25 23:28 InnoLeo 阅读(732) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页