Greenplum 连接管理
Greenplum 连接管理
[TOC]
5 Greenplum 连接管理
5.1 客户端应用
在使用这些客户端应用时,用户必须通过Greenplum的Master实例连接到一个数据库。用户将需要知道目标数据库的名称、Master的主机名和端口号,还有用于连接的数据库用户名。这些信息可以在命令行上分别用选项-d、-h、 -p和-U来提供。如果找到不属于任何一个选项的参数,它将被首先解释为数据库名。
所有这些选项都有默认值,如果该选项没有被指定就会使用其默认值。默认主机是本地主机。默认 端口号是5432。默认用户名是用户的操作系统用户名,同时也是默认的数据库名。注意操作系统用户名和Greenplum数据库用户名并不需要一样。
如果默认值和实际情况不同,用户可以设置环境变量PGDATABASE、PGHOST、PGPORT和PGUSER为合适的值,或者使用一个psql~/.pgpass文件来包含常用的口令。
[gpadmin@mdw greenplum-db]$ cd bin [gpadmin@mdw bin]$ ls analyzedb gpaddmirrors gpconfig_modules gpinitsystem gpreload gpstart pg_dump atmsort.pl gpbackup gpcopy gpkafka gprestore gpstate pg_dumpall atmsort.pm gpbackup_ddboost_plugin gpcopy_helper gpload gp_restore gpstop pg_receivexlog changetrackingdump gpbackup_helper gpcrondump gpload.py gp_restore_agent gpstringsubs.pl pg_resetxlog clusterdb gpbackup_s3_plugin gpdbrestore gpload.pyc gprestore_filter.py gpsys1 pg_restore createdb gp_bsa_delete_agent gpddboost gplogfilter gprestore_filter.pyc gptransfer pg_upgrade createlang gp_bsa_dump_agent gpdeletesystem gpmapreduce gprestore_post_data_filter.py gptransfer_modules postgres createuser gp_bsa_query_agent gp_df gpmfr gprestore_post_data_filter.pyc initdb postmaster dld.pl gp_bsa_restore_agent gpdiff.pl gpmfr.py gpscp ipcclean psql dropdb gpcheck gp_dump gpmfr.pyc gpsd lib README droplang gpcheckcat gp_dump_agent gpmmon gpseginstall minirepro reindexdb dropuser gpcheckcat_modules gpexpand gpmovemirrors gpsmon openssl test_gpmfr.py ecpg gpcheckcloud gpfdist gpperfmoncat.sh gpsourcify.pl pg_basebackup throttlingD.cnf explain.pm gpcheckmirrorseg.pl gpfilespace gpperfmon_install gpss pgbouncer throttlingD.py generate-greenplum-path.sh gpcheckperf gpgenfsmap.py gppkg gpssh pg_config throttlingD.pyc get_ereport.pl gpcheckresgroupimpl gpgenfsmap.pyc gp_primarymirror gpssh-exkeys pg_controldata vacuumdb gpactivatestandby gpconfig gpinitstandby gprecoverseg gpssh_modules pg_ctl xlogdump [gpadmin@mdw bin]$ ls -l crea* -rwxr-xr-x 1 gpadmin gpadmin 191421 Aug 10 2018 createdb -rwxr-xr-x 1 gpadmin gpadmin 233175 Aug 10 2018 createlang -rwxr-xr-x 1 gpadmin gpadmin 194607 Aug 10 2018 createuser [gpadmin@mdw bin]$ ls -l drop* -rwxr-xr-x 1 gpadmin gpadmin 189535 Aug 10 2018 dropdb -rwxr-xr-x 1 gpadmin gpadmin 239108 Aug 10 2018 droplang -rwxr-xr-x 1 gpadmin gpadmin 187329 Aug 10 2018 dropuser [gpadmin@mdw bin]$ ls -l psql reindexdb vacuumdb -rwxr-xr-x 1 gpadmin gpadmin 1233919 Aug 10 2018 psql -rwxr-xr-x 1 gpadmin gpadmin 195732 Aug 10 2018 reindexdb -rwxr-xr-x 1 gpadmin gpadmin 111752 Aug 10 2018 vacuumdb
相关文章