oracle mysql 线程数_Mysql,Oracle数据库连接数简析

Mysql,Oracle连接数简析Mysql01D:\Program Files\MySQL\MySQL Server 5.1\bin -u root -p02Enter password: ****03Welcome to the MySQL monitor. Commands end with ; or \g.04Your MySQL connection id is 183 www.2cto.com 05Server version: 5.1.58-commu

Mysql,Oracle连接数简析

Mysql

01

D:\Program Files\MySQL\MySQL Server 5.1\bin> -u root -p

02

Enter password: ****

03

Welcome to the MySQL monitor.  Commands end with ; or \g.

04

Your MySQL connection id is 183  www.2cto.com

05

Server version: 5.1.58-community MySQL Community Server (GPL)

06

07

Copyright (c) 2000, 2010, and/or its affiliates. All rights reserved.

08

This software comes with ABSOLUTELY NO WARRANTY. This is free software,

09

and you are welcome to modify and redistribute it under the GPL v2 license

10

11

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

12

-- 使用xuexi数据库

13

mysql> use xuexi

14

Database changed

15

-- 查看字符集

16

mysql> SHOW VARIABLES LIKE 'character_set%';

17

-- 控制台汉字乱码,将编码改为gbk,控制台就可以显示中文了

18

mysql> set character_set_results='gbk';

19

-- 查看连接数  www.2cto.com

20

mysql> SHOW PROCESSLIST;--100条

21

mysql> show full processlist;

22

-- 服务器的状态信息

23

mysql> show status;

Oracle

01

SQL> conn / as sysdba

02

Connected.

03

-- 连接数

04

SQL> select count(*) from v$session;

05

-- 并发连接数

06

SQL> Select count(*) from v$session where status='ACTIVE';

07

--最大连接

08

SQL> show parameter processes;

09

-- 修改processes和sessions值

10

SQL> alter system set processes=300 scope=spfile;

11

SQL> alter system set sessions=300 scope=spfile;

作者 车水码农

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值