随笔分类 -  ME

摘要:字符集修改做过几次了,这次感觉还是有点不顺,走了弯路,再记一遍【概况】准备搭建RAC+RAC DG,发现两端字符集不大一致,担心到时出问题。 【目标】将备库NLS_NCHAR_CHARACTERSET修改成与主库一致。--备NLS_NCHAR_CHARACTERSET UTF8修改为--主NLS_N 阅读全文
posted @ 2019-12-14 00:24 ritchy 阅读(595) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/u013415591/article/details/82692242https://blog.csdn.net/gx_1_11_real/article/details/81066336 迁移之前没这个问题,原来迁移后没将lower_case_table 阅读全文
posted @ 2019-11-21 15:49 ritchy 阅读(1025) 评论(0) 推荐(0)
摘要:[root@test153 ~]# /usr/local/mysql/bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql_data1 /usr/local/mysql/bin/my 阅读全文
posted @ 2019-11-05 16:30 ritchy 阅读(3829) 评论(0) 推荐(0)
摘要:ERROR 1366 (HY000): Incorrect string value: '\xE9\x83\x91\xE5\xB7\x9E' for column 'aa' at row 1创建表之后不能插入中文字符?为啥呢?了解字符集的重要性。它必须在建库之前要确定好,恢复备份时也需要注意 mys 阅读全文
posted @ 2019-10-30 19:30 ritchy 阅读(1195) 评论(0) 推荐(0)
摘要:mysql> show slave status \G Slave_IO_Running: No Slave_SQL_Running: Yes Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 1236 Last_IO_Error: Got fatal 阅读全文
posted @ 2019-10-30 17:24 ritchy 阅读(917) 评论(0) 推荐(0)
摘要:【问题】mysql从5.6升级到5.7后出现:插入数据和修改数据时出错Caused by: com.ibatis.common.jdbc.exception.NestedSQLException: The error occurred while applying a parameter map. 阅读全文
posted @ 2019-10-29 11:58 ritchy 阅读(7904) 评论(0) 推荐(0)
摘要:[oot@cent65 bin]# service mysqld startStarting MySQL.2019-10-28T15:56:47.786960Z mysqld_safe error: log-error set to '/data/log/mysqld.log', however f 阅读全文
posted @ 2019-10-29 00:55 ritchy 阅读(3849) 评论(1) 推荐(0)
摘要:修改密码报异常mysql> update user set password=password("y1jhcfzX!") where user="root"; 异常[root@ddtest-mysql01 ~]# mysql -uroot -pEnter password: ERROR 1045 ( 阅读全文
posted @ 2019-10-28 17:05 ritchy 阅读(512) 评论(0) 推荐(0)
摘要:用惯了VM换BOX还是有点不大一样的,比如复制 我用了2个网卡,所以看起来麻烦了一次 注释了UUID 应该有更好的办法来操作,下面的看起来有点啰嗦,先凑合着这样弄。。。 1、关机 2、复制 3、改名称、新建路径、MAC 4、完全复制 5、等待 6、启动NEW机器 产生eth2和eth3两块新网卡,准 阅读全文
posted @ 2019-10-27 02:43 ritchy 阅读(336) 评论(0) 推荐(0)
摘要:Oracle dataguard切换实施步骤主备库的切换主要在两种情况下切换,Switchover和Failover,这两种切换都需要手工执行完成,不建议自动执行。主库端 192.168.411.20备库端 192.168.411.221 一是Switchover(计划中的切换,不会丢失数据)二是F 阅读全文
posted @ 2019-10-25 18:20 ritchy 阅读(854) 评论(0) 推荐(0)
摘要:--查表空间使用率情况(含临时表空间)SELECT D.TABLESPACE_NAME "Name", D.STATUS "Status", TO_CHAR(NVL(A.BYTES / 1024 / 1024, 0), '99,999,990.90') "Size (M)", TO_CHAR(NVL 阅读全文
posted @ 2019-10-22 14:57 ritchy 阅读(209) 评论(0) 推荐(0)
摘要:1. 通过dbms_xplan.display_cursor查看指定sql都有哪些执行计划 SQL> select * from table(dbms_xplan.display_cursor('&sql_id',null,'TYPICAL PEEKED_BINDS')); 2. 查询该sql的历史 阅读全文
posted @ 2019-09-10 11:23 ritchy 阅读(597) 评论(0) 推荐(0)
摘要:Oracle GoldenGate常用参数详解http://blog.itpub.net/28389881/viewspace-2564461/ 阅读全文
posted @ 2019-09-02 10:45 ritchy 阅读(327) 评论(0) 推荐(0)
摘要:禁用 1* select LAST_DATE,NEXT_DATE from dba_jobs where job=45SQL> begin 2 dbms_job.broken(45,true); 3 end; 4 / PL/SQL procedure successfully completed. 阅读全文
posted @ 2019-02-28 18:34 ritchy 阅读(3035) 评论(0) 推荐(0)
摘要:正常切换切换前: 主库:SQL> select DATABASE_ROLE from v\$database;DATABASE_ROLE PRIMARY SQL> select OPEN_MODE,PROTECTION_MODE,PROTECTION_LEVEL,SWITCHOVER_STATUS 阅读全文
posted @ 2018-12-28 17:09 ritchy 阅读(2782) 评论(0) 推荐(0)
摘要:2018/7/16 9:52:09Memory is a kind of want to see, and forgetting is a form of relief. 记忆是一种相见的形式,忘却是一种解脱的方式。投稿来自星星。想说的话:这是出自纪伯伦《沙与沫》中的一段话。我想送给我喜欢的一个女孩 阅读全文
posted @ 2018-12-17 10:50 ritchy 阅读(390) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-09-07 16:03 ritchy 阅读(182) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-05-16 17:37 ritchy 阅读(1) 评论(0) 推荐(0)