Using MTK to migrate Oracle sample schema to MogDB

Get the latest version MTK wget https://cdn-mogdb.enmotech.com/mtk/v2.6.3/mtk_2.6.3_linux_amd64.tar.gztar -xvf mtk_2.6.3_linux_amd64.tar.gz Generate MTK trial license online The trial license lasts for 1 month, every mail address can only gernerate one license, except the mail address domain is “enmotech.com”, using “enmotech.com” mail can repeatly genarate license. So if the clients want to try MTK more after 1 month,…

Flashback Query in MogDB 3.0

闪回查询可以让使用者查询到以往某个时间点上的表中的内容,这对于某些场合是非常有用处的,甚至是救命的功能。比如如果不小心误删除了表中的数据,就可以通过闪回查询查到删除时间点之前的数据,这样可以直接将这些数据再恢复回来。 比如这样一个让人惋惜的场景(delete的SQL请千万不要在生产环境中运行)。 现在你有这么一张表,记录了账户姓名和账户金额。 MogDB=# select * from accounts; name | amount——+——– A   |   100 B   |   100 C   |   100 D   |     99(4 rows) 你本来想执行一条SQL,去删除金额等于99元的账户信息。正常执行的话,应该删除1条记录。为了演示效果,先用select来代替delete。 MogDB=# select * from accounts where amount=99; name | amount——+——– D   |     99(1 row) 但是在键盘上减号“-”和等号“=”紧挨着,你的手指太胖了,误按到了减号,所以现在你给数据库发出去的命令是这样的。 delete from accounts…