Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
735c3ece
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
735c3ece
编写于
6月 28, 2019
作者:
D
David Yozie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs: Remove 4.x info from gpcopy migration instructions; focus on 5 to 6 migration
上级
4be677c7
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
62 deletion
+25
-62
gpdb-doc/dita/admin_guide/managing/gpcopy-migrate.xml
gpdb-doc/dita/admin_guide/managing/gpcopy-migrate.xml
+25
-62
未找到文件。
gpdb-doc/dita/admin_guide/managing/gpcopy-migrate.xml
浏览文件 @
735c3ece
...
@@ -9,8 +9,7 @@
...
@@ -9,8 +9,7 @@
a high-performance utility that can copy metadata and data from one Greenplum database to
a high-performance utility that can copy metadata and data from one Greenplum database to
another Greenplum database. You can migrate the entire contents of a database, or just
another Greenplum database. You can migrate the entire contents of a database, or just
selected tables. The clusters can have different Greenplum Database versions. For example, you
selected tables. The clusters can have different Greenplum Database versions. For example, you
can use
<codeph>
gpcopy
</codeph>
to migrate data from Greenplum Database version 5.9.0 or later
can use
<codeph>
gpcopy
</codeph>
to migrate data from Greenplum 5 to Greenplum 6.
</p>
to version 6.0.
</p>
<note>
The
<codeph>
gpcopy
</codeph>
utility is available only in the commercial release of
<note>
The
<codeph>
gpcopy
</codeph>
utility is available only in the commercial release of
Pivotal Greenplum Database.
</note>
Pivotal Greenplum Database.
</note>
<p>
The
<codeph>
gpcopy
</codeph>
interface includes options to transfer one or more full
<p>
The
<codeph>
gpcopy
</codeph>
interface includes options to transfer one or more full
...
@@ -53,12 +52,8 @@
...
@@ -53,12 +52,8 @@
compatible
<xref
href=
"https://network.pivotal.io/products/pivotal-gpdb"
scope=
"external"
compatible
<xref
href=
"https://network.pivotal.io/products/pivotal-gpdb"
scope=
"external"
format=
"html"
>
Greenplum Clients
</xref>
package to meet the
<codeph>
gpcopy
</codeph>
format=
"html"
>
Greenplum Clients
</xref>
package to meet the
<codeph>
gpcopy
</codeph>
dependencies.
</p>
dependencies.
</p>
<p><codeph>
gpcopy
</codeph>
supports migrating data from a Greenplum Database 4.3.26 or later
<p><codeph>
gpcopy
</codeph>
supports migrating data from a Greenplum 5 cluster to a Greenplum
cluster to a Greenplum Database 5.9 or later cluster. However Greenplum Database 4.3.26 and
Database 6 cluster.
</p>
later do not include the actual
<codeph>
gpcopy
</codeph>
utility. You must manually copy the
<codeph>
gpcopy
</codeph>
utility from your version 5.9 or later cluster into the older
version cluster to migrate data. For
example:
<codeblock>
$ cp /usr/local/greenplum-db-5.9.0/bin/gpcopy /usr/local/greenplum-db-4.3.26.0/bin/
</codeblock></p>
<p><codeph>
gpcopy
</codeph>
does not currently support SSL encryption for its connections.
</p>
<p><codeph>
gpcopy
</codeph>
does not currently support SSL encryption for its connections.
</p>
</body>
</body>
</topic>
</topic>
...
@@ -67,8 +62,7 @@
...
@@ -67,8 +62,7 @@
<body>
<body>
<p>
If you are copying data between Greenplum Database clusters having different versions, each
<p>
If you are copying data between Greenplum Database clusters having different versions, each
cluster must have
<codeph>
gpcopy
</codeph>
installed locally.
<codeph>
gpcopy
</codeph>
is
cluster must have
<codeph>
gpcopy
</codeph>
installed locally.
<codeph>
gpcopy
</codeph>
is
installed with Pivotal Greenplum Database starting with versions 5.9.0. For Greenplum
installed with Pivotal Greenplum Database starting with version 5.9.
</p>
Database 4.3.x,
<codeph>
gpcopy
</codeph>
is supported for versions 4.3.26.0 and later.
</p>
<p><codeph>
gpcopy
</codeph>
transfers data from user databases only; the
<p><codeph>
gpcopy
</codeph>
transfers data from user databases only; the
<codeph>
postgres
</codeph>
,
<codeph>
template0
</codeph>
, and
<codeph>
template1
</codeph>
<codeph>
postgres
</codeph>
,
<codeph>
template0
</codeph>
, and
<codeph>
template1
</codeph>
databases cannot be transferred. Administrators must transfer configuration files manually
databases cannot be transferred. Administrators must transfer configuration files manually
...
@@ -161,19 +155,13 @@
...
@@ -161,19 +155,13 @@
<li>
Start both the source and destination clusters.
</li>
<li>
Start both the source and destination clusters.
</li>
<li>
Perform a full database backup in the source Greenplum Database system. See
<xref
<li>
Perform a full database backup in the source Greenplum Database system. See
<xref
href=
"backup-gpbackup.xml#topic_yrr_hqw_sbb"
/>
.
</li>
href=
"backup-gpbackup.xml#topic_yrr_hqw_sbb"
/>
.
</li>
<li>
(Migrating from 4.3.x) While Greenplum Database 4.3.26 and later support migration
<li>
As a best practice, source the
<codeph>
greenplum_path.sh
</codeph>
file in the source
with
<codeph>
gpcopy
</codeph>
, Greenplum Database 4.3.x does not include the
Greenplum 5 installation, so that you execute
<codeph>
gpcopy
</codeph>
from the source
<codeph>
gpcopy
</codeph>
utility. If you are migrating from a version 4.3.x system,
system. For
Pivotal recommends that you copy the utility from your Greenplum Database 5.x
example:
<codeblock>
$ source /usr/local/greenplum-db-5.20.0/greenplum_path.sh
</codeblock></li>
installation to the 4.3.x installation. For
example:
<codeblock>
$ cp /usr/local/greenplum-db-6.0/bin/gpcopy /usr/local/greenplum-db-4.3.26.0/bin/
</codeblock></li>
<li>
(Migrating from 4.3.x) As a best practice, source the
<codeph>
greenplum_path.sh
</codeph>
file in the source Greenplum Database 4.3.x
installation, so that you execute
<codeph>
gpcopy
</codeph>
from the source system. For
example:
<codeblock>
$ source /usr/local/greenplum-db-4.3.26.0/greenplum_path.sh
</codeblock></li>
<li>
Use
<codeph>
gpcopy
</codeph>
with the
<codeph>
--full
</codeph>
option to migrate your
<li>
Use
<codeph>
gpcopy
</codeph>
with the
<codeph>
--full
</codeph>
option to migrate your
data to the destination system. A full migration automatically copies all database
data to the destination system. A full migration automatically copies all database
objects including tables, es, views, roles, functions, user defined types (UDT),
objects including tables,
index
es, views, roles, functions, user defined types (UDT),
resource queues, and resource groups for all user defined databases. Include the
resource queues, and resource groups for all user defined databases. Include the
<codeph>
--drop
</codeph>
to drop any destination tables that may already exist
<codeph>
--drop
</codeph>
to drop any destination tables that may already exist
(recreating es as necessary). For example:
(recreating es as necessary). For example:
...
@@ -185,11 +173,10 @@
...
@@ -185,11 +173,10 @@
destination tables to validate the data transfer (
<codeph>
--validate count
</codeph>
destination tables to validate the data transfer (
<codeph>
--validate count
</codeph>
option). The other
<codeph>
gpcopy
</codeph>
options specify the source and destination
option). The other
<codeph>
gpcopy
</codeph>
options specify the source and destination
Greenplum Database system master hosts, ports, and the User ID to use to connect to
Greenplum Database system master hosts, ports, and the User ID to use to connect to
the Greenplum Database systems.
the Greenplum Database systems.
<note>
While the example command performs a full system
<note>
While the example command performs a full system copy, consider migrating only
copy, consider migrating only portions of the your data at a time, so that you can
portions of the your data at a time, so that you can reduce downtime while
reduce downtime while addressing table errors or validation failures that may occur
addressing table errors or validation failures that may occur during the copy
during the copy operation.
</note></p></li>
operation.
</note></p></li>
<li>
The
<systemoutput>
gpcopy
</systemoutput>
utility does not copy configuration files such
<li>
The
<systemoutput>
gpcopy
</systemoutput>
utility does not copy configuration files such
as
<systemoutput>
postgresql.conf
</systemoutput>
and
as
<systemoutput>
postgresql.conf
</systemoutput>
and
<systemoutput>
pg_hba.conf
</systemoutput>
. You must set up the destination system
<systemoutput>
pg_hba.conf
</systemoutput>
. You must set up the destination system
...
@@ -197,23 +184,14 @@
...
@@ -197,23 +184,14 @@
<li>
The
<systemoutput>
gpcopy
</systemoutput>
utility does not copy external objects such as
<li>
The
<systemoutput>
gpcopy
</systemoutput>
utility does not copy external objects such as
Greenplum Database extensions, third party jar files, and shared object files. You must
Greenplum Database extensions, third party jar files, and shared object files. You must
recreate these external objects as necessary to match the source system.
</li>
recreate these external objects as necessary to match the source system.
</li>
<li>
(Migrating from 4.3.x) Greenplum Database 5.0 and later removes automatic implicit
casts between the text type and other data types. After you migrate from Greenplum
Database version 4.3.x to version 6.0, this change in behavior may impact existing
applications and queries. Refer to
<xref
href=
"../../install_guide/43x_to_5x.xml"
format=
"dita"
scope=
"peer"
>
About Implicit Text Casting in Greenplum Database
</xref>
in
the
<cite>
Greenplum Database Installation Guide
</cite>
for information, including a
discussion about supported and unsupported workarounds.
</li>
<li>
After migrating data you may need to modify SQL scripts, administration scripts, and
<li>
After migrating data you may need to modify SQL scripts, administration scripts, and
user-defined functions as necessary to account for changes in Greenplum Database version
user-defined functions as necessary to account for changes in Greenplum Database version
6.0.
Look for
<b>
Upgrade Action Required
</b>
entries in the
<xref
scope=
"externa
l"
6.0.
See the
<xref
scope=
"external"
format=
"htm
l"
format=
"html"
href=
"https://gpdb.docs.pivotal.io/latest/relnotes/"
>
Pivotal Greenplum
href=
"https://gpdb.docs.pivotal.io/latest/relnotes/"
>
Pivotal Greenplum 6.0 Release
6.0 Release Notes
</xref>
for featur
es that may necessitate post-migration tasks.
</li>
Notes
</xref>
for features or chang
es that may necessitate post-migration tasks.
</li>
</ol></p>
</ol></p>
<p>
See the
<xref
href=
"../../utility_guide/admin_utilities/gpcopy.xml"
>
gpcopy reference
<p>
See the
<xref
href=
"../../utility_guide/admin_utilities/gpcopy.xml"
>
gpcopy reference
page
</xref>
page
</xref>
for complete syntax and usage information.
</p>
<ph
otherprops=
"op-print"
>
in the
<cite>
Greenplum Database Utility Guide
</cite>
</ph>
for complete syntax and usage information.
</p>
</body>
</body>
</topic>
</topic>
<topic
id=
"topic_pyc_hpp_zdb"
>
<topic
id=
"topic_pyc_hpp_zdb"
>
...
@@ -274,16 +252,10 @@ ORDER BY 4 DESC LIMIT 5;
...
@@ -274,16 +252,10 @@ ORDER BY 4 DESC LIMIT 5;
free enough disk space to cover the sum of the table sizes shown in the above query,
free enough disk space to cover the sum of the table sizes shown in the above query,
or consider using a smaller
<codeph>
--jobs
</codeph>
value to reduce the free space
or consider using a smaller
<codeph>
--jobs
</codeph>
value to reduce the free space
requirements.
</p></li>
requirements.
</p></li>
<li>
(Migrating from 4.3.x) While Greenplum Database 4.3.26 and later support migration
<li>
As a best practice, source the
<codeph>
greenplum_path.sh
</codeph>
file in the source
with
<codeph>
gpcopy
</codeph>
, Greenplum Database 4.3.x does not include the
Greenplum 5 installation, so that you execute
<codeph>
gpcopy
</codeph>
from the source
<codeph>
gpcopy
</codeph>
utility. If you are migrating from a version 4.3.x system,
system. For
Pivotal recommends that you copy the utility from your Greenplum Database 6.0
example:
<codeblock>
$ source /usr/local/greenplum-db-5.20.0/greenplum_path.sh
</codeblock></li>
installation to the 4.3.x installation. For
example:
<codeblock>
$ cp /usr/local/greenplum-db-6.0/bin/gpcopy /usr/local/greenplum-db-4.3.26.0/bin/
</codeblock></li>
<li>
(Migrating from 4.3.x) As a best practice, source the
<codeph>
greenplum_path.sh
</codeph>
file in the source Greenplum Database 4.3.x
installation, so that you execute
<codeph>
gpcopy
</codeph>
from the source system. For
example:
<codeblock>
$ source /usr/local/greenplum-db-4.3.26.0/greenplum_path.sh
</codeblock></li>
<li>
Use a
<codeph>
gpcopy
</codeph>
with the
<codeph>
--truncate-source-after
</codeph>
and
<li>
Use a
<codeph>
gpcopy
</codeph>
with the
<codeph>
--truncate-source-after
</codeph>
and
<codeph>
--validate
</codeph>
options to migrate your data to the destination system. A
<codeph>
--validate
</codeph>
options to migrate your data to the destination system. A
full migration automatically copies all database objects including tables, es, views,
full migration automatically copies all database objects including tables, es, views,
...
@@ -313,23 +285,14 @@ ORDER BY 4 DESC LIMIT 5;
...
@@ -313,23 +285,14 @@ ORDER BY 4 DESC LIMIT 5;
<li>
The
<systemoutput>
gpcopy
</systemoutput>
utility does not copy external objects such as
<li>
The
<systemoutput>
gpcopy
</systemoutput>
utility does not copy external objects such as
Greenplum Database extensions, third party jar files, and shared object files. You must
Greenplum Database extensions, third party jar files, and shared object files. You must
recreate these external objects as necessary to match the source system.
</li>
recreate these external objects as necessary to match the source system.
</li>
<li>
(Migrating from 4.3.x) Greenplum Database 5.0 and later removes automatic implicit
casts between the text type and other data types. After you migrate from Greenplum
Database version 4.3.x to version 6.0, this change in behavior may impact existing
applications and queries. Refer to
<xref
href=
"../../install_guide/43x_to_5x.xml"
format=
"dita"
scope=
"peer"
>
About Implicit Text Casting in Greenplum Database
</xref>
in
the
<cite>
Greenplum Database Installation Guide
</cite>
for information, including a
discussion about supported and unsupported workarounds.
</li>
<li>
After migrating data you may need to modify SQL scripts, administration scripts, and
<li>
After migrating data you may need to modify SQL scripts, administration scripts, and
user-defined functions as necessary to account for changes in Greenplum Database version
user-defined functions as necessary to account for changes in Greenplum Database version
6.0.
Look for
<b>
Upgrade Action Required
</b>
entries in the
<xref
scope=
"externa
l"
6.0.
See the
<xref
scope=
"external"
format=
"htm
l"
format=
"html"
href=
"https://gpdb.docs.pivotal.io/latest/relnotes/"
>
Pivotal Greenplum
href=
"https://gpdb.docs.pivotal.io/latest/relnotes/"
>
Pivotal Greenplum 6.0 Release
6.0 Release Notes
</xref>
for featur
es that may necessitate post-migration tasks.
</li>
Notes
</xref>
for features and chang
es that may necessitate post-migration tasks.
</li>
</ol></p>
</ol></p>
<p>
See the
<xref
href=
"../../utility_guide/admin_utilities/gpcopy.xml"
>
gpcopy reference
<p>
See the
<xref
href=
"../../utility_guide/admin_utilities/gpcopy.xml"
>
gpcopy reference
page
</xref>
page
</xref>
for complete syntax and usage information.
</p>
<ph
otherprops=
"op-print"
>
in the
<cite>
Greenplum Database Utility Guide
</cite>
</ph>
for complete syntax and usage information.
</p>
</body>
</body>
</topic>
</topic>
</topic>
</topic>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录