摘要: 1.修改sys用户名为sysadmin update user$ set name='sysadmin' where name='SYS'; 2.修改后数据库正常,停库重启后报错 SQL> startup ORACLE instance started. Total System Global Ar 阅读全文
posted @ 2021-09-28 10:11 Tomatoes 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 一.环境介绍:操作系统 redhat6.6,数据库 11.2.0.4 二.问题描述:数据库后台报错 ORA-1688: unable to extend table CPUB.SXTC84100 partition P1 by 8192 in tablespace TBSSPACES 三.问题定位及 阅读全文
posted @ 2021-01-29 17:17 Tomatoes 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: 用pl/sql工具rename一个表名时报ora-14155和ora-14047错误,过程如下: 1.创建测试表 2.rename表名,报错 ORA-14155: missing PARTITION or SUBPARTITION keyword,原因分析:语法错误,正确语法应是rename to 阅读全文
posted @ 2019-06-25 17:31 Tomatoes 阅读(1732) 评论(0) 推荐(0) 编辑
摘要: zookeeper 1.三节点执行 tar -zxvf zookeeper-3.4.6.tar.gz -C /usr/local/ 2.三节点执行 [root@localhost opt]# cd /usr/local/zookeeper-3.4.6/ [root@localhost zookeeper-3.4.6]# mkdir -p zkdata [root@localhost zooke... 阅读全文
posted @ 2019-05-24 10:04 Tomatoes 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 准备环境: 1.centos 7.0镜像 2.vertica-9.1.1-1.x86_64.RHEL6.rpm 安装过程: 1.安装CentOS 7.0 注意:挂载的文件系统必须是ext4,不能是默认的xfs! 2.关闭防火墙 3.设置selinux为disable 4.安装依赖包 5.安装必要工具 阅读全文
posted @ 2019-01-17 09:38 Tomatoes 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: 1.asciistr:匹配字段中是否有中文字段: 2.to_multi_byte、to_single_byte:匹配字段中的全角半角字符: 阅读全文
posted @ 2019-01-03 11:13 Tomatoes 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 1.模糊匹配,b表记录不在a表中的 2.根据主副id拼出目录 阅读全文
posted @ 2019-01-03 09:44 Tomatoes 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash hive -S -e "use 数据库名;show tables;" >tables.txt cat tables.txt | while read eachline do hive -S -e "use 数据库名;show create table ${eachline};" >> tablesDDL.hql done 阅读全文
posted @ 2018-09-19 17:14 Tomatoes 阅读(1967) 评论(0) 推荐(0) 编辑
摘要: 1.运行环境变量,获取keytab票据: source component_env klist -kt ***.keytabkinit -kt ******** 2.登陆过程报错: 阅读全文
posted @ 2018-09-19 17:12 Tomatoes 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 1.以root用户登录需要设置NTP同步的节点上。 执行如下命令查看系统中是否已安装NTP。 rpm -qa | grep ntp 显示类似如下信息则表示已安装NTP ntp-4.2.4p8-1.22.1 yast2-ntp-client-2.17.15-0.7.29 否则,可按如下命令安装: rpm -ivh ntp-4.2.4p2-6.fc8.rpm 2.配置NTP服务器。 修改配... 阅读全文
posted @ 2018-09-19 17:04 Tomatoes 阅读(1440) 评论(2) 推荐(0) 编辑