oracle42997,oracle与db2的比较

在DB2中从客户端访问服务器端的数据库时,不能直接用connect命令,而必须先建立通信node,再在node的基础上建立数据库连接。在命令行的具体操作如下:

->db2 catalog tcpip node ABC remote serverName server 50000->db2 catalog db databaseName at node ABC->db2 connect to databaseName user Uid using Pwd

说明:

catalog tcpip node ABC 中的ABC是由你任意起的一个结点名,结点名不能跟已有的结点名重复

catalog db databaseName at node ABC 中的ABC指的是你在前面起的那个结点名

serverName 服务器名称(远程数据库)

databaseName 数据库名称

Uid 用户名

Pwd 密码

另外,如果客户端已经跟同一个服务器建立了node,那么如果你想连接该服务器上的另一个数据库时,不需要再另建node,直接用同一个node即可。另外,建立node时服务器名称后的端口不一定是50000,要看DB工程师当时的设置。

相关指令:

list db directory 列出可访问的db

list node directory 列出可访问的结点

下边是DB2安装和设置连接的具体流程:一、安装db2 v9服务器、创建实例、创建管理服务器

1.创建目录、用户[root@seagull /]# mkdir /db2home

[root@seagull /]# mkdir /db2home/db2inst1

[root@seagull /]# mkdir /db2home/db2fenc1

[root@seagull /]# groupadd -g 999 db2iadm1

[root@seagull /]# groupadd -g 998 db2fadm1

[root@seagull /]# useradd -u 1004 -g db2iadm1 -d /db2home/db2inst1 db2inst1

[root@seagull /]# useradd -u 1003 -g db2fadm1 -d /db2home/db2fenc1 db2fenc1

passwd db2inst1

passwd db2fenc1

su – db2fenc1 –切换用户

su – db2fenc1 –根据提示,重新设置密码,使得密码生效

su – db2inst1 –切换用户

su – db2inst1 –根据提示,重新设置密码,使得密码生效

2.安装db2软件[root@seagull seagull]# cd /tmp/seagull/db2v9/

[root@seagull db2v9]# ls

db2 db2_install db2setup installFixPack

[root@seagull db2v9]# ./db2_install

#注解:IBM工程师建议用文字界面安装,而不要用图形界面安装,即用db2_install,不要用db2setup

Default directory for installation of products – /opt/ibm/db2/V9.1

***********************************************************

Do you want to choose a different directory to install [yes/no] ?

no

#注解:使用默认目录就可以了

Specify one or more of the following keywords,

separated by spaces, to install DB2 products.

CLIENT

RTCL

ESE

Enter “help” to redisplay product names.

Enter “quit” to exit.

***********************************************************

ESE

#注解:选择安装ESE,即enterprise server edition

DB2 installation is being initialized.

Total number of tasks to be performed: 46

Total estimated time for all tasks to be performed: 802

Task #1 start

Description: Checking license agreement acceptance

Estimated time 1 second(s)

Task #1 end

Task #2 start

Description: GSKit support

Estimated time 19 second(s)

Task #2 end

Task #3 start

Description: Product Messages – English

Estimated time 10 second(s)

Task #3 end

Task #4 start

Description: Base client support

Estimated time 67 second(s)

Task #4 end

Task #5 start

Description: IBM Software Development Kit (SDK) for Java(TM)

Estimated time 101 second(s)

Task #6 start

Description: Java Help (HTML) – English

Estimated time 7 second(s)

Task #6 end

Task #7 start

Description: Replication with MQ Server

Estimated time 22 second(s)

Task #7 end

Task #8 start

Description: Run-time Environment

Estimated time 78 second(s)

Task #9 start

Description: Java support

Estimated time 6 second(s)

Task #9 end

Task #10 start

Description: SQL procedures

Estimated time 3 second(s)

Task #10 end

Task #11 start

Description: ICU Utilities

Estimated time 39 second(s)

Task #11 end

Task #12 start

Description: SQL Replication Support

Estimated time 19 second(s)

Task #12 end

Task #13 start

Description: Java Common files

Estimated time 20 second(s)

Task #13 end

Task #14 start

Description: Base server support

Estimated time 47 second(s)

Task #14 end

Task #15 start

Description: Control Center Help (HTML) – English

Estimated time 13 second(s)

Task #15 end

Task #16 start

Description: Connect support

Estimated time 3 second(s)

Task #16 end

Task #17 start

Description: Configuration Assistant

Estimated time 4 second(s)

Task #17 end

Task #18 start

Description: Spatial Extender client

Estimated time 6 second(s)

Task #18 end

Task #19 start

Description: Base application development tools

Estimated time 11 second(s)

Task #19 end

Task #20 start

Description: Administration Server

Estimated time 7 second(s)

Task #20 end

Task #21 start

Description: Communication support – TCP/IP

Estimated time 3 second(s)

Task #21 end

Task #22 start

Description: Control Center

Estimated time 38 second(s)

Task #22 end

Task #23 start

Description: Parallel Extension

Estimated time 3 second(s)

Task #23 end

Task #24 start

Description: Replication tools

Estimated time 12 second(s)

Task #24 end

Task #25 start

Description: Relational wrappers common

Estimated time 3 second(s)

Task #25 end

Task #26 start

Description: DB2 data source support

Estimated time 4 second(s)

Task #26 end

Task #27 start

Description: DB2 LDAP support

Estimated time 3 second(s)

Task #27 end

Task #28 start

Description: DB2 Instance Setup wizard

Estimated time 4 second(s)

Task #28 end

Task #29 start

Description: XML Extender

Estimated time 11 second(s)

Task #29 end

Task #30 start

Description: First Steps

Estimated time 3 second(s)

Task #30 end

Task #31 start

Description: DB2 Web Tools

Estimated time 12 second(s)

Task #31 end

Task #32 start

Description: Product Signature for DB2 Enterprise Server Edition

Estimated time 5 second(s)

Task #32 end

Task #33 start

Description: XML Extender samples

Estimated time 3 second(s)

Task #33 end

Task #34 start

Description: ADT sample programs

Estimated time 20 second(s)

Task #34 end

Task #35 start

Description: Sample database source

Estimated time 4 second(s)

Task #35 end

Task #36 start

Description: Spatial Extender samples

Estimated time 3 second(s)

Task #36 end

Task #37 start

Description: Informix data source support

Estimated time 3 second(s)

Task #37 end

Task #38 start

Description: Setting DB2 library path

Estimated time 120 second(s)

Task #38 end

Task #39 start

Description: Executing control tasks

Estimated time 20 second(s)

Task #39 end

Task #40 start

Description: Updating global registry

Estimated time 20 second(s)

Task #40 end

Task #41 start

Description: Starting DB2 Fault Monitor

Estimated time 10 second(s)

Task #41 end

Task #42 start

Description: Updating the db2ls link

Estimated time 1 second(s)

Task #42 end

Task #43 start

Description: Registering DB2 licenses

Estimated time 5 second(s)

Task #43 end

Task #44 start

Description: Setting default global profile registry variables

Estimated time 1 second(s)

Task #44 end

Task #45 start

Description: Initializing instance list

Estimated time 5 second(s)

Task #45 end

Task #46 start

Description: Updating global profile registry

Estimated time 3 second(s)

Task #46 end

The execution completed successfully.

For more information see the DB2 installation log at

“/tmp/db2_install.log.7134″.

[root@seagull db2v9]#

3.安装license[root@seagull bin]# cd /opt/ibm/db2/V9.1/adm/

[root@seagull adm]# ./db2licm -a /tmp/seagull/db2v9/license/db2ese_c.lic

LIC1402I License added successfully.

LIC1426I This product is now licensed for use as specified in the License Agreement and License Information documents pertaining to the licensed copy of this product. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT AND LICENSE INFORMATION DOCUMENTS, LOCATED IN THE FOLLOWING DIRECTORY: “/opt/ibm/db2/V9.1/license/en_US.iso88591″

[root@seagull adm]# ./db2licm -a /tmp/seagull/db2v9/license/db2dpf.lic

LIC1402I License added successfully.

LIC1426I This product is now licensed for use as specified in the License Agreement and License Information documents pertaining to the licensed copy of this product. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT AND LICENSE INFORMATION DOCUMENTS, LOCATED IN THE FOLLOWING DIRECTORY: “/opt/ibm/db2/V9.1/license/en_US.iso88591″

[root@seagull adm]# ./db2licm -a /tmp/seagull/db2v9/license/db2xmlese.lic

LIC1402I License added successfully.

LIC1426I This product is now licensed for use as specified in the License Agreement and License Information documents pertaining to the licensed copy of this product. USE OF THE PRODUCT CONSTITUTES ACCEPTANCE OF THE TERMS OF THE IBM LICENSE AGREEMENT AND LICENSE INFORMATION DOCUMENTS, LOCATED IN THE FOLLOWING DIRECTORY: “/opt/ibm/db2/V9.1/license/en_US.iso88591″

[root@seagull adm]#

4.创建实例和样本数据库[root@seagull V9.1]# cd /opt/ibm/db2/V9.1/instance

[root@seagull instance]# ./db2icrt -p 50000 -u db2fenc1 db2inst1

DBI1070I Program db2icrt completed successfully.

[root@seagull instance]# tail -n 6 -f /etc/services

# Local services

DB2_db2inst1 60000/tcp

DB2_db2inst1_1 60001/tcp

DB2_db2inst1_2 60002/tcp

DB2_db2inst1_END 60003/tcp

[root@seagull ~]# su – db2inst1

[db2inst1@seagull ~]$

[db2inst1@seagull ~]$ db2sampl

Starting the DB2 instance…

Creating database “SAMPLE”…

Connecting to database “SAMPLE”…

Creating tables and data in schema “DB2INST1″…

Stopping the DB2 instance…

‘db2sampl’ processing complete.

[db2inst1@seagull sqllib]$

[db2inst1@seagull sqllib]$ db2start

11/28/2007 16:49:04 0 0 SQL1063N DB2START processing was successful.

SQL1063N DB2START processing was successful.

[db2inst1@seagull sqllib]$ db2 connect to sample

Database Connection Information

Database server = DB2/LINUX 9.1.0

SQL authorization ID = DB2INST1

Local database alias = SAMPLE

[db2inst1@seagull sqllib]$ db2 “select * from staff”

ID NAME DEPT JOB YEARS SALARY COMM

—— ——— —— —– —— ——— ———

10 Sanders 20 Mgr 7 98357.50 -

20 Pernal 20 Sales 8 78171.25 612.45

30 Marenghi 38 Mgr 5 77506.75 -

40 O’Brien 38 Sales 6 78006.00 846.55

50 Hanes 15 Mgr 10 80659.80 -

60 Quigley 38 Sales – 66808.30 650.25

70 Rothman 15 Sales 7 76502.83 1152.00

80 James 20 Clerk – 43504.60 128.20

90 Koonitz 42 Sales 6 38001.75 1386.70

100 Plotz 42 Mgr 7 78352.80 -

110 Ngan 15 Clerk 5 42508.20 206.60

120 Naughton 38 Clerk – 42954.75 180.00

130 Yamaguchi 42 Clerk 6 40505.90 75.60

140 Fraye 51 Mgr 6 91150.00 -

150 Williams 51 Sales 6 79456.50 637.65

160 Molinare 10 Mgr 7 82959.20 -

170 Kermisch 15 Clerk 4 42258.50 110.10

180 Abrahams 38 Clerk 3 37009.75 236.50

190 Sneider 20 Clerk 8 34252.75 126.50

200 Scoutten 42 Clerk – 41508.60 84.20

210 Lu 10 Mgr 10 90010.00 -

220 Smith 51 Sales 7 87654.50 992.80

230 Lundquist 51 Clerk 3 83369.80 189.65

240 Daniels 10 Mgr 5 79260.25 -

250 Wheeler 51 Clerk 6 74460.00 513.30

260 Jones 10 Mgr 12 81234.00 -

270 Lea 66 Mgr 9 88555.50 -

280 Wilson 66 Sales 9 78674.50 811.50

290 Quill 84 Mgr 10 89818.00 -

300 Davis 84 Sales 5 65454.50 806.10

310 Graham 66 Sales 13 71000.00 200.30

320 Gonzales 66 Sales 4 76858.20 844.00

330 Burke 66 Clerk 1 49988.00 55.50

340 Edwards 84 Sales 7 67844.00 1285.00

350 Gafney 84 Clerk 5 43030.50 188.00

35 record(s) selected.

5.创建das管理服务器

为了远程客户端能够用控制中心来控制数据库服务器,需要在数据库服务器上安装das,当然,如果只是远程连接而不是远程管理,可以不用装,这里我安装了一下。

[root@seagull ~]# groupadd -g 997 db2asgrp

[root@seagull ~]# mkdir /db2home/db2as

[root@seagull ~]# useradd -u 1002 -g db2asgrp -d /db2home/db2as db2as

[root@seagull ~]# passwd db2as

[root@seagull ~]# su – db2as #为了db2as口令生效

[root@seagull ~]# cd /opt/ibm/db2/V9.1/instance

[root@seagull instance]# ./dascrt -u db2as

[db2as@seagull ~]$

[db2as@seagull ~]$ exit

[root@seagull instance]# su – db2as

[db2as@seagull ~]$ db2admin start

6.确认一下db2inst1实例的服务名

[db2inst1@seagull ~]$ db2 get dbm cfg|grep SVCENAME

TCP/IP Service name (SVCENAME) = 50000

#注解:svcename在客户端连接时需要用到

7.可以看一下license情况

[db2inst1@seagull ~]$ db2licm -l

Product name: “DB2 Enterprise Server Edition”

License type: “CPU”

Expiry date: “Permanent”

Product identifier: “db2ese”

Version information: “9.1″

Annotation: “-3;(_c)”

Features:

DB2 Database Partitioning: “Licensed”

DB2 Performance Optimization ESE: “Not licensed”

DB2 Storage Optimization: “Not licensed”

DB2 Advanced Access Control: “Not licensed”

DB2 Geodetic Data Management: “Not licensed”

Homogeneous Federation for DB2: “Not licensed”

DB2 Pure XML ESE: “Licensed”

二、安装db2 v9 client on windows,并设置远程连接

1.图形界面安装,一步一步下去就可以了,最好选择不安装信息中心。

2.设置远程连接C:/Documents and Settings/Administrator>db2cmd

C:/>db2 catalog tcpip node vmdb2v9 remote 10.10.10.100 server 50000

DB20000I CATALOG TCPIP NODE命令成功完成。

DB21056W 只有在刷新目录高速缓存以后,目录更改才会生效。

C:/>db2 catalog db sample as sample at node vmdb2v9

DB20000I CATALOG DATABASE命令成功完成。

DB21056W 只有在刷新目录高速缓存以后,目录更改才会生效。

3.此时打开控制中心,就可以操作远程的数据库了。

三、基本操作命令练习

[db2inst1@seagull ~]$ db2level #查看版本

DB21085I Instance “db2inst1″ uses “32″ bits and DB2 code release “SQL09010″

with level identifier “02010107″.

Informational tokens are “DB2 v9.1.0.0″, “s060629″, “LINUXIA32″, and Fix Pack

“0″.

Product is installed at “/opt/ibm/db2/V9.1″.

[db2inst1@seagull ~]$ db2 connect to sample #连接数据库

Database Connection Information

Database server = DB2/LINUX 9.1.0

SQL authorization ID = DB2INST1

Local database alias = SAMPLE

[db2inst1@seagull ~]$ db2 list tables for all #查看库中所有表

Table/View Schema Type Creation time

——————————- ————— —– ————————–

ACT DB2INST1 T 2007-11-28-16.48.12.138286

……..

[db2inst1@seagull ~]$ db2 list tables for schema db2inst1 #查看db2inst1的表

Table/View Schema Type Creation time

——————————- ————— —– ————————–

ACT DB2INST1 T 2007-11-28-16.48.12.138286

ADEFUSR DB2INST1 S 2007-11-28-16.48.16.196999

[db2inst1@seagull ~]$ db2 list tablespaces #查看表空间,如果加show detail可以看详细信息

Tablespaces for Current Database

Tablespace ID = 0

Name = SYSCATSPACE

Type = Database managed space

Contents = All permanent data. Regular table space.

State = 0×0000

Detailed explanation:

Normal

Tablespace ID = 1

Name = TEMPSPACE1

Type = System managed space

Contents = System Temporary data

State = 0×0000

Detailed explanation:

Normal

Tablespace ID = 2

Name = USERSPACE1

Type = Database managed space

Contents = All permanent data. Large table space.

State = 0×0000

Detailed explanation:

Normal

Tablespace ID = 3

Name = IBMDB2SAMPLEREL

Type = Database managed space

Contents = All permanent data. Large table space.

State = 0×0000

Detailed explanation:

Normal

[db2inst1@seagull ~]$ db2 list tablespace containers for 1 #查看表空间的容器

Tablespace Containers for Tablespace 1

Container ID = 0

Name = /db2home/db2inst1/db2inst1/NODE0000/SAMPLE/T0000001/C0000000.TMP

Type = Path

[db2inst1@seagull ~]$ db2 describe table staff #显示表结构

Column Type Type

name schema name Length Scale Nulls

—————————— ——— —————— ——– —– ——

ID SYSIBM SMALLINT 2 0 No

NAME SYSIBM VARCHAR 9 0 Yes

DEPT SYSIBM SMALLINT 2 0 Yes

JOB SYSIBM CHARACTER 5 0 Yes

YEARS SYSIBM SMALLINT 2 0 Yes

SALARY SYSIBM DECIMAL 7 2 Yes

COMM SYSIBM DECIMAL 7 2 Yes

#创建表,插入记录

[db2inst1@seagull ~]$ db2 “create table t1(id smallint,name varchar(10))”

DB20000I The SQL command completed successfully.

[db2inst1@seagull ~]$ db2 “insert into t1 values(1,’seagull’)”

DB20000I The SQL command completed successfully.

[db2inst1@seagull ~]$ db2 “insert into t1 values(2,’lgh’)”

DB20000I The SQL command completed successfully.

[db2inst1@seagull ~]$ db2 “insert into t1 values(2,’海鸥’)”

DB20000I The SQL command completed successfully.

[db2inst1@seagull ~]$ db2 commit

DB20000I The SQL command completed successfully.

[db2inst1@seagull ~]$ db2 “select * from t1″

ID NAME

—— ———-

1 seagull

2 lgh

2 海鸥

3 record(s) selected.

[db2inst1@seagull ~]$

[db2inst1@seagull ~]$ db2 get db cfg|grep code #查看数据库字符集

Database code page = 1208

Database code set = UTF-8

Database country/region code = 1

[db2inst1@seagull ~]$

#注解,在客户端,要设置db2codepage变量与数据库一致,这样才能正确的显示汉字,客户端设置方法db2set db2codepage=1208,在windows 上,db2codepage默认为1386(GBK),linux上默认为1208(UTF-8),aix上默认为819(ISO8859-1),要注意这个问题,我在客户端查询t1表时就发现是乱码,后来设置了客户端变量db2codepage才搞定。

另外一种可行的办法是,在服务器上创建生产库时,指定数据库字符集为GBK,这样windows客户端就不用改db2codepage变量了,这个方法我以前用过,当时在服务器上创建生产数据库的脚本为:

su – db2inst1

db2set db2codepage=1386 #为了能创建gbk字符集数据库

exit #退一次为了使得设置生效

su – db2inst1

db2 create db GZDC using codeset GBK territory CN

connect to gzdc

db2 grant dbadm on database to db2admin

db2 “create bufferpool BP_8K size -1 pagesize 8192 not extended storage”

db2 “alter bufferpool IBMDEFAULTBP immediate size 50000″

CREATE system temporary TABLESPACE TS_SYSTEMP_04 PAGESIZE 4096 MANAGED BY DATABASE USING (FILE ‘/db2data/db2data01/stmp4k1.dbf’ 1024M, FILE ‘/db2data/db2data02/stmp4k2.dbf’ 1024M) EXTENTSIZE 32 PREFETCHSIZE 64

CREATE system temporary TABLESPACE TS_SYSTEMP_08 PAGESIZE 8192 MANAGED BY DATABASE USING (FILE ‘/db2data/db2data01/stmp8k1.dbf’ 5G, FILE ‘/db2data/db2data02/stmp8k2.dbf’ 5G) EXTENTSIZE 192 PREFETCHSIZE 384 BUFFERPOOL BP_8K

CREATE LARGE TABLESPACE HOSPITALSPACE PAGESIZE 8192 MANAGED BY DATABASE USING

(FILE ‘/db2data/db2data01/HOSPITAL_01.dbf’ 50G,

FILE ‘/db2data/db2data02/HOSPITAL_02.dbf’ 50G,

FILE ‘/db2data/db2data01/HOSPITAL_03.dbf’ 50G,

FILE ‘/db2data/db2data02/HOSPITAL_04.dbf’ 50G,

FILE ‘/db2data/db2data01/HOSPITAL_05.dbf’ 50G,

FILE ‘/db2data/db2data02/HOSPITAL_06.dbf’ 50G,

FILE ‘/db2data/db2data01/HOSPITAL_07.dbf’ 50G,

FILE ‘/db2data/db2data02/HOSPITAL_08.dbf’ 50G,

FILE ‘/db2data/db2data01/HOSPITAL_09.dbf’ 50G,

FILE ‘/db2data/db2data02/HOSPITAL_10.dbf’ 50G)

EXTENTSIZE 192 PREFETCHSIZE 384 BUFFERPOOL BP_8K;

CREATE LARGE TABLESPACE MANAGERSPACE PAGESIZE 8192 MANAGED BY DATABASE USING (FILE ‘/db2data/db2data01/MANAGER_01.dbf’ 25G) EXTENTSIZE 192 PREFETCHSIZE 384 BUFFERPOOL BP_8K

alter tablespace managerspace add (file ‘/db2data/db2data02/MANAGER_02.dbf’ 25G)

个人注解:

DB2感觉很容易装啊,比oracle要简单多了,而且管理好像也简单,只不过db2不支持rac模式,db2自己的dpf模式,和rac有本质差别,在其中一个数据库节点所在的主机出现问题时,其管理的数据库分区必须切换到正常节点才能保证整个数据库的完整使用,而且正常情况下,数据库分区之间可能会有比较大的网络通信负载

看来oracle的rac机制还是比较难实现的。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/339670.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

双色球霸主网络问题_霸主–统治和管理API的地方

双色球霸主网络问题今天我们生活在一个越来越分散的世界中。 如今的计算机系统不再是在随机桌子下面的某些硬件上运行单个部门项目,而是大规模,集中甚至分散地运行。 监视和管理的需求从未改变,但是随着时间的推移变得越来越复杂。 如果将所有…

php验证码 php中文网,ThinkPHP 使用不同风格及中文的验证码

使用其他风格验证码在上文《ThinkPHP 验证码详解及实例》中了解了 ThinkPHP 验证码的具体用法,本文将进一步介绍如何使用不同风格的验证码以及使用中文验证码。上文例子使用的是默认参数,也就是生成 4 位的数字验证码。buildImageVerify 方法生成验证码时…

Spring Boot端口从默认更改为自定义或新端口

更改Spring Boot应用程序端口的快速指南。 application.properties文件和yml文件中的server.port属性的示例。 以及从命令行参数 SpringBootApplication,WebServerFactoryCustomizer 1.简介 在本教程中,您将学习如何在Spring Boot应用程序中更改端口。 …

java 开发人员工具_Java开发人员应该知道的5种错误跟踪工具

java 开发人员工具随着Java生态系统的发展,可满足不断增长的请求和用户对高性能需求的Web应用程序成为了新型的现代开发工具。 具有快速新部署的快速节奏环境需要跟踪错误,并以传统方法无法维持的水平获得对应用程序行为的洞察力。 在本文中,…

oracle定时关闭job,Oracle 定时JOB

讲一下Oracle创建临时job小窍门,创建Oracle临时JOB是为了临时执行调用过程或者函数,只调用一次。1、创建Oracle临时jobdeclareVJOB number;beginsys.dbms_job.submit(VJOB,‘PKG_RULECALL.MAKE_ALL_SAMPLE_BY_MONTH_WTH(‘‘201701‘‘,NULL);‘,Sysdat…

Apache Camel 3.2 – Camel的无反射配置

在Apache Camel项目中,我们正在努力开发下一个即将发布的下一个Apache Camel 3.2.0版本。 我们在Camel 3中努力研究的问题之一就是使其变得更小,更快。 其中一个方面是配置管理。 您可以按照12要素原则以多种方式完全配置Camel,以使配置与应…

oracle dbwr trace文件,ORA-01157: cannot identify/lock data file 19 - see DBWR trace file问题处理...

ORA-01157: cannot identify/lock data file 19 - see DBWR trace file问题处理告警信息:ORA-01157: cannot identify/lock data file 19 - see DBWR trace fileORA-01110: data file 19: /app/Oracle/oradata/users02.dbfORA-27037: unable to obtain file statusS…

java jsoup解析_3使用Jsoup解析Java中HTML文件的示例

java jsoup解析HTML是Web的核心,无论您是通过JavaScript,JSP,PHP,ASP或任何其他Web技术动态生成的,您在Internet上看到的所有页面都是基于HTML的。 您的浏览器实际上是解析HTML并为您呈现它。 但是,如果需要…

linux 命令解码空格,Shell 编程:Bash空格的那点事

先了解下bash中什么时候该用空格,什么时候不该用。1. 等号赋值两边不能有空格2. 命令与选项之间需要空格3. 管道两边空格可有可无我们来看看常见的问题1. 赋值时等号两边或者只有左边多了空格igigentoo ~ $ var1 testbash: var1: command not foundigigentoo ~ $ e…

使用类似Lambda的语法切换为Java中的表达式

从Java 14开始, switch表达式具有额外的Lambda式 ( case ... -> labels )语法,它不仅可以用作语句,还可以用作计算为单个值的表达式。 使用新的类似Lambda的语法,如果标签匹配,则仅执行箭头…

配置linux系统ip,Linux系统IP地址配置

命令临时配置ifconfig [Network card name] 10.50.6.16 netmask 255.255.254.0或者ip addr add 10.50.6.200/23 dev [Network card name]router add default gw 10.50.6.1 #添加默认路由重启后失效ip addr add命令添加的IP地址需要使用 ip a show [Network card name]命令查看例…

【AI提示词艺术】第12期 摄影艺术构图处理和人像生成的技巧

摄影艺术构图 星空宇宙 关键词: 强烈的明暗对比,8k,精细的描述,相片纸,超高分辨率,无建筑的,大自然,星空,云朵,刺眼流星,群星,银河,仰视视角,广角镜头 以下是按照提示词类别整理的相关描述&a…

超音速亚原子Enterprise Java

我创建了一个视频,其中用Quarkus(用于现代Java应用程序的运行时)解释“超音速亚原子Java”。 无论您是刚开始涉足Enterprise Java领域,还是已经是一位经验丰富的Java EE / J2EE开发人员,本课程都将指导您如何在2020年构…

linux 打包排除多个目录,tar打包整个目录(可排除子目录)几种方法

例1。压缩并打包目录tar -czf small.tar.gz small(目录名) ;例2。tar zcvf backup.tar.gz site/* –excludesite/attach –excludesite/images简单解释一下:ls -l | grep “^-” 用来把当前目录下所有文件列出来,不包括子目录;awk ‘{print …

Kogito,ergo规则:从知识到服务,轻松自如

欢迎阅读有关Kogito倡议的博客系列的另一集,以及我们将Drools带入云的努力。 这些文章的目的是收集用户对我们提供给Kogito的功能的早期反馈。 在本文中,我们介绍了两种实现完整智能服务的新方法 : 独立的规则服务 集成智能工作流程和规则…

linux系统io查看计算,Linux下查看进程IO工具iopp

Linux下的IO检测工具最常用的是iostat,不过iostat只能查看到总的IO情况。如果要细看具体那一个程序点用的IO较高,可以使用iotop 。不过iotop对内核版本和Python版本有要求,虽然目前主流的CentOS和Ubuntu版本上都适用。不过考虑到其无法适用的…

java 并发锁_Java并发教程–锁定:内在锁

java 并发锁在之前的文章中,我们回顾了在不同线程之间共享数据的一些主要风险(例如原子性和可见性 )以及如何设计类以安全地共享( 线程安全的设计 )。 但是,在许多情况下,我们将需要共享可变数据…

linux 命令 ppt,Linux基本命令()讲解.ppt

第2章 Linux 基本命令 2.1 系统管理命令 在 Linux/UNIX 操作系统中,所有事物都被当作文件来处理:硬件设备(包括键盘和终端)、目录、命令本身,当然还有文件。 实际上是 Linux/UNIX 的能力和灵活性的基础。Linux操作系统命令分为文件管理、文件…

Java14:使用Java 14的新记录联接数据库表

您是否知道可以使用Java 14的预览记录功能将数据库表连接到Java Stream中? 阅读这篇简短的文章,并了解如何使用Speedment Stream ORM完成它。 我们将从如何设置您的项目开始。 设定 下载Java 14 。 转到Speedment Initializer并下载您的项目骨架&#x…

linux 读取内存颗粒,Linux虚拟内存地址转化成物理内存地址

背景现代手机这种SOC(system on chip),因为功耗、Modem等功能soc上集成了很多core,他们还可以是独立的系统在运转。比如ADSP简介ADSP(Application Digital Signal Processing)就是高通的Hexagon DSP ,就是独立运转的一个coresystem。这样做不仅可以使用soc上的专用核…