Use demonstration of Hive lateral view

Lateral view is used with split, expand and other UDTF to split a row of data into multiple rows. On this basis, the split data can be aggregated. Lateral view first calls UDTF for each row of the original table, and UDTF will split a row into one or more rows. Then lateral view combines the results to produce a virtual table that supports alia ...

Posted by ayzee01 on Sat, 02 May 2020 19:41:55 -0700

oracle table space temporary table space information query

I have been dealing with oracle database for two days due to work reasons, and I have stepped on many holes. Now I want to write some thoughts and share them with you. There are some incorrect points. Please correct them! 1. Query tablespace information select * from dba_tablespaces 2. View the relationship between users and ...

Posted by pomme on Sat, 02 May 2020 12:06:55 -0700

Design Mode - Abstract Factory Mode

Catalog Design Mode - Abstract Factory Mode 1. Introduction to Modes 2. Example 1 - Using factory mode to implement operations on different databases 3. Example 2 - Multi-database and multi-table operations 4. Refactoring Example 2 - Improving Abstract factories with simple factories 5. Refactoring Example 2 - Reflection ...

Posted by r.smitherton on Sat, 02 May 2020 05:09:04 -0700

Oracle introduction 1

oracle installation, user authorization, table operation, data type, ddl table, dml data. Learning video: https://www.bilibili.com/video/BV1tJ411r7EC?p=15 Baidu cloud installation package is attached to the installation tutorial: https://blog.csdn.net/qq_40774525/article/details/79919057  oracle Baidu cloud installation package: https://pan.b ...

Posted by j8h9x on Sat, 02 May 2020 03:00:52 -0700

For those new features that may be annoying in 11gR2, a list helps you get rid of the hassle of upgrading 11gR2

There are many friends who can't take the courage to upgrade to 11gR2 because the potential features of 11gR2 may cause trouble for the stable operation of the system after upgrade. In fact, some features introduced by Oracle in the development of new RDBMS software have good ideas, but often these ideas will bring variables to the stable Appli ...

Posted by newjsguy on Fri, 01 May 2020 17:53:49 -0700

SQLLDR -- CTL file: field settings

The position keyword is used to specify the start and end positions of columns position(m:n): refers to the column value from the m-th character to the n-th character position(*+2:15): the way to directly specify the value is called absolute offset. If the * sign is used, it is the relative offset, indicating where the last field ends, where ...

Posted by jholzy on Fri, 01 May 2020 08:38:58 -0700

Enable remote access for mysql under Ubuntu

1. Log in with root admin@lnxServer:~$ mysql -uroot -p123456   Warning: Using a password on the command line interface can be insecure.   Welcome to the MySQL monitor.  Commands end with ; or \g.   Your MySQL connection id is 154   Server version: 5.6.19-0ubuntu0.14.04.1 (Ubuntu)      Copyright (c) 2000, 2014, Oracle and/or i ...

Posted by Shygirl on Fri, 01 May 2020 01:25:14 -0700

Stored procedure of Oracle full replication table structure

Recently, when dealing with a table splitting problem, we need to create a stored procedure for the program to automatically split tables. We need to ensure that all table structures, constraints, indexes, etc. are consistent. In addition, views, stored procedures, permissions, etc. are not considered temporarily. In Mysql, the procedure of cre ...

Posted by DJH on Thu, 30 Apr 2020 21:46:48 -0700

Simple application of Oracle trigger and MySQL trigger

Oracle update trigger Go straight one without more words DROP TRIGGER kfzt_afterupdate_dlzt; create or replace trigger kfzt_afterupdate_dlzt AFTER UPDATE ON jg_kfzt FOR EACH ROW BEGIN -- The update timeout is equal to the heartbeat time plus30Minute;Online time equals heartbeat time minus minutes of login time; ...

Posted by sandingmachine on Thu, 30 Apr 2020 15:25:17 -0700

PG TO Oracle incremental synchronization - External tables

background Recently, I was in charge of transferring company data from Oracle to PG; old platform database: Oracle11g; new platform database: PostgreSQL12. Due to the change of platform statistical rules, all the game data being promoted cannot be migrated; it can only run on the old platform. The payment data interface is upgraded, and the da ...

Posted by abch624 on Wed, 29 Apr 2020 10:28:21 -0700