Common commands for Docker container operation
This article is an introduction.
This article continues< Common commands for Docker image operation>
Software image (e.g. weChat.exe) ---- run image - > generate a container (running software, running wechat program);
operation
command
Explain
Function
docker run --name container-name -d image-name
...
Added by said_r3000 on Tue, 07 Jan 2020 03:21:38 +0200
Duplicate replicates the database and creates a physical StandBy (pfile version)
1 the setting environment is as follows:
Primary database
IP
172.17.22.16
SID
orcl
Standby database
IP
172.17.22.17
SID
orcl
Set prompts to distinguish the location of operations
primary database
set SQLPROMPT Primary>
standby database
set SQLPROMPT StandBy>
1. Set Archive Mode + force log on Primary side
Make sure the pri ...
Added by kaoskorruption on Sun, 05 Jan 2020 18:54:41 +0200
How to read all files in a folder from Java?
How to read all files in a folder in Java?
#1 building
import java.io.File;
public class ReadFilesFromFolder {
public static File folder = new File("C:/Documents and Settings/My Documents/Downloads");
static String temp = "";
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Re ...
Added by dtasman7 on Sat, 04 Jan 2020 00:27:37 +0200
linux implements mysql read-write separation based on proxy
**
mysql-proxy
**
A powerful function of MySQL Proxy is to realize "read-write separation". The basic principle is to let the main database handle write transactions and the slave database handle SELECT queries.
Amoeba for MySQL is an excellent middleware software, which can also achieve read-write separation, l ...
Added by GM on Wed, 01 Jan 2020 15:46:20 +0200
Oracle regularly grabs Excel (csv format) data and writes it to database table
Oracle access to files requires UTL file, which is an Oracle built-in package. Permissions need to be granted:
Create directory TEMP as' d: / test '; -- create directory and authorize. TEMP is the given path name
Grant read, write on directory temp to ctmpmart? WF; -- grant permission to read and write directory
Grant execut ...
Added by Static Cling on Tue, 31 Dec 2019 15:31:40 +0200
JVM 1.8 performance monitoring and tuning learning
1. Parameter type of JVM
Tools documentation https://docs.oracle.com/javase/8/docs/technotes/tools/unix/
1. Standard parameters
2. - X parameters
Nonstandard parameter: it may be different in different versions of JVM
java defaults to mixed mode
For example, change java mode to interpretation mode: java -Xint -version
...
Added by davieboy on Thu, 26 Dec 2019 08:51:06 +0200
Oracle12c Linux x86-64 version installation
1. Add a new hard disk and format it
[root@localhost ~]# cd /dev
[root@localhost dev]# ls
[root@localhost dev]# fdisk /dev/sdb
[root@localhost dev]# mkfs -t xfs /dev/sdb1
2. Create orc directory
[root@localhost dev]# mkdir /orc
3. Modify the host name
[root@localhost ~]# vim /etc/hostname
#Add the following to the last line
HOSTNAME=oracle
4. ...
Added by spiritssight on Mon, 23 Dec 2019 16:31:59 +0200
Introduction of Jython, a docking tool between python and java
quick get start
Next we use jython to call the classes in the custom jar package.
Edit java file: Beach.java
public class Beach {
private String name;
private String city;
public Beach(String name, String city){
this.name = name;
this.city = city;
}
public String getName() {
return nam ...
Added by stlewis on Tue, 17 Dec 2019 23:28:24 +0200
Error reporting of initialization temporary password after mysql8.0.11 is installed successfully
Error reporting of initialization temporary password after mysql8.0.11 is installed successfully
View mysql version number after successfully installing mysql 8.0.11
Execute the initialization command mysqld --initialize --console to report an error
Causes and Solutions
Log in to MySQL with a temporary password and change the ...
Added by KI114 on Tue, 10 Dec 2019 14:46:05 +0200
CPU utility
System version: CentOS 7.4
top
17:49:04 // current time
up 3: 55 // System running time, format: minute
2 users // Number of currently logged in users
load average // The three values are the system load in 1 minute, 5 minutes and 15 minutes respectively
Tasks // Total process
running // Number of running proces ...
Added by arbitter on Thu, 05 Dec 2019 22:49:33 +0200