目录 1. 简介 2. 浏览数据库 3. 数据库配置 4. 数据库控制 5. 表与数据 6. 安全 7. 数据库管理 8. 监控与诊断 9. 一般维护 10. 性能与并发 11. 备份恢复 12. 复制与升级

Size: px
Start display at page:

Download "目录 1. 简介 2. 浏览数据库 3. 数据库配置 4. 数据库控制 5. 表与数据 6. 安全 7. 数据库管理 8. 监控与诊断 9. 一般维护 10. 性能与并发 11. 备份恢复 12. 复制与升级"

Transcription

1 Postgresql Admin Cookbook DBA/ 李思亮

2 目录 1. 简介 2. 浏览数据库 3. 数据库配置 4. 数据库控制 5. 表与数据 6. 安全 7. 数据库管理 8. 监控与诊断 9. 一般维护 10. 性能与并发 11. 备份恢复 12. 复制与升级

3 简介 1. 主要功能 : 支持最新的 sql 标准 SQL2008 C/S 结构 高并发设计, 无阻塞读写 高可扩展性 高可配置性 性能优化可操作空间大 大部分的 ddl 也支持事务性, 可以回滚 2. 与 Oracle 比较 : oracle 高并发 / 事务支持通过 "Snapshort isolation" 快照读来实现的 postgresql 是通过 MVCC (Multy Version Concurrency Control 多版本并发控制 ) 实现

4 简介 3. 主要 GUI 管理工具 : pgadmin3 phppgadmin

5 简介 4. 命令行工具 : psql psql h hostname p 5432 d dbname U username -W passwd

6 浏览数据库 1. 数据库主要控制信息 : pg_controldata 命令行工具 pg_control version number: 903 Catalog version number: Database system identifier: Database cluster state: in production pg_control last modified: 2010 年 12 月 27 日星期一 15 时 51 分 12 秒 Latest checkpoint location: 0/2CC6C3C0 Prior checkpoint location: 0/2CC6A468 Latest checkpoint's REDO location: 0/2CC6C3C0 Latest checkpoint's TimeLineID: 1 Latest checkpoint's NextXID: 0/899 Latest checkpoint's NextOID: Latest checkpoint's NextMultiXactId: 1 Latest checkpoint's NextMultiOffset: 0 Latest checkpoint's oldestxid: 655 Latest checkpoint's oldestxid's DB: 1 Latest checkpoint's oldestactivexid: 0 Time of latest checkpoint: 2010 年 12 月 27 日星期一 15 时 51 分 12 秒 Minimum recovery ending location: 0/0 Backup start location: 0/0 Current wal_level setting: minimal Current max_connections setting: 100 Current max_prepared_xacts setting: 0 Current max_locks_per_xact setting: 64 Maximum data alignment: 8 Database block size: 8192 Blocks per segment of large relation: WAL block size: 8192 Bytes per WAL segment: Maximum length of identifiers: 64 Maximum columns in an index: 32 Maximum size of a TOAST chunk: 1996 Date/time type storage: 64-bit integers Float4 argument passing: by value Float8 argument passing: by value

7 浏览数据库 2.List Database on this server : psql -l psql 内置命令 \l sql 语句 select * from pg_database;

8 浏览数据库 3. 游戏规则 : 默认安装 3 个库 postgres template0 template1 默认情况下建立的数据库都是以 template1 为模板的 postgres,template0 数据库属性不允许修改, 或者说后果自负, 他们是在初始化数据库时设定的, 如果要修改, 需要删除原来的库, 重新初始化 4. 磁盘空间问题 : 查看单个库用了多少磁盘空间 lsl=# select pg_database_size(current_database()); pg_database_size (1 row) 查看整个集群所使用的磁盘空间 lsl=# select sum(pg_database_size(datname)) from pg_database; sum (1 row)

9 空间问题续 查看单个表的空间使用 lsl=# select pg_relation_size('word'); pg_relation_size (1 row) 查看表以及附属对象占用的空间 lsl=# select pg_total_relation_size('word') ; pg_total_relation_size (1 row)

10 浏览数据库 5. 查看表的行数 select count(*) from tab_name; 不带任何条件的 count(*) 走 sequece scan, 跟表的数据量正相关 扫描素所有的数据块, 大表可能要花费很长时间 估算表的行数 SELECT (CASE WHEN reltuples > 0 THEN pg_relation_size('mytable')/(8192*relpages/reltuples) ELSE 0 END)::bigint AS estimated_row_count FROM pg_class WHERE oid = 'mytable'::regclass; 原理 : 因为 MVCC 的原因, 会导致有些数据块里没有有效数据行, 每个数据块是 8k,relpages/reltuples 数据尺寸与实际数据行的比值, 这样就可以用表的尺寸 / 数据行的尺寸来估算表里有多少行数据, 这个不会扫描全表, 执行时间与表的大小无关

11 数据库配置 1. 数据库参数值 select * from pg_settings; name allow_system_table_mods setting off unit category Developer Options short_desc Allows modifications of the structure of system tables. extra_desc context postmaster vartype bool source default min_val max_val enumvals boot_val off 全库有 208 个参数 reset_val off sourcefile sourceline

12 2. 参数的设置方法 : set 命令动态调整参数 set work_mem = '16M'; set local work_mem = '16M'; 数据库配置 修改 postgresql.conf 参数文件, 然后 reload pg_clt reload -D $PGDATA $PGDATA 是数据库的数据目录, 初始化数据库时设定 修改 postgresql.conf 参数文件, 重启数据库 pg_ctl restart -D $PGDATA $PGDATA 是数据库的数据目录, 初始化数据库时设定 show 显示参数的当前值 select * from pg_settings where name='mypara'

13 数据库配置 3. 为部分用户指定相应的参数值 : ALTER DATABASE saas SET configuration_parameter = value1; ALTER ROLE saas SET configuration_parameter = value2; ALTER ROLE simon IN DATABASE saas SET configuration_parameter = value3; 4.OS 的内核参数调整 可以参照 oracle 安装时的参数设置

14 数据库配置 5. 一些主要的参数 shared_buffer 越大越好, 受限于系统内核参数 SHMMX (/etc/sysctl.conf) effictive_cache_size 这个参数并没有想象中的那么重要, 系统留给磁盘 cache 内存大小, 其实与 pg 的性能无关 wal_buffer 写多的应用应该增大尺寸, 与 redo 日志相关 checkpoint_segment 写多的应用或者要大批量导入数据这个参数需要增大 work_mem 工作内存, 可以动态调整, 大的查询应该增大, 默认 1M atuovacuum 确保打开这个选项, 默认是打开的, 垃圾回收机制参考 一般需要调整与 fsync 相关的参数, 确保安全 动态加载第三方的插件 load in session shared_preload_libriaries 配置到 postgresql.conf load_preload_libriaries 用 alter role 加载

15 系统控制 1. 数据库启动关闭 : start: pg_ctl -D $PGDATA start stop: pg_ctl -D $PGDATA stop restart: pg_ctl -D $PGDATA restart reload: pg_ctl -D $PGDATA reload 也可以通过 pg_stat_activity 查到相应的 pid, 然后用 kill -SigHup $pid 来重载参数文件 刷新 shared_buffer : psql -c "checkpoint" 备份 CACHE 与恢复 : psql -c "select pg_cache_save('mytab'); 把 cache 备份到表 mytab 中 psql -c " select pg_cache_warm('mytab') ; 把 cache 从表 mytab 中回写到内存 refer:

16 系统控制 2. 限制普通链接 : alter database mydb connection limit 0 ; 禁止登录到指定数据库 alter user username connection limit 0 ; 禁止某个用户登录 修改 $PGDATA/Hba.conf 文件 3. 踢用户 : select pg_terminate_backend(procid) from pg_stat_activity where...; 4. 数据库端连接池 : pgbouncer 单进程, 可以支持数以千记的客户端链接, 而对服务器只有几个链接就可以支撑 不支持 ssl 加密 详细配置信息参考 cook book

17 表与数据 Choosing good names for database objects Handling objects with quoted names Enforcing same name, same definition for columns Identifying and removing duplicate rows Preventing duplicate rows Finding a unique key for a set of data Generating test data Randomly sampling data Loading data from a spreadsheet Loading data from flat files 从 csv 或者 excel 装入数据库 postgres=# \COPY sample FROM sample.csv CSV HEADER postgres=# SELECT * FROM sample; key value c 2 d 本章节没有什么实质性内容, 最后的大数据量装载可以看看

18 安全 1. 本章主要是数据库授权相关的语句, 感觉授权的方式相当的灵活 将一个 schema 下的对象授权 grant select on all tables in schema myschema to user/role; create user 等同于 create role login create group 等同于 create role nologin 即 group 是没有登录权限的, 限定用户的最大并发连接数 alter user username connection limit N / -1 (-1 无限制,0 禁止登录 ); 2. 删除用户而不删除用户下的对象 : alter user abc nologin ; ( 将用户变成 group, 实现曲线救国 ) grant abc to def ; 则 def 用户也不能登录? 改变对象的属主关系 : reassign owned by abc to def ; 有限的管理权限 alter role abc with createdb /create user; 3. 审计 ddl 语句 : log_statement= DDL' postgresql.conf 参数文件设定 然后 reload

19 安全 3. 支持 ldap(lightweight directory access protocol 轻量级目录访问协议 ) 支持 ssl 加密传输 支持数据加密需要安装模块 pgcrypto

20 1. 管理任务要用事务来处理 BEGIN; COMMAND1 ; COMMAND 2; commit/ rollback; 使用命令行参数 psql -l -f scripts.sql psql --single-transaction -f script.sql POSTGRESQL 不支持嵌套的事务 数据库管理 2. 不支持事务的命令 : create database / drop database create /drop tablespace ; create index concurrently 无阻塞模式建立索引 vacuum

21 3. 设定在脚本的第一个错误的地方退出 psql -f my.sql -v on_err_stop=on 或者在脚本里添加控制代码 vi my.sql \set on_error_stop ; command ; 数据库管理 在 psqlrc 文件中添加变量, 登录后就自动设定变量 vi.psqlrc \set on_error_stop

22 数据库管理 3. 更改字段类型 : alter table mytab alter column mycol set data type text; 设为文本型 alter table mytab alter column mycol set data type integer using mycol::integer ; 将原本字符型的数字数据转换为整形 alter table mytab alter column mycol set data type date using date ( to_date(mycol::text, 'yyyymmdd') ( case when mycol/1000<15 then interval '0' else interval '100 years' end) ; 支持复杂的数据转换 alter table mytab drop default 'expression' ; 去掉默认值 drop not null ; 去除约束 ;

23 数据库管理 4. 增加删除字段 : alter table mytab add mycol col_name data type timestamp ; alter table mytab drop column mycol ; ALTER TABLE mytable DROP COLUMN IF EXISTS last_update_timestamp, ADD COLUMN last_update_timestamp TIMESTAMP WITHOUT TIME ZONE; drop column 并不会马上从行数据里删除列的值, 而是做一个标记标识这个列已经被删除, 这样,drop column 就会非常快,oracle 也是这样类似的操作方法 add column 如果没有 default 值也会非常快, 如果有 default 值, 或者 not null 的约束, 就要写数据到每行, 就会慢很多,oracle 也是类似的操作手法

24 数据库管理 5.schema 管理 : 如果 schema = username 则这个 schema 下只能放本用户的数据, 这跟 oracle 差不多 CREATE SCHEMA sharedschema AUTHORIZATION scarlett; 如果 schema <> username 则可以存放其他用户的对象 CREATE SCHEMA AUTHORIZATION scarlett; schema 跟用户同名 改变属主关系 : alter schema myschema owner to new_owner ; 删除 schema drop schema if exists myschema; drop schema myschema cascade; schema 下面的没有对象, 才可以删除, 否则只能 cascade 级联删除 权限管理 : grant select on all tables in schema myschema to public ; alter default privileges in schema myschema grant select on tables to public ; 在 schema 间移动对象 : alter table mytab set schema otherschema; alter schema oldschema rename to new_schema; ( 新的名字不存在才能执行否则报错 ) 只是逻辑关系得转变的, 数据文件不会移动, 有些对象没有 schema 的概念, 不能移动, 只能重建, 例如函数, 自定义数据类型

25 数据库管理 6. 表空间管理 : 建立表空间 : 创建一个空目录 设定目录的访问权限为 postgres 的权限, 以及属主关系 要用绝对路径 unix 系统能直接使用 mount 点 (mount point) 数据库执行建表空间命令 : create tablespace new_tablespace location '/xxxx/path'; 只能删除空的表空间 drop table tablespacename; 设定表空间的属主关系 : alter tablespace tablespace_name set owner to username ; alter user username set default tablespace = 'tablespace_name';

26 数据库管理 7.tablespace 间移动对象 : alter table mytab set tablespace new_tablespace ; alter index myindex set tablespace new_tablespace ; 基于事务的操作 : BEGIN; alter table mytab set tablespace new_tablespace ; alter index myindex set tablespace new_tablespace ; Commit; 表空间间的对象移动, 会导致数据文件的物理移动, 操作为批量的数据块拷贝会产生全表排他锁, 此类操作应谨慎实施 alter database db_name set default_tablespace new_tablespace ; alter database db_name set tablespace new_tablespacename ; 全库对象转笔表空间,

27 数据库管理 8.DBLINK postgres 支持 dblink: 需要安装一个模块,contrib model psql -f $PGHOME/share/postgresql/contrib/dblink.sql 不想 oracle 那样是严格意义上的 dblink, 仅是一组函数实现 c 语言 libpq 实现 建立 dblink: CREATE FOREIGN DATA WRAPPER postgresql VALIDATOR postgresql_fdw_validator;( 建立远端数据的包装 ) CREATE SERVER otherdb FOREIGN DATA WRAPPER postgresql OPTIONS (host 'foo', dbname 'otherdb', port '5432'); CREATE USER MAPPING FOR PUBLIC 用 libpq 的 pguser 变量的值来连接远端数据库用户, 如果没有设定则用 os 用户权限来管理

28 数据库管理 验证建立连接 SELECT dblink_connect('otherdb'); dblink_connect OK (1 row) 断开连接 : SELECT dblink_disconnect(); dblink_connect OK (1 row) 功能有一定限制, 无法实现与 oracle 类似的本地表与远端表的关联操作 dblink 是长连接, 能够穿越事务, 事务失败后,dblink 不会断开 再安排更详细的资料说明用法

29 监控与诊断 1. 性能监控 : SNMP 协议 : pgsnmp CACTI/nagios 监控插件 监控用户 : 用户是否登录数据库 select * from pg_stat_activity where username= 'xxx'; 正在执行的 sql :set track_activity= on (supper user 执行 ) select * from pg_stat_activity where current_query!= '<IDLE>'; 系统视图 pg_stat_activity 有系统函数 pg_stat_get_activity($pid) 生成 模块 pg_stat_statement 可以顺势捕捉执行状态 3. 慢查询 : select current_timestamp - query_start as runtime, datname, usename, current_query from pg_stat_activity where current_query!= '<IDLE>' order by 1 desc;

30 监控与诊断 4. 查看语句是 active 还是 blocked : SELECT datname,usename,current_query FROM pg_stat_activity WHERE waiting = true; 只记录由于内部的锁导致的阻塞 set update_process_title=on : 设定此参数, 可以在 os 的 top ps 等命令里看到执行的 sql 有一定的风险 查看由哪些语句导致的阻塞 : (admin cook book P199, 语句太长 ) 5. 杀用户 session select pg_terminate_backend($pid) 杀死当前 session select pg_cancel_backend($pid) 终止当前查询 kill -9 从 os 删除用户 session 如果系统参数 synchronous_commit= off 这样操作时不安全的, 可能会导致已经提交的事务丢失 设定语句的最长运行时间 set statement_timeout='15s' 设定为 15 秒

31 监控与诊断 6. 监控表与索引 set log_temp_file =0 (kb) 任何建立临时表的语句都被记录到日志文件 查看表是否存在膨胀 select pg_relation_size(relid) as tablesize,schemaname, relname,n_live_tup from pg_stat_user_tables where relname = <tablename>; vacuum 无法标记索引的记录, 索引索引的膨胀是无法被检测的 7. 日志处理 : set log_rotation_age ='1d' 每天生成一个日志文件, 文件带有时间戳 处理日志的工具 pgfouine.php PQA

32 日常维护 1. 自动化数据库管理 配置 autovacuum postgresql.conf 参数文件 autovacuum = on track_ocunts= on VACUUM 有大约 35 个参数来管理, 具体参照 pg 的文档 2. 设定表的存储参数 alter table mytab set ( storage_param = value) ; autovacuum_enable autovacuum_vacuum_cost_delay autovacuum_vacuum_cost_limit... TOAST 表的存储参数 toast.autovacuum_enable toast.autovacuum_vacuum_cost_delay toast.autovacuum_cost_limit toast 表 : 列的数据超过一定长度后剩余的部分会写到另外的表中存储, 这种表就叫 toast 表

33 日常维护 3.VACUUM: vacuum 标记过期的事务记录, 非阻塞方式, 可以执行 insert,update,delete 操作但是不能执行 alter table,create index 这类操作 不会阻塞用户进程,vacuum 一旦检测到自己持有的锁与用户进程的操作发生冲突, 他会自动的释放自己的锁, 为用户放行, 不会阻塞用户进程, 保证系统效率 vacuum 不会释放磁盘空间, 除非使用 vacuum full 选项, 但是会锁表, 大表的操作需要谨慎 9.0 新特性,vacuum full 的速度大大增强, 运行速度更快 4. 数据库坏块 : pg 的坏块主要是有由于 bug 或者磁盘故障引起的 目前没有很好的方法来修复坏块 可以用工具从坏块里抽取数据 (contrib /pageinspact)

34 日常维护 5.prepared transaction( 异步提交事务 ) select * from pg_prepared_xacts; 可以在一个事务中去管理另外的一个事务,prepared transaction 可以穿越故障, 而不会回滚, 事务的信息会记录到磁盘上, 可以在另外的事务里提交这个事务或者回滚 事务 id xmin 每个 pg 表都有一个隐含字段 xmin 记录了这行记录最后的事务 id ; 可以用来去定这行数据的最后修改 6. 关注临时表 / 系统字典表 用 vacuum 处理系统表 监视临时文件的使用情况, 大小多少 调整内存参数 temp_buffer 模块 contrib/pgstattuple 可以查看表是否需要执行 vacuum select * from pgstattuple('mytab'); ngios 插件 check_postgres 集成该功能 如对临时表的操作大过正常表有必要建立单独的临时表空间 temp_tablespace 变量生成临时对象会写 pg_class 和 pg_attribute 这些系统表的 index 就会膨胀, 不能对系统表的属性做修改, 不能执行 alter table 操作设定表级别的 vacuum 参数, 只能手工执行 vacuum 或者设定系统级的 autovacuum=on, 确保对所有的系统表都做到 select relname,pg_relation_size(oid) from pg_calss where relnamespace='xxxxxx' order by 2 desc ;

35 日常维护 7.vacuum 无法检测到索引膨胀 reindex 命令重建索引, 会导致阻塞, 锁表 create index concurrently 不会锁表 重建索引的步骤 : create index concurrently new_index on table (my_col) ; begin; drop index my_old_index; alter index new_index rename to my_old_index ; commit; 找出没有使用过的索引 select schemaname,relname,indexrelname,index_scan from pg_stat_user_indexes order by index_scan ; 注意 :insert 操作不会修改 index_scan update,delete 会修改

36 日常维护 8. 索引的删除 : 删除索引可以通过修改数据字典来实现而需要采用物理删除 update pg_index set indisvalid =false where indexrelid= 'my_index'::regclass; 如果认为需要恢复索引, 则直接修改字典表, 而不需要重建, 节省时间 update pg_index set indisvalid =true where indexrelid= 'my_index'::regclass; create index concurrently 就是通过这个模式来实现不锁表的 set indisvalid =false 只是标记 sql 语句不能使用这个索引来查询数据, 但索引数据还是可以自动维护, 不会导致索引与表数据不一致

37 性能与并发处理 1. 找出慢查询 : 设置变量 log_min_duration_statement=1000 (10 秒 ) select * frompg_stat_activity wherecurrent_timestamp-query_time > 10 秒 注意查看 pg_stat_* 这些性能表 pg_stat_user_tables: seq_tup_read/seq_scan 每次扫描读取的记录数 pg_statio_user_tables: heap_blks_hit: 多少数据在 shared_buffer 中 idx_blks_read: 多少数据需要从磁盘读到内存中, 类似于 oracle 的 disk read 2. 收集一般的性能数据 pg_statlogs.tar.gz 3.explain / explain analyze mydb=# explain analyse select count(*) from t; QUERY PLAN Aggregate (cost= rows=1 width=0) (actual time= rows=1 loops=1) -> Seq Scan on t (cost= rows=901 width=0) (actual time= rows=901 loops=1) Total runtime: ms

38 性能与并发处理 4.sql 优化思路 : 限制 sql 返回的行数 复杂 sql 简单化, 物化视图, 视图, 临时表 设定系统参数 show default_statistics_target; alter database mydb set default_statistics_target=200; alter table mytab alter col_with_bad_stats set statistics 500; 这些参数会影响 analyze 的结果 为没有用 ALTER TABLE SET STATISTICS 设置字段相关目标的表中其它字段设置缺省统计目标 更大的数值增加了 ANALYZE 所需要的时间, 但是可能会改善规划器的估计质量 缺省值是 10 添加复合索引 create index myidx on mytab (col1,col2) ; 添加条件索引 : create index myindex on mytab ( my_col) where my_col >0 ; 这是 pg 的一个特色的地方 使用分区表 : pg 不直接支持分区表, 同表的继承关系, 设定特定的规则曲线实现 提供完整的解决方案

39 性能与并发处理 5. 修改表的填充系数 (fill factor): 如果某些表频繁 update, 可以考虑调低 fillfactor 的值默认为 100, 即表示默认 insert 操作的时候, 把数据块全部填满再写下一个块, 对于频繁更新的表可以考虑修改 alter table mytab set ( fillfactor = 70) ; pg 为每个 block 会预留 30% 的空闲空间, 便于以后的 update 造成的空间增长 这个功能跟 oracle 表的 pctfree pctused 参数功能差不多 6. 一些 HINT : set enable_seqscan to off ; 告诉 pg seqscan 性能很差, 这样会强制走索引 random_page_cost 设定一个更低的值, 让 pg 认为走离散 io 效果更好, 从而选择走索引 seq_page_cost 设定一个一个更大的值, 让 pg 认为走 seq io 的开销增大, 从而选择索引这两个参数互斥的 7. 报告性能问题 : 社区的反应速度很快

40 备份与恢复 1. 相关参数 checkpoint_segments=1000 WAL log 的最大数量, 系统默认值是 3 该值越大, 在执行介质恢复时处理的数据量也越大, 时间相对越长 checkpoint_timeout=3600 系统自动执行 checkpoint 之间的最大时间间隔, 同样间隔越大介质恢复的时间越长 系统默认值是 5 分钟 WAL ( write ahead log) 功能跟 oracle 的 redolog 一样的, 实现方式, 跟 mysql 的 binlog 差不多, 事务提交前一定是先写 wal, WAL 默认尺寸是 16M 2. 各种备份 / 恢复方式 逻辑备份 pg_dump 很多参数实现不同的备份功能 物理备份 + 持续归档 ( WAL 起决定性作用 ) 可以实现基于时间点的回复 无法对单个对象进行恢复, 只能将全库恢复到异地, 然后把对象导出导入 关于备份系统,cookbook 列出了各种备份恢复的情形与相关的执行方案, 大家直接看书吧

41 复制与升级 PG9.0 版本对复制功能做了很大的增强,standby 库可以在线只读打开提供查询, PG 的复制功能是 pg 的高可用性, 可扩展性的很重要的组成部分 cookbook 提供了各种情形先系统复制的完整解决方案大家直接看书吧

42 日常维护 使用过 oracle 的人都知道, 在 oracle 数据库中支持在 sql 语句上加 hints 来固定 sql 的执行计划, 但在 PostgreSQL 数据库不支持这种在 sql 语句上直接加 hints 的方法 那么在 PostgreSQL 数据库中是否有固定执行计划的方法? 答案显然是肯定的 首先在 PostgreSQL 数据库中可以设置有很多参数来改变执行计划, 这些参数都支持在事务级 session 级别和全局设置 一般我们通过在事务级别或 session 级别设置, 就基本上等于了在 sql 上加 Hints, 这些参数为 : 参数名称 参数的使用 enable_seqscan 是否走全表扫描 enable_hashjoin 是否允许走 hash 连接 enable_nestloop 是否允许走 nestloop 连接 enable_mergejoin 是否允许走合并连接 enable_tidscan 是否允许走 tid 扫描 ( 类似 oracle 中的按 rowid 访 问 ) enable_bitmapscan 是否允许走 bitmap 扫描 enable_hashagg 是否允许走 hash 聚集 ( 也就是做 group by 时 ) enable_indexscan 是否允许走索引 enable_sort 是否允许走排序

43

Oracle 4

Oracle 4 Oracle 4 01 04 Oracle 07 Oracle Oracle Instance Oracle Instance Oracle Instance Oracle Database Oracle Database Instance Parameter File Pfile Instance Instance Instance Instance Oracle Instance System

More information

运维2010年端午节日封网及值守

运维2010年端午节日封网及值守 PostgreSQL 和 Oracle 的管理艺术 Francs.tan 1 章节目录 2 一 体系结构二 维护经验三 备份四 监控 第一章 3 一 体系结构二 维护经验三 备份四 监控 1.1 Oracle 体系结构 4 1.2 PostgreSQL 体系结构 5 Client Interface Master Session Processes postgres postgres... postgres

More information

ebook 96-16

ebook 96-16 16 13 / ( ) 16-1 SQL*Net/Net8 SQL*Net/Net8 SQL*Net/Net8 16-1 / S Q L SQL*Net V2 N e t 8 S Q L * N e t N e t ( ) 16.1 S Q L O r a c l e S Q L 16 401 ) ( H R _ L I N K create database link p u b l i c (

More information

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘 ITE 資 訊 專 業 人 員 鑑 定 資 料 庫 系 統 開 發 與 設 計 實 務 試 卷 編 號 :IDS101 注 意 事 項 一 本 測 驗 為 單 面 印 刷 試 題, 共 計 十 三 頁 第 二 至 十 三 頁 為 四 十 道 學 科 試 題, 測 驗 時 間 90 分 鐘 : 每 題 2.5 分, 總 測 驗 時 間 為 90 分 鐘 二 執 行 CSF 測 驗 系 統 -Client

More information

PowerPoint Presentation

PowerPoint Presentation 数 据 库 培 训 项 目 研 究 Oracle 索 引 探 究 B*tree 索 引 与 位 图 索 引 的 特 点 作 者 : 赵 超 2008 年 12 月 18 日 实 验 环 境 Windows-server2003 内 存 :2G Oracle 10.2.0 ORACLE_SID=orcl 索 引 类 型 B*tree 索 引 ( 默 认 方 式 ) 位 图 索 引 (bitmap) 反

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

sql> startup mount 改变数据库的归档模式 sql> alter database archivelog # 打开数据库 sql> alter database open 禁止归档模式 sql> shutdown immediate sql>startup mount sql> al

sql> startup mount 改变数据库的归档模式 sql> alter database archivelog # 打开数据库 sql> alter database open 禁止归档模式 sql> shutdown immediate sql>startup mount sql> al RMAN sql> sqlplus / as sysdba 查看数据库版本 sql> select * from v$version; 查看数据库名称 sql> show parameter db_name; 一 使用 RMAN 时, 需要将数据库设置成归档模式 sql> conn / as sysdba; sql> show user 查看数据库是否为归档模式 sql> archive log list

More information

目錄

目錄 資 訊 素 養 線 上 教 材 單 元 五 資 料 庫 概 論 及 Access 5.1 資 料 庫 概 論 5.1.1 為 什 麼 需 要 資 料 庫? 日 常 生 活 裡 我 們 常 常 需 要 記 錄 一 些 事 物, 以 便 有 朝 一 日 所 記 錄 的 事 物 能 夠 派 得 上 用 場 我 們 能 藉 由 記 錄 每 天 的 生 活 開 銷, 就 可 以 在 每 個 月 的 月 底 知

More information

untitled

untitled Database System Principle Database System Principle 1 SQL 3.1 SQL 3.2-3.3 3.4 3.5 3.6 Database System Principle 2 3.1 SQL SQL Structured Query Language SQL Database System Principle 3 SQL 3.1.1 SQL 3.1.2

More information

回滚段探究

回滚段探究 oracle oracle internal DBA oracle document oracle concepts oracle document oracle DBWR update t set object_id = '0' where object_id = '12344'; 1 row updated. commit; Commit complete. 0 12344 12344 0 10%

More information

untitled

untitled 2006 6 Geoframe Geoframe 4.0.3 Geoframe 1.2 1 Project Manager Project Management Create a new project Create a new project ( ) OK storage setting OK (Create charisma project extension) NO OK 2 Edit project

More information

基于UML建模的管理管理信息系统项目案例导航——VB篇

基于UML建模的管理管理信息系统项目案例导航——VB篇 PowerBuilder 8.0 PowerBuilder 8.0 12 PowerBuilder 8.0 PowerScript PowerBuilder CIP PowerBuilder 8.0 /. 2004 21 ISBN 7-03-014600-X.P.. -,PowerBuilder 8.0 - -.TP311.56 CIP 2004 117494 / / 16 100717 http://www.sciencep.com

More information

支付宝2011年 IT资产与费用预算

支付宝2011年 IT资产与费用预算 OceanBase 支 持 ACID 的 可 扩 展 关 系 数 据 库 qushan@alipay.com 2013 年 04 月 关 系 数 据 库 发 展 1970-72:E.F.Codd 数 据 库 关 系 模 式 20 世 纨 80 年 代 第 一 个 商 业 数 据 库 Oracle V2 SQL 成 为 数 据 库 行 业 标 准 可 扩 展 性 Mainframe: 小 型 机 =>

More information

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2

1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 CHAPTER 1 Understanding Core Database Concepts 1-1 database columnrow record field 不 DBMS Access Paradox SQL Server Linux MySQL Oracle IBM Informix IBM DB2 Sybase 1-2 1 Understanding Core Database Concepts

More information

数 据 库 系 统 基 础 2/54 第 6 章 数 据 库 管 理 与 维 护

数 据 库 系 统 基 础 2/54 第 6 章 数 据 库 管 理 与 维 护 数 据 库 系 统 基 础 1/54 数 据 库 系 统 基 础 哈 尔 滨 工 业 大 学 2011.~2012. 数 据 库 系 统 基 础 2/54 第 6 章 数 据 库 管 理 与 维 护 数 据 库 系 统 基 础 3/54 第 6 章 数 据 库 管 理 与 维 护 6.1 数 据 库 管 理 员 的 基 本 职 责 6.2 数 据 库 存 储 与 性 能 管 理 6.3 数 据 库

More information

三. 发现表被删除, 开始着手解决 1. 该表所在表空间离线 ( 确保删除表所在位置不会被重写 ) SQL> alter tablespace raw_odu offline; Tablespace altered. 2. 通过 logmnr, 找出被删除的数据 data _object _id 1

三. 发现表被删除, 开始着手解决 1. 该表所在表空间离线 ( 确保删除表所在位置不会被重写 ) SQL> alter tablespace raw_odu offline; Tablespace altered. 2. 通过 logmnr, 找出被删除的数据 data _object _id 1 使用 odu 恢复被 drop 表过程 一. 数据库版本 SQL> select * from v$version; BANNER ---------------------------------------------------------------- Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production PL/SQL Release

More information

ebook 132-2

ebook 132-2 2 SQL Server 7.0 SQL Server SQL Server 7 SQL Server 7 5 2.1 SQL Server 7 SQL Server 7 SQL Server SQL Server SQL Server 2.1.1 SQL Server Windows NT/2000 Windows 95/98 ( r a n d o m access memory R A M )

More information

未命名

未命名 附录三 ADS- MySQL 基础语法偏表 类别语法偏类 MySQL 语法 ADS 语法备注 型 Utility DESCRIBE {DESCRIBE DESC} tbl_name [col_name wild] {DESCRIBE DESC} dbname.tbl_name EXPLAIN 负偏 {EXPLAIN} [explain_type] explainable_stmt {EXPLAIN}

More information

ebook46-23

ebook46-23 23 Access 2000 S Q L A c c e s s S Q L S Q L S Q L S E L E C T S Q L S Q L A c c e s s S Q L S Q L I N A N S I Jet SQL S Q L S Q L 23.1 Access 2000 SQL S Q L A c c e s s Jet SQL S Q L U N I O N V B A S

More information

untitled

untitled Chapter 01 1.0... 1-2 1.1... 1-2 1.1.1...1-2 1.1.2...1-4 1.1.2.1... 1-6 1.1.2.2... 1-7 1.1.2.3... 1-7 1.1.2.4... 1-7 1.1.2.5... 1-8 1.1.2.6... 1-8 1.1.3??...1-8 1.1.4...1-9 1.2...1-12 1.3...1-14 1.4...1-17

More information

季刊9web.indd

季刊9web.indd 在 全 国 现 场 会 上 成 功 展 示 全 国 烟 叶 收 购 暨 现 代 烟 草 农 业 建 设 现 场 会 7 月 6 日 至 8 日 在 昆 明 召 开 在 国 家 局 的 领 导 下, 由 我 司 技 术 开 发 的 烟 站 ( 单 元 ) 烟 叶 管 理 信 息 系 统 在 现 场 会 上 成 功 展 示, 并 得 到 参 会 领 导 及 代 表 们 的 关 注 与 认 可 该 系 统

More information

untitled

untitled -JAVA 1. Java IDC 20 20% 5 2005 42.5 JAVA IDC JAVA 60% 70% JAVA 3 5 10 JAVA JAVA JAVA J2EE J2SE J2ME 70% JAVA JAVA 20 1 51 2. JAVA SUN JAVA J2EE J2EE 3. 1. CSTP CSTP 2 51 2. 3. CSTP IT CSTP IT IT CSTP

More information

习题1

习题1 习 题 1 数 据 库 系 统 基 本 概 念 1.1 名 词 解 释 DB DB 是 长 期 存 储 在 计 算 机 内 有 组 织 的 统 一 管 理 的 相 关 数 据 的 集 合 DB 能 为 各 种 用 户 共 享, 具 有 较 小 冗 余 度 数 据 间 联 系 紧 密 而 又 有 较 高 的 数 据 独 立 性 等 特 点 DBMS 是 位 于 用 户 与 操 作 系 统 之 间 的

More information

ebook10-5

ebook10-5 Oracle 7.x RDBMS 5 Oracle S Y S S Y S T E M O r a c l e 5.1 O r a c l e R D B M S O r a c l e O r a c l e 5.2 SYS SYSTEM S Y S S Y S T E M O r a c l e S Y S V $ D B A C O N N E C T R E S O U R C E S Y

More information

Oracle高级复制冲突解决机制的研究

Oracle高级复制冲突解决机制的研究 Oracle dbms_rectifier_diff Oracle : eygle (eygle.com@gmail.com dbms_rectifier_diff Oracle dbms_rectifier_diff : http://www.eygle.com/archives/2005/01/eoadbms_rectifi.html DIFFERENCES Oracle dbms_rectifier_diff.differences

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

untitled

untitled 1 Access 料 (1) 立 料 [] [] [ 料 ] 立 料 Access 料 (2) 料 [ 立 料 ] Access 料 (3) 料 料 料 料 料 料 欄 ADO.NET ADO.NET.NET Framework 類 來 料 料 料 料 料 Ex MSSQL Access Excel XML ADO.NET 連 .NET 料.NET 料 料來 類.NET Data Provider

More information

( Version 0.4 ) 1

( Version 0.4 ) 1 ( Version 0.4 ) 1 3 3.... 3 3 5.... 9 10 12 Entities-Relationship Model. 13 14 15.. 17 2 ( ) version 0.3 Int TextVarchar byte byte byte 3 Id Int 20 Name Surname Varchar 20 Forename Varchar 20 Alternate

More information

untitled

untitled OO 1 SQL Server 2000 2 SQL Server 2000 3 SQL Server 2000 DDL 1 2 3 DML 1 INSERT 2 DELETE 3 UPDATE SELECT DCL 1 SQL Server 2 3 GRANT REVOKE 1 2 1 2 3 4 5 6 1 SQL Server 2000 SQL Server SQL / Microsoft SQL

More information

Oracle高级复制配置手册_业务广告_.doc

Oracle高级复制配置手册_业务广告_.doc Oracle 高 级 复 制 配 置 手 册 作 者 : 铁 钉 Q Q: 5979404 MSN: nail.cn@msn.com Mail: nail.cn@msn.com Blog: http://nails.blog.51cto.com Materialized View Replication 复 制 模 式 实 现 了 单 主 机 对 多 个 复 制 站 点 的 数 据 同 步. 在 主

More information

untitled

untitled 1 .NET 料.NET 料 料來 類.NET Data Provider SQL.NET Data Provider System.Data.SqlClient 料 MS-SQL OLE DB.NET Data Provider System.Data.OleDb 料 Dbase FoxPro Excel Access Oracle Access ODBC.NET Data Provider 料

More information

1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005

1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005 1 o o o CPU o o o o o SQL Server 2005 o CPU o o o o o SQL Server o Microsoft SQL Server 2005 1 1...3 2...20 3...28 4...41 5 Windows SQL Server...47 Microsoft SQL Server 2005 DBSRV1 Microsoft SQL Server

More information

ebook 165-5

ebook 165-5 3 5 6 7 8 9 [ 3. 3 ] 3. 3 S Q L S Q 4. 21 S Q L S Q L 4 S Q 5 5.1 3 ( ) 78 5-1 3-8 - r e l a t i o n t u p l e c a r d i n a l i t y a t t r i b u t e d e g r e e d o m a i n primary key 5-1 3 5-1 S #

More information

untitled

untitled http://idc.hust.edu.cn/~rxli/ 1.1 1.2 1.3 1.4 1.5 1.6 2 1.1 1.1.1 1.1.2 1.1.3 3 1.1.1 Data (0005794, 601,, 1, 1948.03.26, 01) (,,,,,) 4 1.1.1 Database DB 5 1.1.1 (DBMS) DDL ( Create, Drop, Alter) DML(

More information

R D B M S O R D B M S R D B M S / O R D B M S R D B M S O R D B M S 4 O R D B M S R D B M 3. ORACLE Server O R A C L E U N I X Windows NT w w

R D B M S O R D B M S R D B M S / O R D B M S R D B M S O R D B M S 4 O R D B M S R D B M 3. ORACLE Server O R A C L E U N I X Windows NT w w 1 1.1 D B M S To w e r C D 1. 1 968 I B M I M S 2 0 70 Cullinet Software I D M S I M S C O D A S Y L 1971 I D M S containing hierarchy I M S I D M S I M S I B M I M S I D M S 2 2. 18 R D B M S O R D B

More information

一步一步教你搞网站同步镜像!|动易Cms

一步一步教你搞网站同步镜像!|动易Cms 一 步 一 步 教 你 搞 网 站 同 步 镜 像! 动 易 Cms 前 几 天 看 见 论 坛 里 有 位 朋 友 问 一 个 关 于 镜 像 的 问 题, 今 天 刚 好 搞 到 了 一 个, 于 是 拿 出 来 和 大 家 一 起 分 享 了! 1. 介 绍 现 在 的 网 站 随 着 访 问 量 的 增 加, 单 一 服 务 器 无 法 承 担 巨 大 的 访 问 量, 有 没 有 什 么

More information

System Global Area, Oracle Background process Oracle, Server Process user process, user process : SQL*PLUS SYSTEM SQL> select name from v$datafile; NA

System Global Area, Oracle Background process Oracle, Server Process user process, user process : SQL*PLUS SYSTEM SQL> select name from v$datafile; NA ORACLE By Chao_Ping and Parrotao 1 Oracle9i, SGA 2 Oracle9i 3, 4, Oracle? Oracle??? Oracle 1 Overview Oracle, Datafile, Background process, System Global Area, Server Process User Process System Global

More information

oracle-Ess-05.pdf

oracle-Ess-05.pdf 5 135 1 3 6 O r a c l e 1 3 7 1 3 8 O r a c l e 1 3 9 C O N N E C T R E S O U R C E D B A S Y S O P E R S Y S D B A E X P _ F U L L _ D A T A B A S E 1 4 0 I M P _ F U L L _ D A T A B A S E D E L E T E

More information

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Terminal Mode No User User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2 Mon1 Cam-- Mon- Cam-- Prohibited M04 Mon1 Cam03 Mon1 Cam03

More information

AL-MX200 Series

AL-MX200 Series PostScript Level3 Compatible NPD4760-00 TC Seiko Epson Corporation Seiko Epson Corporation ( ) Seiko Epson Corporation Seiko Epson Corporation Epson Seiko Epson Corporation Apple Bonjour ColorSync Macintosh

More information

DB2 (join) SQL DB2 11 SQL DB2 SQL 9.1 DB2 DB2 ( ) SQL ( ) DB2 SQL DB2 DB2 SQL DB2 DB2 SQL DB2 ( DB2 ) DB2 DB2 DB2 SQL DB2 (1) SQL (2) S

DB2 (join) SQL DB2 11 SQL DB2 SQL 9.1 DB2 DB2 ( ) SQL ( ) DB2 SQL DB2 DB2 SQL DB2 DB2 SQL DB2 ( DB2 ) DB2 DB2 DB2 SQL DB2 (1) SQL (2) S 9 DB2 优化器 DB2 SQL select c1 c2 from ( DB2 )??? DB2?!?, no no DB2 I/O ( transrate overhead ) SQL DML (INSERT UPDATE DELETE) DB2 (access plan) DB2 (join) SQL DB2 11 SQL DB2 SQL 9.1 DB2 DB2 ( 728 747 ) SQL

More information

「人名權威檔」資料庫欄位建置表

「人名權威檔」資料庫欄位建置表 ( version 0.2) 1 3 3 3 3 5 6 9.... 11 Entities - Relationship Model..... 12 13 14 16 2 ( ) Int Varchar Text byte byte byte Id Int 20 Name Surname Varchar 20 Forename Varchar 20 Alternate Type Varchar 10

More information

帝国CMS下在PHP文件中调用数据库类执行SQL语句实例

帝国CMS下在PHP文件中调用数据库类执行SQL语句实例 帝国 CMS 下在 PHP 文件中调用数据库类执行 SQL 语句实例 这篇文章主要介绍了帝国 CMS 下在 PHP 文件中调用数据库类执行 SQL 语句实例, 本文还详细介绍了帝国 CMS 数据库类中的一些常用方法, 需要的朋友可以参考下 例 1: 连接 MYSQL 数据库例子 (a.php)

More information

Oracle Database 10g: SQL (OCE) 的第一堂課

Oracle Database 10g: SQL (OCE) 的第一堂課 商 用 資 料 庫 的 第 一 堂 課 中 華 大 學 資 訊 管 理 系 助 理 教 授 李 之 中 http://www.chu.edu.tw/~leecc 甲 骨 文 俱 樂 部 @Taiwan Facebook 社 團 https://www.facebook.com/groups/365923576787041/ 2014/09/15 問 題 一 大 三 了, 你 為 什 麼 還 在 這

More information

IBM Rational ClearQuest Client for Eclipse 1/ IBM Rational ClearQuest Client for Ecl

IBM Rational ClearQuest Client for Eclipse   1/ IBM Rational ClearQuest Client for Ecl 1/39 Balaji Krish,, IBM Nam LeIBM 2005 4 15 IBM Rational ClearQuest ClearQuest Eclipse Rational ClearQuest / Eclipse Clien Rational ClearQuest Rational ClearQuest Windows Web Rational ClearQuest Client

More information

幻灯片 1

幻灯片 1 沈 阳 工 业 大 学 2014 年 6 月 第 7 章 数 据 库 技 术 基 础 主 要 内 容 : 7.1 数 据 库 概 述 数 据 库 基 本 概 念 数 据 模 型 逻 辑 数 据 模 型 数 据 库 系 统 的 产 生 和 发 展 常 用 的 数 据 库 管 理 系 统 7.2 Access 2010 数 据 库 创 建 及 维 护 创 建 Access 2010 数 据 库 创 建

More information

C H A P T E R 7 Windows Vista Windows Vista Windows Vista FAT16 FAT32 NTFS NTFS New Technology File System NTFS

C H A P T E R 7 Windows Vista Windows Vista Windows Vista FAT16 FAT32 NTFS NTFS New Technology File System NTFS C H P T E R 7 Windows Vista Windows Vista Windows VistaFT16 FT32NTFS NTFSNew Technology File System NTFS 247 6 7-1 Windows VistaTransactional NTFS TxFTxF Windows Vista MicrosoftTxF CIDatomicity - Consistency

More information

A API Application Programming Interface 见 应 用 程 序 编 程 接 口 ARP Address Resolution Protocol 地 址 解 析 协 议 为 IP 地 址 到 对 应 的 硬 件 地 址 之 间 提 供 动 态 映 射 阿 里 云 内

A API Application Programming Interface 见 应 用 程 序 编 程 接 口 ARP Address Resolution Protocol 地 址 解 析 协 议 为 IP 地 址 到 对 应 的 硬 件 地 址 之 间 提 供 动 态 映 射 阿 里 云 内 A API Application Programming Interface 见 应 用 程 序 编 程 接 口 ARP Address Resolution Protocol 地 址 解 析 协 议 为 IP 地 址 到 对 应 的 硬 件 地 址 之 间 提 供 动 态 映 射 阿 里 云 内 容 分 发 网 络 Alibaba Cloud Content Delivery Network 一

More information

Business Objects 5.1 Windows BusinessObjects 1

Business Objects 5.1 Windows BusinessObjects 1 Business Objects 5.1 Windows BusinessObjects 1 BusinessObjects 2 BusinessObjects BusinessObjects BusinessObjects Windows95/98/NT BusinessObjects Windows BusinessObjects BusinessObjects BusinessObjects

More information

ebook 132-6

ebook 132-6 6 SQL Server Windows NT Windows 2000 6.1 Enterprise Manager SQL Server Enterprise Manager( ) (Microsoft Management C o n s o l e M M C ) Enterprise Manager SQL Server Enterprise Manager 6.1.1 Enterprise

More information

SQL Server SQL Server SQL Mail Windows NT

SQL Server SQL Server SQL Mail Windows NT ... 3 11 SQL Server... 4 11.1... 7 11.2... 9 11.3... 11 11.4... 30 11.5 SQL Server... 30 11.6... 31 11.7... 32 12 SQL Mail... 33 12.1Windows NT... 33 12.2SQL Mail... 34 12.3SQL Mail... 34 12.4 Microsoft

More information

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料   半年免费更新服务 KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : 000-544 Title : DB2 9.7 Advanced DBA for LUW Version : DEMO 1 / 10 1. A DBA needs to create a federated database and configure access to join

More information

ebook 185-6

ebook 185-6 6 Red Hat Linux DB2 Universal Database 6.1 D B 2 Red Hat D B 2 Control Center D B 2 D B 2 D B 2 6.1 DB2 Universal Database [DB2]6.1 D B 2 O LT P O L A P D B 2 I B M P C We e k D B 2 D B 2 L i n u x Windows

More information

coverage2.ppt

coverage2.ppt Satellite Tool Kit STK/Coverage STK 82 0715 010-68745117 1 Coverage Definition Figure of Merit 2 STK Basic Grid Assets Interval Description 3 Grid Global Latitude Bounds Longitude Lines Custom Regions

More information

jdbc:hsqldb:hsql: jdbc:hsqldb:hsqls: jdbc:hsqldb:http: jdbc:hsqldb:https: //localhost //192.0.0.10:9500 / /dbserver.somedomain.com /an_alias /enrollme

jdbc:hsqldb:hsql: jdbc:hsqldb:hsqls: jdbc:hsqldb:http: jdbc:hsqldb:https: //localhost //192.0.0.10:9500 / /dbserver.somedomain.com /an_alias /enrollme sh -x path/to/hsqldb start > /tmp/hstart.log 2>&1 第 4 章 高 级 话 题 4.1 本 章 目 的 许 多 在 论 坛 或 邮 件 组 中 重 复 出 现 的 问 题 将 会 在 本 文 档 中 进 行 解 答 如 果 你 打 算 在 应 用 程 序 中 使 用 HSQLDB 的 话, 那 么 你 应 该 好 好 阅 读 一 下 本 文 章 本 章

More information

P4i45GL_GV-R50-CN.p65

P4i45GL_GV-R50-CN.p65 1 Main Advanced Security Power Boot Exit System Date System Time Floppy Drives IDE Devices BIOS Version Processor Type Processor Speed Cache Size Microcode Update Total Memory DDR1 DDR2 Dec 18 2003 Thu

More information

基于ECO的UML模型驱动的数据库应用开发1.doc

基于ECO的UML模型驱动的数据库应用开发1.doc ECO UML () Object RDBMS Mapping.Net Framework Java C# RAD DataSetOleDbConnection DataGrod RAD Client/Server RAD RAD DataReader["Spell"].ToString() AObj.XXX bug sql UML OR Mapping RAD Lazy load round trip

More information

PowerPoint 演示文稿

PowerPoint 演示文稿 Hadoop 生 态 技 术 在 阿 里 全 网 商 品 搜 索 实 战 阿 里 巴 巴 - 王 峰 自 我 介 绍 真 名 : 王 峰 淘 宝 花 名 : 莫 问 微 博 : 淘 莫 问 2006 年 硕 士 毕 业 后 加 入 阿 里 巴 巴 集 团 淘 及 搜 索 事 业 部 ( 高 级 技 术 与 家 ) 目 前 负 责 搜 索 离 线 系 统 团 队 技 术 方 向 : 分 布 式 计 算

More information

目錄 C ontents Chapter MTA Chapter Chapter

目錄 C ontents Chapter MTA Chapter Chapter 目錄 C ontents Chapter 01 1-1 MTA...1-2 1-2...1-3 1-3...1-5 1-4...1-10 Chapter 02 2-1...2-2 2-2...2-3 2-3...2-7 2-4...2-11...2-16 Chapter 03 3-1...3-2 3-2...3-8 3-3 views...3-16 3-4...3-24...3-33 Chapter

More information

SL2511 SR Plus 操作手冊_單面.doc

SL2511 SR Plus 操作手冊_單面.doc IEEE 802.11b SL-2511 SR Plus SENAO INTERNATIONAL CO., LTD www.senao.com - 1 - - 2 - .5 1-1...5 1-2...6 1-3...6 1-4...7.9 2-1...9 2-2 IE...11 SL-2511 SR Plus....13 3-1...13 3-2...14 3-3...15 3-4...16-3

More information

Simulator By SunLingxi 2003

Simulator By SunLingxi 2003 Simulator By SunLingxi sunlingxi@sina.com 2003 windows 2000 Tornado ping ping 1. Tornado Full Simulator...3 2....3 3. ping...6 4. Tornado Simulator BSP...6 5. VxWorks simpc...7 6. simulator...7 7. simulator

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

CDWA Mapping. 22 Dublin Core Mapping

CDWA Mapping. 22 Dublin Core Mapping (version 0.23) 1 3... 3 3 3 5 7 10 22 CDWA Mapping. 22 Dublin Core Mapping. 24 26 28 30 33 2 3 X version 0.2 ( ) 4 Int VarcharText byte byte byte Id Int 10 Management Main Code Varchar 30 Code Original

More information

Postgres_2017象行中国杭州第一期_张文杰(卓刀)_Greenplum备份恢复浅析

Postgres_2017象行中国杭州第一期_张文杰(卓刀)_Greenplum备份恢复浅析 Greenplum 备份恢复浅析 姓名 : 张文杰 邮箱 :zhuodao.zwj@alibaba-inc.com 公司 : 阿里云 Greenplum 数据备份恢复 : 1. 数据量较大 2. 不能完全使用 Xlog 日志备份 3. 需要保证数据完整性和一致性 Greenplum 提供了 : 1. 非并行备份和恢复 : --pg_dump 和 pg_dumpall(pg_restore) --copy

More information

通过Hive将数据写入到ElasticSearch

通过Hive将数据写入到ElasticSearch 我在 使用 Hive 读取 ElasticSearch 中的数据 文章中介绍了如何使用 Hive 读取 ElasticSearch 中的数据, 本文将接着上文继续介绍如何使用 Hive 将数据写入到 ElasticSearch 中 在使用前同样需要加入 elasticsearch-hadoop-2.3.4.jar 依赖, 具体请参见前文介绍 我们先在 Hive 里面建个名为 iteblog 的表,

More information

ebook140-9

ebook140-9 9 VPN VPN Novell BorderManager Windows NT PPTP V P N L A V P N V N P I n t e r n e t V P N 9.1 V P N Windows 98 Windows PPTP VPN Novell BorderManager T M I P s e c Wi n d o w s I n t e r n e t I S P I

More information

untitled

untitled ArcSDE ESRI ( ) High availability Backup & recovery Clustering Replication Mirroring Standby servers ArcSDE % 95% 99.9% 99.99% 99.999% 99.9999% 18.25 / 8.7 / 52.5 / 5.25 / 31.8 / Spatial Geodatabase

More information

1

1 DOCUMENTATION FOR FAW-VW Auto Co., Ltd. Sales & Service Architecture Concept () () Version 1.0.0.1 Documentation FAW-VW 1 61 1...4 1.1...4 2...4 3...4 3.1...4 3.2...5 3.3...5 4...5 4.1 IP...5 4.2 DNSDNS...6

More information

錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更

錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更 AX5000 Version 1.0 2006 年 9 錄...1 說...2 說...3...4 說...5 六...6 6.1 率...7 6.2 POST PAY...8 6.3 PREPAY DEPOSIT...9 6.4...10 6.5...11 更...12...12 LCD IC LED Flash 更 兩 RJ11 ( ) DC ON OFF ON 狀 狀 更 OFF 復 狀 說

More information

Chapter #

Chapter # 第三章 TCP/IP 协议栈 本章目标 通过本章的学习, 您应该掌握以下内容 : 掌握 TCP/IP 分层模型 掌握 IP 协议原理 理解 OSI 和 TCP/IP 模型的区别和联系 TCP/IP 介绍 主机 主机 Internet TCP/IP 早期的协议族 全球范围 TCP/IP 协议栈 7 6 5 4 3 应用层表示层会话层传输层网络层 应用层 主机到主机层 Internet 层 2 1 数据链路层

More information

目錄... ivv...vii Chapter DETECT

目錄... ivv...vii Chapter DETECT ... ivv...vii Chapter 1 1.1... 5 1.2... 6 1.3 DETECT... 11 1.3.1... 12 1.3.1.1...12 1.3.1.2...13 1.3.1.3...14 1.3.1.4...15 1.3.1.5...15 1.3.1.6...16 1.3.2 DETECT... 17 1.3.3... 19 1.3.4... 20... 22 Chapter

More information

PTS7_Manual.PDF

PTS7_Manual.PDF User Manual Soliton Technologies CO., LTD www.soliton.com.tw - PCI V2.2. - PCI 32-bit / 33MHz * 2 - Zero Skew CLK Signal Generator. - (each Slot). -. - PCI. - Hot-Swap - DOS, Windows 98/2000/XP, Linux

More information

123

123 資 訊 管 理 系 資 料 庫 教 學 帄 台 MTA 資 料 庫 國 際 證 照 題 庫 分 析 指 導 教 授 : 馮 曼 琳 教 授 組 員 名 單 : 陳 雅 紋 學 號 998C030 蔡 宥 為 學 號 998C114 陳 韋 婷 學 號 998C168 中 華 民 國 一 零 三 年 五 月 I 誌 謝 本 專 題 報 告 得 以 順 利 完 成, 首 先 要 感 謝 恩 師 馮 曼

More information

Microsoft Word - linux命令及建议.doc

Microsoft Word - linux命令及建议.doc Linux 操 作 系 统 命 令 集 1 基 本 命 令 查 看 系 统 信 息 : uname -a 修 改 密 码 : passwd 退 出 : logout(exit) 获 取 帮 助 : man commands 2 文 件 和 目 录 命 令 显 示 当 前 工 作 目 录 : pwd 改 变 所 在 目 录 : cd cd - 切 换 到 上 一 次 使 用 的 目 录 cd 切 换

More information

Oracle数据库应用技术4 [兼容模式]

Oracle数据库应用技术4 [兼容模式] Oracle 数 据 库 应 用 技 术 河 南 中 医 学 院 信 息 技 术 学 院 王 哲 第 四 章 管 理 表 空 间 主 讲 内 容 : 表 空 间 及 管 理 第 2 页 主 要 内 容 一. 表 空 间 基 础 知 识 二. 管 理 表 空 间 三. 其 他 表 空 间 第 3 页 一. 表 空 间 基 础 知 识 在 创 建 数 据 库 时,Oracle 会 自 动 地 创 建 多

More information

01 SQL Server SQL Server 2008 SQL Server 6-1 SSIS SQL Server ( master ) ( msdb ) SQL Server ( master ) master 6-1 DTS sysadmin 6-1 sysa

01 SQL Server SQL Server 2008 SQL Server 6-1 SSIS SQL Server ( master ) ( msdb ) SQL Server ( master ) master 6-1 DTS sysadmin 6-1 sysa 6 01 SQL Server SQL Server 2008 SQL Server 6-1 SSIS 6-1 06 228 6-1 SQL Server ( master ) ( msdb ) SQL Server ( master ) master 6-1 DTS sysadmin 6-1 sysadmin 6-1 SQL Server 2008 SSIS SQL Server (dbo) master

More information

PowerPoint Presentation

PowerPoint Presentation 立 97 年度 SNMG 練 DNS & BIND enc1215@gmail.com DNS BIND Resolver Named 理 Named 更 DNS DNS Reference 2 DNS DNS 料 domain ip DNS server DNS server 理 DNS server DNS DNS 狀. root name server 理 3 DNS 狀 DNS (2). com

More information

C/C++ - 函数

C/C++ - 函数 C/C++ Table of contents 1. 2. 3. & 4. 5. 1 2 3 # include # define SIZE 50 int main ( void ) { float list [ SIZE ]; readlist (list, SIZE ); sort (list, SIZE ); average (list, SIZE ); bargragh

More information

穨control.PDF

穨control.PDF TCP congestion control yhmiu Outline Congestion control algorithms Purpose of RFC2581 Purpose of RFC2582 TCP SS-DR 1998 TCP Extensions RFC1072 1988 SACK RFC2018 1996 FACK 1996 Rate-Halving 1997 OldTahoe

More information

软件概述

软件概述 Cobra DocGuard BEIJING E-SAFENET SCIENCE & TECHNOLOGY CO.,LTD. 2003 3 20 35 1002 010-82332490 http://www.esafenet.com Cobra DocGuard White Book 1 1....4 1.1...4 1.2 CDG...4 1.3 CDG...4 1.4 CDG...5 1.5

More information

从上面这个表格中我们可以很明显看到巨大的差异当数据全部缓存到内存中 内存大小会影响所有操作 不管是 SELECT 还是 INSERT/UPDATE/DELETE 操作 INSERT 当往一个随机排序的索引中插入数据的时候会造成随机的读/写 UPDATE/DELETE 当更改数据的时候会导致磁盘的读/

从上面这个表格中我们可以很明显看到巨大的差异当数据全部缓存到内存中 内存大小会影响所有操作 不管是 SELECT 还是 INSERT/UPDATE/DELETE 操作 INSERT 当往一个随机排序的索引中插入数据的时候会造成随机的读/写 UPDATE/DELETE 当更改数据的时候会导致磁盘的读/ MySQL 服务器的 linux 性能优化和扩展技巧 作者 Yoshinori Matsunbu 作者现在是 DeNA 公司的数据库和基础设施架构师 之前在 SUN 公司工作 他也是 HandlerSocket 的作者 这个是 MySQL 的 NoSQL 插件 本文是根据他的 PPT 整理而成的 如有不正确敬请指教 本文主要的内容有如下 1. 内存和 SWAP 空间管理 2. 同步 I/O 文件系统和

More information

KillTest 质量更高 服务更好 学习资料 半年免费更新服务

KillTest 质量更高 服务更好 学习资料   半年免费更新服务 KillTest 质量更高 服务更好 学习资料 http://www.killtest.cn 半年免费更新服务 Exam : 310-814 Title : Sun Certified MySQL Associate Version : Demo 1 / 12 1.Adam works as a Database Administrator for a company. He creates a table

More information

RunPC2_.doc

RunPC2_.doc PowerBuilder 8 (5) PowerBuilder Client/Server Jaguar Server Jaguar Server Connection Cache Thin Client Internet Connection Pooling EAServer Connection Cache Connection Cache Connection Cache Connection

More information

0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT au_fname,au_ lname FROM authors ORDER BY

0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT au_fname,au_ lname FROM authors ORDER BY 0 SQL SQL SELECT DISTINCT city, state FROM customers; SQL SQL DBMS SQL DBMS SQL 0-1 SQL SQL 0SQL SQL SQL SQL SQL 3 SQL DBMS Oracle DBMS DBMS DBMS DBMS RDBMS R DBMS 2 DBMS RDBMS R SQL SQL SQL SQL SELECT

More information

入學考試網上報名指南

入學考試網上報名指南 入 學 考 試 網 上 報 名 指 南 On-line Application Guide for Admission Examination 16/01/2015 University of Macau Table of Contents Table of Contents... 1 A. 新 申 請 網 上 登 記 帳 戶 /Register for New Account... 2 B. 填

More information

AL-M200 Series

AL-M200 Series NPD4754-00 TC ( ) Windows 7 1. [Start ( )] [Control Panel ()] [Network and Internet ( )] 2. [Network and Sharing Center ( )] 3. [Change adapter settings ( )] 4. 3 Windows XP 1. [Start ( )] [Control Panel

More information

EC51/52 GSM /GPRS MODEN

EC51/52 GSM /GPRS MODEN EC51/52 GSM /GPRS MODEN AT SMS aoe EC66.com 2004.11 ... 2 1 GSM AT... 3 2 EC51... 4 3 PDU... 4 4 PDU... 5 5... 7 6 TEXT... 8 7... 9 8.... 9 9.... 9 http://www.ec66.com/ 1 AT GPRS Modem SMS AT EC51 EC52

More information

Microsoft Word - template.doc

Microsoft Word - template.doc HGC efax Service User Guide I. Getting Started Page 1 II. Fax Forward Page 2 4 III. Web Viewing Page 5 7 IV. General Management Page 8 12 V. Help Desk Page 13 VI. Logout Page 13 Page 0 I. Getting Started

More information

Chapter 2

Chapter 2 2 (Setup) ETAP PowerStation ETAP ETAP PowerStation PowerStation PowerPlot ODBC SQL Server Oracle SQL Server Oracle Windows SQL Server Oracle PowerStation PowerStation PowerStation PowerStation ETAP PowerStation

More information

V8_BI.PPT [只读]

V8_BI.PPT [只读] IBM Software Group DB2 V8 IBM OLTP OLAP External Extract Integrate Transform Maintain Data Warehouse Reporting Legacy Data Mining DB2 UDB: DB2 DB2 DB2 DB2 DB2 DB2 DB2 UDB EEE on PSeries 500GB 1TB >

More information

自动化接口

自动化接口 基 于 文 件 的 数 据 交 换 的 注 意 事 项 1 SPI 2 COMOS Automation 操 作 手 册 通 用 Excel 导 入 3 通 过 OPC 客 户 端 的 过 程 可 视 化 4 SIMIT 5 GSD 6 05/2016 V 10.2 A5E37093378-AA 法 律 资 讯 警 告 提 示 系 统 为 了 您 的 人 身 安 全 以 及 避 免 财 产 损 失,

More information

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM Oracle Solaris Studio 12.2 DLight 2010 9 2 2 3 DLight 3 3 6 13 CPU 16 18 21 I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AMP Apache MySQL

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

使用SQL Developer

使用SQL Developer 使 用 SQL Developer 达 成 的 目 标 / 方 案 1 创 建 一 个 新 的 数 据 库 连 接 ; 2 在 SQL Developer 中 查 看 数 据 库 对 象 的 信 息 修 改 数 据 ; 3 在 SQL Developer 中 创 建 表 ; 4 在 SQL Developer 中 创 建 索 引 ; 5 在 SQL Developer 中 创 建 函 数 ; 6 在

More information

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile.. WebSphere Studio Application Developer IBM Portal Toolkit... 1/21 WebSphere Studio Application Developer IBM Portal Toolkit Portlet Doug Phillips (dougep@us.ibm.com),, IBM Developer Technical Support Center

More information

1 SQL Server 2005 SQL Server Microsoft Windows Server 2003NTFS NTFS SQL Server 2000 Randy Dyess DBA SQL Server SQL Server DBA SQL Server SQL Se

1 SQL Server 2005 SQL Server Microsoft Windows Server 2003NTFS NTFS SQL Server 2000 Randy Dyess DBA SQL Server SQL Server DBA SQL Server SQL Se 1 SQL Server 2005 DBA Microsoft SQL Server SQL ServerSQL Server SQL Server SQL Server SQL Server SQL Server 2005 SQL Server 2005 SQL Server 2005 o o o SQL Server 2005 1 SQL Server 2005... 3 2 SQL Server

More information

C/C++ - 字符输入输出和字符确认

C/C++ - 字符输入输出和字符确认 C/C++ Table of contents 1. 2. getchar() putchar() 3. (Buffer) 4. 5. 6. 7. 8. 1 2 3 1 // pseudo code 2 read a character 3 while there is more input 4 increment character count 5 if a line has been read,

More information

Microsoft Word - PS2_linux_guide_cn.doc

Microsoft Word - PS2_linux_guide_cn.doc Linux For $ONY PlayStatioin2 Unofficall General Guide Language: Simplified Chinese First Write By Beter Hans v0.1 Mail: hansb@citiz.net Version: 0.1 本 人 是 菜 鸟 + 小 白 欢 迎 指 正 错 误 之 处, 如 果 您 有 其 他 使 用 心 得

More information

SA-DK2-U3Rユーザーズマニュアル

SA-DK2-U3Rユーザーズマニュアル USB3.0 SA-DK2-U3R 2007.0 2 3 4 5 6 7 8 System Info. Manual Rebuild Delete RAID RAID Alarm Rebuild Rate Auto compare Temp Management Load Default Elapse time Event Log 0 2 3 4 2 3 4 ESC 5

More information