![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DB
yanhui007
这个作者很懒,什么都没留下…
展开
-
linux yum 安装 mysql
使用网络yum源安装mysql1. yum list installed mysql* --检查2.yum list mysql* --查看3.yum -y install mysql ---安装4.yum -y install mysql-server---安装5.yum -y install mysql-devel---安装6.service mysqld star...原创 2020-02-17 18:06:53 · 154 阅读 · 0 评论 -
oracle 执行 被卡死处理
-----查询卡死 进程select object_name as 对象名称,s.sid,s.serial#,p.spid as 系统进程号from v$locked_object l , dba_objects o , v$session s , v$process pwhere l.object_id=o.object_id and l.session_id=s.sid and s原创 2017-06-13 15:52:16 · 7986 阅读 · 0 评论 -
oracle 禁用索引
同步数据的时候 有索引会比较慢 可以暂时禁用索引--禁用索引ALTER INDEX PK_T_AUTH_USERROLE_ID UNUSABLE;--恢复索引ALTER INDEX UK_T_AUTH_USER_EMP_CODE REBUILD;--查看索引状态select status from user_indexes where index_name='原创 2017-06-13 11:30:00 · 6226 阅读 · 1 评论 -
oracle dblink mysql
配置oracle omsdb到 mysql(oms,ndop)dblink步骤:1、核对数据库版本file $ORACLE_HOME/bin/dg4odbc/u01/app/oracle/product/11.2.0/db_1/bin/dg4odbc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamicall原创 2017-06-09 09:42:24 · 512 阅读 · 0 评论 -
ORACLE 自增
select SYS_GUID() from dual原创 2017-06-20 10:21:07 · 227 阅读 · 0 评论 -
ORACLE查询表空间和各个表在空间占内存情况
--各个表在空间占内存情况select segment_name,tablespace_name,bytes B, bytes/1024 KB, bytes/1024/1024 MB from user_segments where segment_type='TABLE' and tablespace_name='UUMS01'--查询表空间SELECT a.tablespace_n...原创 2017-06-13 15:49:00 · 1815 阅读 · 0 评论 -
oracle 循环遍历
Declare CURSOR bcur IS SELECT USER_DEPT_ID FROM t_uums_upg_user_dept_sysrole; brec bcur%ROWTYPE;BEGIN OPEN bcur; LOOP FETCH bcur INTO brec; EXIT WHEN bcur%NOTFOUND;原创 2017-06-20 09:16:51 · 7093 阅读 · 0 评论 -
oracle 造数据存储过程
create or replace procedure T_ESB2_AUDIT_sp asbegin for i in 1 .. 300 loop insert into t_esb2_audit_new(FID,VERSION,BIZID,BIZDESC1,BIZDESC3,REQID,RESID,SOURCESYS,TARGETSYS,ESBSVC原创 2017-06-20 09:15:38 · 2117 阅读 · 0 评论 -
oracle 创建存储过程 遍历操作
create or replace procedure test_uumsfunctionrole as cursor cur is select USER_DEPT_ID FROM T_UUMS_UPG_USER_DEPT_SYSROLE where USER_DEPT_SYSTEM ='ECS';begin for Temp in cur loop u原创 2017-05-19 16:00:19 · 507 阅读 · 0 评论 -
oracle 创建 dblink
-- Drop existing database link drop database link UUMS_TO_TEST_FOSS;-- Create database link create database link UUMS_TO_TEST_FOSS connect to SEARCH identified by “SEARCH” using '(DESCRIPT原创 2017-05-19 15:59:00 · 250 阅读 · 0 评论 -
oracle 常用的 sql
1.查询表空间使用情况:--1G=1024MB --1M=1024KB --1K=1024Bytes --1M=11048576Bytes --1G=1024*11048576Bytes=11313741824Bytes SELECT a.tablespace_name "表空间名", total "表空间大小", free "表空间剩余大小", (total转载 2017-05-19 15:57:03 · 240 阅读 · 0 评论 -
java mysql 备份数据库
import java.io.BufferedReader;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.Outp原创 2013-08-15 14:06:17 · 413 阅读 · 0 评论 -
关于MYSQL客户端连不上 mysql服务器 修改表
use mysql;update user set host = '%' where user = 'root';flush privileges;-----------------------------------------------------------------------------grant all privileges on *.* to 'root'@'原创 2013-06-27 16:30:35 · 573 阅读 · 0 评论 -
安装 MYSQL5.5 后重新启动不了 问题解决
在mysql 目录下 C:\Program Files\MySQL\MySQL Server 5.5 找到文件 my.ini 打开 找到 default-storage-engine=INNODB 改为 default-storage-engine=MyISAM 就可以了原创 2013-06-27 16:20:20 · 1045 阅读 · 0 评论 -
Windows忘记mysql密码的解决方案
如果忘记了 MySQL 的 root 密码,可以用以下方法重新设置: 1. KILL掉系统里的MySQL进程,方法如下: a、点击桌面工具栏打开任务栏管理器。 b、从任务管理器的进程中找到mysqld-nt.exe进程,点击右键选择结束进程。 2. 在命令行中输入命令 mysqld-nt --skip-grant-tables 启动MySQL,以不检查权限的方式启动原创 2012-11-23 10:00:10 · 245 阅读 · 0 评论