随笔分类 -  数据库

摘要:db2 connect to sample db2 create db wangshn using codeset gbk territory 'zh_CN'; update db cfg [for dbname] using #db2 create db wangshn3 ALIAS wangsh 阅读全文
posted @ 2021-12-08 09:44 小清澈 阅读(252) 评论(0) 推荐(0) 编辑
摘要:sqlplus / as sysdba登录系统 PDB模式的话先切换Session alter session set container = ora19cpdb; 确认一下undo的表空间名 show parameter undo; 创建新的undo表空间 create undo tablespa 阅读全文
posted @ 2021-11-08 15:02 小清澈 阅读(93) 评论(0) 推荐(0) 编辑
摘要:mysql -uroot -p use mysql; update user set host='%' where user ='root'; FLUSH PRIVILEGES; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION; 阅读全文
posted @ 2021-09-21 16:42 小清澈 阅读(146) 评论(0) 推荐(0) 编辑
摘要:官网下载 需要使用的rpm包 https://downloads.mysql.com/archives/community/ mysql-community-server-8.0.23-1.el7.x86_64.rpm mysql-community-libs-8.0.23-1.el7.x86_64 阅读全文
posted @ 2021-09-21 16:24 小清澈 阅读(265) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/jinanxiaolaohu/p/15160954.html RPM包方式安装Oracle21c的方法 前言 北京时间2021.8.14 Oracle发布了最新的数据库版本Oracle21c, Oracle规划不再发布Oracle20c和Oracle2 阅读全文
posted @ 2021-09-01 17:31 小清澈 阅读(2397) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/lysheng/p/14611515.html oracle21c新特性 Oracle明确:Oracle 21c 其实就相当于 Oracle 20c,因为 20c从未进入公众可用的版本发布。 在官方的版本计划中,20c 已经被移出,并做出如下声明: O 阅读全文
posted @ 2021-09-01 11:25 小清澈 阅读(913) 评论(0) 推荐(0) 编辑
摘要:su - oracle sqlplus / as sysdba 如果是pdb模式,先执行 alter session set container=XXX(服务名); 不确定pdb的服务名的话执行一下 show con_name 解锁用户 alter user XXX account unlock; 阅读全文
posted @ 2021-06-17 16:41 小清澈 阅读(126) 评论(0) 推荐(0) 编辑
摘要:#解锁用户 alter user XXX account unlock; #修改密码 alter user XXX identified by passwd; #切换pdb容器 alter session set container=xxxpdb; #重启Oracle 服务 shutdown imm 阅读全文
posted @ 2021-06-15 16:11 小清澈 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#PG drop database XXX;drop user XXX; #SQLServer use [XXX];drop login [XXX]; use [master];drop DATABASE XXX; #Oracle drop tablespace XXXincluding conte 阅读全文
posted @ 2021-06-09 15:55 小清澈 阅读(45) 评论(0) 推荐(0) 编辑
摘要:#PG alter user XXX with password 'XXX'; #SQLServer alter login XXX with password='XXX' #Oracle alter user XXX identified by XXX; #DM alter user XXX id 阅读全文
posted @ 2021-06-09 15:46 小清澈 阅读(341) 评论(0) 推荐(0) 编辑
摘要:今天在一台装有PG10 的win虚机上安装HG6.0.1,pg_ctl start -D ../data 启动HG的时候 出现错误 postmaster 已被其他程序启动等等。 然后没办法,只能把 HG 装到没有装PG的Linux 上了。 yum install postgresql-contrib 阅读全文
posted @ 2021-06-09 14:20 小清澈 阅读(139) 评论(0) 推荐(0) 编辑
摘要:PG&HG: create user wangshn01 with password 'Wsn@Gwx&Za2019' create database wangshn01 owner wangshn01 grant all PRIVILEGES on DATABASE wangshn01 to wa 阅读全文
posted @ 2021-05-25 10:27 小清澈 阅读(459) 评论(0) 推荐(0) 编辑
摘要:#查询用户会话信息 SELECT * FROM V_SYS_SESSIONS; #获取schame下所有表名 select TABLE_NAME from all_tables WHERE OWNER =‘schamename’; #获取表结构 SELECT * where owner='scham 阅读全文
posted @ 2021-05-25 09:25 小清澈 阅读(1117) 评论(0) 推荐(0) 编辑
摘要:#创建表空间create tablespace test datafile '/opt/dmdbms/data/DAMENG/gsptest.dbf' size 256; #创建用户 create user test identified by 123456789 default tablespac 阅读全文
posted @ 2021-05-25 09:18 小清澈 阅读(287) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示