当前位置:网站首页>GBASE 8s的数据导入和导出
GBASE 8s的数据导入和导出
2022-06-25 03:59:00 【八珍豆腐】
在进行数据级别的迁移时,可以采用dbexport/dbimport来完成。dbexport导出数据库中所有对象的模式脚本和表数据文件,在该模式脚本中包含表等的创建脚本,同时包含了导出的表对数据文件的信息。dbimport根据模式脚本进行导入,在导入过程中首先根据模式脚本创建对象,导入相应数据的过程类似load过程。如果要加速导入,则可以先将数据库的日志模式选择为nolog模式。导入完成后再改变日志模式即可。
dbexport将数据库导出到ASCII文件或磁带中。dbimport使用dbexport产生的模式文件和数据重建数据库。用户可以通过编辑模式文件来修改dbimport生成的数据库模式。
以下例子为将数据库dbname的数据导出到/data/dbname目录下:
dbexport dbnme -c -ss -o /data/dbname
导出完成后,在dbname目录下生成一个dbname.exp的目录,找到该目录下的
dbname.sql模式脚本文件,需要利用工具来验证一下脚本语法的正确性(导出的脚本可能存在语法上的错误),如有需要,则应加以修改纠正。
以下例子为将上述导出的数据以缓冲日志模式导入default_dbspacename中:
dbimport dbname -i /data/dbname -c -l buffered -d default_dbspacename
导入完成后,进行数据库级别的统计更新:
update statistics
边栏推荐
- Exercise: how difficult is it to simulate the blessing lottery two-color ball - China 500W grand prize? Just run the code.
- 2021.4.15 note the difference between let, const and VaR in ES6
- Doubts about judging the tinyint field type of MySQL
- SQL injection details
- Uniapp makes mobile app programs, using uni Choosevideo record video, video playback is fuzzy, and the resolution is low
- UCLA | 用于黑盒优化的生成式预训练
- Mathematical analysis_ Notes_ Chapter 3: limits
- Coinlist queuing tutorial to improve the winning rate
- Laravel document sorting 9. Blade template
- 讲座记录《捷联惯导解算的历史及发展》
猜你喜欢

GBASE 8s 索引B+树

Shutter fittedbox component

Read lsd-slam: large scale direct monolithic slam

What is the storage engine and the three common database storage engines for MySQL

论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)

文本关键词提取:ansj

Intel 13th generation core showed its true colors for the first time: 68mb cache improved significantly

PHP extracts and analyzes table contents, and collects bidding information

LabVIEW开发气体调节器
![[openwrt] we recommend a domestically developed version of openwrt, an introduction to istoreos. It is very easy to use. It is mainly optimized. It solves the problem of Sinicization.](/img/62/6152d5a30c92a340cb286c7b1cbc54.png)
[openwrt] we recommend a domestically developed version of openwrt, an introduction to istoreos. It is very easy to use. It is mainly optimized. It solves the problem of Sinicization.
随机推荐
什么是持久化?redis 持久化中的RDB和AOF是什么?
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
【LeetCode】22. bracket-generating
什么是数据持久化?
第二十五周记录
Where is the red area of OpenCV?
A detailed summary of TCP connection triple handshake
JS arrow function
Coinlist how to operate the middle lot number security tutorial
关于TCP连接三次握手的详细总结
Flutter Builder & FutureBuilder组件
EasyRecovery15非常好用的电脑数据恢复软件
Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
Although the Internet in the traditional sense has long ceased to exist, this does not mean that the Internet has long disappeared
UCLA | generative pre training for black box optimization
Laravel document sorting 4. Controller
Laravel document sorting 2. Route related
Laravel document sorting 6. Response
Should I use on or where for the left join