Java uses thread pool to insert or update data in batches
Requirements: when developing business reports, it is necessary to read data from MySQL database, then write it to the database, and run batches using scheduled tasks.
Analysis: ① considering performance; ② MySQL is not as convenient and powerful as Oracle. To sum up, thread pool is used to insert MySQL database in batch Submission Scheme. Thi ...
Posted by Kasuke_Akira on Sat, 02 Nov 2019 04:34:20 -0700
oracle's advanced use of [6] jdbc to access oracle stored procedures and functions
After learning the stored procedures and stored functions, this paper will explain how to access the stored procedures and stored functions of oracle through jdbc.
1 precondition
oracle has been installed, scott users have also unlocked [the author uses oracle 11g]
jdk installed and environment variables configured
Proficient ...
Posted by wilded1 on Sat, 02 Nov 2019 00:27:12 -0700
Mysql recovery management password
How to restore MySQL database password
Stop Mysql server
Skip authorization table to start MySQL service program
Reset root password (update user table record)
Restart MySQL service program in normal way
Password recovery instance
Example 1: reset MySQL management password
Stop the running MySQL service program first
[root@host50 ~]# system ...
Posted by olygolfer on Thu, 31 Oct 2019 02:02:41 -0700
LeetCode 426. Convert binary search tree to ordered double linked list
A binary search tree is locally transformed into a sorted bi-directional circular list. The left and right child pointers can be used as the precursor and successor pointers of the bidirectional circular list.To give you a better understanding of the problem, take the following binary search tree as an example:
We want to transform this binary ...
Posted by euph on Wed, 30 Oct 2019 22:13:58 -0700
GuassDB 200 cross cluster access to other data platforms
This paper introduces GuassDB's Cross cluster access to remote oracle and remote MPPDB database. Due to the limited environment, docking HDFS and docking Spark functions are not listed here.
I. docking with oracle Database
1. Restriction
Only connection from Oracle11.2.0.1 to Oracle12.2.0.1 is supported.
The Oracle-ODBC driver version is requ ...
Posted by dr-dre67 on Tue, 29 Oct 2019 20:28:56 -0700
oracle+mybatis bulk insert data
1.Oracle batch operation
My watch structure is
1.1 batch insertion
1.1.1 primary key does not use sequence
insert into students(sid,sname,ssal,ssex)
select 9,'Zhang San',3000,'male' from dual
union all select 10,'Li Si',4000,'male' from dual
union all select 11,'Xiaohong',5000,'female' from dual
...
Posted by Alkimuz on Mon, 28 Oct 2019 08:29:39 -0700
ORACLE Direct NFS installation
DNFS is a new feature introduced by Oracle 11g to improve the IO performance of the system with NFS. Compared with system level NFS, DNFS reduces the consumption of network and IO transmission. The reasons for the low IO capacity of normal NFS are:1. Low efficiency data transmission, multi link implementation is difficult;2. The system's RPC s ...
Posted by sambkk on Sat, 26 Oct 2019 09:51:21 -0700
Java -- basic language for learning Java language: variables, arrays, data types, operators, and control flow.
Object oriented: objects, messages, classes, and inheritance,
Language basis: variables, arrays, data types, operators, and control flow.
Classes and objects
statement
Interface
Number and character: number and String objects
generic paradigm
package
II. Language foundation:
variables: bas ...
Posted by bb_xpress on Fri, 25 Oct 2019 10:09:19 -0700
Centos7 forgot the root password of mysql
1. Stop mysql service first
[root@CentOS ~]# ps -ef | grep mysql
root 5365 1 0 15:47 pts/0 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/CentOS.pid
mysql 5452 5365 4 15:47 pts/0 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --d ...
Posted by designationlocutus on Mon, 21 Oct 2019 08:56:31 -0700
Transaction management in ORACLE
Because of the work requirements, a large amount of data needs to be inserted into ORACLE data, and then the manual management of transaction opening is selected to insert a large amount of data. However, a pit is encountered here. Before the transaction management of mysql was opened to insert data, copying mysql is a bit impractical. Only 299 ...
Posted by philvia on Wed, 16 Oct 2019 14:35:28 -0700