当前位置:文档之家› deform 3d (中英说明)

deform 3d (中英说明)

deform 3d (中英说明)
deform 3d (中英说明)

OB开发手册中文版

OB开发手册中文版

Contents [hide]1 简介 ? 1 简介 ? 1.1 开发概述 ? 1.2 开发方法 ? 1.3 组织开发工作 ? 1.4 标识符命名标准 ? 1.4.1 数据库元素 ? 1.4.2 MVC目录 ? 1.4.3 存储过程语法 ? 1.5 目录结构 ? 1.6 风格指南 ? 1.6.1 逻辑比较 ? 1.6.2 逗号分隔列表 ? 1.6.3 圆括号中的空格 ? 1.6.4 SELECT INTO和INSERT INTO ? 1.6.5 SQL关键字 ? 1.7 编译程序 ? 1.7.1 命令行编译任务 ? 1.7.2 开发环境 ? 1.7.3 生产环境 ? 1.8 从源代码构建 ? 1.8.1 安装Subversion ? 1.8.2 从Subversion中检出源代码 ? 1.8.3 快速构建指南 ? 1.9 集成开发环境 ? 2 Openbravo数据模型 ? 2.1 存储的数据库对象 ? 2.2 实体-关系(ER)图 ? 2.3 创建存储过程 ? 2.3.1 AD_PInstance和AD_PInstance_Para表 ? 2.3.2 存储过程的输入参数 ? 2.3.2.1 从AD_PInstance表中获取有用的信息 ? 2.3.2.2 AD_Update_PInstance存储过程 ? 2.3.2.3 例外和错误管理 ? 2.4 存储过程语法的建议 ? 2.4.1 通用规则 ? 2.4.1.1 游标 ? 2.4.1.2 数组 ? 2.4.1.3 ROWNUM ? 2.4.1.4 %ROWCOUNT ? 2.4.1.5 %ISOPEN,%NOTFOUND ? 2.4.2 表 ? 2.4.3 函数 ? 2.4.4 存储过程

说明书英文版

Instructions 1. Specifications for gears assembled The torch is equipped with the following 8 different gears: 2. Operation for switchover ● tail switch operation The tail switch is a button switch with the function of button-pressing for locking and unlocking, which is to realize the operation of internal switches through the metallic button’s delivering the pressing force in the following specific modes: ◆when the switch is off, if the metallic button is pressed hard, after it is released, the switch

will then be kept on, circuit connected with LED on. ◆when the switch is on, if the metallic button is pressed hard, after it is released, the switch will then be unlocked and kept off with LED accordingly off. ◆when the switch is on, if the metallic button is pressed gently, LED will be off immediately, but after the button is released, LED will then be on again, and the switch will then be kept on. This operation is defined as the “gentle pressing” that LED goes through momentary on-and-off as the metallic button is gently pressed and released. ●how to switch over If the torch is turned on for the first time, or turned on again after it is turned off for the first time and remains off or at least 2 seconds, the gear will then be automatically switched to the first gear in either case: “high light”. In the mode that the torch is kept on when LED is on, press the tail switch gently, and the torch will be switched to another gear. The 8 different gears assembled herein will be switched on by turns. Caution: if you have any problem with switchover before initial use, please contact relevant salespeople or the after-sale service department for more information. 3. Load batteries in the right way Unscrew the tail cover, put the batteries into the cabin with the positive electrode toward the torch head, and then screw the cover tight. If batteries are loaded in the wrong way, the torch won’t work due to circuit protection, but it will resume normal work after batteries are unloaded and reloaded in the right way. Caution: batteries with no-load voltage over 2V are not preferred in case the internal circuit suffers from damages. Only batteries with on-load voltage of or under 2V are recommended. Due to excellent discharging performance, NiMH batteries are strongly recommended here. Maintenance Four silicone rings are equipped, two in front of the middle pipe and two at the back, providing excellent water-proof performance. For daily use, the torch will continue normal work even if it is accidentally soaked in the water.

PostgreSQL学习手册

tgreSQL学习手册(五) 函数和操作符 阿里云携手开源中国众包平台发布百万悬赏项目? 一、逻辑操作符: 常用的逻辑操作符有:AND、OR和NOT。其语义与其它编程语言中的逻辑操作符完全相同。 二、比较操作符: 下面是PostgreSQL中提供的比较操作符列表: 操作符描述 <小于 >大于 <=小于或等于 >=大于或等于 =等于 !=不等于 比较操作符可以用于所有可以比较的数据类型。所有比较操作符都是双目操作符,且返回boolean类型。除了比较操作符以外,我们还可以使用BETWEEN语句,如: a BETWEEN x AND y 等效于 a >= x AND a <= y a NOT BETWEEN x AND y 等效于 a < x OR a > y 三、数学函数和操作符: 下面是PostgreSQL中提供的数学操作符列表: 操作符描述例子结果 +加 2 + 35 -减 2 - 3-1 *乘 2 * 36 /除 4 / 22 %模 5 % 41 ^幂 2.0 ^ 3.08 |/平方根|/ 25.05 ||/立方根||/ 27.03 !阶乘 5 !120 !!阶乘!! 5120 @绝对值@ -5.05 &按位AND91 & 1511 |按位OR32 | 335

#按位XOR17 # 520 ~按位NOT~1-2 <<按位左移 1 << 416 >>按位右移8 >> 22 按位操作符只能用于整数类型,而其它的操作符可以用于全部数值数据类型。按位操作符还可以用于位串类型bit和bit varying, 下面是PostgreSQL中提供的数学函数列表,需要说明的是,这些函数中有许多都存在多种形式,区别只是参数类型不同。除非特别指明,任何特定形式的函数都返回和它的参数相同的数据类型。 函数返回类 型 描述例子结果 abs(x)绝对值abs(-17.4)17.4 cbrt(double)立方根cbrt(27.0)3 ceil(double/numeric)不小于参数的最小的整 数 ceil(-42.8)-42 degrees(double) 把弧度转为角度degrees(0.5)28.6478897565412 exp(double/numeric)自然指数exp(1.0) 2.71828182845905 floor(double/numeric)不大于参数的最大整数floor(-42.8)-43 ln(double/numeric)自然对数ln(2.0)0.693147180559945 log(double/numeric)10为底的对数log(100.0)2 log(b numeric,x numeric)numeric指定底数的对 数 log(2.0, 64.0) 6.0000000000 mod(y, x)取余数mod(9,4)1 pi() double"π"常量pi() 3.14159265358979 power(a double, b double)double求a的b次幂power(9.0, 3.0)729 power(a numeric, b numeric) numeric求a的b次幂power(9.0, 3.0)729 radians(double)double把角度转为弧度radians(45.0)0.785398163397448 random()double 0.0到1.0之间的随机 数值 random() round(double/numeric)圆整为最接近的整数round(42.4)42 round(v numeric, s int)numeric圆整为s位小数数字round(42.438,2)42.44 sign(double/numeric)参数的符号(-1,0,+1) sign(-8.4)-1 sqrt(double/numeric)平方根sqrt(2.0) 1.4142135623731 trunc(double/numeric)截断(向零靠近)trunc(42.8)42 trunc(v numeric, s int)numeric 截断为s小数位置的数 字 trunc(42.438,2)42.43 三角函数列表: 函数描述 acos(x)反余弦

商品说明书中英文对照

商品说明书中英文翻译对照 【药物名】对乙酰氨基酚 【其他名称】乙酰氨基酚;扑热息痛;退热净;醋氨酚;Acetaminophen;N-acetyl-P-aminophenol 【英文名称】Paracetamol 【适应症】用于感冒及流感,发热,减轻中度疼痛如关节痛、神经痛、肌肉痛、头痛、偏头痛、痛经、牙痛等症状。对阿司匹林过敏或不适应的患者应用本品尤为适宜。 【用法与用量】口服:成人每次300-500毫克,日2-3次。儿童每日2-3次,每次2-3岁50-100毫克;4-6岁100-150毫克;7-9岁150-200毫克;10-12岁200-250毫克;12岁以上250-500毫克;1岁以下儿童避免使用。 【注意事项】 (1)对阿司匹林过敏者一般对本品不发生过敏,但也有因对阿司匹林过敏而发生哮喘的病人中,少部分人在服用本品后发生轻度支气管痉挛性反应,因此,对阿司匹林过敏者慎用。 (2)孕妇和哺乳期妇女慎用。 (3)服用本品后如出现红斑或水肿症状,应立即停药。 【不良反应】一般剂量较少引起不良反应,对胃肠道刺激小,不会引起胃肠道出血。但也偶可引起恶心、呕吐、出汗、腹泻及面色苍白等不良反应。长期大量用药,对肝、肾均有损害,尤其是肾功能低下者,可能出现肾绞痛或急性肾功能衰竭。另外还可发生高铁血红蛋白血症。 【禁忌症】 (1)对本品过敏者禁用。

(2)1岁以下儿童及新生儿因肝、肾功能发育不全,应避免使用。 (3)酒精中毒、患肝病或病毒性肝炎时,本品有增加肝脏毒性作用的危险,应禁用。 (4)肾功能不全者禁用。 【限定剂型】片剂,咀嚼片,缓释片,泡腾片,分散片,胶囊剂,口服溶液剂,滴剂,糖浆剂,颗粒剂,泡腾颗粒剂,栓剂。 【药物贮藏】应在阴凉干燥处密闭保存。 【药物配伍】1、长期饮酒或正在应用其他肝酶诱导剂时,尤其是巴比妥类或其他抗痉挛药的患者,连续使用本品,有发生肝脏毒性反应的危险。 2、长期大量与阿司匹林、其他水酸盐制剂或其他非甾体抗炎药合用时(如每年累积用量达1000克,应用3年以上),可明显增加肾毒性的危险。 3、与抗病毒药剂多夫定合用时,会增加毒性,应避免同时应用。 4、与抗凝血药合用时可增加抗凝血作用,故要调整抗凝血药的用量。Paracetamol Main Use :Pain, fever Active Ingredient :Paracetamol Manufacturer :Non-proprietary How does it work? This medicine contains the active ingredient paracetamol, which is a medicine used to relieve mild to moderate pain. It is also useful for reducing fever. It is not fully understood how paracetamol produces these effects. Paracetamol can be used to relieve mild to moderate aches and pains associated with conditions such as headaches, migraine, toothache, teething, colds and flu. It is also useful for reducing fever and discomfort associated with colds and flu and following vaccinations.

PostgreSQL学习手册(PLpgSQL过程语言)

一、概述: PL/pgSQL函数在第一次被调用时,其函数内的源代码(文本)将被解析为二进制指令树,但是函数内的表达式和SQL命令只有在首次用到它们的时候,PL/pgSQL解释器才会为其创建一个准备好的执行规划,随后对该表达式或SQL命令的访问都将使用该规划。如果在一个条件语句中,有部分SQL命令或表达式没有被用到,那么PL/pgSQL解释器在本次调用中将不会为其准备执行规划,这样的好处是可以有效地减少为PL/pgSQL函数里的语句生成分析和执行规划的总时间,然而缺点是某些表达式或SQL命令中的错误只有在其被执行到的时候才能发现。 由于PL/pgSQL在函数里为一个命令制定了执行计划,那么在本次会话中该计划将会被反复使用,这样做往往可以得到更好的性能,但是如果你动态修改了相关的数据库对象,那么就有可能产生问题,如: CREATE FUNCTION populate() RETURNS integer AS $$ DECLARE -- 声明段 BEGIN PERFORM my_function(); END; $$ LANGUAGE plpgsql; 在调用以上函数时,PERFORM语句的执行计划将引用my_function对象的OID。在此之后,如果你重建了my_function函数,那么populate函数将无法再找到原有my_function函数的OID。要解决该问题,可以选择重建populate函数,https://www.doczj.com/doc/c713722651.html,或者重新登录建立新的会话,以使PostgreSQL重新编译该函数。要想规避此类问题的发生,在重建my_function时可以使用CREATE OR REPLACE FUNCTION命令。 鉴于以上规则,在PL/pgSQL里直接出现的SQL命令必须在每次执行时均引用相同的表和字段,换句话说,不能将函数的参数用作SQL命令的表名或字段名。如果想绕开该限制,可以考虑使用PL/pgSQL 中的EXECUTE语句动态地构造命令,由此换来的代价是每次执行时都要构造一个新的命令计划。 使用PL/pgSQL函数的一个非常重要的优势是可以提高程序的执行效率,由于原有的SQL调用不得不在客户端与服务器之间反复传递数据,这样不仅增加了进程间通讯所产生的开销,而且也会大大增加网络IO的开销。 二、PL/pgSQL的结构: PL/pgSQL是一种块结构语言,函数定义的所有文本都必须在一个块内,其中块中的每个声明和每条语句都是以分号结束,如果某一子块在另外一个块内,那么该子块的END关键字后面必须以分号结束,不过对于函数体的最后一个END关键字,分号可以省略,如: [ <

产品说明书英文版V完整版

产品说明书英文版V HEN system office room 【HEN16H-HENS2AHENS8Q8-HENH1688】

X-Link PRODUCT MANUALS FOR MULTIVIEW CONTROLER

This manual applies to the following models: 3UA Multiview CONTROLER ( Optional Front Panal,LCD Console ) 3UB Multiview CONTROLER ( Optional Front Panal,LCD Console ) 8U Multiview CONTROLER ( Optional Front Panal ) 8U-S Multiview CONTROLER( Optional Front Panal ) 12U Multiview CONTROLER LED Very-large Dot Matrix Screen Multiview CONTROLER ( K Series ) Monitoring Multiview CONTROLER ( N Series ) 3D Multiview CONTROLER ( 3D Series ) 4K Multiview CONTROLER (4k Series ) IMPORTANT NOTICE The company reserves the right to update the manual according to improvement of products without any prior notice. In the process of using, if any content in this manual is inconsistent with actual products or there is any further question during use, please contact document information department of our company. Please read this manual carefully before using the CONTROLER and properly file it after reading for future reference. Pictures are for reference only, subject to our available products. Please pay close attention to those with the Icon of in the article.

PostgreSQL+Linux 从入门到精通培训文档 2命令

本章大纲 1. 如何访问命令行 2. 使用命令行下的工具 非编辑模式 进入编辑模式 3. 正则表达式、管道和I/O 重定向 4. 管理用户账户 5. 文件访问控制 6. 管理进程 1,如何访问命令行 1.1 本地命令行的访问 在图形界面中,访问命令行的方法:打开Terminal,Console。或者:Ctrl+Alt+F1 ~ F6 1.2 使用SSH 访问命令行 同上 2,使用命令行下的工具 2.1 使用硬链接

硬链接,指在同一个文件系统中,对inode的引用,只要文件上存在至少1个硬链接,就可以找到对应的inode。 [digoal@digoal01 ~]$ echo "abc" > ./a [digoal@digoal01 ~]$ stat a File: `a' Size: 4 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 656374 Links: 1 -- 硬链接数量 Access: (0664/-rw-rw-r--) Uid: ( 500/ digoal) Gid: ( 500/ digoal) Access: 2017-04-11 13:18:14.292848716 +0800 Modify: 2017-04-11 13:18:14.292848716 +0800 Change: 2017-04-11 13:18:14.292848716 +0800 创建硬链接 [digoal@digoal01 ~]$ ln -L ./a ./b [digoal@digoal01 ~]$ stat a File: `a' Size: 4 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 656374 Links: 2 Access: (0664/-rw-rw-r--) Uid: ( 500/ digoal) Gid: ( 500/ digoal) Access: 2017-04-11 13:18:14.292848716 +0800 Modify: 2017-04-11 13:18:14.292848716 +0800 Change: 2017-04-11 13:18:34.631855044 +0800 [digoal@digoal01 ~]$ stat b File: `b' Size: 4 Blocks: 8 IO Block: 4096 regular file Device: 803h/2051d Inode: 656374 Links: 2 Access: (0664/-rw-rw-r--) Uid: ( 500/ digoal) Gid: ( 500/ digoal) Access: 2017-04-11 13:18:14.292848716 +0800 Modify: 2017-04-11 13:18:14.292848716 +0800 Change: 2017-04-11 13:18:34.631855044 +0800 删除一个硬链接,还能通过其他硬链接找到对应的inode。 [digoal@digoal01 ~]$ rm a rm: remove regular file `a'? y [digoal@digoal01 ~]$ cat b abc 2.2 归档和解压 常用的归档命令tar 归档-c (常用压缩库-j bz2, -z gzip) [digoal@digoal01 ~]$ tar -jcvf test.tar.bz2 b

电脑中英对照说明书

深圳市普鲁士特空压机系统有限公司 GERMANY PREUSST (CHINA/HK) CO., LTD.24小时客服热线:400-678-8186 137******** 控制器中英文对照表

压缩机出 口压力 卸载 自动卸载

Status data 状态数据 Measured data 测量数据 Counters 计数器 Test 测试 Modify parameters 修改参数

Protection Compressor outlet 保护 Service 维护保养 Expansion moduless 扩充模块 Compressor outer 压缩机出口压力Dp oil separator 油气分离气压差Oil injection element 主机喷油压力Dp air filter 空气过滤器压差 Cooling medium 冷却介质温度 Oil separator 油分温度Element outet 主机出口温度Emergency stop 紧急停机 Compressor outet 压缩机出口温度Remote start/stop 远程起动/停机Remote load/unload 远程加载/卸载Starter feedback contact 反馈触点Remote pressure sensing 远程压力传感Pb1 open/pb2 closed 压力带1开/压力带2关 Over load fanmotor 风扇电机过载Over load motor 电机过载

Running hours 运行时间 Loaded hours 加载时间 Motor starts电机起动次数 Module hours控制器运行时间 Load relay 加载继电器 Display test 显示测试 Safety valve test 空全阀测试 Outputs 输出 Modify parameters 修改参数 Parameters 参数 Protections 保护 Service plan 保养计划 Clock function 时钟功能 Configuration 配置 Service 维护保养 Saved data 存储数据

产品说明书范文英文版

产品说明书范文英文版 电子产品说明书——媒体音响英文说明书范例(中英) 便携式多媒体音响 Portable Multimedia Acoustics 使用说明书User’s Manual 专注于完美音质的追求?? Concentrate on perfect sound pursuit? 感谢您使用本公司出品的数码产品,为了让您轻松体验 产品,我们随机配备了内容详尽的使用说明,您从中可以获 取有关产品的介绍,使用方法等方面的知识。在您开始使用 本机之前请先仔细阅读说明书,以便您能正确的使用本机, 如有任何印刷错误或翻译失误望广大用户谅解,当涉及内容 有所更改时,恕不另行通知。 Thank you for using this digital product of our company. In order to let you experience the product swimmingly, detailed instruction is provided which you can find the product’s introduction, usage and other information. Before using this product, please read the manual carefully, so that you can correctly use it. In case of any printing or translation error, we apologize for the inconvenience. As for the content change, we are sorry for no further notice. 一、产品概述 General Information 本机是一款外观小巧,设计精美、携带方便多媒体小音响, 适用于家居、户外旅游、办公室等场所,随时随地享受音乐

PostgreSQL学习手册:SQL语言函数

PostgreSQL学习手册:SQL语言函数 一、基本概念: SQL函数可以包含任意数量的查询,但是函数只返回最后一个查询(必须是SELECT)的结果。在简单情况下,返回最后一条查询结果的第一行。如果最后一个查询不返回任何行,那么该函数将返回NULL值。如果需要该函数返回最后一条SELECT语句的所有行,可以将函数的返回值定义为集合,即SETOF sometype。 SQL函数的函数体应该是用分号分隔的SQL语句列表,其中最后一条语句之后的分号是可选的。除非函数声明为返回void,否则最后一条语句必须是SELECT。事实上,在SQL函数中,不仅可以包含SELECT查询语句,也可以包含INSERT、UPDATE和DELETE等其他标准的SQL 语句,但是和事物相关的语句不能包含其中,如BEGIN、COMMIT、ROLLBACK和SAVEPOINT 等。 CREATE FUNCTION命令的语法要求函数体写成一个字符串文本。通常来说,该文本字符串常量使用美元符($$)围住,如: CREATE FUNCTION clean_emp() RETURNS void AS $$ DELETE FROM emp WHERE salary < 0; $$ LANGUAGE SQL; 最后需要说明的是SQL函数中的参数,PostgreSQL定义$1表示第一个参数,$2为第二个参数并以此类推。如果参数是复合类型,则可以使用点表示法,即$https://www.doczj.com/doc/c713722651.html,访问复合类型参数中的name字段。需要注意的是函数参数只能用作数据值,而不能用于标识符,如:INSERT INTO mytable VALUES ($1); --合法 INSERT INTO $1 VALUES (42); --不合法(表名属于标示符之一) 二、基本类型: 最简单的SQL函数可能就是没有参数且返回基本类型的函数了,如: CREATE FUNCTION one() RETURNS integer AS $$ SELECT 1 AS result; $$ LANGUAGE SQL; 下面的例子声明了基本类型作为函数的参数。 CREATE FUNCTION add_em(integer, integer) RETURNS integer AS $$ SELECT $1 + $2; $$ LANGUAGE SQL; # 通过select调用函数。 postgres=# SELECT add_em(1,2) AS answer; answer -------- 3 (1 row) 在下面的例子中,函数体内包含多个SQL语句,它们之间是用分号进行分隔的。CREATE FUNCTION tf1 (integer, numeric) RETURNS numeric AS $$ UPDATE bank SET balance = balance - $2 WHERE accountno = $1; SELECT balance FROM bank WHERE accountno = $1; $$ LANGUAGE SQL;

中英文对照说明书

前言 Preface 感您使用燃烧控制研究院生产的就地点火控制柜装置。 本公司的就地点火控制柜装置是燃烧控制研究院自主开发生产的高品质就地控制装置,在使用系列本程控装置之前请您仔细阅读该手册以保证正确使用并充分发挥其优越性。 本说明书对就地控制柜(以下简称控制柜)的操作和安装方法等做了详细的介绍。使用控制柜以前,在阅读本说明书的基础上,进行安全正确使用。Thank you for choosing the Local Ignition Control Cabinet designed by our company. The local ignition control device is explored by our company for the ignition control of boiler. This manual describes installation and operation of the cabinet clearly, please read this manual before using. 容介绍Brief introduction 本手册介绍了点火控制柜的组成、安装、配线、功能参数、日常使用维护及对故障的处理 The manual includes the cabinet’s components, installation, wiring, data, maintenance, and troubleshooting. 读者对象Applicable readers 本书适合下列人员阅读This manual is applicable for 设备安装人员、维护人员、设计人员 Installer, maintenance man, and designer 本书约定Stipulation 符号约定Symbol stipulations 说明提醒操作者需重点关注的地方 Points operator should pay attention to 由于没有按要求操作可能造成死亡或重伤的场合危险! This symbol indicates death or GBH that may occur as a result

兄弟传真机功能设置中英文对照说明书

兄弟传真机功能设置中英文对照说明书

错误报告对照表: Back Cover Open 后盖打开) 未完全合上后盖 Change Drum Soon (立即更换硒鼓) 硒鼓单元已接近其使用寿命。 Comm.Error(通信错误)电话线路质量太差 Connection fail(连接失败)轮询了一个处于非轮询等待模式的传真设备 Cooling down(正在冷确)wait for a while(请稍等)硒鼓单元或墨粉盒温度太高。停止工作,进入冷却模式。必须等待20分钟。 Cover is open(扫描仪盖开)未完全合上前盖 Document jam(原稿卡住)示插入或正确放入原稿,或者从自动进稿器扫描的原稿太长Data remaining(数据残余)按取消作业键。 Disconnected(已断开)对方或对方的传真设备终止了此次呼叫 Drum error(需要清洁硒鼓单元。清洁电晕丝 Fail to warm up (预热失败)热熔单元温度过低 Unit is too hot (单元过热)热熔单元温度过高 Machine too hot(设备过热)设备内部过热 No cartridge(未正确安装墨粉盒)

No paper fed(缺纸或装纸不正确) No response/busy(未响应/繁忙) Not registered(未注册) Out of memory(内存不足)设备内存已满 Paper jam inside(内部卡纸)纸张卡在设备中 Paper jam rear(后部卡纸) Paper jam tray(纸盒卡纸) Scanner locked(扫描仪被锁定)扫描仪平板传感器不能回到初使位置Toner life end(墨盒用尽) Toner low(墨粉不足) Unable to init (无法初始化)设备出现机械故障 Unable to print(法初打印)备出现机械故障 Unable to scan(法初扫描备出现机械故障 Wrong paper size (纸张大小不正确)

Sqoop官方中文手册

Sqoop中文手册 1. 概述 本文档主要对SQOOP的使用进行了说明,参考内容主要来自于Cloudera SQOOP的官方文档。为了用中文更清楚明白地描述各参数的使用含义,本文档几乎所有参数使用说明都经过了我的实际验证而得到。 2. codegen 将关系数据库表映射为一个java文件、java class类、以及相关的jar包, 1、将数据库表映射为一个Java文件,在该Java文件中对应有表的各个字段。 2、生成的Jar和class文件在metastore功能使用时会用到。 基础语句: sqoop codegen –connect jdbc:mysql://localhost:3306/hive –username root –password 123456 –table TBLS2

3. create-hive-table 生成与关系数据库表的表结构对应的HIVE表 基础语句: sqoop create-hive-table –connect jdbc:mysql://localhost:3306/hive -username root -password 123456 –table TBLS –hive-table h_tbls2 4. eval

可以快速地使用SQL语句对关系数据库进行操作,这可以使得在使用import这种工具进行数据导入的时候,可以预先了解相关的SQL语句是否正确,并能将结果显示在控制台。 查询示例: sqoop eval –connect jdbc:mysql://localhost:3306/hive -username root -password 123456 -query ―SELECT * FROM tbls LIMIT 10″ 数据插入示例: sqoop eval –connect jdbc:mysql://localhost:3306/hive -username root -password 123456 -e ―INSERT INTO TBLS2 VALUES(100,1375170308,1,0,‘hadoop‘,0,1,‘guest‘,‘MANAGED_TABLE‘,‘abc‘,‘ddd‘)‖ -e、-query这两个参数经过测试,比如后面分别接查询和插入SQL语句,皆可运行无误,如上。 5. export 从hdfs中导数据到关系数据库中 sqoop export –connect jdbc:mysql://localhost:3306/hive –username root –password 123456 –table TBLS2 –export-dir sqoop/test

GP简明使用手册

GP服务启停 su - gpadmin gpstart #正常启动 gpstop #正常关闭 gpstop -M fast #快速关闭 gpstop –r #重启 gpstop –u #重新加载配置文件 登陆与退出Greenplum #正常登陆 psql gpdb psql -d gpdb -h gphostm -p 5432 -U gpadmin #使用utility方式 PGOPTIONS="-c gp_session_role=utility" psql -h -d dbname hostname -p port #退出 在psql命令行执行\q 参数查询 psql -c 'SHOW ALL;' -d gpdb gpconfig --show max_connections 创建数据库 createdb -h localhost -p 5432 dhdw 创建GP文件系统 # 文件系统名 gpfsdw # 子节点,视segment数创建目录 mkdir -p /gpfsdw/seg1 mkdir -p /gpfsdw/seg2 chown -R gpadmin:gpadmin /gpfsdw # 主节点 mkdir -p /gpfsdw/master chown -R gpadmin:gpadmin /gpfsdw gpfilespace -o gpfilespace_config

gpfilespace -c gpfilespace_config 创建GP表空间 psql gpdb create tablespace TBS_DW_DATA filespace gpfsdw; SET default_tablespace = TBS_DW_DATA; 删除GP数据库 gpdeletesystem -d /gpmaster/gpseg-1 -f 查看segment配置 select * from gp_segment_configuration; 文件系统 select * from pg_filespace_entry; 磁盘、数据库空间 SELECT * FROM gp_toolkit.gp_disk_free ORDER BY dfsegment; SELECT * FROM gp_toolkit.gp_size_of_database ORDER BY sodddatname;日志 SELECT * FROM gp_toolkit.__gp_log_master_ext; SELECT * FROM gp_toolkit.__gp_log_segment_ext; 表描述 /d+ 表分析 VACUUM ANALYZE tablename; 表数据分布 SELECT gp_segment_id, count(*) FROM GROUP BY gp_segment_id; 表占用空间 SELECT relname as name, sotdsize/1024/1024 as size_MB, sotdtoastsize as toast, sotdadditionalsize as other FROM gp_toolkit.gp_size_of_table_disk as sotd, pg_class WHERE sotd.sotdoid = pg_class.oid ORDER BY relname;

相关主题
文本预览
相关文档 最新文档