想将项目的数据库架在云服务器上

wangpeng047 2012-03-07 10:41:08
加精
如题,我想问将数据库架到云服务器上的话,那么数据库设计有什么主要注意的地方吗?或者系统架构设计上有需要注意的地方吗?(云服务器从其他公司买)请高手帮帮小弟吧,略微指点一二,提供个思路也行。
...全文
3627 56 打赏 收藏 转发到动态 举报
写回复
用AI写文章
56 条回复
切换为时间正序
请发表友善的回复…
发表回复
m3621552 2012-03-14
  • 打赏
  • 举报
回复
mark下 以后会有用的
haitao 2012-03-14
  • 打赏
  • 举报
回复
[Quote=引用 66 楼 iihero 的回复:]
提供一种应用场景:

在数据中心,提供N多套同质数据库,比如Oracle或者MySQL,这里进行统一的虚拟用户及空间管理。比如,每个个人用户要租凭一个DB, 空间10G, 用户注册以后,给他生成一个数据库的用户密码信息用于数据库登录。
然后,云端为他创建一个库(或者表空间),控制磁盘限额。同时提供必要的Web Service/Restful调用接口

然后,用户可以自己开发应用了,甚至可……
[/Quote]

如果服务器许可,我一直用的ini@http的后台,就是一个通用http数据网关,
也可以通过http提供数据库服务了
用户通过http发来查询或更新的sql,后台帮它执行
fsk_wyf 2012-03-14
  • 打赏
  • 举报
回复
/**
* struct dw_i2c_dev - private i2c-designware data
* @dev: driver model device node
* @base: IO registers pointer
* @cmd_complete: tx completion indicator
* @lock: protect this struct and IO registers
* @clk: input reference clock
* @cmd_err: run time hadware error code
* @msgs: points to an array of messages currently being transfered
* @msgs_num: the number of elements in msgs
* @msg_write_idx: the element index of the current tx message in the msgs
* array
* @tx_buf_len: the length of the current tx buffer
* @tx_buf: the current tx buffer
* @msg_read_idx: the element index of the current rx message in the msgs
* array
* @rx_buf_len: the length of the current rx buffer
* @rx_buf: the current rx buffer
* @msg_err: error status of the current transfer
* @status: i2c master status, one of STATUS_*
* @abort_source: copy of the TX_ABRT_SOURCE register
* @irq: interrupt number for the i2c master
* @adapter: i2c subsystem adapter node
* @tx_fifo_depth: depth of the hardware tx fifo
* @rx_fifo_depth: depth of the hardware rx fifo
*/
struct dw_i2c_dev {
struct device *dev;
void __iomem *base;
struct completion cmd_complete;
struct mutex lock;
struct clk *clk;
u32 clock;
int cmd_err;
struct i2c_msg *msgs;
int msgs_num;
int msg_write_idx;
u32 tx_buf_len;
u8 *tx_buf;
int msg_read_idx;
u32 rx_buf_len;
int rx_cmd;
u8 *rx_buf;
int msg_err;
unsigned int status;
u32 abort_source;
int irq;
struct i2c_adapter adapter;
unsigned int tx_fifo_depth;
unsigned int rx_fifo_depth;
};
fsk_wyf 2012-03-14
  • 打赏
  • 举报
回复
static char *abort_sources[] = {
[ABRT_7B_ADDR_NOACK] =
"slave address not acknowledged (7bit mode)",
[ABRT_10ADDR1_NOACK] =
"first address byte not acknowledged (10bit mode)",
[ABRT_10ADDR2_NOACK] =
"second address byte not acknowledged (10bit mode)",
[ABRT_TXDATA_NOACK] =
"data not acknowledged",
[ABRT_GCALL_NOACK] =
"no acknowledgement for a general call",
[ABRT_GCALL_READ] =
"read after general call",
[ABRT_SBYTE_ACKDET] =
"start byte acknowledged",
[ABRT_SBYTE_NORSTRT] =
"trying to send start byte when restart is disabled",
[ABRT_10B_RD_NORSTRT] =
"trying to read when restart is disabled (10bit mode)",
[ABRT_MASTER_DIS] =
"trying to use disabled adapter",
[ARB_LOST] =
"lost arbitration",
};
根据传感器的温度变化来控制电压,从而根据电压值按粗调/细调模式;来
自动控制GDC子卡入风口与出风口的阀门开度,进行机柜内温度平衡,
根据回馈电压与设置电压的差值进行自动报警
fsk_wyf 2012-03-14
  • 打赏
  • 举报
回复
/** hardware abort codes from the DW_IC_TX_ABRT_SOURCE register
*only expected abort codes are listed here
* refer to the datasheet for the full list*/
#define ABRT_7B_ADDR_NOACK 0
#define ABRT_10ADDR1_NOACK 1
#define ABRT_10ADDR2_NOACK 2
#define ABRT_TXDATA_NOACK 3
#define ABRT_GCALL_NOACK 4
#define ABRT_GCALL_READ 5
#define ABRT_SBYTE_ACKDET 7
#define ABRT_SBYTE_NORSTRT 9
#define ABRT_10B_RD_NORSTRT 10
#define ABRT_MASTER_DIS 11
#define ARB_LOST 12

#define DW_IC_TX_ABRT_7B_ADDR_NOACK (1UL << ABRT_7B_ADDR_NOACK)
#define DW_IC_TX_ABRT_10ADDR1_NOACK (1UL << ABRT_10ADDR1_NOACK)
#define DW_IC_TX_ABRT_10ADDR2_NOACK (1UL << ABRT_10ADDR2_NOACK)
#define DW_IC_TX_ABRT_TXDATA_NOACK (1UL << ABRT_TXDATA_NOACK)
#define DW_IC_TX_ABRT_GCALL_NOACK (1UL << ABRT_GCALL_NOACK)
#define DW_IC_TX_ABRT_GCALL_READ (1UL << ABRT_GCALL_READ)
#define DW_IC_TX_ABRT_SBYTE_ACKDET (1UL << ABRT_SBYTE_ACKDET)
#define DW_IC_TX_ABRT_SBYTE_NORSTRT (1UL << ABRT_SBYTE_NORSTRT)
#define DW_IC_TX_ABRT_10B_RD_NORSTRT (1UL << ABRT_10B_RD_NORSTRT)
#define DW_IC_TX_ABRT_MASTER_DIS (1UL << ABRT_MASTER_DIS)
#define DW_IC_TX_ARB_LOST (1UL << ARB_LOST)

#define DW_IC_TX_ABRT_NOACK (DW_IC_TX_ABRT_7B_ADDR_NOACK | \
DW_IC_TX_ABRT_10ADDR1_NOACK | \
DW_IC_TX_ABRT_10ADDR2_NOACK | \
DW_IC_TX_ABRT_TXDATA_NOACK | \
DW_IC_TX_ABRT_GCALL_NOACK)
踏月 2012-03-14
  • 打赏
  • 举报
回复
你可以试试 微软的 云服务器。windows Azure,。不贵貌似挺贵的
nonocast 2012-03-13
  • 打赏
  • 举报
回复
Sql AZure
wangpeng047 2012-03-13
  • 打赏
  • 举报
回复
...... 能来点有用的吗?
bailang1096 2012-03-13
  • 打赏
  • 举报
回复
高深高深哇~~高深高深哇~~
wangpeng047 2012-03-13
  • 打赏
  • 举报
回复
[Quote=引用 66 楼 iihero 的回复:]

提供一种应用场景:

在数据中心,提供N多套同质数据库,比如Oracle或者MySQL,这里进行统一的虚拟用户及空间管理。比如,每个个人用户要租凭一个DB, 空间10G, 用户注册以后,给他生成一个数据库的用户密码信息用于数据库登录。
然后,云端为他创建一个库(或者表空间),控制磁盘限额。同时提供必要的Web Service/Restful调用接口

然后,用户可以自己开发应用了,甚至……
[/Quote]
很有参考价值,多谢。51楼所言也很有道理,如果用某供应商的“云”服务的话,供应商必然会提供些帮助
iihero_ 2012-03-13
  • 打赏
  • 举报
回复
提供一种应用场景:

在数据中心,提供N多套同质数据库,比如Oracle或者MySQL,这里进行统一的虚拟用户及空间管理。比如,每个个人用户要租凭一个DB, 空间10G, 用户注册以后,给他生成一个数据库的用户密码信息用于数据库登录。
然后,云端为他创建一个库(或者表空间),控制磁盘限额。同时提供必要的Web Service/Restful调用接口

然后,用户可以自己开发应用了,甚至可以另外提供Web空间给用户。那是另外一回事了。
tingting5278910 2012-03-12
  • 打赏
  • 举报
回复
高深高深哇~~
jianqaun886 2012-03-12
  • 打赏
  • 举报
回复
好高深
netDust_cv 2012-03-10
  • 打赏
  • 举报
回复
这要看是哪家云服务器的提供商啊,现在的云都是有区别的。
wangpeng047 2012-03-09
  • 打赏
  • 举报
回复
[Quote=引用 46 楼 sz_haitao 的回复:]

引用 45 楼 wangpeng047 的回复:
找到了一篇关于“在云中部署数据库应用程序和项目”的文章,来自于ibm的。了解了一下http://www.ibm.com/developerworks/cn/data/tutorials/dm-1001db2amazonec2/
这篇文章中部署数据库属于什么性质的云服务呢?


好像是Amazon的云,那是应用和数据库都在云里的了
[/Quote]
这个怎么样?有推荐的“云”供应商吗?
sujie315 2012-03-09
  • 打赏
  • 举报
回复
高手在哪里?
haitao 2012-03-09
  • 打赏
  • 举报
回复
[Quote=引用 45 楼 wangpeng047 的回复:]
找到了一篇关于“在云中部署数据库应用程序和项目”的文章,来自于ibm的。了解了一下http://www.ibm.com/developerworks/cn/data/tutorials/dm-1001db2amazonec2/
这篇文章中部署数据库属于什么性质的云服务呢?
[/Quote]

好像是Amazon的云,那是应用和数据库都在云里的了
wangpeng047 2012-03-09
  • 打赏
  • 举报
回复
找到了一篇关于“在云中部署数据库应用程序和项目”的文章,来自于ibm的。了解了一下http://www.ibm.com/developerworks/cn/data/tutorials/dm-1001db2amazonec2/
这篇文章中部署数据库属于什么性质的云服务呢?
junge008 2012-03-09
  • 打赏
  • 举报
回复
什么叫“云”,这只是一个概念。

既然有公司为您提供“云”服务器,哪怕就是普通的!呵呵~

那么他就有义务和责任为您提供如何享受这些“云”服务,就是让您如何架构这些“云”

如不能,一切都是假的!!!

haitao 2012-03-09
  • 打赏
  • 举报
回复
它是比较有名的了

国外的就那几个大公司的,但是国内的网络就怕说卡就卡
国内的小公司,又怕他们接口不合理,而且数据对他们的诱惑

加载更多回复(36)

5,889

社区成员

发帖
与我相关
我的任务
社区描述
IBM DB2 是美国IBM公司开发的一套关系型数据库管理系统,它主要的运行环境为UNIX(包括IBM自家的AIX)、Linux、IBM i(旧称OS/400)、z/OS,以及Windows服务器版本
社区管理员
  • DB2
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧