greenplum database

Discover greenplum database, include the articles, news, trends, analysis and practical advice about greenplum database on alibabacloud.com

Greenplum unsigned tinyint development

One background 1 signed tinyint using 2 signed tinyint extended two unsigned tinyint design and encoding 1 unsigned tinyint design 2 unsigned tinyint coding three encountered problems 1 the compilation was unsuccessful when compiling the expansion Pack 2 climits li Mitsh four additional content 1 unsigned tinyint expansion pack compilation installation 2 Create function five summary and Outlook 1 Summary 2 next expansion I. Background 1.1 Use of signed tinyint Signed tinyint this data type occup

Import data from MySQL to the Greenplum cluster

Tags: sch limit cat CLI Service Type box external table batchWe want to export data from MySQL to Greenplum, follow these steps to1: Export tables from MySQL to external filesTaking Schema_name.table_name as an exampleSelectproduct_id, Number, name, English_name, Purchase_name, System_name, Bar_code, Category_one, Category_two, Category_three, parent_id, Parent_number, brand_id, supplier_id, Price, Ad_word, Give_integral, Shelf_life, FROM_ Unixtime (s

View SQL statements of all underlying nodes on the master node in greenplum

Greenplum is a distributed database with many PostgreSQL databases under it. Sometimes we need to know what the underlying node is doing. Can we directly have a view or SQL on the master node, you can view the SQL statements of each node and identify the machine and database of the port. The following describes the method: The architecture of 3.3 and 4.0 has chan

Greenplum db Configuration

Greenplum db configuration 1. adjust the kernel Parameter kernel. sysrq = 1fs. file-max = 101365kernel. shmmax = 5001000000kernel. shmall = 4000000000kernel. msgmni = 2048kernel. sem = 250 512000 100 2048kernel. shmmni = 4096net. core. netdev_max_backlog = javasnet. core. rmem_default = 1048576net. core. rmem_max = 1048576net. core. wmem_default = 262144net. core. wmem_max = 262144net. ipv4.conf. all. arp_filter = 1net. ipv4.ip _ local_port_range = 10

Greenplum obtains the field name of an SQL result.

In greenplum, it is difficult to obtain the field names after execution of any SQL statement. For example, when writing a common tool, you can use the copy command to export an SQL statement to text, but the text exported by the name of each field does not exist, if you use your own SQL parsing, it will be too complicated. If we want to obtain these field names, we do not actually execute the SQL statement, because the execution plan has been generate

Greenplum-cc-web common errors during installation of the monitoring software

Err Error:1.no pg_hba.conf entry for Host ":: 1", User "Gpmon", Database "Gpperfmon", SSL offSolve:pg_hba.conf增加: host gpperfmon gpmon ::1/128 trust (此处的trust应该为md5,否则后面会报错)2.error: In the installation workload Manaager error, follow the prompts to view the log, found a machine crontab not installedSolve:install vixie-cron3. Login Web Hint: Trust login is disabled.trust user Gpmon is not allowed to login Command CenterDescribe:Us

Greenplum Management Mode

Greenplum management mode is the same as oracle schema. It is used to logically organize the storage containers of database objects. Different schemas do not share namespaces. Schema public is created by default after the database is created. each user has the permission to create an object in this schema. If no schema is specified, it is created here by default.

How to monitor greenplum segment disk space

Gp_toolkit Administrative schema:the Greenplum Database includes the Gp_toolkit Schema, which collects system information Through log files and operating system commands. Can run a query against the Gp_toolkit to quickly view free disk space. Results are shown in bytes. [Gpadmin@mdw ~]$ psql-d zwcdb-u zhongwc-h 192.168.1.23-w Password for user zhongwc: Psql (8.2.15) Type ' help ' for help. zwcdb=# Sele

Greenplum partition table to view the Occupied Space

When using the greenplum database, the following two functions are used to check the space occupied by the table: pg_relation_size and pg_size_pretty. The former is used to view the data size, and the latter is the adjustment of human readable. The method is as follows: Select pg_size_pretty (pg_relation_size ('relation _ name ')); Select pg_size_pretty (pg_relation_size (OID )); However, this metho

The configuration file cannot be loaded because the greenplum hostname and address are inconsistent.

Recently, I encountered several pitfalls and analyzed them one by one. 1. the hostname and address of the host name are inconsistent. When another stress test environment was deployed and submitted to the test group for stress testing, an error was reported when my colleague modified the pg_0000.conf file to reload the configuration file. (The localhost. localdomain server cannot be found) When I saw this error, I thought about it carefully. I performed operations on the deployment document, a

Greenplum is_date C Language Interface

In greenplum/PostgreSQL, it is convenient to convert a string to a time. In many formats, GP can automatically identify whether the time character is used. If the time is not correct or the time is incorrect, the SQL statement reports an error. aligputf8=# select'2011-13-10 10:10:10'::date;ERROR: date/time field value out of range:"2011-13-10 10:10:10"LINE 1: select'2011-13-10 10:10:10'::date; ^HINT: Perhaps you need a different"dates

GoldenGate synchronizes Oracle Data to GreenPlum

GoldenGate synchronizes Oracle Data to GreenPlum Source endOracle 11.2.0.4 RAC 2-NodesOracle Linux 5.8 x86_64Oracle GoldenGate V11.1.1.0.0 for Oracle 11g on Linux x86-64.zip Oracle GoldenGate V11.1.1.0.0 For FlatFile on Linux 64-bit for OGG v11.1.1.0.0.zip Target endGreenplum Database 4.2.6.1 4-NodesCentOS 5.7 x86_64 Oracle GoldenGate V11.1.1.0.0 for Oracle 11g on Linux x86-64.zip Oracle GoldenGate V11.1.1.

Greenplum test environment deployment

. overcommit_memory = 2kernel. msgmni = 2048net Vi/etc/security/limits. conf* Soft nofile 65536 * hard nofile 65536 * soft nproc 131072 * hard nproc 131072 Synchronize to each node:Cluster_copy_all_nodes/etc/sysctl. conf/etc/sysctl. confcluster_copy_all_nodes/etc/security/limits. conf/etc/security/limits. conf Disk pre-read parameters and deadline Algorithm AddBlockdev -- setra 16385/dev/xvdbecho deadline>/sys/block/xvdb/queue/schedulercluster_copy_all_nodes/etc/rc. d/rc. local/etc/rc. d/rc. loc

Greenplum 5.7 + Connection Master segment

Os:centos 7.4gp:gpdb-5.7.0 Three machinesNode1 is master hostNode2, Node3 for segment host psql login Master Operation on Node1 # su-gpadmin $ psql-d peiybdb psql (8.3.23) Type ' help ' for help. peiybdb=# \l List of Databases Name | Owner | Encoding | Access privileges -----------+---------+----------+--------------------- peiybdb | gpadmin | UTF8 | Postgres | gpadmin | UTF8 | Template0 | Gpadmin | UTF8 | =c/gpadmin

Greenplum 5.7 + Gp_toolkit

The Gp_toolkit is a functional schema for Greenplum. Contains a number of useful functions. [Gpadmin@node1 gpseg-1]$ psql-d peiybdb psql (8.3.23) Type ' help ' for help. peiybdb=# \dns+ List of schemas Name | Owner | Access Privileges | Description--------------------+---------+--------------------+--------------------------------- ----------------------------Gp_toolkit | Gpadmin | Gpadmin=uc/g

View of custom query table partitions in Greenplum

Greenplum Query partition table information itself is not particularly friendly, need to do table association and do the corresponding processing, in order to facilitate later maintenance, here to create two views for the DBA to directly query, very convenient.1. Create a view of the list partition table createorreplaceviewv_gp_list_partition_metaasselect Pp.parrelid::regclasstable_name,pr1.parchildrelid::regclasschild_tbl_name,pr1.parnameas partition

Configuring the Greenplum parameter

Before you perform a greenplum installation, you need to configure the relevant system parameters, otherwise you will be prone to unexpected errors.1. Modifying system ParametersEdit/etc/sysctl.conf, the following is the minimum configuration Kernel.shmmax =500000000kernel.shmmni =4096kernel.shmall =4000000000kernel.sem =2505120001002048KERNEL.SYSRQ =1kernel.core_uses_pid =1KERNEL.MSGMNB =65536kernel.msgmax =65536kernel.msgmni =2048net.ipv4.tcp_syncoo

Greenplum Sync to Oracle

Label:Development proposed the need to synchronize from Greenplum to Oracle solution, wrote a script for scheduled processing.#!/bin/sh#copy_gp_2_ora. ShIf [$#-ne 1]; Thenecho "Usage:sh $ tablename"Exit 1FiTablename=$1Psql-h \timing offSet client_encoding= ' GB18030 ';\copy $TABLENAME to '/home/oracle/$TABLENAME. txt ' csv\qEofecho "Load dataInFile ' $TABLENAME. txt ' discardfile ' $TABLENAME. Dis 'Appendinto table $TABLENAMEFields terminated by ', 'O

Greenplum manage Indexes

Greenplum manages indexes. Considering the characteristics of OLAP systems, you should use indexes carefully and conservatively. Avoid using indexes on frequently updated columns; use B-tree indexes on highly selective columns; and use Bitmap indexes on low-selective columns. In general, using indexes in traditional databases can effectively improve data access efficiency. Especially in OLTP systems, you often only need to obtain several rows or parts

Analysis of greenplum window functions

The system is not active recently and has not been upgraded. Therefore, you can optimize the entire ETL system on a stable basis. Top 10 cost time jobs are listed on a daily basis for analysis. The top1 costtime job uses the window functions first_value and last_value. The result SQL uses first_value, the window functions are sorted twice. Use the explain Section Code It can be found that the two sort consumption is about 1.7 times that of one sort, the second sort is improved to one, and the S

Total Pages: 15 1 .... 3 4 5 6 7 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.