003 File Manager
Current Path:
/usr/local/share/doc/db5/api_reference/C
usr
/
local
/
share
/
doc
/
db5
/
api_reference
/
C
/
π
..
π
BDB-C_APIReference.pdf
(3.66 MB)
π
DB_MULTIPLE_INIT.html
(5.77 KB)
π
DB_MULTIPLE_KEY_NEXT.html
(8.39 KB)
π
DB_MULTIPLE_KEY_RESERVE_NEXT.html
(6.23 KB)
π
DB_MULTIPLE_KEY_WRITE_NEXT.html
(6.55 KB)
π
DB_MULTIPLE_NEXT.html
(7.43 KB)
π
DB_MULTIPLE_RECNO_NEXT.html
(8.06 KB)
π
DB_MULTIPLE_RECNO_RESERVE_NEXT.html
(6.38 KB)
π
DB_MULTIPLE_RECNO_WRITE_INIT.html
(5.65 KB)
π
DB_MULTIPLE_RECNO_WRITE_NEXT.html
(6.25 KB)
π
DB_MULTIPLE_RESERVE_NEXT.html
(5.8 KB)
π
DB_MULTIPLE_WRITE_INIT.html
(5.61 KB)
π
DB_MULTIPLE_WRITE_NEXT.html
(5.7 KB)
π
add_data_dir_parameter.html
(3.48 KB)
π
apiReference.css
(1.09 KB)
π
configuration_reference.html
(14.2 KB)
π
db.html
(24.22 KB)
π
db_archive.html
(11.82 KB)
π
db_checkpoint.html
(9.5 KB)
π
db_copy.html
(5 KB)
π
db_deadlock.html
(10.58 KB)
π
db_dump.html
(16.43 KB)
π
db_env_set_func_close.html
(5.02 KB)
π
db_env_set_func_dirfree.html
(5.63 KB)
π
db_env_set_func_dirlist.html
(5.52 KB)
π
db_env_set_func_exists.html
(5.78 KB)
π
db_env_set_func_file_map.html
(8.86 KB)
π
db_env_set_func_free.html
(4.96 KB)
π
db_env_set_func_fsync.html
(4.96 KB)
π
db_env_set_func_ftruncate.html
(5.49 KB)
π
db_env_set_func_ioinfo.html
(6.6 KB)
π
db_env_set_func_malloc.html
(4.98 KB)
π
db_env_set_func_open.html
(4.98 KB)
π
db_env_set_func_pread.html
(4.98 KB)
π
db_env_set_func_pwrite.html
(4.99 KB)
π
db_env_set_func_read.html
(4.99 KB)
π
db_env_set_func_realloc.html
(5.02 KB)
π
db_env_set_func_region_map.html
(10.13 KB)
π
db_env_set_func_rename.html
(5.01 KB)
π
db_env_set_func_seek.html
(6.02 KB)
π
db_env_set_func_unlink.html
(4.97 KB)
π
db_env_set_func_write.html
(5 KB)
π
db_env_set_func_yield.html
(6.24 KB)
π
db_heap_rid.html
(4.57 KB)
π
db_hotbackup.html
(17.29 KB)
π
db_load.html
(22.04 KB)
π
db_log_verify.html
(10.9 KB)
π
db_printlog.html
(8.94 KB)
π
db_recover.html
(13.21 KB)
π
db_replicate.html
(9.38 KB)
π
db_site.html
(3.35 KB)
π
db_sql_codegen.html
(21.83 KB)
π
db_stat.html
(15.25 KB)
π
db_tuner.html
(4.39 KB)
π
db_upgrade.html
(9.31 KB)
π
db_verify.html
(8.03 KB)
π
dbassociate.html
(23.95 KB)
π
dbassociate_foreign.html
(14 KB)
π
dbc.html
(6.13 KB)
π
dbcclose.html
(6.84 KB)
π
dbccmp.html
(7.13 KB)
π
dbccount.html
(7.08 KB)
π
dbcdel.html
(11.86 KB)
π
dbcdup.html
(7.95 KB)
π
dbcget.html
(45.44 KB)
π
dbcget_priority.html
(4.92 KB)
π
dbchannel_close.html
(5.75 KB)
π
dbchannel_send_msg.html
(8.72 KB)
π
dbchannel_send_request.html
(11.79 KB)
π
dbchannel_set_timeout.html
(5.91 KB)
π
dbclose.html
(13.26 KB)
π
dbcompact.html
(18.84 KB)
π
dbcput.html
(22.04 KB)
π
dbcreate.html
(9.65 KB)
π
dbcset_priority.html
(6.62 KB)
π
dbcursor.html
(12.23 KB)
π
dbdel.html
(16.9 KB)
π
dberr.html
(9.29 KB)
π
dbexists.html
(8.4 KB)
π
dbfd.html
(4.95 KB)
π
dbget.html
(26.54 KB)
π
dbget_bt_minkey.html
(5.01 KB)
π
dbget_byteswapped.html
(6.39 KB)
π
dbget_cachesize.html
(5.89 KB)
π
dbget_create_dir.html
(5.67 KB)
π
dbget_dbname.html
(4.99 KB)
π
dbget_encrypt_flags.html
(4.87 KB)
π
dbget_errfile.html
(4.58 KB)
π
dbget_errpfx.html
(4.43 KB)
π
dbget_flags.html
(4.75 KB)
π
dbget_h_ffactor.html
(4.98 KB)
π
dbget_h_nelem.html
(4.89 KB)
π
dbget_heap_regionsize.html
(4.97 KB)
π
dbget_heapsize.html
(5.41 KB)
π
dbget_lk_exclusive.html
(5.6 KB)
π
dbget_lorder.html
(4.96 KB)
π
dbget_mpf.html
(3.93 KB)
π
dbget_msgfile.html
(4.76 KB)
π
dbget_multiple.html
(4.09 KB)
π
dbget_open_flags.html
(4.86 KB)
π
dbget_pagesize.html
(5.23 KB)
π
dbget_partition_callback.html
(5.52 KB)
π
dbget_partition_dirs.html
(5.84 KB)
π
dbget_partition_keys.html
(5.43 KB)
π
dbget_priority.html
(5.22 KB)
π
dbget_q_extentsize.html
(5.1 KB)
π
dbget_re_delim.html
(5.25 KB)
π
dbget_re_len.html
(5.11 KB)
π
dbget_re_pad.html
(5.2 KB)
π
dbget_re_source.html
(4.93 KB)
π
dbget_transactional.html
(3.88 KB)
π
dbget_type.html
(5.95 KB)
π
dbgetenv.html
(3.65 KB)
π
dbjoin.html
(16.07 KB)
π
dbkey_range.html
(12.49 KB)
π
dbm.html
(15.92 KB)
π
dbopen.html
(28.51 KB)
π
dbput.html
(25.16 KB)
π
dbremove.html
(9.69 KB)
π
dbrename.html
(10.64 KB)
π
dbset_alloc.html
(8.18 KB)
π
dbset_append_recno.html
(9.11 KB)
π
dbset_bt_compare.html
(9.6 KB)
π
dbset_bt_compress.html
(16.6 KB)
π
dbset_bt_minkey.html
(6.76 KB)
π
dbset_bt_prefix.html
(9.7 KB)
π
dbset_cachesize.html
(8.42 KB)
π
dbset_create_dir.html
(5.8 KB)
π
dbset_dup_compare.html
(9.2 KB)
π
dbset_encrypt.html
(7.26 KB)
π
dbset_errcall.html
(8.71 KB)
π
dbset_errfile.html
(9 KB)
π
dbset_errpfx.html
(5.61 KB)
π
dbset_feedback.html
(7.76 KB)
π
dbset_flags.html
(30.8 KB)
π
dbset_h_compare.html
(8.73 KB)
π
dbset_h_ffactor.html
(6.67 KB)
π
dbset_h_hash.html
(6.88 KB)
π
dbset_h_nelem.html
(6.5 KB)
π
dbset_heap_regionsize.html
(6.67 KB)
π
dbset_heapsize.html
(7.66 KB)
π
dbset_lk_exclusive.html
(8.73 KB)
π
dbset_lorder.html
(6.86 KB)
π
dbset_msgcall.html
(7.73 KB)
π
dbset_msgfile.html
(6.3 KB)
π
dbset_pagesize.html
(6.84 KB)
π
dbset_partition.html
(7.48 KB)
π
dbset_partition_dirs.html
(6 KB)
π
dbset_priority.html
(6.57 KB)
π
dbset_q_extentsize.html
(6.53 KB)
π
dbset_re_delim.html
(6.67 KB)
π
dbset_re_len.html
(7.08 KB)
π
dbset_re_pad.html
(6.28 KB)
π
dbset_re_source.html
(10.77 KB)
π
dbsite_close.html
(4.6 KB)
π
dbsite_get_address.html
(4.88 KB)
π
dbsite_get_config.html
(5.91 KB)
π
dbsite_get_eid.html
(5.25 KB)
π
dbsite_remove.html
(5.14 KB)
π
dbsite_set_config.html
(9.17 KB)
π
dbsort_multiple.html
(9.3 KB)
π
dbsql.html
(8.64 KB)
π
dbstat.html
(35.36 KB)
π
dbstat_print.html
(6.34 KB)
π
dbsync.html
(7.58 KB)
π
dbt.html
(25.51 KB)
π
dbtruncate.html
(8.96 KB)
π
dbupgrade.html
(10.31 KB)
π
dbverify.html
(16.14 KB)
π
env.html
(18.81 KB)
π
envadd_data_dir.html
(8.13 KB)
π
envbackup.html
(13.11 KB)
π
envcdsgroup_begin.html
(5.62 KB)
π
envclose.html
(10.19 KB)
π
envcreate.html
(5.73 KB)
π
envdbbackup.html
(8.67 KB)
π
envdbremove.html
(11.47 KB)
π
envdbrename.html
(12.53 KB)
π
enverr.html
(9.14 KB)
π
envevent_notify.html
(26.7 KB)
π
envfailchk.html
(10.97 KB)
π
envfileid_reset.html
(6.96 KB)
π
envfullversion.html
(6.71 KB)
π
envget_backup_callbacks.html
(6.84 KB)
π
envget_backup_config.html
(7.53 KB)
π
envget_cache_max.html
(5.52 KB)
π
envget_cachesize.html
(6.21 KB)
π
envget_create_dir.html
(4.75 KB)
π
envget_data_dirs.html
(4.76 KB)
π
envget_data_len.html
(5 KB)
π
envget_encrypt_flags.html
(4.69 KB)
π
envget_errfile.html
(4.58 KB)
π
envget_errpfx.html
(4.67 KB)
π
envget_flags.html
(4.94 KB)
π
envget_home.html
(4.15 KB)
π
envget_intermediate_dir_mode.html
(5.14 KB)
π
envget_lg_bsize.html
(5.21 KB)
π
envget_lg_dir.html
(5.22 KB)
π
envget_lg_filemode.html
(5.2 KB)
π
envget_lg_max.html
(5.19 KB)
π
envget_lg_regionmax.html
(5.3 KB)
π
envget_lk_conflicts.html
(6.63 KB)
π
envget_lk_detect.html
(6.12 KB)
π
envget_lk_max_lockers.html
(6.18 KB)
π
envget_lk_max_locks.html
(6.15 KB)
π
envget_lk_max_objects.html
(6.21 KB)
π
envget_lk_partitions.html
(6.23 KB)
π
envget_lk_priority.html
(5.88 KB)
π
envget_lk_tablesize.html
(5.11 KB)
π
envget_memory_init.html
(8.57 KB)
π
envget_memory_max.html
(6.03 KB)
π
envget_metadata_dir.html
(5.05 KB)
π
envget_mp_mmapsize.html
(5.28 KB)
π
envget_mp_mtxcount.html
(4.52 KB)
π
envget_mp_pagesize.html
(4.75 KB)
π
envget_mp_tablesize.html
(4.47 KB)
π
envget_msgfile.html
(4.75 KB)
π
envget_open_flags.html
(4.95 KB)
π
envget_shm_key.html
(5.17 KB)
π
envget_thread_count.html
(5 KB)
π
envget_timeout.html
(7.26 KB)
π
envget_tmp_dir.html
(4.87 KB)
π
envget_tx_max.html
(5.18 KB)
π
envget_tx_timestamp.html
(5.15 KB)
π
envget_verbose.html
(10.65 KB)
π
envlog_get_config.html
(7.76 KB)
π
envlog_set_config.html
(14.23 KB)
π
envlog_verify.html
(12.44 KB)
π
envlsn_reset.html
(7.29 KB)
π
envopen.html
(34.51 KB)
π
envremove.html
(12.8 KB)
π
envset_alloc.html
(9.88 KB)
π
envset_app_dispatch.html
(12.07 KB)
π
envset_backup_callbacks.html
(13.49 KB)
π
envset_backup_config.html
(9.31 KB)
π
envset_cache_max.html
(7.63 KB)
π
envset_cachesize.html
(10.02 KB)
π
envset_create_dir.html
(7.3 KB)
π
envset_data_dir.html
(8.81 KB)
π
envset_data_len.html
(6.72 KB)
π
envset_encrypt.html
(7.73 KB)
π
envset_errcall.html
(8.18 KB)
π
envset_errfile.html
(8.47 KB)
π
envset_errpfx.html
(5.3 KB)
π
envset_feedback.html
(7.48 KB)
π
envset_flags.html
(35.58 KB)
π
envset_intermediate_dir_mode.html
(9.87 KB)
π
envset_isalive.html
(9.57 KB)
π
envset_lg_bsize.html
(8.33 KB)
π
envset_lg_dir.html
(8.69 KB)
π
envset_lg_filemode.html
(6.56 KB)
π
envset_lg_max.html
(8.55 KB)
π
envset_lg_regionmax.html
(7.5 KB)
π
envset_lk_conflicts.html
(8.07 KB)
π
envset_lk_detect.html
(10.27 KB)
π
envset_lk_max_lockers.html
(8.1 KB)
π
envset_lk_max_locks.html
(8.16 KB)
π
envset_lk_max_objects.html
(8.21 KB)
π
envset_lk_partitions.html
(7.72 KB)
π
envset_lk_priority.html
(6.42 KB)
π
envset_lk_tablesize.html
(7.44 KB)
π
envset_memory_init.html
(11.45 KB)
π
envset_memory_max.html
(7.98 KB)
π
envset_metadata_dir.html
(6.14 KB)
π
envset_mp_mmapsize.html
(7.47 KB)
π
envset_mp_mtxcount.html
(4.98 KB)
π
envset_mp_pagesize.html
(4.86 KB)
π
envset_mp_tablesize.html
(4.81 KB)
π
envset_msgcall.html
(7.34 KB)
π
envset_msgfile.html
(5.96 KB)
π
envset_shm_key.html
(8.7 KB)
π
envset_thread_count.html
(9.32 KB)
π
envset_thread_id.html
(13.01 KB)
π
envset_thread_id_string.html
(8.75 KB)
π
envset_timeout.html
(12.17 KB)
π
envset_tmp_dir.html
(9.59 KB)
π
envset_tx_max.html
(8.19 KB)
π
envset_tx_timestamp.html
(6.97 KB)
π
envset_verbose.html
(12.79 KB)
π
envstat.html
(6.3 KB)
π
envstrerror.html
(4.87 KB)
π
envtxn_applied.html
(9.77 KB)
π
envversion.html
(5.54 KB)
π
frame_index.html
(3.02 KB)
π
frame_main.html
(625 B)
π
historic.html
(3.57 KB)
π
hsearch.html
(7.83 KB)
π
index.html
(104.69 KB)
π
introduction.html
(4.02 KB)
π
lock.html
(9.06 KB)
π
lockdetect.html
(10.09 KB)
π
lockget.html
(12.96 KB)
π
lockid.html
(5.07 KB)
π
lockid_free.html
(5.55 KB)
π
lockput.html
(5.38 KB)
π
lockstat.html
(21.73 KB)
π
lockstat_print.html
(8.23 KB)
π
lockvec.html
(20.58 KB)
π
log_set_config_parameter.html
(4.1 KB)
π
logarchive.html
(12.09 KB)
π
logc.html
(3.2 KB)
π
logcclose.html
(5.62 KB)
π
logcget.html
(12.95 KB)
π
logcompare.html
(5.21 KB)
π
logcursor.html
(5.97 KB)
π
logfile.html
(7.71 KB)
π
logflush.html
(5.76 KB)
π
logprintf.html
(6.87 KB)
π
logput.html
(8.43 KB)
π
logstat.html
(14.95 KB)
π
logstat_print.html
(6.17 KB)
π
lsn.html
(8.79 KB)
π
memp.html
(14.22 KB)
π
mempfclose.html
(5.61 KB)
π
mempfcreate.html
(5.59 KB)
π
mempfget.html
(15.71 KB)
π
mempfopen.html
(13.35 KB)
π
mempfsync.html
(4.17 KB)
π
mempget_clear_len.html
(4.83 KB)
π
mempget_fileid.html
(4.48 KB)
π
mempget_flags.html
(4.93 KB)
π
mempget_ftype.html
(5.18 KB)
π
mempget_lsn_offset.html
(5.24 KB)
π
mempget_maxsize.html
(5.69 KB)
π
mempget_mp_max_openfd.html
(5.25 KB)
π
mempget_mp_max_write.html
(5.96 KB)
π
mempget_pgcookie.html
(5.32 KB)
π
mempget_priority.html
(5.71 KB)
π
mempput.html
(8.19 KB)
π
mempregister.html
(9.01 KB)
π
mempset_clear_len.html
(6.19 KB)
π
mempset_fileid.html
(7.53 KB)
π
mempset_flags.html
(7.44 KB)
π
mempset_ftype.html
(5.95 KB)
π
mempset_lsn_offset.html
(5.97 KB)
π
mempset_maxsize.html
(6.33 KB)
π
mempset_mp_max_openfd.html
(6.68 KB)
π
mempset_mp_max_write.html
(7.49 KB)
π
mempset_pgcookie.html
(5.94 KB)
π
mempset_priority.html
(7.3 KB)
π
mempstat.html
(23.46 KB)
π
mempstat_print.html
(6.37 KB)
π
mempsync.html
(5.42 KB)
π
memptrickle.html
(6.4 KB)
π
moreinfo.html
(7.38 KB)
π
mutex.html
(6.86 KB)
π
mutex_set_align_parameter.html
(3.47 KB)
π
mutex_set_increment_parameter.html
(3.45 KB)
π
mutex_set_max_parameter.html
(3.61 KB)
π
mutex_set_tas_spins_parameter.html
(3.3 KB)
π
mutexalloc.html
(7.57 KB)
π
mutexfree.html
(5.73 KB)
π
mutexget_align.html
(4.68 KB)
π
mutexget_increment.html
(4.76 KB)
π
mutexget_init.html
(4.83 KB)
π
mutexget_max.html
(4.72 KB)
π
mutexget_tas_spins.html
(4.88 KB)
π
mutexlock.html
(5.64 KB)
π
mutexset_align.html
(7.19 KB)
π
mutexset_increment.html
(7.47 KB)
π
mutexset_init.html
(7.15 KB)
π
mutexset_max.html
(7.79 KB)
π
mutexset_tas_spins.html
(6.67 KB)
π
mutexstat.html
(10.68 KB)
π
mutexstat_print.html
(5.85 KB)
π
mutexunlock.html
(5.5 KB)
π
preface.html
(4.53 KB)
π
rep.html
(15.38 KB)
π
rep_set_clockskew_parameter.html
(3.51 KB)
π
rep_set_config_parameter.html
(4.16 KB)
π
rep_set_limit_parameter.html
(3.48 KB)
π
rep_set_nsites_parameter.html
(3.4 KB)
π
rep_set_priority_parameter.html
(3.44 KB)
π
rep_set_request_parameter.html
(4.09 KB)
π
rep_set_timeout_parameter.html
(3.9 KB)
π
repclockskew.html
(9.3 KB)
π
repconfig.html
(17.75 KB)
π
repelect.html
(14.68 KB)
π
repget_clockskew.html
(5.59 KB)
π
repget_config.html
(6.1 KB)
π
repget_limit.html
(5.79 KB)
π
repget_nsites.html
(5.34 KB)
π
repget_priority.html
(5.01 KB)
π
repget_request.html
(5.73 KB)
π
repget_timeout.html
(6.83 KB)
π
repmessage.html
(15.34 KB)
π
repmgr_channel.html
(8.12 KB)
π
repmgr_local_site.html
(6.09 KB)
π
repmgr_msg_dispatch.html
(10.47 KB)
π
repmgr_set_ack_policy_parameter.html
(4.07 KB)
π
repmgr_site.html
(7.4 KB)
π
repmgr_site_by_eid.html
(6.63 KB)
π
repmgr_site_parameter.html
(6.65 KB)
π
repmgrget_ack_policy.html
(5.21 KB)
π
repmgrset_ack_policy.html
(11.79 KB)
π
repmgrsite_list.html
(8.45 KB)
π
repmgrstart.html
(13.42 KB)
π
repmgrstat.html
(10.21 KB)
π
repmgrstat_print.html
(6.96 KB)
π
repnsites.html
(7.53 KB)
π
reppriority.html
(7.19 KB)
π
repset_limit.html
(7.45 KB)
π
repset_request.html
(8.54 KB)
π
repset_timeout.html
(14.27 KB)
π
repstart.html
(9.42 KB)
π
repstat.html
(25.78 KB)
π
repstat_print.html
(6.88 KB)
π
repsync.html
(6.96 KB)
π
reptransport.html
(13.89 KB)
π
seq.html
(7.97 KB)
π
seqclose.html
(5.58 KB)
π
seqcreate.html
(7.86 KB)
π
seqget.html
(9.73 KB)
π
seqget_cachesize.html
(4.7 KB)
π
seqget_dbp.html
(4.71 KB)
π
seqget_flags.html
(4.67 KB)
π
seqget_key.html
(4.66 KB)
π
seqget_range.html
(5.22 KB)
π
seqinitial_value.html
(5.51 KB)
π
seqopen.html
(8.58 KB)
π
seqremove.html
(7.6 KB)
π
seqset_cachesize.html
(5.48 KB)
π
seqset_flags.html
(6.78 KB)
π
seqset_range.html
(5.92 KB)
π
seqstat.html
(9.14 KB)
π
seqstat_print.html
(5.07 KB)
π
set_cache_max_parameter.html
(4.02 KB)
π
set_cachesize_parameter.html
(6.48 KB)
π
set_create_dir_parameter.html
(3.38 KB)
π
set_data_len_parameter.html
(3.96 KB)
π
set_flags_parameter.html
(6.9 KB)
π
set_intermediate_dir_mode_parameter.html
(5.27 KB)
π
set_lg_bsize_parameter.html
(5.22 KB)
π
set_lg_dir_parameter.html
(3.28 KB)
π
set_lg_filemode_parameter.html
(3.76 KB)
π
set_lg_max_parameter.html
(4.71 KB)
π
set_lg_regionmax_parameter.html
(3.78 KB)
π
set_lk_detect_parameter.html
(4.85 KB)
π
set_lk_max_lockers_parameter.html
(3.75 KB)
π
set_lk_max_locks_parameter.html
(3.75 KB)
π
set_lk_max_objects_parameter.html
(3.74 KB)
π
set_lk_partitions_parameter.html
(3.54 KB)
π
set_mp_max_openfd_parameter.html
(3.24 KB)
π
set_mp_max_write_parameter.html
(3.36 KB)
π
set_mp_mmapsize_parameter.html
(3.23 KB)
π
set_open_flags_parameter.html
(5.64 KB)
π
set_shm_key_parameter.html
(3.64 KB)
π
set_thread_count_parameter.html
(3.28 KB)
π
set_timeout_parameter.html
(4.72 KB)
π
set_tmp_dir_parameter.html
(3.23 KB)
π
set_tx_max_parameter.html
(3.37 KB)
π
set_verbose_parameter.html
(4.41 KB)
π
setfunc.html
(9.18 KB)
π
sqlite3.html
(3.18 KB)
π
txn.html
(10.09 KB)
π
txnabort.html
(5.01 KB)
π
txnbegin.html
(18.25 KB)
π
txncheckpoint.html
(7.58 KB)
π
txncommit.html
(11.96 KB)
π
txndiscard.html
(8.48 KB)
π
txnget_name.html
(4.77 KB)
π
txnget_priority.html
(5.55 KB)
π
txnid.html
(3.95 KB)
π
txnprepare.html
(7.74 KB)
π
txnrecover.html
(9.52 KB)
π
txnset_commit_token.html
(6.69 KB)
π
txnset_name.html
(5.29 KB)
π
txnset_priority.html
(5.76 KB)
π
txnset_timeout.html
(8.18 KB)
π
txnstat.html
(18.52 KB)
π
txnstat_print.html
(5.96 KB)
π
utilities.html
(6.85 KB)
Editing: envopen.html
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>DB_ENV->open()</title> <link rel="stylesheet" href="apiReference.css" type="text/css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> <link rel="start" href="index.html" title="Berkeley DB C API Reference" /> <link rel="up" href="env.html" title="ChapterΒ 5.Β The DB_ENV Handle" /> <link rel="prev" href="envlsn_reset.html" title="DB_ENV->lsn_reset()" /> <link rel="next" href="envremove.html" title="DB_ENV->remove()" /> </head> <body> <div xmlns="" class="navheader"> <div class="libver"> <p>Library Version 11.2.5.3</p> </div> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">DB_ENV->open()</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="envlsn_reset.html">Prev</a>Β </td> <th width="60%" align="center">ChapterΒ 5.Β The DB_ENV Handle </th> <td width="20%" align="right">Β <a accesskey="n" href="envremove.html">Next</a></td> </tr> </table> <hr /> </div> <div class="sect1" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"><a id="envopen"></a>DB_ENV->open()</h2> </div> </div> </div> <pre class="programlisting">#include <db.h> int DB_ENV->open(DB_ENV *dbenv, char *db_home, u_int32_t flags, int mode); </pre> <p> The <code class="methodname">DB_ENV->open()</code> method opens a Berkeley DB environment. It provides a structure for creating a consistent environment for processes using one or more of the features of Berkeley DB. </p> <p> The <code class="methodname">DB_ENV->open()</code> method <span> <span> method returns a non-zero error value on failure and 0 on success. </span> </span> If <code class="methodname">DB_ENV->open()</code> fails, the <a class="xref" href="envclose.html" title="DB_ENV->close()">DB_ENV->close()</a> method must be called to discard the <a class="link" href="env.html" title="ChapterΒ 5.Β The DB_ENV Handle">DB_ENV</a> handle. </p> <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Warning</h3> <p> Using environments with some journaling filesystems might result in log file corruption. This can occur if the operating system experiences an unclean shutdown when a log file is being created. Please see <a href="../../programmer_reference/transapp_journal.html" class="olink">Using Recovery on Journaling Filesystems</a> in the <em class="citetitle">Berkeley DB Programmer's Reference Guide</em> for more information. </p> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="idp51671824"></a>Parameters</h3> </div> </div> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51670496"></a>db_home</h4> </div> </div> </div> <p> The <span class="bold"><strong>db_home</strong></span> parameter is the database environment's home directory. For more information on <span class="bold"><strong>db_home</strong></span>, and filename resolution in general, see <a href="../../programmer_reference/env_naming.html" class="olink">Berkeley DB File Naming</a>. The environment variable <span class="bold"><strong>DB_HOME</strong></span> may be used as the path of the database home, as described in <a href="../../programmer_reference/env_naming.html" class="olink">Berkeley DB File Naming</a>. </p> <p> When using a Unicode build on Windows (the default), the <span class="bold"><strong>db_home</strong></span> argument will be interpreted as a UTF-8 string, which is equivalent to ASCII for Latin characters. </p> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51678112"></a>flags</h4> </div> </div> </div> <p> The <span class="bold"><strong>flags</strong></span> parameter specifies the subsystems that are initialized and how the application's environment affects Berkeley DB file naming, among other things. The <span class="bold"><strong>flags</strong></span> parameter must be set to 0 or by bitwise inclusively <span class="bold"><strong>OR</strong></span>'ing together one or more of the values described in this section. </p> <p> Because there are a large number of flags that can be specified, they have been grouped together by functionality. The first group of flags indicates which of the Berkeley DB subsystems should be initialized. </p> <p> The choice of subsystems initialized for a Berkeley DB database environment is specified by the thread of control initially creating the environment. Any subsequent thread of control joining the environment will automatically be configured to use the same subsystems as were created in the environment (unless the thread of control requests a subsystem not available in the environment, which will fail). Applications joining an environment, able to adapt to whatever subsystems have been configured in the environment, should open the environment without specifying any subsystem flags. Applications joining an environment, requiring specific subsystems from their environments, should open the environment specifying those specific subsystem flags. </p> <div class="itemizedlist"> <ul type="disc"> <li> <p><a id="envopen_DB_INIT_CDB"></a> <code class="literal">DB_INIT_CDB</code> </p> <p> Initialize locking for the <a href="../../programmer_reference/cam.html#cam_intro" class="olink">Berkeley DB Concurrent Data Store</a> product. In this mode, Berkeley DB provides multiple reader/single writer access. The only other subsystem that should be specified with the <code class="literal">DB_INIT_CDB</code> flag is <code class="literal">DB_INIT_MPOOL</code>. </p> </li> <li> <p><a id="envopen_DB_INIT_LOCK"></a> <code class="literal">DB_INIT_LOCK</code> </p> <p> Initialize the locking subsystem. This subsystem should be used when multiple processes or threads are going to be reading and writing a Berkeley DB database, so that they do not interfere with each other. If all threads are accessing the database(s) read-only, locking is unnecessary. When the DB_INIT_LOCK flag is specified, it is usually necessary to run a deadlock detector, as well. See <a class="link" href="db_deadlock.html" title="db_deadlock">db_deadlock</a> and <a class="xref" href="lockdetect.html" title="DB_ENV->lock_detect()">DB_ENV->lock_detect()</a> for more information. </p> </li> <li> <p><a id="envopen_DB_INIT_LOG"></a> <code class="literal">DB_INIT_LOG</code> </p> <p> Initialize the logging subsystem. This subsystem should be used when recovery from application or system failure is necessary. If the log region is being created and log files are already present, the log files are reviewed; subsequent log writes are appended to the end of the log, rather than overwriting current log entries. </p> </li> <li> <p><a id="envopen_DB_INIT_MPOOL"></a> <code class="literal">DB_INIT_MPOOL</code> </p> <p> Initialize the shared memory buffer pool subsystem. This subsystem should be used whenever an application is using any Berkeley DB access method. </p> </li> <li> <p><a id="envopen_DB_INIT_REP"></a> <code class="literal">DB_INIT_REP</code> </p> <p> Initialize the replication subsystem. This subsystem should be used whenever an application plans on using replication. The <code class="literal">DB_INIT_REP</code> flag requires the <code class="literal">DB_INIT_TXN</code> and <code class="literal">DB_INIT_LOCK</code> flags also be configured. </p> <p> You can also specify this flag in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> configuration file. The syntax is a single line with the string "set_open_flags", one or more whitespace characters, the string "DB_INIT_REP", optionally one or more whitespace characters and the string "on" or "off". If the optional string is omitted, the default is "on"; for example, "set_open_flags DB_INIT_REP" or "set_open_flags DB_INIT_REP on". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time. </p> </li> <li> <p><a id="envopen_DB_INIT_TXN"></a> <code class="literal">DB_INIT_TXN</code> </p> <p> Initialize the transaction subsystem. This subsystem should be used when recovery and atomicity of multiple operations are important. The <code class="literal">DB_INIT_TXN</code> flag implies the <code class="literal">DB_INIT_LOG</code> flag. </p> </li> </ul> </div> <p> The second group of flags govern what recovery, if any, is performed when the environment is initialized: </p> <div class="itemizedlist"> <ul type="disc"> <li> <p><a id="envopen_DB_RECOVER"></a> <code class="literal">DB_RECOVER</code> </p> <p> Run normal recovery on this environment before opening it for normal use. If this flag is set, the <code class="literal">DB_CREATE</code> and <code class="literal">DB_INIT_TXN</code> flags must also be set, because the regions will be removed and re-created, and transactions are required for application recovery. </p> </li> <li> <p><a id="envopen_DB_RECOVER_FATAL"></a> <code class="literal">DB_RECOVER_FATAL</code> </p> <p> Run catastrophic recovery on this environment before opening it for normal use. If this flag is set, the <code class="literal">DB_CREATE</code> and <code class="literal">DB_INIT_TXN</code> flags must also be set, because the regions will be removed and re-created, and transactions are required for application recovery. </p> </li> </ul> </div> <p> A standard part of the recovery process is to remove the existing Berkeley DB environment and create a new one in which to perform recovery. If the thread of control performing recovery does not specify the correct region initialization information (for example, the correct memory pool cache size), the result can be an application running in an environment with incorrect cache and other subsystem sizes. For this reason, the thread of control performing recovery should specify correct configuration information before calling the <code class="methodname">DB_ENV->open()</code> method; or it should remove the environment after recovery is completed, leaving creation of the correctly sized environment to a subsequent call to the <code class="methodname">DB_ENV->open()</code> method. </p> <p> All Berkeley DB recovery processing must be single-threaded; that is, only a single thread of control may perform recovery or access a Berkeley DB environment while recovery is being performed. Because it is not an error to specify <code class="literal">DB_RECOVER</code> for an environment for which no recovery is required, it is reasonable programming practice for the thread of control responsible for performing recovery and creating the environment to always specify the <code class="literal">DB_CREATE</code> and <code class="literal">DB_RECOVER</code> flags during startup. </p> <p> The third group of flags govern file-naming extensions in the environment: </p> <div class="itemizedlist"> <ul type="disc"> <li> <p><a id="envopen_DB_USE_ENVIRON"></a> <code class="literal">DB_USE_ENVIRON</code> </p> <p> The Berkeley DB process' environment may be permitted to specify information to be used when naming files; see <a href="../../programmer_reference/env_naming.html" class="olink">Berkeley DB File Naming</a>. Because permitting users to specify which files are used can create security problems, environment information will be used in file naming for all users only if the <code class="literal">DB_USE_ENVIRON</code> flag is set. </p> </li> <li> <p><a id="envopen_DB_USE_ENVIRON_ROOT"></a> <code class="literal">DB_USE_ENVIRON_ROOT</code> </p> <p> The Berkeley DB process' environment may be permitted to specify information to be used when naming files; see <a href="../../programmer_reference/env_naming.html" class="olink">Berkeley DB File Naming</a>. Because permitting users to specify which files are used can create security problems, if the <code class="literal">DB_USE_ENVIRON_ROOT</code> flag is set, environment information will be used in file naming only for users with appropriate permissions (for example, users with a user-ID of 0 on <code class="literal">UNIX</code> systems). </p> </li> </ul> </div> <p> Finally, there are a few additional unrelated flags: </p> <div class="itemizedlist"> <ul type="disc"> <li> <p><a id="envopen_DB_CREATE"></a> <code class="literal">DB_CREATE</code> </p> <p> Cause Berkeley DB subsystems to create any underlying files, as necessary. </p> </li> <li> <p><a id="envopen_DB_LOCKDOWN"></a> <code class="literal">DB_LOCKDOWN</code> </p> <p> Lock shared Berkeley DB environment files and memory-mapped databases into memory. </p> </li> <li> <p><a id="envopen_DB_FAILCHK"></a> <code class="literal">DB_FAILCHK</code> </p> <p> Internally call the <a class="xref" href="envfailchk.html" title="DB_ENV->failchk()">DB_ENV->failchk()</a> method as part of opening the environment. When <code class="literal">DB_FAILCHK</code> is specified, a check is made to ensure all <code class="methodname">DB_ENV->failchk()</code> prerequisites are meet. </p> <p> If the <code class="literal">DB_FAILCHK</code> flag is used in conjunction with the <code class="literal">DB_REGISTER</code> flag, then a check will be made to see if the environment needs recovery. If recovery is needed, a call will be made to the <code class="methodname">DB_ENV->failchk()</code> method to release any database reads locks held by the thread of control that exited and, if needed, to abort the unresolved transaction. If <code class="methodname">DB_ENV->failchk()</code> determines environment recovery is still required, the recovery actions for <code class="literal">DB_REGISTER</code> will be followed. </p> <p> If the <code class="literal">DB_FAILCHK</code> flag is not used in conjunction with the <code class="literal">DB_REGISTER</code> flag, then make an internal call to <code class="methodname">DB_ENV->failchk()</code> as the last step of opening the environment. If <code class="methodname">DB_ENV->failchk()</code> determines database environment recovery is required, <a href="../../programmer_reference/program_errorret.html#program_errorret.DB_RUNRECOVERY" class="olink">DB_RUNRECOVERY</a> will be returned. </p> </li> <li> <p><a id="envopen_DB_PRIVATE"></a> <code class="literal">DB_PRIVATE</code> </p> <p> Allocate region memory from the heap instead of from memory backed by the filesystem or system shared memory. </p> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <h3 class="title">Note</h3> <p> Use of this flag means that the environment can only be accessed by one environment handle. The environment cannot be accessed by multiple processes. This is true even if one of those processes is one of the the Berkeley DB utilities. (For example, <a class="link" href="db_archive.html" title="db_archive">db_archive</a>, <a class="link" href="db_checkpoint.html" title="db_checkpoint">db_checkpoint</a> or <a class="link" href="db_stat.html" title="db_stat">db_stat</a>.) Nor can a single process open multiple handles to the environment. </p> </div> <p> This flag has two effects on the Berkeley DB environment. First, all underlying data structures are allocated from per-process memory instead of from shared memory that is accessible to more than a single process. Second, mutexes are only configured to work between threads. </p> <p> See <a href="../../programmer_reference/env_region.html" class="olink">Shared Memory Regions</a> for more information. </p> <p> You can also specify this flag in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> configuration file. The syntax is a single line with the string "set_open_flags", one or more whitespace characters, the string "DB_PRIVATE", optionally one or more whitespace characters and the string "on" or "off". If the optional string is omitted, the default is "on"; for example, "set_open_flags DB_PRIVATE" or "set_open_flags DB_PRIVATE on". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time. </p> </li> <li> <p><a id="envopen_DB_REGISTER"></a> <code class="literal">DB_REGISTER</code> </p> <p> Check to see if recovery needs to be performed before opening the database environment. (For this check to be accurate, all processes using the environment must specify <code class="literal">DB_REGISTER</code> when opening the environment.) If recovery needs to be performed for any reason (including the initial use of the <code class="literal">DB_REGISTER</code> flag), and <code class="literal">DB_RECOVER</code> is also specified, recovery will be performed and the open will proceed normally. If recovery needs to be performed and <code class="literal">DB_RECOVER</code> is not specified, <a href="../../programmer_reference/program_errorret.html#program_errorret.DB_RUNRECOVERY" class="olink">DB_RUNRECOVERY</a> will be returned. If recovery does not need to be performed, the <code class="literal">DB_RECOVER</code> flag will be ignored. See <a href="../../programmer_reference/transapp_app.html" class="olink">Architecting Transactional Data Store applications</a> for more information. </p> </li> <li> <p><a id="envopen_DB_SYSTEM_MEM"></a> <code class="literal">DB_SYSTEM_MEM</code> </p> <p> Allocate region memory from system shared memory instead of from heap memory or memory backed by the filesystem. </p> <p> See <a href="../../programmer_reference/env_region.html" class="olink">Shared Memory Regions</a> for more information. </p> </li> <li> <p><a id="envopen_DB_THREAD"></a> <code class="literal">DB_THREAD</code> </p> <p> Cause the <a class="link" href="env.html" title="ChapterΒ 5.Β The DB_ENV Handle">DB_ENV</a> handle returned by <code class="methodname">DB_ENV->open()</code> to be <span class="emphasis"><em>free-threaded;</em></span> that is, concurrently usable by multiple threads in the address space. The <code class="literal">DB_THREAD </code> flag should be specified if the <a class="link" href="env.html" title="ChapterΒ 5.Β The DB_ENV Handle">DB_ENV</a> handle will be concurrently used by more than one thread in the process, or if any <a class="link" href="db.html" title="ChapterΒ 2.Β The DB Handle">DB</a> handles opened in the scope of the <a class="link" href="env.html" title="ChapterΒ 5.Β The DB_ENV Handle">DB_ENV</a> handle will be concurrently used by more than one thread in the process. </p> <p> This flag is required when using the Replication Manager. </p> <p> You can also specify this flag in the <a href="../../programmer_reference/env_db_config.html#env_db_config.DB_CONFIG" class="olink">DB_CONFIG</a> configuration file. The syntax is a single line with the string "set_open_flags", one or more whitespace characters, the string "DB_THREAD", optionally one or more whitespace characters and the string "on" or "off". If the optional string is omitted, the default is "on"; for example, "set_open_flags DB_THREAD" or "set_open_flags DB_THREAD on". Because the DB_CONFIG file is read when the database environment is opened, it will silently overrule configuration done before that time. </p> </li> </ul> </div> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51677896"></a>mode</h4> </div> </div> </div> <p> On Windows systems, the mode parameter is ignored. </p> <p> On UNIX systems or in IEEE/ANSI Std 1003.1 (POSIX) environments, files created by Berkeley DB are created with mode <span class="bold"><strong>mode</strong></span> (as described in <span class="bold"><strong>chmod</strong></span>(2)) and modified by the process' umask value at the time of creation (see <span class="bold"><strong>umask</strong></span>(2)). Created files are owned by the process owner; the group ownership of created files is based on the system and directory defaults, and is not further specified by Berkeley DB. System shared memory segments created by Berkeley DB are created with mode <span class="bold"><strong>mode</strong></span>, unmodified by the process' umask value. If <span class="bold"><strong>mode</strong></span> is 0, Berkeley DB will use a default mode of readable and writable by both owner and group. </p> </div> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="idp51660088"></a>Errors</h3> </div> </div> </div> <p> The <code class="methodname">DB_ENV->open()</code> <span> <span> method may fail and return one of the following non-zero errors: </span> </span> </p> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51735472"></a>DB_RUNRECOVERY</h4> </div> </div> </div> <p> Either the <code class="literal">DB_REGISTER</code> flag was specified, a failure occurred, and no recovery flag was specified, or the <code class="literal">DB_FAILCHK</code> flag was specified and recovery was deemed necessary. </p> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51687696"></a>DB_VERSION_MISMATCH</h4> </div> </div> </div> <p> The version of the Berkeley DB library doesn't match the version that created the database environment. </p> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51748168"></a>EAGAIN</h4> </div> </div> </div> <p> The shared memory region was locked and (repeatedly) unavailable. </p> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51748592"></a>EINVAL</h4> </div> </div> </div> <p> If the <code class="literal">DB_THREAD</code> flag was specified and fast mutexes are not available for this architecture; The <code class="literal">DB_HOME</code> or <code class="literal">TMPDIR</code> environment variables were set, but empty; An incorrectly formatted <span class="bold"><strong>NAME VALUE</strong></span> entry or line was found; or if an invalid flag value or parameter was specified. </p> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="idp51704488"></a>ENOENT</h4> </div> </div> </div> <p> The file or directory does not exist. </p> </div> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="idp51734848"></a>Class</h3> </div> </div> </div> <p> <a class="link" href="env.html" title="ChapterΒ 5.Β The DB_ENV Handle">DB_ENV</a> </p> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="idp51743008"></a>See Also</h3> </div> </div> </div> <p> <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a> </p> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="envlsn_reset.html">Prev</a>Β </td> <td width="20%" align="center"> <a accesskey="u" href="env.html">Up</a> </td> <td width="40%" align="right">Β <a accesskey="n" href="envremove.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">DB_ENV->lsn_reset()Β </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top">Β DB_ENV->remove()</td> </tr> </table> </div> </body> </html>
Upload File
Create Folder