Mastering PostgreSQL Administration
|
|
|
- Moris Harrison
- 10 years ago
- Views:
Transcription
1 Mastering PostgreSQL Administration BRUCE MOMJIAN POSTGRESQL is an open-source, full-featured relational database. This presentation covers advanced administration topics. Creative Commons Attribution License Last updated: September, / 109
2 Outline 1. Installation 2. Configuration 3. Maintenance 4. Monitoring 5. Recovery Mastering, PostgreSQL Administration 2 / 109
3 Installation Click-Through Installers Ports MS Windows Linux OS X RPM DEB PKG other packages Source obtaining build options installing Mastering, PostgreSQL Administration 3 / 109
4 Initialization (initdb) $ initdb The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale en_us.utf-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english". fixing permissions on existing directory /u/pgsql/data... ok creating subdirectories... ok selecting default max_connections selecting default shared_buffers... 32MB creating configuration files... ok creating template1 database in /u/pgsql/data/base/1... ok initializing pg_authid... ok initializing dependencies... ok creating system views... ok loading system objects descriptions... ok creating collations... ok creating conversions... ok creating dictionaries... ok setting privileges on built-in objects... ok creating information schema... ok loading PL/pgSQL server-side language... ok vacuuming database template1... ok copying template1 to template0... ok copying template1 to postgres... ok Mastering, PostgreSQL Administration 4 / 109
5 Initialization (continued) WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: or /u/pgsql/bin/postgres -D /u/pgsql/data /u/pgsql/bin/pg_ctl -D /u/pgsql/data -l logfile start Mastering, PostgreSQL Administration 5 / 109
6 pg_controldata $ pg_controldata pg_control version number: 903 Catalog version number: Database system identifier: Database cluster state: in production pg_control last modified: Tue 24 Jan :33:32 AM EST Latest checkpoint location: 0/16BD258 Prior checkpoint location: 0/16BD1D0 Latest checkpoint s REDO location: 0/16BD258 Latest checkpoint s TimeLineID: 1 Latest checkpoint s NextXID: 0/679 Latest checkpoint s NextOID: Latest checkpoint s NextMultiXactId: 1 Latest checkpoint s NextMultiOffset: 0 Latest checkpoint s oldestxid: 668 Latest checkpoint s oldestxid s DB: 1 Latest checkpoint s oldestactivexid: 0 Time of latest checkpoint: Tue 24 Jan :33:32 AM EST 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 Mastering, PostgreSQL Administration 6 / 109
7 System Architecture Main Postmaster Libpq Postgres Postgres Parse Statement utility Traffic Cop Query SELECT, INSERT, UPDATE, DELETE Rewrite Query Utility Command e.g. CREATE TABLE, COPY Generate Paths Optimal Path Generate Plan Plan Execute Plan Utilities Catalog Storage Managers Access Methods Nodes / Lists Mastering, PostgreSQL Administration 7 / 109
8 Starting Postmaster LOG: database system was shut down at :33:29 EST LOG: database system is ready to accept connections LOG: autovacuum launcher started manually pg_ctl start on boot Mastering, PostgreSQL Administration 8 / 109
9 Stopping Postmaster LOG: received smart shutdown request LOG: autovacuum launcher shutting down LOG: shutting down LOG: database system is shut down manually pg_ctl stop on shutdown Mastering, PostgreSQL Administration 9 / 109
10 Connections local unix domain socket host TCP/IP, both SSL or non-ssl hostssl only SSL hostnossl never SSL Mastering, PostgreSQL Administration 10 / 109
11 Authentication trust reject passwords md5 password (cleartext) local authentication socket permissions peer socket user name passing host ident using local identd Mastering, PostgreSQL Administration 11 / 109
12 Authentication (continued) remote authentication host ident using pg_ident.conf kerberos gss sspi pam ldap radius cert Mastering, PostgreSQL Administration 12 / 109
13 Access hostname and network mask database name role name (user or group) filename or list of databases, role IPv6 Mastering, PostgreSQL Administration 13 / 109
14 pg_hba.conf Default # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all /32 trust # IPv6 local connections: host all all ::1/128 trust # Allow replication connections from localhost, by a user with the # replication privilege. #local replication postgres trust #host replication postgres /32 trust #host replication postgres ::1/128 trust Mastering, PostgreSQL Administration 14 / 109
15 pg_hba.conf Example # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all /32 trust # IPv6 local connections: host all all ::1/128 trust # disable connections from the gateway machine host all all /32 reject # enable local network host all all /24 md5 # require SSL for external connections, but do not allow the superuser hostssl all postgres /0 reject hostssl all all /0 md5 Mastering, PostgreSQL Administration 15 / 109
16 Permissions Host connection permissions Role permissions create roles create databases table permissions Database management template1 customization system tables disk space computations Mastering, PostgreSQL Administration 16 / 109
17 Data Directory $ ls -CF base/ pg_ident.conf pg_stat_tmp/ PG_VERSION global/ pg_multixact/ pg_subtrans/ pg_xlog/ pg_clog/ pg_notify/ pg_tblspc/ postgresql.conf pg_hba.conf pg_serial/ pg_twophase/ postmaster.opts Mastering, PostgreSQL Administration 17 / 109
18 Database Directories $ ls -CF global/ _fsm pg_control 11669_vm pg_filenode.map _fsm _fsm pg_internal.init _fsm 11810_vm 11817_fsm 11821_vm pgstat.stat _vm _vm $ ls -CF base/ 1/ 11910/ 11918/ 16384/ $ ls -CF base/ _vm _vm 11655_fsm _fsm _vm _vm _fsm _fsm _fsm _vm _vm 11880_fsm 11657_vm _vm Mastering, PostgreSQL Administration 18 / 109
19 Transaction/WAL Directories $ ls -CF pg_xlog/ archive_status/ $ ls -CF pg_clog/ 0000 Mastering, PostgreSQL Administration 19 / 109
20 Configuration Directories $ ls -CF share/ conversion_create.sql postgres.bki snowball_create.sql extension/ postgres.description sql_features.txt information_schema.sql postgresql.conf.sample system_views.sql pg_hba.conf.sample postgres.shdescription timezone/ pg_ident.conf.sample psqlrc.sample timezonesets/ pg_service.conf.sample recovery.conf.sample tsearch_data/ Mastering, PostgreSQL Administration 20 / 109
21 Configuration of postgresql.conf Mastering, PostgreSQL Administration 21 / 109
22 postgresql.conf # # PostgreSQL configuration file # # # This file consists of lines of the form: # # name = value # # (The "=" is optional.) Whitespace may be used. Comments are introduced with # "#" anywhere on a line. The complete list of parameter names and allowed # values can be found in the PostgreSQL documentation. # # The commented-out settings shown in this file represent the default values. # Re-commenting a setting is NOT sufficient to revert it to the default value; # you need to reload the server. Mastering, PostgreSQL Administration 22 / 109
23 postgresql.conf (Continued) # This file is read on server startup and when the server receives a SIGHUP # signal. If you edit the file on a running system, you have to SIGHUP the # server for the changes to take effect, or use "pg_ctl reload". Some # parameters, which are marked below, require a server shutdown and restart to # take effect. # # Any parameter can also be given as a command-line option to the server, e.g., # "postgres -c log_connections=on". Some parameters can be changed at run time # with the "SET" SQL command. # # Memory units: kb = kilobytes Time units: ms = milliseconds # MB = megabytes s = seconds # GB = gigabytes min = minutes # h = hours Mastering, PostgreSQL Administration 23 / 109
24 Configuration File Location # The default values of these variables are driven from the -D command-line # option or PGDATA environment variable, represented here as ConfigDir. #data_directory = ConfigDir # use data in another directory # (change requires restart) #hba_file = ConfigDir/pg_hba.conf # host-based authentication file # (change requires restart) #ident_file = ConfigDir/pg_ident.conf # ident configuration file # (change requires restart) # If external_pid_file is not explicitly set, no extra PID file is written. #external_pid_file = (none) # write an extra PID file # (change requires restart) Mastering, PostgreSQL Administration 24 / 109
25 Connections and Authentication #listen_addresses = localhost # what IP address(es) to listen on; # comma-separated list of addresses; # defaults to localhost, * = all # (change requires restart) #port = 5432 # (change requires restart) max_connections = 100 # (change requires restart) # Note: Increasing max_connections costs 400 bytes of shared memory per # connection slot, plus lock space (see max_locks_per_transaction). #superuser_reserved_connections = 3 # (change requires restart) #unix_socket_directory = # (change requires restart) #unix_socket_group = # (change requires restart) #unix_socket_permissions = 0777 # begin with 0 to use octal notation # (change requires restart) #bonjour = off # advertise server via Bonjour # (change requires restart) #bonjour_name = # defaults to the computer name # (change requires restart) Mastering, PostgreSQL Administration 25 / 109
26 Security and Authentication #authentication_timeout = 1min # 1s-600s #ssl = off # (change requires restart) #ssl_ciphers = ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH # allowed SSL ciphers # (change requires restart) #ssl_renegotiation_limit = 512MB # amount of data between renegotiations #password_encryption = on #db_user_namespace = off # Kerberos and GSSAPI #krb_server_keyfile = #krb_srvname = postgres #krb_caseins_users = off # (Kerberos only) Mastering, PostgreSQL Administration 26 / 109
27 TCP/IP Control # see "man 7 tcp" for details #tcp_keepalives_idle = 0 #tcp_keepalives_interval = 0 #tcp_keepalives_count = 0 # TCP_KEEPIDLE, in seconds; # 0 selects the system default # TCP_KEEPINTVL, in seconds; # 0 selects the system default # TCP_KEEPCNT; # 0 selects the system default Mastering, PostgreSQL Administration 27 / 109
28 Memory Usage shared_buffers = 32MB #temp_buffers = 8MB #max_prepared_transactions = 0 # min 128kB # (change requires restart) # min 800kB # zero disables the feature # (change requires restart) # Note: Increasing max_prepared_transactions costs 600 bytes of shared memory # per transaction slot, plus lock space (see max_locks_per_transaction). # It is not advisable to set max_prepared_transactions nonzero unless you # actively intend to use prepared transactions. #work_mem = 1MB #maintenance_work_mem = 16MB #max_stack_depth = 2MB # min 64kB # min 1MB # min 100kB Kernel changes often required. Mastering, PostgreSQL Administration 28 / 109
29 Memory Usage (Continued) Postgres Backend Postgres Backend Postgres Backend Recovery Query and Checkpoint Operations Transaction Durability PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync Disk Blocks Mastering, PostgreSQL Administration 29 / 109
30 Sizing Shared Memory Postgres Session (work_mem) Postgres Session (work_mem) R A M Postgres Session (work_mem) Shared Buffer Cache (shared_buffers) Kernel Disk Buffer Cache Free Page Out Swap Kernel Page In (bad) Mastering, PostgreSQL Administration 30 / 109
31 Kernel Resources #max_files_per_process = 1000 # min 25 # (change requires restart) #shared_preload_libraries = # (change requires restart) Mastering, PostgreSQL Administration 31 / 109
32 Vacuum and Background Writer # - Cost-Based Vacuum Delay - #vacuum_cost_delay = 0ms #vacuum_cost_page_hit = 1 #vacuum_cost_page_miss = 10 #vacuum_cost_page_dirty = 20 #vacuum_cost_limit = 200 # milliseconds # credits # credits # credits # credits # - Background Writer - #bgwriter_delay = 200ms #bgwriter_lru_maxpages = 100 #bgwriter_lru_multiplier = 2.0 # ms between rounds # max buffers written/round # multipler on buffers scanned/round # - Asynchronous Behavior - #effective_io_concurrency = 1 # disables prefetching Mastering, PostgreSQL Administration 32 / 109
33 Write-Ahead Log (WAL) #wal_level = minimal # minimal, archive, or hot_standby # (change requires restart) #fsync = on # turns forced synchronization on or off #synchronous_commit = on # synchronization level; on, off, or local #wal_sync_method = fsync # the default is the first option # supported by the operating system: # open_datasync # fdatasync (default on Linux) # fsync # fsync_writethrough # open_sync #full_page_writes = on # recover from partial page writes #wal_buffers = -1 # min 32kB, -1 sets based on shared_buffers # (change requires restart) #wal_writer_delay = 200ms # milliseconds #commit_delay = 0 # range , in microseconds #commit_siblings = 5 # range Mastering, PostgreSQL Administration 33 / 109
34 Write-Ahead Logging (Continued) Postgres Backend Postgres Backend Postgres Backend Recovery Query and Checkpoint Operations Transaction Durability PostgreSQL Shared Buffer Cache Write Ahead Log fsync Kernel Disk Buffer Cache fsync Disk Blocks Mastering, PostgreSQL Administration 34 / 109
35 Checkpoints and Archiving # - Checkpoints - #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each #checkpoint_timeout = 5min # range 30s-1h #checkpoint_completion_target = 0.5 # checkpoint target duration, #checkpoint_warning = 30s # 0 disables # - Archiving - #archive_mode = off #archive_command = #archive_timeout = 0 # allows archiving to be done # (change requires restart) # command to use to archive a logfile segment # force a logfile segment switch after this # number of seconds; 0 disables Mastering, PostgreSQL Administration 35 / 109
36 Master Replication Server # These settings are ignored on a standby server #max_wal_senders = 0 # max number of walsender processes # (change requires restart) #wal_sender_delay = 1s # walsender cycle time, milliseconds #wal_keep_segments = 0 # in logfile segments, 16MB each; 0 disables #vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed #replication_timeout = 60s # in milliseconds; 0 disables #synchronous_standby_names = # standby servers that provide sync rep # comma-separated list of application_name # from standby(s); * = all Mastering, PostgreSQL Administration 36 / 109
37 Standby Replication Server # These settings are ignored on a master server #hot_standby = off #max_standby_archive_delay = 30s #max_standby_streaming_delay = 30s #wal_receiver_status_interval = 10s #hot_standby_feedback = off # "on" allows queries during recovery # (change requires restart) # max delay before canceling queries # when reading WAL from archive; # -1 allows indefinite delay # max delay before canceling queries # when reading streaming WAL; # -1 allows indefinite delay # send replies at least this often # 0 disables # send info from standby to prevent # query conflicts Mastering, PostgreSQL Administration 37 / 109
38 Planner Method Tuning #enable_bitmapscan = on #enable_hashagg = on #enable_hashjoin = on #enable_indexscan = on #enable_material = on #enable_mergejoin = on #enable_nestloop = on #enable_seqscan = on #enable_sort = on #enable_tidscan = on Mastering, PostgreSQL Administration 38 / 109
39 Planner Constants #seq_page_cost = 1.0 #random_page_cost = 4.0 #cpu_tuple_cost = 0.01 #cpu_index_tuple_cost = #cpu_operator_cost = #effective_cache_size = 128MB # measured on an arbitrary scale # same scale as above # same scale as above # same scale as above # same scale as above Mastering, PostgreSQL Administration 39 / 109
40 Planner GEQO #geqo = on #geqo_threshold = 12 #geqo_effort = 5 # range 1-10 #geqo_pool_size = 0 # selects default based on effort #geqo_generations = 0 # selects default based on effort #geqo_selection_bias = 2.0 # range #geqo_seed = 0.0 # range Mastering, PostgreSQL Administration 40 / 109
41 Miscellaneous Planner Options #default_statistics_target = 100 # range #constraint_exclusion = partition # on, off, or partition #cursor_tuple_fraction = 0.1 # range #from_collapse_limit = 8 #join_collapse_limit = 8 # 1 disables collapsing of explicit # JOIN clauses Mastering, PostgreSQL Administration 41 / 109
42 Where To Log #log_destination = stderr # This is used when logging to stderr: #logging_collector = off # Valid values are combinations of # stderr, csvlog, syslog, and eventlog, # depending on platform. csvlog # requires logging_collector to be on. # Enable capturing of stderr and csvlog # into log files. Required to be on for # csvlogs. # (change requires restart) # These are only used if logging_collector is on: #log_directory = pg_log # directory where log files are written, # can be absolute or relative to PGDATA #log_filename = postgresql-%y-%m-%d_%h%m%s.log # log file name pattern, # can include strftime() escapes #log_file_mode = 0600 # creation mode for log files, # begin with 0 to use octal notation Mastering, PostgreSQL Administration 42 / 109
43 Where To Log (rotation) #log_truncate_on_rotation = off #log_rotation_age = 1d #log_rotation_size = 10MB # If on, an existing log file with the # same name as the new log file will be # truncated rather than appended to. # But such truncation only occurs on # time-driven rotation, not on restarts # or size-driven rotation. Default is # off, meaning append to existing files # in all cases. # Automatic rotation of logfiles will # happen after that time. 0 disables. # Automatic rotation of logfiles will # happen after that much log output. # 0 disables. Mastering, PostgreSQL Administration 43 / 109
44 Where to Log (syslog) # These are relevant when logging to syslog: #syslog_facility = LOCAL0 #syslog_ident = postgres #silent_mode = off # Run server silently. # DO NOT USE without syslog or # logging_collector # (change requires restart) Mastering, PostgreSQL Administration 44 / 109
45 When to Log #client_min_messages = notice #log_min_messages = warning # values in order of decreasing detail: # debug5 # debug4 # debug3 # debug2 # debug1 # log # notice # warning # error # values in order of decreasing detail: # debug5 # debug4 # debug3 # debug2 # debug1 # info # notice # warning # error # log # fatal # panic Mastering, PostgreSQL Administration 45 / 109
46 When to Log (Continued) #log_min_error_statement = error #log_min_duration_statement = -1 # values in order of decreasing detail: # debug5 # debug4 # debug3 # debug2 # debug1 # info # notice # warning # error # log # fatal # panic (effectively off) # -1 is disabled, 0 logs all statements # and their durations, > 0 logs only # statements running at least this number # of milliseconds Mastering, PostgreSQL Administration 46 / 109
47 What to Log #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off #debug_pretty_print = on #log_checkpoints = off #log_connections = off #log_disconnections = off #log_duration = off #log_error_verbosity = default #log_hostname = off # terse, default, or verbose messages Mastering, PostgreSQL Administration 47 / 109
48 What To Log: Log_line_prefix #log_line_prefix = # special values: # %a = application name # %u = user name # %d = database name # %r = remote host and port # %h = remote host # %p = process ID # %t = timestamp without milliseconds # %m = timestamp with milliseconds # %i = command tag # %e = SQL state # %c = session ID # %l = session line number # %s = session start timestamp # %v = virtual transaction ID # %x = transaction ID (0 if none) # %q = stop here in non-session # processes # %% = % Mastering, PostgreSQL Administration 48 / 109
49 What to Log (Continued) #log_lock_waits = off # log lock waits >= deadlock_timeout #log_statement = none # none, ddl, mod, all #log_temp_files = -1 # log temporary files equal or larger # than the specified size in kilobytes; # -1 disables, 0 logs all temp files #log_timezone = (defaults to server environment setting) Mastering, PostgreSQL Administration 49 / 109
50 Runtime Statistics # - Query/Index Statistics Collector - #track_activities = on #track_counts = on #track_functions = none #track_activity_query_size = 1024 #update_process_title = on #stats_temp_directory = pg_stat_tmp # none, pl, all # (change requires restart) # - Statistics Monitoring - #log_parser_stats = off #log_planner_stats = off #log_executor_stats = off #log_statement_stats = off Mastering, PostgreSQL Administration 50 / 109
51 Autovacuum #autovacuum = on # Enable autovacuum subprocess? on # requires track_counts to also be on. #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and # their durations, > 0 logs only # actions running at least this number # of milliseconds. #autovacuum_max_workers = 3 # max number of autovacuum subprocesses # (change requires restart) #autovacuum_naptime = 1min # time between autovacuum runs #autovacuum_vacuum_threshold = 50 # min number of row updates before # vacuum #autovacuum_analyze_threshold = 50 # min number of row updates before # analyze #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze #autovacuum_freeze_max_age = # maximum XID age before forced vacuum # (change requires restart) #autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for # autovacuum, in milliseconds; # -1 means use vacuum_cost_delay #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for # autovacuum, -1 means use # vacuum_cost_limit Mastering, PostgreSQL Administration 51 / 109
52 Statement Behavior #search_path = "$user",public #default_tablespace = #temp_tablespaces = #check_function_bodies = on #default_transaction_isolation = read committed #default_transaction_read_only = off #default_transaction_deferrable = off #session_replication_role = origin #statement_timeout = 0 #vacuum_freeze_min_age = #vacuum_freeze_table_age = #bytea_output = hex #xmlbinary = base64 #xmloption = content # schema names # a tablespace name, uses the default # a list of tablespace names, uses # only default tablespace # in milliseconds, 0 is disabled # hex, escape Mastering, PostgreSQL Administration 52 / 109
53 Locale and Formatting datestyle = iso, mdy #intervalstyle = postgres #timezone = (defaults to server environment setting) #timezone_abbreviations = Default # Select the set of available time zone # abbreviations. Currently, there are # Default # Australia # India # You can create your own file in # share/timezonesets/. #extra_float_digits = 0 # min -15, max 3 #client_encoding = sql_ascii # actually, defaults to database # encoding # These settings are initialized by initdb, but they can be changed. lc_messages = en_us.utf-8 # locale for system error messages # strings lc_monetary = en_us.utf-8 # locale for monetary formatting lc_numeric = en_us.utf-8 # locale for number formatting lc_time = en_us.utf-8 # locale for time formatting # default configuration for text search default_text_search_config = pg_catalog.english Mastering, PostgreSQL Administration 53 / 109
54 Full Text Search # default configuration for text search default_text_search_config = pg_catalog.english Mastering, PostgreSQL Administration 54 / 109
55 Other Defaults #dynamic_library_path = $libdir #local_preload_libraries = Mastering, PostgreSQL Administration 55 / 109
56 Lock Management #deadlock_timeout = 1s #max_locks_per_transaction = 64 # min 10 # (change requires restart) # Note: Each lock table slot uses 270 bytes of shared memory, and there are # max_locks_per_transaction * (max_connections + max_prepared_transactions) # lock table slots. #max_pred_locks_per_transaction = 64 # min 10 # (change requires restart) Mastering, PostgreSQL Administration 56 / 109
57 Version/Platform Compatibility # - Previous PostgreSQL Versions - #array_nulls = on #backslash_quote = safe_encoding #default_with_oids = off #escape_string_warning = on #lo_compat_privileges = off #quote_all_identifiers = off #sql_inheritance = on #standard_conforming_strings = on #synchronize_seqscans = on # on, off, or safe_encoding # - Other Platforms and Clients - #transform_null_equals = off Mastering, PostgreSQL Administration 57 / 109
58 Error Handling #exit_on_error = off #restart_after_crash = on # terminate session on any error? # reinitialize after backend crash? Mastering, PostgreSQL Administration 58 / 109
59 Custom Variables #custom_variable_classes = # list of custom variable class names Mastering, PostgreSQL Administration 59 / 109
60 Interfaces Installing Compiled Languages (C, ecpg) Scripting Language (Perl, Python, PHP) SPI Connection Pooling Mastering, PostgreSQL Administration 60 / 109
61 Include Files $ ls -CF include/ ecpg_config.h libpq/ pgtypes_error.h sqlca.h ecpgerrno.h libpq-events.h pgtypes_interval.h sqlda-compat.h ecpg_informix.h libpq-fe.h pgtypes_numeric.h sqlda.h ecpglib.h pg_config.h pgtypes_timestamp.h sqlda-native.h ecpgtype.h pg_config_manual.h postgres_ext.h informix/ pg_config_os.h server/ internal/ pgtypes_date.h sql3types.h Mastering, PostgreSQL Administration 61 / 109
62 Library Files $ ls -CF lib/ ascii_and_mic.so* libecpg.so.6.3* utf8_and_cyrillic.so* cyrillic_and_mic.so* libpgport.a utf8_and_euc2004.so* dict_snowball.so* libpgtypes.a utf8_and_euc_cn.so* euc2004_sjis2004.so* libpgtypes.so@ utf8_and_euc_jp.so* euc_cn_and_mic.so* libpgtypes.so.3@ utf8_and_euc_kr.so* euc_jp_and_sjis.so* libpgtypes.so.3.2* utf8_and_euc_tw.so* euc_kr_and_mic.so* libpq.a utf8_and_gb18030.so* euc_tw_and_big5.so* libpq.so@ utf8_and_gbk.so* latin2_and_win1250.so* libpq.so.5@ utf8_and_iso8859_1.so* latin_and_mic.so* libpq.so.5.4* utf8_and_iso8859.so* libecpg.a libpqwalreceiver.so* utf8_and_johab.so* libecpg_compat.a pgxs/ utf8_and_sjis2004.so* libecpg_compat.so@ plperl.so* utf8_and_sjis.so* libecpg_compat.so.3@ plpgsql.so* utf8_and_uhc.so* libecpg_compat.so.3.3* plpython2.so* utf8_and_win.so* libecpg.so@ utf8_and_ascii.so* libecpg.so.6@ utf8_and_big5.so* Mastering, PostgreSQL Administration 62 / 109
63 Maintenance Mastering, PostgreSQL Administration 63 / 109
64 Backup File system-level (physical) tar, cpio while shutdown file system snapshot rsync, shutdown, rsync, restart pg_dump/pg_dumpall (logical) Restore/pg_restore with custom format Mastering, PostgreSQL Administration 64 / 109
65 Continuous Archiving / Point-In-Time Recovery (PITR) 02:00 09:00 11:00 13:00 WAL WAL WAL File System Level Backup Continuous Archive (WAL) Mastering, PostgreSQL Administration 65 / 109
66 PITR Backup Procedures 1. archive_mode = on 2. wal_level = archive 3. archive_command = cp -i %p /mnt/server/pgsql/%f < /dev/null 4. SELECT pg_start_backup( label ); 5. Perform file system-level backup (can be inconsistent) 6. SELECT pg_stop_backup(); pg_basebackup does this automatically and can be run on version 9.2+ standbys. Mastering, PostgreSQL Administration 66 / 109
67 PITR Recovery 17:00 17:30 17:40 17:55 WAL WAL WAL File System Continuous Level Backup Archive (WAL) Mastering, PostgreSQL Administration 67 / 109
68 PITR Recovery Procecdures 1. Stop postmaster 2. Restore file system-level backup 3. Make adjustments as outlined in the documentation 4. Create recovery.conf 5. restore_command = cp /mnt/server/pgsql/%f %p 6. Start the postmaster Mastering, PostgreSQL Administration 68 / 109
69 Data Maintenance VACUUM (nonblocking) records free space into.fsm (free space map) files ANALYZE collects optimizer statistics VACUUM FULL (blocking) shrinks the size of database disk files Mastering, PostgreSQL Administration 69 / 109
70 Automating Tasks Autovacuum handles vacuum and analyze tasks automatically. Mastering, PostgreSQL Administration 70 / 109
71 Checkpoints Write all dirty shared buffers Sync all dirty kernel buffers Recycle WAL files Check for server messages indicating too-frequent checkpoints If so, increase checkpoint_segments Mastering, PostgreSQL Administration 71 / 109
72 Monitoring Active Sessions Mastering, PostgreSQL Administration 72 / 109
73 ps $ ps -f -Upostgres postgres Tue12AM?? 0:06.57 /u/pgsql/bin/postmaster -i postgres Tue12AM?? 0:35.03 writer process (postmaster) postgres Tue12AM?? 0:16.07 wal writer process (postmaster) postgres Tue12AM?? 0:11.34 autovacuum launcher process (postmaster) postgres Tue12AM?? 0:07.63 stats collector process (postmaster) postgres :44PM?? 0:00.01 postgres test [local] idle (postmaster) postgres :44PM ttyq1 0:00.03 /u/pgsql/bin/psql test Mastering, PostgreSQL Administration 73 / 109
74 top $ top load averages: 0.56, 0.39, :25: processes: 5 running, 130 sleeping, 3 zombie CPU states: 50.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 50.0% idle Memory: Real: 96M/133M Virt: 535M/1267M Free: 76M PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND postgres M 5336K run/0 0: % 30.66% postmaster postgres M 11M sleep 0: % 2.25% psql Mastering, PostgreSQL Administration 74 / 109
75 Query Monitoring test=> SELECT * FROM pg_stat_activity; -[ RECORD 1 ] datid datname test procpid usesysid 10 usename postgres application_name psql client_addr client_port -1 backend_start :27: xact_start :27: query_start :27: waiting f current_query SELECT * FROM pg_stat_activity; Mastering, PostgreSQL Administration 75 / 109
76 Access Statistics pg_stat_all_indexes view postgres pg_stat_all_tables view postgres pg_stat_database view postgres pg_stat_sys_indexes view postgres pg_stat_sys_tables view postgres pg_stat_user_indexes view postgres pg_stat_user_tables view postgres pg_statio_all_indexes view postgres pg_statio_all_sequences view postgres pg_statio_all_tables view postgres pg_statio_sys_indexes view postgres pg_statio_sys_sequences view postgres pg_statio_sys_tables view postgres pg_statio_user_indexes view postgres pg_statio_user_sequences view postgres pg_statio_user_tables view postgres Mastering, PostgreSQL Administration 76 / 109
77 Database Statistics test=> SELECT * FROM pg_stat_database;... -[ RECORD 4 ] datid datname test numbackends 1 xact_commit 188 xact_rollback 0 blks_read 95 blks_hit tup_returned tup_fetched 2938 tup_inserted 0 tup_updated 0 tup_deleted 0 Mastering, PostgreSQL Administration 77 / 109
78 Table Activity test=> SELECT * FROM pg_stat_all_tables; -[ RECORD 10 ] relid 2616 schemaname pg_catalog relname pg_opclass seq_scan 2 seq_tup_read 2 idx_scan 99 idx_tup_fetch 99 n_tup_ins 0 n_tup_upd 0 n_tup_del 0 n_tup_hot_upd 0 n_live_tup 0 n_dead_tup 0 last_vacuum last_autovacuum last_analyze last_autoanalyze Mastering, PostgreSQL Administration 78 / 109
79 Table Block Activity test=> SELECT * FROM pg_statio_all_tables; -[ RECORD 50 ] relid 2602 schemaname pg_catalog relname pg_amop heap_blks_read 3 heap_blks_hit 114 idx_blks_read 5 idx_blks_hit 303 toast_blks_read toast_blks_hit tidx_blks_read tidx_blks_hit Mastering, PostgreSQL Administration 79 / 109
80 Analyzing Activity Heavily used tables Unnecessary indexes Additional indexes Index usage TOAST usage Mastering, PostgreSQL Administration 80 / 109
81 CPU $ vmstat 5 procs memory page disks faults cpu r b w avm fre flt re pi po fr sr s0 s0 in sy cs us sy id Mastering, PostgreSQL Administration 81 / 109
82 I/O $ iostat 5 tty sd0 sd1 sd2 % cpu tin tout sps tps msps sps tps msps sps tps msps usr nic sys int idl Mastering, PostgreSQL Administration 82 / 109
83 Disk Usage test=> \df *size* List of functions Schema Name Result data type Argument data types Type pg_catalog pg_column_size integer "any" normal pg_catalog pg_database_size bigint name normal pg_catalog pg_database_size bigint oid normal pg_catalog pg_indexes_size bigint regclass normal pg_catalog pg_relation_size bigint regclass normal pg_catalog pg_relation_size bigint regclass, text normal pg_catalog pg_size_pretty text bigint normal pg_catalog pg_table_size bigint regclass normal pg_catalog pg_tablespace_size bigint name normal pg_catalog pg_tablespace_size bigint oid normal pg_catalog pg_total_relation_size bigint regclass normal (11 rows) Mastering, PostgreSQL Administration 83 / 109
84 Database File Mapping - oid2name $ oid2name All databases: = test1 1 = template = template = test = postgres = cssi Mastering, PostgreSQL Administration 84 / 109
85 Table File Mapping $ cd /usr/local/pgsql/data/base $ oid2name All databases: = test = x = test 1 = template = template = test = floattest $ cd $ ls 1873* Mastering, PostgreSQL Administration 85 / 109
86 $ oid2name -d test -o Tablename of oid from database "test": = ips $ oid2name -d test -t ips Oid of table ips from database "test": = ips $ # show disk usage per database $ cd /usr/local/pgsql/data/base $ du -s * > while read SIZE OID > do > echo "$SIZE oid2name -q grep ^$OID " > done > sort -rn = test = postgres Mastering, PostgreSQL Administration 86 / 109
87 Disk Balancing Move pg_xlog to another drive using symlinks Tablespaces Mastering, PostgreSQL Administration 87 / 109
88 Per-Database Tablespaces DB1 DB2 DB3 DB4 Disk 1 Disk 2 Disk 3 Mastering, PostgreSQL Administration 88 / 109
89 Per-Object Tablespaces tab1 tab2 index constraint Disk 1 Disk 2 Disk 3 Mastering, PostgreSQL Administration 89 / 109
90 Analyzing Locking $ ps -f -Upostgres PID TT STAT TIME COMMAND 9874?? I 0:00.07 postgres test [local] idle in transaction (postmaster) 9835?? S 0:00.05 postgres test [local] UPDATE waiting (postmaster) 10295?? S 0:00.05 postgres test [local] DELETE waiting (postmaster) test=> SELECT * FROM pg_locks; relation database transaction pid mode granted AccessShareLock t RowExclusiveLock t ExclusiveLock t ShareLock f ExclusiveLock t AccessShareLock t AccessShareLock t RowExclusiveLock t ExclusiveLock t (9 rows) Mastering, PostgreSQL Administration 90 / 109
91 Miscellaneous Tasks Log file rotation, syslog Upgrading pg_dump, restore pg_upgrade Slony Migration Mastering, PostgreSQL Administration 91 / 109
92 Administration Tools pgadmin phppgadmin Mastering, PostgreSQL Administration 92 / 109
93 External Monitoring Tools Alerting: check_postgres, tail_n_mail, Nagios Analysis: Munin, Cacti, Zabbix, Nagios, MRTG Queries: pgfouine, pgbadger Commercial: Circonus (or open-source Reconnoiter), Postgres Enterprise Manager (PEM), Hyperic Mastering, PostgreSQL Administration 93 / 109
94 Recovery Mastering, PostgreSQL Administration 94 / 109
95 Client Application Crash Nothing Required. Transactions in progress are rolled back. Mastering, PostgreSQL Administration 95 / 109
96 Graceful Postgres Server Shutdown Nothing Required. Transactions in progress are rolled back. Mastering, PostgreSQL Administration 96 / 109
97 Abrupt Postgres Server Crash Nothing Required. Transactions in progress are rolled back. Mastering, PostgreSQL Administration 97 / 109
98 Operating System Crash Nothing Required. Transactions in progress are rolled back. Partial page writes are repaired. Mastering, PostgreSQL Administration 98 / 109
99 Disk Failure Restore from previous backup or use PITR. Mastering, PostgreSQL Administration 99 / 109
100 Accidental DELETE Recover table from previous backup, perhaps using pg_restore. It is possible to modify the backend code to make deleted tuples visible, dump out the deleted table and restore the original code. All tuples in the table since the previous vacuum will be visible. It is possible to restrict that so only tuples deleted by a specific transaction are visible. Mastering, PostgreSQL Administration 100 / 109
101 Write-Ahead Log (WAL) Corruption See pg_resetxlog. Review recent transactions and identify any damage, including partially committed transactions. Mastering, PostgreSQL Administration 101 / 109
102 File Deletion It may be necessary to create an empty file with the deleted file name so the object can be deleted, and then the object restored from backup. Mastering, PostgreSQL Administration 102 / 109
103 Accidental DROP TABLE Restore from previous backup. Mastering, PostgreSQL Administration 103 / 109
104 Accidental DROP INDEX Recreate index. Mastering, PostgreSQL Administration 104 / 109
105 Accidental DROP DATABASE Restore from previous backup. Mastering, PostgreSQL Administration 105 / 109
106 Non-Starting Installation Restart problems are usually caused by write-ahead log problems. See pg_resetxlog. Review recent transactions and identify any damage, including partially committed transactions. Mastering, PostgreSQL Administration 106 / 109
107 Index Corruption Use REINDEX. Mastering, PostgreSQL Administration 107 / 109
108 Table Corruption Try reindexing the table. Try identifying the corrupt OID of the row and transfer the valid rows into another table using SELECT INTO WHERE oid!= ###. Use to analyze the internal structure of the table. Mastering, PostgreSQL Administration 108 / 109
109 Conclusion Mastering, PostgreSQL Administration 109 / 109
How To Run A Standby On Postgres 9.0.1.2.2 (Postgres) On A Slave Server On A Standby Server On Your Computer (Mysql) On Your Server (Myscientific) (Mysberry) (
The Magic of Hot Streaming Replication BRUCE MOMJIAN POSTGRESQL 9.0 offers new facilities for maintaining a current standby server and for issuing read-only queries on the standby server. This tutorial
Greenplum Database 4.2 System Administrator Guide. Rev: A15
Greenplum Database 4.2 System Administrator Guide Rev: A15 Copyright 2014 Pivotal Software, Inc. All rights reserved. Pivotal Software, Inc. believes the information in this publication is accurate as
PostgreSQL 9.0 Streaming Replication under the hood Heikki Linnakangas
PostgreSQL 9.0 Streaming Replication under the hood Heikki Linnakangas yright 2009 EnterpriseDB Corporation. All rights Reserved. Slide: 1 Built-in
Backup and Recovery using PITR Mark Jones. 2015 EnterpriseDB Corporation. All rights reserved. 1
Backup and Recovery using PITR Mark Jones 2015 EnterpriseDB Corporation. All rights reserved. 1 Agenda Introduction Business Impact Vs Cost Downtime Scenarios Backup Methods SQL Dump Cold Backup (Offline
PostgreSQL 9.4 up and running.. Vasilis Ventirozos Database Administrator OmniTI
PostgreSQL 9.4 up and running.. Vasilis Ventirozos Database Administrator OmniTI 1 Who am I? DBA@OmniTI for the past 2.5 years PostgreSQL DBA since 7.x Working as DBA since 2001 (Informix, Postgres, MySQL,
Module 7. Backup and Recovery
Module 7 Backup and Recovery Objectives Backup Types SQL Dump Cluster Dump Offline Copy Backup Online Backups Point-In Time Recovery Backup As with any database, PostgreSQL database should be backed up
Managing SAS Web Infrastructure Platform Data Server High-Availability Clusters
ABSTRACT Paper SAS1776-2015 Managing SAS Web Infrastructure Platform Data Server High-Availability Clusters Ken Young, SAS Institute Inc. The SAS Web Application Server is a lightweight server that provides
PostgreSQL when it s not your job. Christophe Pettus PostgreSQL Experts, Inc. DjangoCon Europe 2012
PostgreSQL when it s not your job. Christophe Pettus PostgreSQL Experts, Inc. DjangoCon Europe 2012 The DevOps World. Integration between development and operations. Cross-functional skill sharing. Maximum
PostgreSQL when it s not your job. Christophe Pettus PostgreSQL Experts, Inc. DjangoCon US 2012
PostgreSQL when it s not your job. Christophe Pettus PostgreSQL Experts, Inc. DjangoCon US 2012 The DevOps World. Integration between development and operations. Cross-functional skill sharing. Maximum
PostgreSQL (System) Administration
PostgreSQL (System) Administration PGCon - 2014 Ottawa, Canada Stephen Frost [email protected] Resonate, Inc. Digital Media PostgreSQL Hadoop [email protected] http://www.resonateinsights.com
PGCon 2011. PostgreSQL Performance Pitfalls
PGCon 2011 PostgreSQL Performance Pitfalls Too much information PostgreSQL has a FAQ, manual, other books, a wiki, and mailing list archives RTFM? The 9.0 manual is 2435 pages You didn't do that PostgreSQL
Administering your PostgreSQL Geodatabase
Jim Gough and Jim McAbee [email protected] [email protected] Agenda Workshop will be structured in 2 parts Part 1: Scenario Using Postgres for your Enterprise Geodatabase and how to get started. Part 2: Advanced
PostgreSQL Backup Strategies
PostgreSQL Backup Strategies Austin PGDay 2012 Austin, TX Magnus Hagander [email protected] PRODUCTS CONSULTING APPLICATION MANAGEMENT IT OPERATIONS SUPPORT TRAINING Replication! But I have replication!
PostgreSQL, en driftssikker og fullverdig databasemotor
PostgreSQL, en driftssikker og fullverdig databasemotor Oktober 2005 NUUG - Høyskolen i Oslo, HiO Rafael Martinez, USIT, UiO [email protected] 1 History Features Administration Tuning Replication
PostgreSQL 9.0 High Performance
PostgreSQL 9.0 High Performance Accelerate your PostgreSQL system and avoid the common pitfalls that can slow it down Gregory Smith FPftf ITfl open source l a a 4%3 a l ^ o I community experience distilled
Monitor the Heck Out Of Your Database
Monitor the Heck Out Of Your Database Postgres Open 2011 Josh Williams End Point Corporation Data in... Data out... What are we looking for? Why do we care? Performance of the system Application throughput
Be Very Afraid. Christophe Pettus PostgreSQL Experts Logical Decoding & Backup Conference Europe 2014
Be Very Afraid Christophe Pettus PostgreSQL Experts Logical Decoding & Backup Conference Europe 2014 You possess only whatever will not be lost in a shipwreck. Al-Ghazali Hi. Christophe Pettus Consultant
Technical Paper. Configuring the SAS Web Infrastructure Platform Data Server for High Availability
Technical Paper Configuring the SAS Web Infrastructure Platform Data Server for High Availability ii Configuring the SAS Web Infrastructure Platform for High Availability PAPER TITLE Content provided by
Outline. Failure Types
Outline Database Management and Tuning Johann Gamper Free University of Bozen-Bolzano Faculty of Computer Science IDSE Unit 11 1 2 Conclusion Acknowledgements: The slides are provided by Nikolaus Augsten
Setting up PostgreSQL
Setting up PostgreSQL 1 Introduction to PostgreSQL PostgreSQL is an object-relational database management system based on POSTGRES, which was developed at the University of California at Berkeley. PostgreSQL
Monitoring PostgreSQL database with Verax NMS
Monitoring PostgreSQL database with Verax NMS Table of contents Abstract... 3 1. Adding PostgreSQL database to device inventory... 4 2. Adding sensors for PostgreSQL database... 7 3. Adding performance
PostgreSQL on Windows
PostgreSQL on Windows Magnus Hagander [email protected] PGCon, Ottawa May 2007 1 Agenda Why PostgreSQL on Windows PostgreSQL for the Windows user Windows for the PostgreSQL user Advances in 8.3 2 Why
PostgreSQL database performance optimization. Qiang Wang
PostgreSQL database performance optimization Qiang Wang Bachelor Thesis Business information Technology 2011 Abstract 12.04.2011 Business Information Technology Authors Qiang Wang The title of your thesis
LifeKeeper for Linux PostgreSQL Recovery Kit. Technical Documentation
LifeKeeper for Linux PostgreSQL Recovery Kit Technical Documentation January 2012 This document and the information herein is the property of SIOS Technology Corp. (previously known as SteelEye Technology,
ONE NATIONAL HEALTH SYSTEM ONE POSTGRES DATABASE
ONE NATIONAL HEALTH SYSTEM ONE POSTGRES DATABASE (ARCHITECTURE AND PERFORMANCE REVIEW) Boro Jakimovski, PhD Faculty of Computer Science and Engineering, Ss. Cyril and Methodius University in Skopje Dragan
A Shared-nothing cluster system: Postgres-XC
Welcome A Shared-nothing cluster system: Postgres-XC - Amit Khandekar Agenda Postgres-XC Configuration Shared-nothing architecture applied to Postgres-XC Supported functionalities: Present and Future Configuration
The Advantages of PostgreSQL
The Advantages of PostgreSQL BRUCE MOMJIAN POSTGRESQL offers companies many advantages that can help their businesses thrive. Creative Commons Attribution License http://momjian.us/presentations Last updated:
The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant
The Future of PostgreSQL High Availability Robert Hodges - Continuent, Inc. Simon Riggs - 2ndQuadrant Agenda / Introductions / Framing the High Availability (HA) Problem / Hot Standby + Log Streaming /
PostgreSQL Audit Extension User Guide Version 1.0beta. Open Source PostgreSQL Audit Logging
Version 1.0beta Open Source PostgreSQL Audit Logging TABLE OF CONTENTS Table of Contents 1 Introduction 2 2 Why pgaudit? 3 3 Usage Considerations 4 4 Installation 5 5 Settings 6 5.1 pgaudit.log............................................
Oracle 11g Database Administration
Oracle 11g Database Administration Part 1: Oracle 11g Administration Workshop I A. Exploring the Oracle Database Architecture 1. Oracle Database Architecture Overview 2. Interacting with an Oracle Database
Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.
Restore and Recovery Tasks Objectives After completing this lesson, you should be able to: Describe the causes of file loss and determine the appropriate action Describe major recovery operations Back
Workflow Templates Library
Workflow s Library Table of Contents Intro... 2 Active Directory... 3 Application... 5 Cisco... 7 Database... 8 Excel Automation... 9 Files and Folders... 10 FTP Tasks... 13 Incident Management... 14 Security
CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft SQL Server
CA RECOVERY MANAGEMENT R12.5 BEST PRACTICE CA ARCserve and CA XOsoft r12.5 Best Practices for protecting Microsoft SQL Server Overview Benefits The CA Advantage The CA ARCserve Backup Support and Engineering
EDB Backup and Recovery Tool Guide
EDB Backup and Recovery Tool 1.1 June 2, 2015 , Version 1.1 by EnterpriseDB Corporation Copyright 2014-2015 EnterpriseDB Corporation. All rights reserved. EnterpriseDB Corporation, 34 Crosby Drive, Suite
Postgres Plus xdb Replication Server with Multi-Master User s Guide
Postgres Plus xdb Replication Server with Multi-Master User s Guide Postgres Plus xdb Replication Server with Multi-Master build 57 August 22, 2012 , Version 5.0 by EnterpriseDB Corporation Copyright 2012
This document will list the ManageEngine Applications Manager best practices
This document will list the ManageEngine Applications Manager best practices 1. Hardware and Software requirements 2. Configuring Applications Manager 3. Securing Applications Manager 4. Fault Management
Configuring Apache Derby for Performance and Durability Olav Sandstå
Configuring Apache Derby for Performance and Durability Olav Sandstå Database Technology Group Sun Microsystems Trondheim, Norway Overview Background > Transactions, Failure Classes, Derby Architecture
MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC
MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL
Configuring Apache Derby for Performance and Durability Olav Sandstå
Configuring Apache Derby for Performance and Durability Olav Sandstå Sun Microsystems Trondheim, Norway Agenda Apache Derby introduction Performance and durability Performance tips Open source database
Informatica Corporation Proactive Monitoring for PowerCenter Operations Version 3.0 Release Notes May 2014
Contents Informatica Corporation Proactive Monitoring for PowerCenter Operations Version 3.0 Release Notes May 2014 Copyright (c) 2012-2014 Informatica Corporation. All rights reserved. Installation...
Postgres Enterprise Manager Installation Guide
Postgres Enterprise Manager Installation Guide January 22, 2016 Postgres Enterprise Manager Installation Guide, Version 6.0.0 by EnterpriseDB Corporation Copyright 2013-2016 EnterpriseDB Corporation. All
Netezza PureData System Administration Course
Course Length: 2 days CEUs 1.2 AUDIENCE After completion of this course, you should be able to: Administer the IBM PDA/Netezza Install Netezza Client Software Use the Netezza System Interfaces Understand
Database Administration with MySQL
Database Administration with MySQL Suitable For: Database administrators and system administrators who need to manage MySQL based services. Prerequisites: Practical knowledge of SQL Some knowledge of relational
vcenter Hyperic Configuration Guide
vcenter Hyperic 5.8 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of
There are numerous ways to access monitors:
Remote Monitors REMOTE MONITORS... 1 Overview... 1 Accessing Monitors... 1 Creating Monitors... 2 Monitor Wizard Options... 11 Editing the Monitor Configuration... 14 Status... 15 Location... 17 Alerting...
PAYMENTVAULT TM LONG TERM DATA STORAGE
PAYMENTVAULT TM LONG TERM DATA STORAGE Version 3.0 by Auric Systems International 1 July 2010 Copyright c 2010 Auric Systems International. All rights reserved. Contents 1 Overview 1 1.1 Platforms............................
Enterprise Manager. Version 6.2. Installation Guide
Enterprise Manager Version 6.2 Installation Guide Enterprise Manager 6.2 Installation Guide Document Number 680-028-014 Revision Date Description A August 2012 Initial release to support version 6.2.1
Database Administration
Unified CCE, page 1 Historical Data, page 2 Tool, page 3 Database Sizing Estimator Tool, page 11 Administration & Data Server with Historical Data Server Setup, page 14 Database Size Monitoring, page 15
ServerPronto Cloud User Guide
ServerPronto Cloud User Guide Virtual machines Virtual machines are based on templates and are deployed on hypervisors. Hypervisors give them access to CPU, disk and network resources. The ServerPronto
Command Line Interface User Guide for Intel Server Management Software
Command Line Interface User Guide for Intel Server Management Software Legal Information Information in this document is provided in connection with Intel products. No license, express or implied, by estoppel
Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-
Oracle Objective: Oracle has many advantages and features that makes it popular and thereby makes it as the world's largest enterprise software company. Oracle is used for almost all large application
Postgres Plus Advanced Server Performance Features Guide
Postgres Plus Advanced Server Performance Features Guide Postgres Plus Advanced Server 8.3 R2 July 2, 2009 , Version 1.0 by EnterpriseDB Corporation Copyright 2009 EnterpriseDB Corporation. All rights
Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive
Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive This guide explains how to create and use a Rescue USB flash drive to reinstall and recover the ExtraHop system. When booting
How to Set Up pgagent for Postgres Plus. A Postgres Evaluation Quick Tutorial From EnterpriseDB
How to Set Up pgagent for Postgres Plus A Postgres Evaluation Quick Tutorial From EnterpriseDB February 19, 2010 EnterpriseDB Corporation, 235 Littleton Road, Westford, MA 01866, USA T +1 978 589 5700
PostgreSQL Performance when it s not your job.
PostgreSQL Performance when it s not your job. Christophe Pettus PostgreSQL Experts, Inc. PgDay SCALE 10x 20 January 2012 Hi. Christophe Pettus Consultant with PostgreSQL Experts, Inc. http://thebuild.com/
for QSS/OASIS Presented by Bill Genske Session 135
Quintessential School Systems Session 135 SQL Server Administration for QSS/OASIS Presented by Bill Genske Gary Jackson Copyright Quintessential School Systems, 2011 All Rights Reserved 867 American Street
Zen Internet. Online Data Backup. Zen Vault Professional Plug-ins. Issue: 2.0.08
Zen Internet Online Data Backup Zen Vault Professional Plug-ins Issue: 2.0.08 Contents 1 Plug-in Installer... 3 1.1 Installation and Configuration... 3 2 Plug-ins... 5 2.1 Email Notification... 5 2.1.1
HP Device Manager 4.6
Technical white paper HP Device Manager 4.6 Installation and Update Guide Table of contents Overview... 3 HPDM Server preparation... 3 FTP server configuration... 3 Windows Firewall settings... 3 Firewall
Running a Workflow on a PowerCenter Grid
Running a Workflow on a PowerCenter Grid 2010-2014 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise)
BrightStor ARCserve Backup for Windows
BrightStor ARCserve Backup for Windows Agent for Microsoft SQL Server r11.5 D01173-2E This documentation and related computer software program (hereinafter referred to as the "Documentation") is for the
Managing rights in PostgreSQL
Table des matières Managing rights in PostgreSQL...3 1 The author...3 2 Introduction...4 3 Users, groups and roles...4 3.1 Users and groups...5 3.2 Modifying a role...5 4 Special roles and role attributes...5
Security Correlation Server Quick Installation Guide
orrelog Security Correlation Server Quick Installation Guide This guide provides brief information on how to install the CorreLog Server system on a Microsoft Windows platform. This information can also
This guide specifies the required and supported system elements for the application.
System Requirements Contents System Requirements... 2 Supported Operating Systems and Databases...2 Features with Additional Software Requirements... 2 Hardware Requirements... 4 Database Prerequisites...
SAS. 9.4 Web Applications. Tuning for Performance and Scalability Second Edition. SAS Documentation
SAS 9.4 Web Applications Tuning for Performance and Scalability Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS 9.4 Web Applications:
SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1
SQL Server 2008 Designing, Optimizing, and Maintaining a Database Course The SQL Server 2008 Designing, Optimizing, and Maintaining a Database course will help you prepare for 70-450 exam from Microsoft.
System Administration
Performance Monitoring For a server, it is crucial to monitor the health of the machine You need not only real time data collection and presentation but offline statistical analysis as well Characteristics
Tushar Joshi Turtle Networks Ltd
MySQL Database for High Availability Web Applications Tushar Joshi Turtle Networks Ltd www.turtle.net Overview What is High Availability? Web/Network Architecture Applications MySQL Replication MySQL Clustering
Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*
Oracle Database 11 g Performance Tuning Recipes Sam R. Alapati Darl Kuhn Bill Padfield Apress* Contents About the Authors About the Technical Reviewer Acknowledgments xvi xvii xviii Chapter 1: Optimizing
Java DB Performance. Olav Sandstå Sun Microsystems, Trondheim, Norway Submission ID: 860
Java DB Performance Olav Sandstå Sun Microsystems, Trondheim, Norway Submission ID: 860 AGENDA > Java DB introduction > Configuring Java DB for performance > Programming tips > Understanding Java DB performance
CA Unified Infrastructure Management
CA Unified Infrastructure Management Probe Guide for IIS Server Monitoring iis v1.7 series Copyright Notice This online help system (the "System") is for your informational purposes only and is subject
Isilon OneFS. Version 7.2.1. OneFS Migration Tools Guide
Isilon OneFS Version 7.2.1 OneFS Migration Tools Guide Copyright 2015 EMC Corporation. All rights reserved. Published in USA. Published July, 2015 EMC believes the information in this publication is accurate
Plug-In for Informatica Guide
HP Vertica Analytic Database Software Version: 7.0.x Document Release Date: 2/20/2015 Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements
High Availability Solutions for the MariaDB and MySQL Database
High Availability Solutions for the MariaDB and MySQL Database 1 Introduction This paper introduces recommendations and some of the solutions used to create an availability or high availability environment
Greenplum Database Best Practices
Greenplum Database Best Practices GREENPLUM DATABASE PRODUCT MANAGEMENT AND ENGINEERING Table of Contents INTRODUCTION... 2 BEST PRACTICES SUMMARY... 2 Data Model... 2 Heap and AO Storage... 2 Row and
ORACLE DATABASE 11G: COMPLETE
ORACLE DATABASE 11G: COMPLETE 1. ORACLE DATABASE 11G: SQL FUNDAMENTALS I - SELF-STUDY COURSE a) Using SQL to Query Your Database Using SQL in Oracle Database 11g Retrieving, Restricting and Sorting Data
Pivotal Greenplum Database
PRODUCT DOCUMENTATION Pivotal Greenplum Database Version 4.3 Rev: A06 2015 Pivotal Software, Inc. Copyright Notice Copyright Copyright 2015 Pivotal Software, Inc. All rights reserved. Pivotal Software,
Chancery SMS 7.5.0 Database Split
TECHNICAL BULLETIN Microsoft SQL Server replication... 1 Transactional replication... 2 Preparing to set up replication... 3 Setting up replication... 4 Quick Reference...11, 2009 Pearson Education, Inc.
Technical Notes. PostgreSQL backups with NetWorker. Release number 1.0 302-001-174 REV 01. June 30, 2014. u Audience... 2. u Requirements...
PostgreSQL backps with NetWorker Release nmber 1.0 302-001-174 REV 01 Jne 30, 2014 Adience... 2 Reqirements... 2 Terminology... 2 PostgreSQL backp methodologies...2 PostgreSQL dmp backp... 3 Configring
Audit & Tune Deliverables
Audit & Tune Deliverables The Initial Audit is a way for CMD to become familiar with a Client's environment. It provides a thorough overview of the environment and documents best practices for the PostgreSQL
Check Please! What your Postgres database wishes you would monitor. / Presentation
Check Please! What your Postgres database wishes you would monitor / Presentation Who am I? Lead Database Operations at OmniTI Database Consulting / Management Postgres? TB+ OLAP/DSS multiple 1000+ tps
Using MySQL for Big Data Advantage Integrate for Insight Sastry Vedantam [email protected]
Using MySQL for Big Data Advantage Integrate for Insight Sastry Vedantam [email protected] Agenda The rise of Big Data & Hadoop MySQL in the Big Data Lifecycle MySQL Solutions for Big Data Q&A
Supported DBMS platforms DB2. Informix. Enterprise ArcSDE Technology. Oracle. GIS data. GIS clients DB2. SQL Server. Enterprise Geodatabase 9.
ArcSDE Administration for PostgreSQL Ale Raza, Brijesh Shrivastav, Derek Law ESRI - Redlands UC2008 Technical Workshop 1 Outline Introduce ArcSDE technology for PostgreSQL Implementation PostgreSQL performance
IGEL Universal Management. Installation Guide
IGEL Universal Management Installation Guide Important Information Copyright This publication is protected under international copyright laws, with all rights reserved. No part of this manual, including
Microsoft SQL Server OLTP Best Practice
Microsoft SQL Server OLTP Best Practice The document Introduction to Transactional (OLTP) Load Testing for all Databases provides a general overview on the HammerDB OLTP workload and the document Microsoft
Integrating VoltDB with Hadoop
The NewSQL database you ll never outgrow Integrating with Hadoop Hadoop is an open source framework for managing and manipulating massive volumes of data. is an database for handling high velocity data.
INSTALLATION MANUAL POSTGRESQL9
1 Installation Manual PostgreSQL9 Photo Supreme INSTALLATION MANUAL POSTGRESQL9 This documentation is provided or made accessible "AS IS" and "AS AVAILABLE" and without condition, endorsement, guarantee,
Moving to Plesk Automation 11.5
Moving to Plesk Automation 11.5 Last updated: 2 June 2015 Contents About This Document 4 Introduction 5 Preparing for the Move 7 1. Install the PA Moving Tool... 8 2. Install Mail Sync Software (Windows
IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft Hyper-V Server Agent Version 6.3.1 Fix Pack 2.
IBM Tivoli Composite Application Manager for Microsoft Applications: Microsoft Hyper-V Server Agent Version 6.3.1 Fix Pack 2 Reference IBM Tivoli Composite Application Manager for Microsoft Applications:
Greenplum Database. Security Configuration Guide. Rev: A01
Greenplum Database Security Configuration Guide Rev: A01 Copyright 2012 EMC Corporation. All rights reserved. EMC believes the information in this publication is accurate as of its publication date. The
Oracle Enterprise Manager
Oracle Enterprise Manager System Monitoring Plug-in for Oracle TimesTen In-Memory Database Installation Guide Release 11.2.1 E13081-02 June 2009 This document was first written and published in November
Open-Xchange Server Backup Whitepaper
OPEN-XCHANGE Whitepaper Open-Xchange Server Backup Whitepaper How to back up and restore your Groupware Data v1.20 Copyright 2005, OPEN-XCHANGE Inc. This document is the intellectual property of Open-Xchange
GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster
GoGrid Implement.com Configuring a SQL Server 2012 AlwaysOn Cluster Overview This documents the SQL Server 2012 Disaster Recovery design and deployment, calling out best practices and concerns from the
Cisco Unified CM Disaster Recovery System
Disaster Recovery System, page 1 Quick-Reference Tables for Backup and Restore s, page 3 Supported Features and Components, page 4 System Requirements, page 5 Log In to Disaster Recovery System, page 7
MySQL Enterprise Backup
MySQL Enterprise Backup Fast, Consistent, Online Backups A MySQL White Paper February, 2011 2011, Oracle Corporation and/or its affiliates Table of Contents Introduction... 3! Database Backup Terms...
MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy
MyOra 3.5 SQL Tool for Oracle User Guide Kris Murthy Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL Editor...
Oracle Database 10g: New Features for Administrators
Oracle Database 10g: New Features for Administrators Course ON10G 5 Day(s) 30:00 Hours Introduction This course introduces students to the new features in Oracle Database 10g Release 2 - the database for
FioranoMQ 9. High Availability Guide
FioranoMQ 9 High Availability Guide Copyright (c) 1999-2008, Fiorano Software Technologies Pvt. Ltd., Copyright (c) 2008-2009, Fiorano Software Pty. Ltd. All rights reserved. This software is the confidential
