当前位置:网站首页>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
边栏推荐
- How many images can opencv open?
- sql_ mode=only_ full_ group_ By's pit
- Laravel document sorting 6. Response
- 无法安装redis接口
- Is opencv open source?
- 1、项目第二阶段——用户注册和登陆
- Lecture record: history and development of strapdown inertial navigation solution
- "How to carry out industrial positioning" in local / Park industrial planning
- 警惕超范围采集隐私-移动APP违规十宗罪
- Openmmlab environment configuration
猜你喜欢

Flutter FittedBox组件

"Grammar sugar" -- my new programming knowledge
![Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding](/img/ad/69fce7cf064479a0ddd477fb935de2.png)
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding

"How to carry out industrial positioning" in local / Park industrial planning

小白学习MySQL - 统计的'投机取巧'

地方/园区产业规划之 “ 如何进行产业定位 ”

【esp32学习之路6——flash加密】

English Grammar - pronunciation rules

acmStreamOpen返回值问题

数字时代的“文艺复兴”?起底数字藏品,让人欢喜让人愁
随机推荐
The yii2 debug toolbar is missing
微信小程序父子组件之间传值
How many images can opencv open?
SQL注入详解
Lecture record: data processing methods and applications of various spatial geodetic techniques
MySQL order by
Siddhartha: the book of life can be regurgitated frequently
【LeetCode】22. bracket-generating
Numpy NP tips: use OpenCV to interpolate and zoom the array to a fixed shape cv2 resize(res, dsize=(64, 64), interpolation=cv2. INTER_ CUBIC)
ThinkPHP is integrated with esaywechat. What's wrong with wechat payment callback without callback?
讲座记录《多种空间大地测量技术的数据处理方法和应用》
UCLA | generative pre training for black box optimization
小心被偷脸!天天用的人脸识别风险原来这么多?
Zoran community
Text keyword extraction: ansj
Win10 environment phpstudy2016 startup failure record
PHP code audit 2 - these functions must be known and understood
"How to carry out industrial positioning" in local / Park industrial planning
numpy np tips: numpy数组的squeeze等处理
文本关键词提取:ansj