当前位置:网站首页>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
边栏推荐
- PHP code audit 2 - these functions must be known and understood
- Can Navicat directly operate the Android database SQLite
- CMD operation MySQL in Windows
- How to draw an industry investment map
- GbASE 8s中的Blob 页(Blobspace page)
- GBASE 8S内存管理
- Error 1062 is reported during MySQL insertion, but I do not have this field.
- numpy np tips:使用opencv对数组插值放缩到固定形状 cv2.resize(res, dsize=(64, 64), interpolation=cv2.INTER_CUBIC)
- 论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》
- 如何筛选出和产品相关的词,精准排除掉无效词
猜你喜欢

Simple integration of client go gin 11 delete

GBASE 8s 索引B+树

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

Musk released humanoid robot. Why is AI significant to musk?

单元测试覆盖率

"Comment positionner l'industrie" dans la planification industrielle locale / parc

Mathematical analysis_ Notes_ Chapter 3: limits

Coinlist how to operate the middle lot number security tutorial

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

English Grammar - pronunciation rules
随机推荐
第二十五周记录
General steps for QT compiling database plug-ins
sql_ mode=only_ full_ group_ By's pit
微信小程序父子组件之间传值
GBASE 8S内存管理
Retrofit 源码分析
Standing wave ratio calculation method
Shutter fittedbox component
"How to carry out industrial positioning" in local / Park industrial planning
[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.
How to screen out words related to products and eliminate invalid words accurately
How much do you know about the use value of WMS warehouse management system
Retrofit source code analysis
Where is the red area of OpenCV?
Mathematical analysis_ Notes_ Chapter 3: limits
Doubts about judging the tinyint field type of MySQL
DAP data scheduling function improvement description
Text keyword extraction: ansj
L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding
Acmstreamopen return value problem