Your SlideShare is downloading. ×
DBA新人的述职报告
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

DBA新人的述职报告

5,204
views

Published on

DBA新人的述职报告

DBA新人的述职报告

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
5,204
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
18
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 述职报告员工姓名:任文岗位名称: DBA入职时间:2011.1.6
  • 2. 数据安全:保安、灭火器等数据的流入流出:物流数据:货物数据库:装货物的仓库
  • 3. 但是还要考虑更多…
  • 4. 仅仅让数据白白躺在仓库里? 鸡蛋不要放在一个篮子里 双主备份:增加一个备用仓库 哈尔滨 放在同一个城市也不一定安全和高效: 分布式数据库:分仓库存放 北京 上海
  • 5. 如此多的数据有什么用处?
  • 6. 独立负责BD部门三个代理游戏及支付中心数据库管理 独立负责小小战争项目组数据库管理
  • 7. 从入职到现有邮件记录的独立完成的工作: 部署数据内网版本:17次 部署数据外网版本:48次 查询用户充值信息:42次 表结构设计:28次 财务部门发送收入信息:77次 数据库合并下线:6次 BD财务对账查询:102次 主动承担BD支付库建立是否需要独立 查找出某问题的根源是42亿问题
  • 8. 周志刚 ✆ 9月20日 发送至 我, DBA, 陈国兴, 朱丽燕Hi 任文:《三分天下》异常用户ID:100001633087271 100001922882511后台显示两位玩家F币数量异常,且正在进行大量的F币兑换3F游戏金币操作,请任文同学帮助查询异常问题原因并予以修复,谢谢!
  • 9. select * from user_071 where userid=100001633087271;+-----------------+--------------+-----------------+----------------+---------------+--------+--------------+----------+---------------+| userId | totalCharged | totalVIPConsume | 用户余额 | frozenCredits | points | vipValidTime | vipLevel | accountStatus |+-----------------+--------------+-----------------+----------------+---------------+--------+--------------+----------+---------------+| 100001633087271 | 0 | 164500 | 4294768395| 0 | 0 | 0 | 0 | 0 |+-----------------+--------------+-----------------+----------------+---------------+--------+--------------+----------+---------------+1 row in set (0.00 sec)[root@tw-pay-db1a binlog]# mysqlbinlog mysql-bin3310.000122INSERT INTO `user_011` ( `userId` , `creditsBalance` , `totalVIPConsume` , `vipLevel` ) VALUES( 100001922882511 , 4294770295 - 1000 , 211980 + 1000 , 0 ) ON DUPLICATE KEY UPDATE`creditsBalance` = `creditsBalance` - 1000 , `totalVIPConsume` = `totalVIPConsume` + 1000 ,`vipLevel` = 0
  • 10. 用户余额-30F币 >0 update user_071 set creditsBalance=creditsBalance-30 where userid=100001633087271 有BUG啦!数据库中余额 creditsBalance=20F币 4294768395F币 50F币
  • 11. 用户余额-30F币 >0 update user_071 set creditsBalance=creditsBalance-30 where userid=100001633087271 and creditsBalance>30 解决方 有BUG啦! 成功! 法?数据库中余额 creditsBalance=4294768395F币 20F币
  • 12. 继续研究比较复杂的SQL语句,并提高执行效率 继续加深对业务理解,提高对业务的支持 继续研究mysql参数,使性能更佳,更安全