当前位置:网站首页>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
边栏推荐
- Simple integration of client go gin 11 delete
- GBASE 8s的多线程结构
- How to screen out words related to products and eliminate invalid words accurately
- GBASE 8S内存管理
- Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
- GBASE 8s的级联删除功能
- PHP extracts and analyzes table contents, and collects bidding information
- 【LeetCode】22. bracket-generating
- A detailed summary of TCP connection triple handshake
- Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
猜你喜欢

A detailed summary of TCP connection triple handshake

acmStreamOpen返回值问题

讲座记录《多种空间大地测量技术的数据处理方法和应用》

Nodejs 通过Heidisql连接mysql出现ER_BAD_DB_ERROR: Unknown database 'my_db_books'

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)

Is opencv open source?

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

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

Can Navicat directly operate the Android database SQLite

Changsha's "talent seeking": "making efforts" and "making practical moves" go hand in hand, "rapid development" and "slow life" go hand in hand
随机推荐
Watch out for the stolen face! So many risks of face recognition used every day?
2021.4.15 note the difference between let, const and VaR in ES6
Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)
WMS仓储管理系统的使用价值,你知道多少
Easyrecovery15 very easy to use computer data recovery software
2021.8.29 notes: register, bit operation, pointer, structure
SEO的5大关键指标:排名+流量+会话+停留时长+跳出率
"Grammar sugar" -- my new programming knowledge
【LeetCode】148. 排序链表
PHP code audit 1 - php Ini
How much do you know about the use value of WMS warehouse management system
【LeetCode】143. Rearrange linked list
Laravel document sorting 11. System architecture
Laravel document sorting 7. View
Basic use of OBS browser+ browser
BSC smart contract dividend mainstream currency | including marketing wallet | deflation | reflow | dividend free token | available for direct deployment
Mysql的order by
[kubernetes series] installation and use of Helm
Shutter fittedbox component
讲座记录《惯性导航的新应用——惯性测量》