GBase 8c
其他
文章
GBase 8c导出模式示例(一)
发表于2023-12-06 15:36:3617次浏览1个评论
示例一:执行gs_dump,导出hr模式全量信息,导出文件格式为文本格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_backup.sql -p 5600 human_resource -n hr -F p
Password:
gs_dump[port='5600'][human_resource][2017-07-21 16:05:55]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2017-07-21 16:05:55]: total time: 2425 ms
示例二:执行gs_dump,仅导出hr模式的数据,导出文件格式为tar归档格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_data_backup.tar -p 5600 human_resource -n hr -a -F t
Password:
gs_dump[port='5600'][human_resource][2018-11-14 15:07:16]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2018-11-14 15:07:16]: total time: 1865 ms
示例三:执行gs_dump,仅导出hr模式的定义,导出文件格式为目录归档格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_def_backup -p 5600 human_resource -n hr -s -F d
Password:
gs_dump[port='5600'][human_resource][2018-11-14 15:11:34]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2018-11-14 15:11:34]: total time: 1652 ms
示例四:执行gs_dump,导出human_resource数据库时,排除hr模式,导出文件格式为自定义归档格式。
gs_dump -f /home/gbase/backup/MPPDB_schema_backup.dmp -p 5600 human_resource -N hr -F c
Password:
gs_dump[port='5600'][human_resource][2017-07-21 16:06:31]: dump database human_resource successfully
gs_dump[port='5600'][human_resource][2017-07-21 16:06:31]: total time: 2522 ms热门帖子
- 12025-12-01浏览数:182763
- 22023-05-09浏览数:25057
- 42023-09-25浏览数:18525
- 52020-05-11浏览数:17528