CUBRID Engine
latest
|
#include <stdio.h>
#include "config.h"
#include "cubrid_getopt.h"
#include "util_func.h"
#include "dynamic_array.h"
Go to the source code of this file.
Classes | |
struct | UTIL_ARG_MAP |
struct | UTIL_MAP |
struct | _node_config |
struct | _ha_config |
struct | UTIL_KEYWORD |
struct | UTIL_FUNCTION_ARG |
Typedefs | |
typedef void * | DSO_HANDLE |
typedef struct _node_config | HA_NODE_CONF |
typedef struct _ha_config | HA_CONF |
typedef int(* | UTILITY_INIT_FUNC) (void) |
typedef int(* | UTILITY_FUNCTION) (UTIL_FUNCTION_ARG *) |
#define ACLDB_RELOAD "-r" |
Definition at line 903 of file utility.h.
Referenced by process_server().
#define ADDVOL_COMMENT_S 10702 |
Definition at line 1085 of file utility.h.
Referenced by addvoldb().
#define ADDVOL_FILE_PATH_S 'F' |
Definition at line 1083 of file utility.h.
Referenced by addvoldb().
#define ADDVOL_MAX_WRITESIZE_IN_SEC_L "max-writesize-in-sec" |
#define ADDVOL_MAX_WRITESIZE_IN_SEC_S 10707 |
Definition at line 1095 of file utility.h.
Referenced by addvoldb().
#define ADDVOL_PURPOSE_S 'p' |
Definition at line 1087 of file utility.h.
Referenced by addvoldb().
#define ADDVOL_SA_MODE_S 'S' |
Definition at line 1089 of file utility.h.
Referenced by addvoldb().
#define ADDVOL_VOLUME_NAME_S 'n' |
Definition at line 1081 of file utility.h.
Referenced by addvoldb().
#define ADDVOL_VOLUME_SIZE_S 10706 |
Definition at line 1093 of file utility.h.
Referenced by addvoldb().
#define APPLYINFO_APPLIED_INFO_S 'a' |
Definition at line 1489 of file utility.h.
Referenced by applyinfo().
#define APPLYINFO_COPIED_LOG_PATH_S 'L' |
Definition at line 1483 of file utility.h.
Referenced by applyinfo().
#define APPLYINFO_INTERVAL_S 'i' |
Definition at line 1493 of file utility.h.
Referenced by applyinfo().
#define APPLYINFO_PAGE_S 'p' |
Definition at line 1485 of file utility.h.
Referenced by applyinfo().
#define APPLYINFO_REMOTE_NAME_S 'r' |
Definition at line 1487 of file utility.h.
Referenced by applyinfo().
#define APPLYINFO_VERBOSE_S 'v' |
Definition at line 1491 of file utility.h.
Referenced by applyinfo().
#define APPLYLOG_LOG_PATH_S 'L' |
Definition at line 1477 of file utility.h.
Referenced by applylogdb().
#define APPLYLOG_MAX_MEM_SIZE_S 12401 |
Definition at line 1479 of file utility.h.
Referenced by applylogdb().
#define BACKUP_COMPRESS_S 'z' |
Definition at line 1052 of file utility.h.
Referenced by backupdb().
#define BACKUP_DESTINATION_PATH_S 'D' |
Definition at line 1036 of file utility.h.
Referenced by backupdb().
#define BACKUP_LEVEL_S 'l' |
Definition at line 1040 of file utility.h.
Referenced by backupdb().
#define BACKUP_NO_CHECK_S 10506 |
Definition at line 1048 of file utility.h.
Referenced by backupdb().
#define BACKUP_OUTPUT_FILE_S 'o' |
Definition at line 1042 of file utility.h.
Referenced by backupdb().
#define BACKUP_REMOVE_ARCHIVE_S 'r' |
Definition at line 1038 of file utility.h.
Referenced by backupdb().
#define BACKUP_SA_MODE_S 'S' |
Definition at line 1044 of file utility.h.
Referenced by backupdb().
#define BACKUP_SEPARATE_KEYS_S 'k' |
Definition at line 1058 of file utility.h.
Referenced by backupdb().
#define BACKUP_SLEEP_MSECS_S 10600 |
Definition at line 1056 of file utility.h.
Referenced by backupdb().
#define BACKUP_THREAD_COUNT_S 't' |
Definition at line 1050 of file utility.h.
Referenced by backupdb().
#define CHANGEMODE_FORCE_S 'f' |
Definition at line 1463 of file utility.h.
Referenced by changemode().
#define CHANGEMODE_MODE_S 'm' |
Definition at line 1461 of file utility.h.
Referenced by changemode().
#define CHANGEMODE_TIMEOUT_S 't' |
Definition at line 1465 of file utility.h.
Referenced by changemode().
#define CHECK_BTREE_ALL_BTREES_S 11506 |
#define CHECK_CAT_CONSISTENCY_S 11505 |
#define CHECK_CHECK_PREV_LINK_S 11501 |
#define CHECK_FILE_TRACKER_S 11503 |
#define CHECK_HA_SERVER "HA-Server" |
Definition at line 878 of file utility.h.
Referenced by check_server().
#define CHECK_HEAP_ALLHEAPS_S 11504 |
#define CHECK_LC_ALLENTRIES_OF_ALLBTREES_L "check-btree-entries" |
#define CHECK_LC_ALLENTRIES_OF_ALLBTREES_S 11508 |
#define CHECK_LC_CLASSNAMES_S 11507 |
#define CHECK_REPAIR_PREV_LINK_S 11502 |
#define CHECK_SERVER "Server" |
Definition at line 877 of file utility.h.
Referenced by check_all_services_status(), check_server(), process_server(), us_hb_server_start(), and us_hb_server_stop().
#define CHECKSUM_CHUNK_SIZE_S 'c' |
Definition at line 1585 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_CONT_ON_ERROR_S 14001 |
Definition at line 1591 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_EXCLUDE_CLASS_FILE_L "exclude-class-file" |
#define CHECKSUM_EXCLUDE_CLASS_FILE_S 'e' |
Definition at line 1595 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_INCLUDE_CLASS_FILE_L "include-class-file" |
#define CHECKSUM_INCLUDE_CLASS_FILE_S 'i' |
Definition at line 1593 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_REPORT_ONLY_S 'r' |
Definition at line 1601 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_RESUME_S 14000 |
Definition at line 1587 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_SCHEMA_ONLY_S 14002 |
Definition at line 1603 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_SLEEP_S 's' |
Definition at line 1589 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_TABLE_NAME_S 'n' |
Definition at line 1599 of file utility.h.
Referenced by checksumdb().
#define CHECKSUM_TIMEOUT_S 't' |
Definition at line 1597 of file utility.h.
Referenced by checksumdb().
#define COMMDB_ACTIVATE_HEARTBEAT_L "activate-heartbeat" |
#define COMMDB_ACTIVATE_HEARTBEAT_S 12114 |
#define COMMDB_ALL_LIST_L "all-list" |
#define COMMDB_ALL_STATUS "-O" |
Definition at line 882 of file utility.h.
Referenced by check_server().
#define COMMDB_ALL_STOP "-A" |
Definition at line 883 of file utility.h.
Referenced by process_master().
#define COMMDB_DEACT_CONFIRM_NO_SERVER_L "deact-confirm-no-server" |
#define COMMDB_DEACT_CONFIRM_NO_SERVER_S 12113 |
#define COMMDB_DEACT_CONFIRM_STOP_ALL_L "deact-confirm-stop-all" |
#define COMMDB_DEACT_CONFIRM_STOP_ALL_S 12112 |
#define COMMDB_DEACT_STOP_ALL_L "deact-stop-all" |
#define COMMDB_DEACT_STOP_ALL_S 12111 |
#define COMMDB_DEACTIVATE_HEARTBEAT_L "deactivate-heartbeat" |
#define COMMDB_DEACTIVATE_HEARTBEAT_S 12110 |
#define COMMDB_DEREG_HA_BY_ARGS_L "dereg-args" |
#define COMMDB_DEREG_HA_BY_ARGS_S 'R' |
#define COMMDB_DEREG_HA_BY_PID_L "dereg-process" |
#define COMMDB_DEREG_HA_BY_PID_S 'D' |
#define COMMDB_HA_ACTIVATE "--activate-heartbeat" |
Definition at line 896 of file utility.h.
Referenced by process_heartbeat_replication(), and process_heartbeat_start().
#define COMMDB_HA_ADMIN_INFO "--admin-info" |
Definition at line 899 of file utility.h.
Referenced by process_heartbeat_status().
#define COMMDB_HA_ADMIN_INFO_L "admin-info" |
#define COMMDB_HA_ADMIN_INFO_S 12115 |
#define COMMDB_HA_DEACT_CONFIRM_NO_SERVER "--deact-confirm-no-server" |
Definition at line 894 of file utility.h.
Referenced by us_hb_deactivate().
#define COMMDB_HA_DEACT_CONFIRM_STOP_ALL "--deact-confirm-stop-all" |
Definition at line 893 of file utility.h.
Referenced by us_hb_deactivate().
#define COMMDB_HA_DEACT_STOP_ALL "--deact-stop-all" |
Definition at line 892 of file utility.h.
Referenced by us_hb_deactivate().
#define COMMDB_HA_DEACTIVATE "--deactivate-heartbeat" |
Definition at line 895 of file utility.h.
Referenced by us_hb_deactivate().
#define COMMDB_HA_DEREG_BY_ARGS "-R" |
Definition at line 885 of file utility.h.
Referenced by us_hb_applylogdb_stop(), and us_hb_copylogdb_stop().
#define COMMDB_HA_DEREG_BY_PID "-D" |
Definition at line 884 of file utility.h.
Referenced by process_heartbeat_deregister().
#define COMMDB_HA_NODE_LIST "-N" |
Definition at line 888 of file utility.h.
Referenced by process_heartbeat_status().
#define COMMDB_HA_NODE_LIST_L "node-list" |
#define COMMDB_HA_PING_HOST_LIST "-p" |
Definition at line 890 of file utility.h.
Referenced by process_heartbeat_status().
#define COMMDB_HA_PING_HOST_LIST_L "ping-host" |
#define COMMDB_HA_PING_HOST_LIST_S 'p' |
#define COMMDB_HA_PROC_LIST "-L" |
Definition at line 889 of file utility.h.
Referenced by process_heartbeat_status().
#define COMMDB_HA_PROCESS_LIST_L "process-list" |
#define COMMDB_HA_PROCESS_LIST_S 'L' |
#define COMMDB_HA_RELOAD "-F" |
Definition at line 891 of file utility.h.
Referenced by process_heartbeat_reload().
#define COMMDB_HA_START_UTIL_PROCESS "-t" |
Definition at line 901 of file utility.h.
Referenced by us_hb_applylogdb_start(), and us_hb_copylogdb_start().
#define COMMDB_HA_START_UTIL_PROCESS_L "start-ha-util-process" |
#define COMMDB_HA_START_UTIL_PROCESS_S 't' |
#define COMMDB_HB_DEACT_IMMEDIATELY "-i" |
Definition at line 898 of file utility.h.
Referenced by us_hb_deactivate().
#define COMMDB_HB_DEACT_IMMEDIATELY_L "immediately" |
Definition at line 1430 of file utility.h.
Referenced by main(), and us_hb_stop_get_options().
#define COMMDB_HB_DEACT_IMMEDIATELY_S 'i' |
Definition at line 1429 of file utility.h.
Referenced by main(), and us_hb_stop_get_options().
#define COMMDB_HOST "-h" |
Definition at line 897 of file utility.h.
Referenced by ha_is_registered(), process_heartbeat_status(), us_hb_applylogdb_start(), us_hb_applylogdb_stop(), us_hb_copylogdb_start(), us_hb_copylogdb_stop(), and us_hb_deactivate().
#define COMMDB_HOST_L "host" |
Definition at line 1398 of file utility.h.
Referenced by main(), us_hb_status_get_options(), us_hb_stop_get_options(), and us_hb_util_get_options().
#define COMMDB_HOST_S 'h' |
Definition at line 1397 of file utility.h.
Referenced by main(), us_hb_status_get_options(), us_hb_stop_get_options(), and us_hb_util_get_options().
#define COMMDB_IS_REG "-C" |
Definition at line 887 of file utility.h.
Referenced by ha_is_registered().
#define COMMDB_IS_REGISTERED_PROC_L "is-registered-proc" |
#define COMMDB_IS_REGISTERED_PROC_S 'C' |
#define COMMDB_KILL_ALL_HA_PROCESS_L "kill-all-ha-process" |
#define COMMDB_KILL_ALL_HA_PROCESS_S 'd' |
#define COMMDB_RECONFIG_HEARTBEAT_L "reconfig-node-list" |
#define COMMDB_RECONFIG_HEARTBEAT_S 'F' |
#define COMMDB_SERVER_LIST_L "server-list" |
#define COMMDB_SERVER_MODE_L "server-mode" |
#define COMMDB_SERVER_STATUS "-P" |
Definition at line 881 of file utility.h.
Referenced by process_server().
#define COMMDB_SERVER_STOP "-S" |
Definition at line 880 of file utility.h.
Referenced by process_server().
#define COMMDB_SHUTDOWN_ALL_L "shutdown-all" |
#define COMMDB_SHUTDOWN_SERVER_L "shutdown-server" |
#define COMMDB_SHUTDOWN_SERVER_S 'S' |
#define COMMDB_VERBOSE_OUTPUT "--verbose" |
Definition at line 900 of file utility.h.
Referenced by process_heartbeat_status().
#define COMMDB_VERBOSE_OUTPUT_L "verbose" |
#define COMMDB_VERBOSE_OUTPUT_S 'V' |
#define COMPACT_CLASS_LOCK_TIMEOUT_L "class-lock-timeout" |
#define COMPACT_CLASS_LOCK_TIMEOUT_S 'c' |
Definition at line 1332 of file utility.h.
Referenced by compactdb().
#define COMPACT_DELETE_OLD_REPR_S 'd' |
Definition at line 1328 of file utility.h.
Referenced by compactdb().
#define COMPACT_INPUT_CLASS_FILE_S 'i' |
Definition at line 1320 of file utility.h.
Referenced by compactdb().
#define COMPACT_INSTANCE_LOCK_TIMEOUT_L "Instance-lock-timeout" |
#define COMPACT_INSTANCE_LOCK_TIMEOUT_S 'I' |
Definition at line 1330 of file utility.h.
Referenced by compactdb().
#define COMPACT_PAGES_COMMITED_ONCE_L "pages-commited-once" |
#define COMPACT_PAGES_COMMITED_ONCE_S 'p' |
Definition at line 1326 of file utility.h.
Referenced by compactdb().
#define COMPACT_STANDBY_CS_MODE_S 12000 |
Definition at line 1334 of file utility.h.
Referenced by compactdb().
#define COMPACT_VERBOSE_S 'v' |
Definition at line 1318 of file utility.h.
Referenced by compactdb().
#define COPY_COPY_LOB_PATH_S 10308 |
#define COPY_EXTENTED_VOLUME_PATH_L "extended-volume-path" |
#define COPY_EXTENTED_VOLUME_PATH_S 'E' |
#define COPYLOG_LOG_PATH_S 'L' |
Definition at line 1469 of file utility.h.
Referenced by copylogdb().
#define COPYLOG_MODE_S 'm' |
Definition at line 1471 of file utility.h.
Referenced by copylogdb().
#define COPYLOG_START_PAGEID_S 'S' |
Definition at line 1473 of file utility.h.
Referenced by copylogdb().
#define CREATE_COMMENT_S 10102 |
Definition at line 964 of file utility.h.
Referenced by createdb().
#define CREATE_CSQL_INITIALIZATION_FILE_L "csql-initialization-file" |
#define CREATE_CSQL_INITIALIZATION_FILE_S 10109 |
Definition at line 980 of file utility.h.
Referenced by createdb().
#define CREATE_DB_PAGE_SIZE_L "db-page-size" |
Definition at line 995 of file utility.h.
Referenced by createdb().
#define CREATE_DB_PAGE_SIZE_S 10114 |
Definition at line 994 of file utility.h.
Referenced by createdb().
#define CREATE_DB_VOLUME_SIZE_L "db-volume-size" |
Definition at line 997 of file utility.h.
Referenced by createdb().
#define CREATE_DB_VOLUME_SIZE_S 10115 |
Definition at line 996 of file utility.h.
Referenced by createdb().
#define CREATE_FILE_PATH_S 'F' |
Definition at line 966 of file utility.h.
Referenced by createdb().
#define CREATE_LOB_PATH_S 'B' |
Definition at line 970 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_PAGE_COUNT_L "log-page-count" |
Definition at line 989 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_PAGE_COUNT_S 'l' |
Definition at line 988 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_PAGE_SIZE_L "log-page-size" |
Definition at line 993 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_PAGE_SIZE_S 10113 |
Definition at line 992 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_PATH_S 'L' |
Definition at line 968 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_VOLUME_SIZE_L "log-volume-size" |
Definition at line 999 of file utility.h.
Referenced by createdb().
#define CREATE_LOG_VOLUME_SIZE_S 10116 |
Definition at line 998 of file utility.h.
Referenced by createdb().
#define CREATE_MORE_VOLUME_FILE_S 10107 |
Definition at line 976 of file utility.h.
Referenced by createdb().
#define CREATE_OUTPUT_FILE_S 'o' |
Definition at line 982 of file utility.h.
Referenced by createdb().
#define CREATE_PAGE_SIZE_L "page-size" |
Definition at line 991 of file utility.h.
Referenced by createdb().
#define CREATE_PAGE_SIZE_S 's' |
Definition at line 990 of file utility.h.
Referenced by createdb().
#define CREATE_PAGES_L "pages" |
Definition at line 963 of file utility.h.
Referenced by createdb().
#define CREATE_PAGES_S 'p' |
Definition at line 962 of file utility.h.
Referenced by createdb().
#define CREATE_REPLACE_S 'r' |
Definition at line 974 of file utility.h.
Referenced by createdb().
#define CREATE_SERVER_NAME_S 10105 |
Definition at line 972 of file utility.h.
Referenced by createdb().
#define CREATE_USER_DEFINITION_FILE_L "user-definition-file" |
#define CREATE_USER_DEFINITION_FILE_S 10108 |
Definition at line 978 of file utility.h.
Referenced by createdb().
#define CREATE_VERBOSE_S 'v' |
Definition at line 984 of file utility.h.
Referenced by createdb().
#define CSQL_ERROR_CONTINUE_L "error-continue" |
#define CSQL_INPUT_FILE_L "input-file" |
#define CSQL_LINE_OUTPUT_L "line-output" |
#define CSQL_LOADDB_OUTPUT_L "loaddb-output" |
#define CSQL_NO_AUTO_COMMIT_L "no-auto-commit" |
#define CSQL_NO_AUTO_COMMIT_S 12010 |
#define CSQL_NO_SINGLE_LINE_L "no-single-line" |
#define CSQL_NO_SINGLE_LINE_S 12013 |
#define CSQL_NO_TRIGGER_ACTION_L "no-trigger-action" |
#define CSQL_NO_TRIGGER_ACTION_S 12016 |
#define CSQL_OUTPUT_FILE_L "output-file" |
#define CSQL_PLAIN_OUTPUT_L "plain-output" |
#define CSQL_QUERY_COLUMN_DELIMITER_L "delimiter" |
#define CSQL_QUERY_COLUMN_DELIMITER_S 12018 |
#define CSQL_QUERY_COLUMN_ENCLOSURE_L "enclosure" |
#define CSQL_QUERY_COLUMN_ENCLOSURE_S 12019 |
#define CSQL_QUERY_OUTPUT_L "query-output" |
#define CSQL_READ_ONLY_L "read-only" |
#define CSQL_SINGLE_LINE_L "single-line" |
#define CSQL_SKIP_COL_NAMES_L "skip-column-names" |
#define CSQL_SKIP_VACUUM_L "skip-vacuum" |
#define CSQL_STRING_WIDTH_L "string-width" |
#define CSQL_WRITE_ON_STANDBY_L "write-on-standby" |
#define CSQL_WRITE_ON_STANDBY_S 12015 |
#define DELETE_DELETE_BACKUP_S 'd' |
Definition at line 1032 of file utility.h.
Referenced by deletedb().
#define DELETE_OUTPUT_FILE_S 'o' |
Definition at line 1030 of file utility.h.
Referenced by deletedb().
#define DIAG_DUMP_RECORDS_S 11201 |
#define DUMPLOCALE_ALPHABET_ALL_CASING "both" |
Definition at line 1515 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_ALPHABET_LOWER_L "lower" |
Definition at line 1512 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_ALPHABET_LOWER_S "l" |
Definition at line 1511 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_ALPHABET_S 'a' |
Definition at line 1509 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_ALPHABET_UPPER_L "upper" |
Definition at line 1514 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_ALPHABET_UPPER_S "u" |
Definition at line 1513 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_CALENDAR_S 'd' |
Definition at line 1505 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_COLLATION_S 'c' |
Definition at line 1518 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_CONSOLE_CONV_S 'k' |
Definition at line 1528 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_END_VALUE_S 'e' |
Definition at line 1524 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_IDENTIFIER_ALPHABET_L "identifier-alphabet" |
#define DUMPLOCALE_IDENTIFIER_ALPHABET_S 13000 |
Definition at line 1516 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_INPUT_PATH_S 'i' |
Definition at line 1503 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_NORMALIZATION_S 'z' |
Definition at line 1526 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_NUMBERING_S 'n' |
Definition at line 1507 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_START_VALUE_S 's' |
Definition at line 1522 of file utility.h.
Referenced by dumplocale().
#define DUMPLOCALE_WEIGHT_ORDER_S 'w' |
Definition at line 1520 of file utility.h.
Referenced by dumplocale().
#define GEN_TZ_INPUT_FOLDER_S 'i' |
#define GENLOCALE_INPUT_PATH_S 'i' |
Definition at line 1497 of file utility.h.
Referenced by genlocale().
#define GENLOCALE_VERBOSE_S 'v' |
Definition at line 1499 of file utility.h.
Referenced by genlocale().
#define HIDDEN_CS_MODE_S 15000 |
Definition at line 959 of file utility.h.
Referenced by util_get_library_name().
#define INSTALL_FILE_PATH_S 'F' |
Definition at line 1139 of file utility.h.
Referenced by installdb().
#define INSTALL_LOG_PATH_S 'L' |
Definition at line 1141 of file utility.h.
Referenced by installdb().
#define INSTALL_SERVER_NAME_S 11100 |
Definition at line 1137 of file utility.h.
Referenced by installdb().
#define KILLTRAN_DBA_PASSWORD_S 'p' |
Definition at line 1224 of file utility.h.
Referenced by killtran(), tde(), and util_is_password_argument().
#define KILLTRAN_DISPLAY_INFORMATION_L "display-information" |
#define KILLTRAN_DISPLAY_INFORMATION_S 'd' |
Definition at line 1226 of file utility.h.
Referenced by killtran().
#define KILLTRAN_DISPLAY_QUERY_INFO_S 'q' |
Definition at line 1228 of file utility.h.
Referenced by killtran().
#define KILLTRAN_FORCE_S 'f' |
Definition at line 1230 of file utility.h.
Referenced by killtran().
#define KILLTRAN_KILL_HOST_NAME_S 11702 |
Definition at line 1218 of file utility.h.
Referenced by killtran().
#define KILLTRAN_KILL_PROGRAM_NAME_S 11703 |
Definition at line 1220 of file utility.h.
Referenced by killtran().
#define KILLTRAN_KILL_SQL_ID_S 11704 |
Definition at line 1222 of file utility.h.
Referenced by killtran().
#define KILLTRAN_KILL_TRANSACTION_INDEX_L "kill-transaction-index" |
#define KILLTRAN_KILL_TRANSACTION_INDEX_S 'i' |
Definition at line 1214 of file utility.h.
Referenced by killtran().
#define KILLTRAN_KILL_USER_NAME_S 11701 |
Definition at line 1216 of file utility.h.
Referenced by killtran().
#define LIB_UTIL_CS_NAME "libcubridcs.so" |
Definition at line 1636 of file utility.h.
Referenced by main(), and util_get_library_name().
#define LIB_UTIL_SA_NAME "libcubridsa.so" |
Definition at line 1637 of file utility.h.
Referenced by main(), print_admin_usage(), print_admin_version(), util_get_library_name(), utility_csql_print(), and utility_csql_usage().
#define LOAD_CHECK_ONLY_L "data-file-check-only" |
Definition at line 1239 of file utility.h.
Referenced by loaddb_internal().
#define LOAD_CHECK_ONLY_S 11803 |
Definition at line 1238 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_COMPARE_STORAGE_ORDER_L "compare-storage-order" |
#define LOAD_COMPARE_STORAGE_ORDER_S 11820 |
Definition at line 1272 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_CS_FORCE_LOAD_S 11824 |
Definition at line 1274 of file utility.h.
Referenced by loaddb_internal().
#define LOAD_CS_MODE_S 'C' |
Definition at line 1268 of file utility.h.
Referenced by loaddb_internal().
#define LOAD_DATA_FILE_S 'd' |
Definition at line 1258 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_ERROR_CONTROL_FILE_L "error-control-file" |
Definition at line 1263 of file utility.h.
Referenced by loaddb_internal().
#define LOAD_ERROR_CONTROL_FILE_S 'e' |
Definition at line 1262 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_ESTIMATED_SIZE_S 11805 |
Definition at line 1242 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_IGNORE_CLASS_S 11816 |
Definition at line 1264 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_IGNORE_LOGGING_S 11812 |
Definition at line 1256 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_INDEX_FILE_S 'i' |
Definition at line 1254 of file utility.h.
Referenced by get_loaddb_args(), and loaddb_internal().
#define LOAD_LOAD_ONLY_L "load-only" |
Definition at line 1241 of file utility.h.
Referenced by loaddb_internal().
#define LOAD_LOAD_ONLY_S 'l' |
Definition at line 1240 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_NO_OID_S 11809 |
Definition at line 1250 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_NO_STATISTICS_S 11807 |
Definition at line 1246 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_PASSWORD_S 'p' |
Definition at line 1236 of file utility.h.
Referenced by get_loaddb_args(), and util_is_password_argument().
#define LOAD_PERIODIC_COMMIT_S 'c' |
Definition at line 1248 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_SCHEMA_FILE_S 's' |
Definition at line 1252 of file utility.h.
Referenced by get_loaddb_args(), and loaddb_internal().
#define LOAD_TABLE_NAME_S 't' |
Definition at line 1270 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_TRIGGER_FILE_L "trigger-file" |
Definition at line 1261 of file utility.h.
Referenced by loaddb_internal().
#define LOAD_TRIGGER_FILE_S 11813 |
Definition at line 1260 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_USER_S 'u' |
Definition at line 1234 of file utility.h.
Referenced by get_loaddb_args().
#define LOAD_VERBOSE_S 'v' |
Definition at line 1244 of file utility.h.
Referenced by get_loaddb_args().
#define OPTIMIZE_CLASS_NAME_S 'n' |
Definition at line 1133 of file utility.h.
Referenced by optimizedb().
#define OPTION_STRING_TABLE 10000 |
Definition at line 813 of file utility.h.
Referenced by acldb(), addvoldb(), alterdbhost(), applyinfo(), applylogdb(), backupdb(), changemode(), checkdb(), checksumdb(), compactdb(), copydb(), copylogdb(), createdb(), deletedb(), diagdb(), dumplocale(), gen_tz(), genlocale(), get_loaddb_args(), installdb(), killtran(), lockdb(), optimizedb(), paramdump(), patchdb(), plandump(), renamedb(), restoredb(), restoreslave(), spacedb(), statdump(), synccolldb(), tde(), tranlist(), unloaddb(), util_parse_string_table(), utility_get_option_string_table_size(), utility_get_option_string_value(), and vacuumdb().
#define PARAMDUMP_BOTH_S 'b' |
Definition at line 1439 of file utility.h.
Referenced by paramdump().
#define PARAMDUMP_OUTPUT_FILE_S 'o' |
Definition at line 1437 of file utility.h.
Referenced by paramdump().
#define PATCH_RECREATE_LOG_S 'r' |
#define PLANDUMP_DROP_S 'd' |
Definition at line 1191 of file utility.h.
Referenced by plandump().
#define PLANDUMP_OUTPUT_FILE_S 'o' |
Definition at line 1193 of file utility.h.
Referenced by plandump().
#define PRINT_BROKER_NAME "cubrid broker" |
Definition at line 849 of file utility.h.
Referenced by process_broker().
#define PRINT_CMD_ACL "acl" |
Definition at line 867 of file utility.h.
Referenced by command_string().
#define PRINT_CMD_APPLYLOGDB "applylogdb" |
Definition at line 869 of file utility.h.
Referenced by command_string().
#define PRINT_CMD_BROKER "broker" |
Definition at line 856 of file utility.h.
Referenced by process_broker().
#define PRINT_CMD_COPYLOGDB "copylogdb" |
Definition at line 868 of file utility.h.
Referenced by command_string().
#define PRINT_CMD_DEREG "deregister" |
Definition at line 864 of file utility.h.
Referenced by command_string(), and process_heartbeat_deregister().
#define PRINT_CMD_GETID "getid" |
Definition at line 870 of file utility.h.
Referenced by process_broker().
#define PRINT_CMD_JAVASP "javasp" |
Definition at line 859 of file utility.h.
Referenced by process_javasp_start(), and process_javasp_stop().
#define PRINT_CMD_LIST "list" |
Definition at line 865 of file utility.h.
Referenced by command_string().
#define PRINT_CMD_MANAGER "manager" |
Definition at line 857 of file utility.h.
Referenced by process_manager().
#define PRINT_CMD_RELOAD "reload" |
Definition at line 866 of file utility.h.
Referenced by command_string(), and process_heartbeat_reload().
#define PRINT_CMD_REPLICATION "replication" |
Definition at line 872 of file utility.h.
Referenced by command_string(), and process_heartbeat_replication().
#define PRINT_CMD_SERVER "server" |
Definition at line 858 of file utility.h.
Referenced by process_server().
#define PRINT_CMD_SERVICE "service" |
Definition at line 855 of file utility.h.
Referenced by process_service().
#define PRINT_CMD_START "start" |
Definition at line 861 of file utility.h.
Referenced by command_string(), process_broker(), process_heartbeat_start(), process_javasp_start(), process_master(), process_server(), process_service(), us_hb_applylogdb_start(), us_hb_copylogdb_start(), and us_hb_process_start().
#define PRINT_CMD_STATUS "status" |
Definition at line 863 of file utility.h.
Referenced by command_string(), process_broker(), process_heartbeat_status(), process_javasp_status(), process_server(), process_service(), and us_hb_status_get_options().
#define PRINT_CMD_STOP "stop" |
Definition at line 862 of file utility.h.
Referenced by command_string(), process_broker(), process_heartbeat_stop(), process_javasp_stop(), process_master(), process_server(), process_service(), us_hb_applylogdb_stop(), us_hb_copylogdb_stop(), us_hb_process_stop(), and us_hb_stop_get_options().
#define PRINT_CMD_TEST "test" |
Definition at line 871 of file utility.h.
Referenced by command_string(), and process_broker().
#define PRINT_HA_PROCS_NAME "HA processes" |
Definition at line 853 of file utility.h.
Referenced by us_hb_process_start(), and us_hb_process_stop().
#define PRINT_HEARTBEAT_NAME "cubrid heartbeat" |
Definition at line 851 of file utility.h.
Referenced by process_heartbeat(), process_heartbeat_deregister(), process_heartbeat_reload(), process_heartbeat_replication(), process_heartbeat_start(), process_heartbeat_status(), process_heartbeat_stop(), process_heartbeat_util(), us_hb_status_get_options(), us_hb_stop_get_options(), and us_hb_util_get_options().
#define PRINT_JAVASP_NAME "cubrid javasp" |
Definition at line 852 of file utility.h.
Referenced by process_javasp_start(), process_javasp_status(), and process_javasp_stop().
#define PRINT_MANAGER_NAME "cubrid manager server" |
Definition at line 850 of file utility.h.
Referenced by process_manager().
#define PRINT_MASTER_NAME "cubrid master" |
Definition at line 847 of file utility.h.
Referenced by process_heartbeat_deregister(), process_heartbeat_reload(), process_heartbeat_replication(), process_heartbeat_status(), process_heartbeat_stop(), process_master(), process_server(), and process_service().
#define PRINT_RESULT_FAIL "fail" |
Definition at line 875 of file utility.h.
Referenced by print_result(), and process_master().
#define PRINT_RESULT_SUCCESS "success" |
Definition at line 874 of file utility.h.
Referenced by print_result().
#define PRINT_SERVER_NAME "cubrid server" |
Definition at line 848 of file utility.h.
Referenced by process_server(), us_hb_server_start(), and us_hb_server_stop().
#define PRINT_SERVICE_NAME "cubrid service" |
Definition at line 846 of file utility.h.
Referenced by process_service().
#define PROPERTY_OFF "off" |
Definition at line 843 of file utility.h.
Referenced by load_properties().
#define PROPERTY_ON "on" |
Definition at line 842 of file utility.h.
Referenced by check_all_services_status(), load_properties(), and process_service().
#define RENAME_CONTROL_FILE_S 'i' |
Definition at line 1004 of file utility.h.
Referenced by renamedb().
#define RENAME_DELETE_BACKUP_S 'd' |
Definition at line 1006 of file utility.h.
Referenced by renamedb().
#define RENAME_EXTENTED_VOLUME_PATH_L "extended-volume-path" |
#define RENAME_EXTENTED_VOLUME_PATH_S 'E' |
Definition at line 1002 of file utility.h.
Referenced by renamedb().
#define RESTORE_BACKUP_FILE_PATH_S 'B' |
Definition at line 1067 of file utility.h.
Referenced by restoredb().
#define RESTORE_KEYS_FILE_PATH_S 'k' |
Definition at line 1077 of file utility.h.
Referenced by restoredb(), and restoreslave().
#define RESTORE_LEVEL_S 'l' |
Definition at line 1069 of file utility.h.
Referenced by restoredb().
#define RESTORE_LIST_S 10601 |
Definition at line 1065 of file utility.h.
Referenced by restoredb().
#define RESTORE_OUTPUT_FILE_S 'o' |
Definition at line 1073 of file utility.h.
Referenced by restoredb().
#define RESTORE_PARTIAL_RECOVERY_S 'p' |
Definition at line 1071 of file utility.h.
Referenced by restoredb().
#define RESTORE_UP_TO_DATE_S 'd' |
Definition at line 1063 of file utility.h.
Referenced by restoredb().
#define RESTORE_USE_DATABASE_LOCATION_PATH_L "use-database-location-path" |
#define RESTORE_USE_DATABASE_LOCATION_PATH_S 'u' |
Definition at line 1075 of file utility.h.
Referenced by restoredb().
#define RESTORESLAVE_BACKUP_FILE_PATH_L "backup-file-path" |
#define RESTORESLAVE_BACKUP_FILE_PATH_S 'B' |
Definition at line 1565 of file utility.h.
Referenced by restoreslave().
#define RESTORESLAVE_LIST_S 10601 |
Definition at line 1563 of file utility.h.
Referenced by restoreslave().
#define RESTORESLAVE_MASTER_HOST_NAME_L "master-host-name" |
#define RESTORESLAVE_MASTER_HOST_NAME_S 'm' |
Definition at line 1561 of file utility.h.
Referenced by restoreslave().
#define RESTORESLAVE_OUTPUT_FILE_S 'o' |
Definition at line 1567 of file utility.h.
Referenced by restoreslave().
#define RESTORESLAVE_SOURCE_STATE_S 's' |
Definition at line 1559 of file utility.h.
Referenced by restoreslave().
#define RESTORESLAVE_USE_DATABASE_LOCATION_PATH_L "use-database-location-path" |
#define RESTORESLAVE_USE_DATABASE_LOCATION_PATH_S 'u' |
Definition at line 1569 of file utility.h.
Referenced by restoreslave().
#define STATDUMP_CUMULATIVE_S 'c' |
Definition at line 1451 of file utility.h.
Referenced by statdump().
#define STATDUMP_INTERVAL_S 'i' |
Definition at line 1449 of file utility.h.
Referenced by statdump().
#define STATDUMP_OUTPUT_FILE_S 'o' |
Definition at line 1447 of file utility.h.
Referenced by statdump().
#define STATDUMP_SUBSTR_S 's' |
Definition at line 1453 of file utility.h.
Referenced by statdump().
#define SYNCCOLL_CHECK_S 'c' |
Definition at line 1532 of file utility.h.
Referenced by synccolldb().
#define SYNCCOLL_FORCESYNC_S 'f' |
Definition at line 1534 of file utility.h.
Referenced by synccolldb().
#define TDE_CS_MODE_S HIDDEN_CS_MODE_S |
#define TDE_DBA_PASSWORD_S 'p' |
Definition at line 1621 of file utility.h.
Referenced by util_is_password_argument().
#define TRANLIST_FULL_SQL_S 'f' |
Definition at line 1209 of file utility.h.
Referenced by tranlist().
#define TRANLIST_REVERSE_S 'r' |
Definition at line 1207 of file utility.h.
Referenced by tranlist().
#define TRANLIST_SORT_KEY_S 'k' |
Definition at line 1205 of file utility.h.
Referenced by tranlist().
#define TRANLIST_SUMMARY_S 's' |
Definition at line 1203 of file utility.h.
Referenced by tranlist().
#define UNLOAD_CACHED_PAGES_S 11905 |
Definition at line 1288 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_DATA_ONLY_S 'd' |
Definition at line 1294 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_DATAFILE_PER_CLASS_S 11915 |
Definition at line 1308 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_ESTIMATED_SIZE_S 11904 |
Definition at line 1286 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_HASH_FILE_S 11910 |
Definition at line 1298 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_INCLUDE_REFERENCE_S 11901 |
Definition at line 1280 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_INPUT_CLASS_FILE_S 'i' |
Definition at line 1278 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_INPUT_CLASS_ONLY_S 11902 |
Definition at line 1282 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_KEEP_STORAGE_ORDER_S 11918 |
Definition at line 1314 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_LO_COUNT_S 11903 |
Definition at line 1284 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_OUTPUT_PATH_S 'O' |
Definition at line 1290 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_OUTPUT_PREFIX_S 11909 |
Definition at line 1296 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_PASSWORD_S 'p' |
Definition at line 1312 of file utility.h.
Referenced by unloaddb(), and util_is_password_argument().
#define UNLOAD_SCHEMA_ONLY_S 's' |
Definition at line 1292 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_USE_DELIMITER_S 11912 |
Definition at line 1302 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_USER_S 'u' |
Definition at line 1310 of file utility.h.
Referenced by unloaddb().
#define UNLOAD_VERBOSE_S 'v' |
Definition at line 1300 of file utility.h.
Referenced by unloaddb().
#define UTIL_ADMIN_NAME "cub_admin" UTIL_EXE_EXT |
Definition at line 832 of file utility.h.
Referenced by main(), process_admin(), process_server(), us_hb_applylogdb_start(), us_hb_applylogdb_stop(), us_hb_copylogdb_start(), and us_hb_copylogdb_stop().
#define UTIL_APPLYLOGDB "applylogdb" UTIL_EXE_EXT |
Definition at line 839 of file utility.h.
Referenced by us_hb_applylogdb_start(), and us_hb_applylogdb_stop().
#define UTIL_BROKER_NAME "cubrid_broker" UTIL_EXE_EXT |
Definition at line 828 of file utility.h.
Referenced by process_broker().
#define UTIL_COMMDB_NAME "cub_commdb" UTIL_EXE_EXT |
Definition at line 826 of file utility.h.
Referenced by check_server(), ha_is_registered(), main(), process_heartbeat_deregister(), process_heartbeat_reload(), process_heartbeat_replication(), process_heartbeat_start(), process_heartbeat_status(), process_master(), process_server(), us_hb_applylogdb_start(), us_hb_applylogdb_stop(), us_hb_copylogdb_start(), us_hb_copylogdb_stop(), and us_hb_deactivate().
#define UTIL_COPYLOGDB "copylogdb" UTIL_EXE_EXT |
Definition at line 838 of file utility.h.
Referenced by us_hb_copylogdb_start(), and us_hb_copylogdb_stop().
#define UTIL_CSQL_NAME "csql" UTIL_EXE_EXT |
Definition at line 834 of file utility.h.
Referenced by csql_do_session_cmd(), main(), and utility_csql_usage().
#define UTIL_CUB_MANAGER_NAME "cub_manager" UTIL_EXE_EXT |
Definition at line 831 of file utility.h.
Referenced by is_manager_running(), and process_manager().
#define UTIL_CUBRID "cubrid" UTIL_EXE_EXT |
#define UTIL_CUBRID_NAME "cub_server" UTIL_EXE_EXT |
Definition at line 827 of file utility.h.
Referenced by process_server().
#define UTIL_JAVASP_NAME "cub_javasp" UTIL_EXE_EXT |
Definition at line 840 of file utility.h.
Referenced by is_javasp_running(), process_javasp_start(), process_javasp_status(), and process_javasp_stop().
#define UTIL_MASTER_NAME "cub_master" UTIL_EXE_EXT |
Definition at line 825 of file utility.h.
Referenced by process_master().
#define UTIL_MONITOR_NAME "broker_monitor" UTIL_EXE_EXT |
Definition at line 829 of file utility.h.
Referenced by is_broker_running(), and process_broker().
#define UTIL_OLD_COMMDB_NAME "commdb" UTIL_EXE_EXT |
#define UTIL_OPTION_ACLDB "acldb" |
Definition at line 948 of file utility.h.
Referenced by process_server().
#define UTIL_SQLX_NAME "sqlx" UTIL_EXE_EXT |
#define UTIL_TESTER_NAME "broker_tester" UTIL_EXE_EXT |
Definition at line 830 of file utility.h.
Referenced by process_broker().
#define UTILITY_ADMIN_USAGE_FUNC_NAME "util_admin_usage" |
Definition at line 1642 of file utility.h.
Referenced by print_admin_usage().
#define UTILITY_ADMIN_VERSION_FUNC_NAME "util_admin_version" |
Definition at line 1643 of file utility.h.
Referenced by print_admin_version().
#define UTILITY_GENERIC_MSG_FUNC_NAME "utility_get_generic_message" |
Definition at line 1640 of file utility.h.
Referenced by utility_csql_print().
#define UTILITY_INIT_FUNC_NAME "utility_initialize" |
Definition at line 1641 of file utility.h.
Referenced by utility_load_library().
#define VACUUM_DUMP_S 10700 |
Definition at line 1579 of file utility.h.
Referenced by vacuumdb().
#define VACUUM_OUTPUT_FILE_S 'o' |
Definition at line 1581 of file utility.h.
Referenced by vacuumdb().
typedef void* DSO_HANDLE |
typedef struct _ha_config HA_CONF |
typedef struct _node_config HA_NODE_CONF |
typedef int(* UTILITY_FUNCTION) (UTIL_FUNCTION_ARG *) |
enum MSGCAT_ACLDB_MSG |
enum MSGCAT_ADDVOLDB_MSG |
enum MSGCAT_APPLYINFO_MSG |
enum MSGCAT_BACKUPDB_MSG |
enum MSGCAT_CHECKDB_MSG |
enum MSGCAT_COMMDB_MSG |
enum MSGCAT_COMPACTDB_MSG |
enum MSGCAT_COPYDB_MSG |
enum MSGCAT_COPYLOGDB_MSG |
enum MSGCAT_CREATEDB_MSG |
enum MSGCAT_DELETEDB_MSG |
enum MSGCAT_DELVOLDB_MSG |
enum MSGCAT_DIAGDB_MSG |
enum MSGCAT_DUMP_TZ_MSG |
enum MSGCAT_GEN_TZ_MSG |
enum MSGCAT_GENLOCALE_MSG |
enum MSGCAT_INSTALLDB_MSG |
enum MSGCAT_KILLTRAN_MSG |
enum MSGCAT_LOADDB_MSG |
enum MSGCAT_LOADJAVA_MSG |
enum MSGCAT_LOCKDB_MSG |
enum MSGCAT_MASTER_MSG |
enum MSGCAT_MIGDB_MSG |
enum MSGCAT_PARAMDUMP_MSG |
enum MSGCAT_PATCHDB_MSG |
enum MSGCAT_PLANDUMP_MSG |
enum MSGCAT_RENAMEDB_MSG |
enum MSGCAT_RESTOREDB_MSG |
enum MSGCAT_SPACEDB_MSG |
enum MSGCAT_STATDUMP_MSG |
enum MSGCAT_TDE_MSG |
enum MSGCAT_TRANLIST_MSG |
enum MSGCAT_UNLOADDB_MSG |
enum MSGCAT_UTIL_SET |
enum MSGCAT_VACUUMDB_MSG |
enum UTIL_ARG_TYPE |
enum UTIL_INDEX |
int acldb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1128 of file util_cs.c.
References acl_dump(), acl_reload(), ACLDB_MSG_NOT_IN_STANDALONE, ACLDB_MSG_USAGE, ACLDB_RELOAD_S, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_ACLDB, NO_ERROR, NULL, OPTION_STRING_TABLE, TRUE, utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int addvoldb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 355 of file util_cs.c.
References ADDVOL_COMMENT_S, ADDVOL_FILE_PATH_S, ADDVOL_MAX_WRITESIZE_IN_SEC_S, ADDVOL_PURPOSE_S, ADDVOL_SA_MODE_S, ADDVOL_VOLUME_NAME_S, ADDVOL_VOLUME_SIZE_S, ADDVOLDB_INVALID_MAX_WRITESIZE_IN_SEC, ADDVOLDB_MSG_BAD_NPAGES, ADDVOLDB_MSG_BAD_PURPOSE, ADDVOLDB_MSG_USAGE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), check_volume_name(), UTIL_FUNCTION_ARG::command_name, dbdef_vol_ext_info::comments, database_name, db_add_volume_ex(), DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), DB_PERMANENT_DATA_PURPOSE, db_restart(), db_set_client_type(), db_shutdown(), DB_TEMPORARY_DATA_PURPOSE, er_init(), ER_NEVER_EXIT, IO_PAGESIZE, dbdef_vol_ext_info::max_npages, dbdef_vol_ext_info::max_writesize_in_sec, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_ADDVOLDB, dbdef_vol_ext_info::name, NO_ERROR, NULL, ONE_K, OPTION_STRING_TABLE, dbdef_vol_ext_info::overwrite, dbdef_vol_ext_info::path, PRINT_AND_LOG_ERR_MSG, prm_get_bigint_value(), prm_get_name(), PRM_ID_DB_VOLUME_SIZE, PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_PB_NBUFFERS, dbdef_vol_ext_info::purpose, sysprm_set_force(), TRUE, util_log_write_errid(), util_print_deprecated(), util_size_string_to_byte(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int alterdbhost | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1896 of file util_sa.c.
References ALTERDBHOST_HOST_S, ALTERDBHOST_MSG_USAGE, ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, basename(), BO_DB_FULLNAME, cfg_find_db_list(), cfg_free_directory(), cfg_free_hosts(), cfg_get_hosts(), cfg_maycreate_get_directory_filename(), cfg_read_directory(), cfg_read_directory_ex(), cfg_write_directory(), cfg_write_directory_ex(), check_database_name(), COMPOSE_FULL_NAME(), CUB_MAXHOSTNAMELEN, db_error_string(), db_name, ER_BO_UNABLE_TO_FIND_HOSTNAME, ER_BO_UNKNOWN_DATABASE, ER_ERROR_SEVERITY, er_init(), ER_NEVER_EXIT, er_set(), er_set_with_oserror(), error(), fileio_dismount(), fileio_get_base_file_name(), fileio_is_volume_exist(), fileio_mount(), GETHOSTNAME, database_info::hosts, LOG_DBLOG_ACTIVE_VOLID, LOG_DBTXT_VOLID, log_Name_active, database_info::logpath, logpb_initialize_log_names(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_ALTERDBHOST, NO_ERROR, NULL, NULL_VOLDES, OPTION_STRING_TABLE, database_info::pathname, PRINT_AND_LOG_ERR_MSG, util_log_write_errid(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int applyinfo | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 3130 of file util_cs.c.
References APPLYINFO_APPLIED_INFO_S, APPLYINFO_COPIED_LOG_PATH_S, APPLYINFO_INTERVAL_S, APPLYINFO_MSG_HA_NOT_SUPPORT, APPLYINFO_MSG_NOT_HA_MODE, APPLYINFO_MSG_NOT_IN_STANDALONE, APPLYINFO_MSG_USAGE, APPLYINFO_PAGE_S, APPLYINFO_REMOTE_NAME_S, APPLYINFO_VERBOSE_S, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, CUB_MAXHOSTNAMELEN, database_name, db_clear_host_connected(), DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, error(), HA_DISABLED, HA_GET_MODE, HA_MODE_REPLICA, intr_handler(), is_Sigint_caught, la_log_page_check(), la_print_delay_info(), LSA_ISNULL(), LSA_SET_NULL(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_INVALID_PARAMETER, MSGCAT_UTIL_GENERIC_SERVICE_PROPERTY_FAIL, MSGCAT_UTIL_SET_APPLYINFO, MSGCAT_UTIL_SET_GENERIC, NO_ERROR, NULL, OPTION_STRING_TABLE, os_set_signal_handler(), log_lsa::pageid, PRINT_AND_LOG_ERR_MSG, prm_get_name(), prm_get_string_value(), PRM_ID_HA_REPLICA_TIME_BOUND, start_time, SYSPRM_LOAD_ALL, sysprm_load_and_init(), TRUE, util_log_write_errid(), util_str_to_time_since_epoch(), utility_get_option_bigint_value(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int applylogdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2862 of file util_cs.c.
References APPLYLOG_LOG_PATH_S, APPLYLOG_MAX_MEM_SIZE_S, APPLYLOGDB_MSG_HA_NOT_SUPPORT, APPLYLOGDB_MSG_NOT_HA_MODE, APPLYLOGDB_MSG_NOT_IN_STANDALONE, APPLYLOGDB_MSG_USAGE, ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_LOG_APPLIER, db_disable_trigger(), db_error_string(), db_login(), db_restart(), db_set_client_type(), db_set_lock_timeout(), db_shutdown(), envvar_bindir_file(), ER_BO_CONNECT_FAILED, er_errid(), ER_FAILED, er_init(), ER_LC_PARTIALLY_FAILED_TO_FLUSH, er_log_debug, ER_NET_CANT_CONNECT_SERVER, ER_NET_SERVER_COMM_ERROR, ER_NET_SERVER_CRASHED, ER_NEVER_EXIT, ERR_CSS_TCP_CANNOT_CONNECT_TO_MASTER, error(), executable_path, HA_DISABLED, HA_GET_MODE, HA_MODE_REPLICA, hb_Proc_shutdown, hb_process_init(), HB_PTYPE_APPLYLOGDB, hb_set_argv(), hb_set_exec_path(), la_apply_log_file(), la_force_shutdown(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_INVALID_PARAMETER, MSGCAT_UTIL_GENERIC_SERVICE_PROPERTY_FAIL, MSGCAT_UTIL_SET_APPLYLOGDB, MSGCAT_UTIL_SET_GENERIC, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), prm_get_string_value(), PRM_ID_HA_REPLICA_TIME_BOUND, strdup(), SYSPRM_LOAD_ALL, sysprm_load_and_init(), TRUE, util_log_write_errid(), util_log_write_errstr(), util_redirect_stdout_to_null(), util_str_to_time_since_epoch(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
Compare two host names if are equal, if one of the host names is canonical name and the other is not, then only host part (e.g. for canonical name "host-1.cubrid.org" host part is "host-1") is used for comparison
for example following hosts are equal: "host-1" "host-1" "host-1" "host-1.cubrid.org" "host-1.cubrid.org" "host-1" "host-1.cubrid.org" "host-1.cubrid.org"
for example following hosts are not equal: "host-1" "host-2" "host-1.cubrid.org" "host-2" "host-1" "host-2.cubrid.org" "host-1.cubrid.org" "host-2.cubrid.org" "host-1.cubrid.org" "host-1.cubrid.com"
hostname_a | first hostname |
hostname_b | second hostname |
Definition at line 449 of file util_common.c.
Referenced by hb_add_node_to_cluster(), hb_check_ping(), hb_cluster_cleanup(), hb_cluster_load_group_and_node_list(), hb_cluster_receive_heartbeat(), hb_cluster_request_heartbeat_to_all(), hb_reload_config(), hb_return_node_by_name(), hb_return_node_by_name_except_me(), hb_return_ui_node(), and util_is_localhost().
int backupdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 121 of file util_cs.c.
References ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, assert, AU_DISABLE_PASSWORDS, BACKUP_COMPRESS_S, BACKUP_DESTINATION_PATH_S, BACKUP_LEVEL_S, BACKUP_NO_CHECK_S, BACKUP_OUTPUT_FILE_S, BACKUP_REMOVE_ARCHIVE_S, BACKUP_SA_MODE_S, BACKUP_SEPARATE_KEYS_S, BACKUP_SLEEP_MSECS_S, BACKUP_THREAD_COUNT_S, BACKUPDB_FIFO_KEYS_NOT_SUPPORTED, BACKUPDB_INVALID_PATH, BACKUPDB_INVALID_THREAD_NUM_OPT, BACKUPDB_MSG_USAGE, BACKUPDB_NOT_USING_SEPARATE_KEYS, backupdb_sig_interrupt_handler(), BACKUPDB_USING_SEPARATE_KEYS, basename(), boot_backup(), boot_check_db_consistency(), check_database_name(), CHECKDB_BTREE_CHECK_ALL_BTREES, CHECKDB_CT_CHECK_CAT_CONSISTENCY, CHECKDB_FILE_TRACKER_CHECK, CHECKDB_HEAP_CHECK_ALLHEAPS, CHECKDB_LC_CHECK_CLASSNAMES, CHECKDB_MSG_INCONSISTENT, UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_restart(), db_set_client_type(), db_set_isolation(), db_shutdown(), dirname(), ER_ERROR_SEVERITY, ER_GENERIC_ERROR, er_get_msglog_filename(), er_init(), ER_NEVER_EXIT, er_set(), FILEIO_BACKUP_FULL_LEVEL, FILEIO_BACKUP_NUM_THREADS_AUTO, FILEIO_BACKUP_SLEEP_MSECS_AUTO, FILEIO_BACKUP_UNDEFINED_LEVEL, FILEIO_ZIP_LZ4_DEFAULT_LEVEL, FILEIO_ZIP_LZ4_METHOD, FILEIO_ZIP_NONE_LEVEL, FILEIO_ZIP_NONE_METHOD, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_BACKUPDB, MSGCAT_UTIL_SET_CHECKDB, NO_ERROR, NULL, OPTION_STRING_TABLE, os_set_signal_handler(), PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, sysprm_set_force(), TRAN_READ_COMMITTED, TRUE, util_log_write_errid(), util_log_write_warnstr(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int changemode | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2486 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), boot_change_ha_mode(), CHANGEMODE_FORCE_S, changemode_keyword(), CHANGEMODE_MODE_S, CHANGEMODE_MSG_BAD_MODE, CHANGEMODE_MSG_HA_NOT_SUPPORT, CHANGEMODE_MSG_NOT_HA_MODE, CHANGEMODE_MSG_NOT_IN_STANDALONE, CHANGEMODE_MSG_SERVER_MODE, CHANGEMODE_MSG_USAGE, CHANGEMODE_TIMEOUT_S, check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, error(), HA_CHANGE_MODE_DEFAULT_TIMEOUT_IN_SECS, HA_DISABLED, HA_SERVER_STATE_ACTIVE, HA_SERVER_STATE_MAINTENANCE, HA_SERVER_STATE_NA, HA_SERVER_STATE_STANDBY, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_CHANGEMODE, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int changemode_keyword | ( | int * | keyval_p, |
char ** | keystr_p | ||
) |
Definition at line 555 of file util_common.c.
References HA_SERVER_STATE_ACTIVE, HA_SERVER_STATE_ACTIVE_STR, HA_SERVER_STATE_DEAD, HA_SERVER_STATE_DEAD_STR, HA_SERVER_STATE_IDLE, HA_SERVER_STATE_IDLE_STR, HA_SERVER_STATE_MAINTENANCE, HA_SERVER_STATE_MAINTENANCE_STR, HA_SERVER_STATE_STANDBY, HA_SERVER_STATE_STANDBY_STR, HA_SERVER_STATE_TO_BE_ACTIVE, HA_SERVER_STATE_TO_BE_ACTIVE_STR, HA_SERVER_STATE_TO_BE_STANDBY, HA_SERVER_STATE_TO_BE_STANDBY_STR, keywords, NULL, and utility_keyword_search().
Referenced by changemode().
int check_database_name | ( | const char * | name | ) |
Definition at line 99 of file util_common.c.
References check_database_name_local(), and EXISTING_DATABASE.
Referenced by acldb(), addvoldb(), alterdbhost(), applyinfo(), applylogdb(), backupdb(), changemode(), checkdb(), checksumdb(), copydb(), copylogdb(), deletedb(), diagdb(), gen_tz(), installdb(), killtran(), lockdb(), main(), optimizedb(), paramdump(), patchdb(), plandump(), renamedb(), spacedb(), statdump(), synccolldb(), tde(), tranlist(), and vacuumdb().
int check_new_database_name | ( | const char * | name | ) |
Definition at line 110 of file util_common.c.
References check_database_name_local(), and NEW_DATABASE.
Referenced by copydb(), createdb(), and renamedb().
int check_volume_name | ( | const char * | name | ) |
Definition at line 161 of file util_common.c.
References ER_GENERIC_ERROR, i, MSGCAT_UTIL_GENERIC_BAD_VOLUME_NAME, NO_ERROR, NULL, PRINT_AND_LOG_ERR_MSG, and utility_get_generic_message().
Referenced by addvoldb().
int checkdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 621 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), boot_check_db_consistency(), BTID_SET_NULL, CHECK_BTREE_ALL_BTREES_S, CHECK_CAT_CONSISTENCY_S, CHECK_CHECK_PREV_LINK_S, check_database_name(), CHECK_FILE_TRACKER_S, CHECK_HEAP_ALLHEAPS_S, CHECK_INDEXNAME_S, CHECK_INPUT_FILE_S, CHECK_LC_ALLENTRIES_OF_ALLBTREES_S, CHECK_LC_CLASSNAMES_S, CHECK_REPAIR_PREV_LINK_S, CHECK_REPAIR_S, CHECKDB_ALL_CHECK_EXCEPT_PREV_LINK, CHECKDB_BTREE_CHECK_ALL_BTREES, CHECKDB_CHECK_PREV_LINK, CHECKDB_CT_CHECK_CAT_CONSISTENCY, CHECKDB_FILE_TRACKER_CHECK, CHECKDB_HEAP_CHECK_ALLHEAPS, CHECKDB_LC_CHECK_ALLENTRIES_OF_ALLBTREES, CHECKDB_LC_CHECK_CLASSNAMES, CHECKDB_MSG_INCONSISTENT, CHECKDB_MSG_USAGE, CHECKDB_REPAIR, CHECKDB_REPAIR_PREV_LINK, UTIL_FUNCTION_ARG::command_name, da_add(), da_create(), da_destroy(), da_size(), database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_restart(), db_set_client_type(), db_set_isolation(), db_shutdown(), er_get_msglog_filename(), er_init(), ER_NEVER_EXIT, i, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_NO_MEM, MSGCAT_UTIL_SET_CHECKDB, NO_ERROR, NULL, OPTION_STRING_TABLE, p, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, SM_MAX_IDENTIFIER_LENGTH, strncpy_bufsize, sysprm_set_force(), TRAN_READ_COMMITTED, TRUE, util_get_class_oids_and_index_btid(), util_get_table_list_from_file(), util_log_write_errid(), util_log_write_errstr(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int checksumdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2068 of file checksumdb.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, assert, AU_DISABLE_PASSWORDS, basename(), begin(), check_database_name(), CHECKSUM_CHUNK_SIZE_S, CHECKSUM_CONT_ON_ERROR_S, CHECKSUM_EXCLUDE_CLASS_FILE_S, CHECKSUM_INCLUDE_CLASS_FILE_S, CHECKSUM_REPORT_ONLY_S, CHECKSUM_RESUME_S, CHECKSUM_SCHEMA_ONLY_S, CHECKSUM_SLEEP_S, CHECKSUM_TABLE_NAME_S, CHECKSUM_TIMEOUT_S, CHECKSUMDB_MSG_HA_NOT_SUPPORT, CHECKSUMDB_MSG_INVALID_INPUT_FILE, CHECKSUMDB_MSG_MUST_RUN_ON_ACTIVE, CHECKSUMDB_MSG_NOT_IN_STANDALONE, CHECKSUMDB_MSG_USAGE, CHKSUM_DEFAULT_LIST_SIZE, CHKSUM_DEFAULT_TABLE_NAME, CHKSUM_MIN_CHUNK_SIZE, chksum_report(), chksum_result_Table_name, chksum_schema_Table_name, CHKSUM_SCHEMA_TABLE_SUFFIX, chksum_start(), chksum_arg::chunk_size, UTIL_FUNCTION_ARG::command_name, chksum_arg::cont_on_err, css_ha_server_state(), css_ha_server_state_string(), da_create(), da_destroy(), database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_set_isolation(), db_set_lock_timeout(), db_shutdown(), ER_FAILED, er_init(), ER_NEVER_EXIT, error(), chksum_arg::exclude_list, HA_SERVER_STATE_ACTIVE, HA_SERVER_STATE_NA, chksum_arg::include_list, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_SERVICE_PROPERTY_FAIL, MSGCAT_UTIL_SET_CHECKSUMDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, chksum_arg::resume, chksum_arg::schema_only, chksum_arg::sleep_msecs, sm_check_name(), SM_MAX_IDENTIFIER_LENGTH, SYSPRM_LOAD_ALL, sysprm_load_and_init(), chksum_arg::timeout_msecs, TRAN_REPEATABLE_READ, TRUE, util_get_table_list_from_file(), util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int compactdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 98 of file compactdb.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, UTIL_FUNCTION_ARG::command_name, COMPACT_CLASS_LOCK_TIMEOUT_S, COMPACT_CLASS_MAX_LOCK_TIMEOUT, COMPACT_CLASS_MIN_LOCK_TIMEOUT, COMPACT_DELETE_OLD_REPR_S, COMPACT_INPUT_CLASS_FILE_S, COMPACT_INSTANCE_LOCK_TIMEOUT_S, COMPACT_INSTANCE_MAX_LOCK_TIMEOUT, COMPACT_INSTANCE_MIN_LOCK_TIMEOUT, COMPACT_MAX_PAGES, COMPACT_MIN_PAGES, COMPACT_PAGES_COMMITED_ONCE_S, COMPACT_STANDBY_CS_MODE_S, compact_usage(), COMPACT_VERBOSE_S, COMPACTDB_MSG_FAILURE, COMPACTDB_MSG_OUT_OF_RANGE_CLASS_LOCK_TIMEOUT, COMPACTDB_MSG_OUT_OF_RANGE_INSTANCE_LOCK_TIMEOUT, COMPACTDB_MSG_OUT_OF_RANGE_PAGES, compactdb_start(), compactdb_usage(), database_name, DB_CLIENT_TYPE_ADMIN_COMPACTDB_WOS, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), DB_PAGESIZE, db_restart(), db_set_client_type(), db_set_isolation(), db_shutdown(), ER_FAILED, ER_GENERIC_ERROR, error(), i, input_filename, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_COMPACTDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, sysprm_set_force(), TRAN_DEFAULT_ISOLATION_LEVEL, TRUE, util_log_write_errstr(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), and verbose_flag.
int copydb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1236 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), boot_copy(), boot_delete(), boot_get_lob_path(), check_database_name(), check_new_database_name(), UTIL_FUNCTION_ARG::command_name, COPY_CONTROL_FILE_S, COPY_COPY_LOB_PATH_S, COPY_DELETE_SOURCE_S, COPY_EXTENTED_VOLUME_PATH_S, COPY_FILE_PATH_S, COPY_LOB_PATH_S, COPY_LOG_PATH_S, COPY_REPLACE_S, COPY_SERVER_NAME_S, COPYDB_MSG_IDENTICAL, COPYDB_MSG_USAGE, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), ER_ALL_FINAL, er_final(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_COPYDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_PB_NBUFFERS, sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int copylogdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2633 of file util_cs.c.
References ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, COPYLOG_LOG_PATH_S, COPYLOG_MODE_S, COPYLOG_START_PAGEID_S, copylogdb_keyword(), COPYLOGDB_MSG_BAD_MODE, COPYLOGDB_MSG_HA_NOT_SUPPORT, COPYLOGDB_MSG_NOT_IN_STANDALONE, COPYLOGDB_MSG_USAGE, database_name, DB_CLIENT_TYPE_LOG_COPIER, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), envvar_bindir_file(), ER_BO_CONNECT_FAILED, er_errid(), ER_FAILED, er_init(), er_log_debug, ER_NET_CANT_CONNECT_SERVER, ER_NET_SERVER_CRASHED, ER_NEVER_EXIT, ERR_CSS_TCP_CANNOT_CONNECT_TO_MASTER, ERR_CSS_TCP_CONNECT_TIMEDOUT, error(), executable_path, HA_DISABLED, hb_Proc_shutdown, hb_process_init(), HB_PTYPE_COPYLOGDB, hb_set_argv(), hb_set_exec_path(), logwr_copy_log_file(), logwr_force_shutdown(), LOGWR_MODE_ASYNC, LOGWR_MODE_SEMISYNC, LOGWR_MODE_SYNC, mode, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_COPYLOGDB, NO_ERROR, NULL, NULL_PAGEID, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_ER_LOG_FILE, PRM_ID_LOG_BACKGROUND_ARCHIVING, SYSPRM_LOAD_ALL, sysprm_load_and_init(), sysprm_set_force(), sysprm_set_to_default(), TRUE, util_log_write_errid(), util_log_write_errstr(), util_redirect_stdout_to_null(), utility_get_option_bigint_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int copylogdb_keyword | ( | int * | keyval_p, |
char ** | keystr_p | ||
) |
Definition at line 536 of file util_common.c.
References keywords, LOGWR_MODE_ASYNC, LOGWR_MODE_SEMISYNC, LOGWR_MODE_SYNC, NULL, and utility_keyword_search().
Referenced by copylogdb(), and util_make_ha_conf().
int createdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 303 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, au_dump_to_file(), au_force_write_new_auth(), CSQL_ARGUMENT::auto_commit, basename(), catcls_compile_catalog_classes(), catcls_Enable, char_isdigit(), check_new_database_name(), tz_data::checksum, UTIL_FUNCTION_ARG::command_name, CREATE_COMMENT_S, CREATE_CSQL_INITIALIZATION_FILE_S, CREATE_DB_PAGE_SIZE_L, CREATE_DB_PAGE_SIZE_S, CREATE_DB_VOLUME_SIZE_L, CREATE_DB_VOLUME_SIZE_S, CREATE_FILE_PATH_S, CREATE_LOB_PATH_S, CREATE_LOG_PAGE_COUNT_L, CREATE_LOG_PAGE_COUNT_S, CREATE_LOG_PAGE_SIZE_L, CREATE_LOG_PAGE_SIZE_S, CREATE_LOG_PATH_S, CREATE_LOG_VOLUME_SIZE_L, CREATE_LOG_VOLUME_SIZE_S, CREATE_MORE_VOLUME_FILE_S, CREATE_OUTPUT_FILE_S, CREATE_PAGE_SIZE_L, CREATE_PAGE_SIZE_S, CREATE_PAGES_L, CREATE_PAGES_S, CREATE_REPLACE_S, CREATE_SERVER_NAME_S, CREATE_USER_DEFINITION_FILE_S, CREATE_VERBOSE_S, CREATEDB_MSG_BAD_OUTPUT, CREATEDB_MSG_BAD_RANGE, CREATEDB_MSG_BAD_USERFILE, CREATEDB_MSG_CREATING, CREATEDB_MSG_FAILURE, CREATEDB_MSG_INVALID_SIZE, CREATEDB_MSG_USAGE, csql(), database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_init(), db_login(), CSQL_ARGUMENT::db_name, db_page_size(), db_set_client_type(), db_shutdown(), DISK_SECTOR_NPAGES, disk_sectors_to_extend_npages(), er_init(), ER_NEVER_EXIT, CSQL_ARGUMENT::in_file_name, IO_PAGESIZE, lang_db_put_charset(), make_valid_page_size(), max, tf_meta_class::mc_n_variable, min, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_SERVICE_PROPERTY_FAIL, MSGCAT_UTIL_SET_CREATEDB, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, parse_user_define_file(), PRINT_AND_LOG_ERR_MSG, prm_get_bigint_value(), prm_get_name(), PRM_ID_DB_VOLUME_SIZE, PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_LOG_VOLUME_SIZE, PRM_ID_PB_NBUFFERS, PRM_ID_XASL_CACHE_MAX_ENTRIES, program_name, put_timezone_checksum(), sm_force_write_all_classes(), sm_mark_system_classes(), sm_update_all_catalog_statistics(), STATS_WITH_FULLSCAN, strlen, sysprm_check_range(), sysprm_get_range(), SYSPRM_LOAD_ALL, sysprm_load_and_init(), sysprm_set_force(), tf_compile_meta_classes(), tf_Metaclass_class, tz_get_data(), tz_load(), util_byte_to_size_string(), util_log_write_errid(), util_log_write_errstr(), util_print_deprecated(), util_size_string_to_byte(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int deletedb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 708 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), boot_delete(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_set_client_type(), DELETE_DELETE_BACKUP_S, DELETE_OUTPUT_FILE_S, DELETEDB_MSG_USAGE, ER_ALL_FINAL, er_final(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_BAD_OUTPUT_FILE, MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_DELETEDB, MSGCAT_UTIL_SET_GENERIC, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_PB_NBUFFERS, sysprm_set_force(), util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int diagdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1446 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), catalog_dump(), check_database_name(), UTIL_FUNCTION_ARG::command_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_name, db_restart(), db_set_client_type(), db_shutdown(), DIAG_DUMP_RECORDS_S, DIAG_DUMP_TYPE_S, DIAG_EMERGENCY_S, DIAG_OUTPUT_FILE_S, DIAGDB_MSG_BAD_OUTPUT, DIAGDB_MSG_USAGE, DIAGDUMP_ALL, DIAGDUMP_CATALOG, DIAGDUMP_CLASSNAMES, DIAGDUMP_DISK_BITMAPS, DIAGDUMP_END_OF_OPTION, DIAGDUMP_FILE_CAPACITIES, DIAGDUMP_FILE_TABLES, DIAGDUMP_HEAP, DIAGDUMP_HEAP_CAPACITIES, DIAGDUMP_INDEX_CAPACITIES, DIAGDUMP_LOG, disk_dump_all(), er_init(), ER_NEVER_EXIT, file_tracker_dump(), file_tracker_dump_all_btree_capacities(), file_tracker_dump_all_capacities(), file_tracker_dump_all_heap(), file_tracker_dump_all_heap_capacities(), locator_dump_class_names(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_DIAGDB, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_DISABLE_VACUUM, PRM_ID_FORCE_RESTART_TO_SKIP_RECOVERY, PRM_ID_JAVA_STORED_PROCEDURE, sysprm_set_force(), thread_get_thread_entry_info(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), and xlog_dump().
int dump_tz | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 4113 of file util_sa.c.
References ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, assert, basename(), DUMP_TZ_COUNTRIES_S, DUMP_TZ_DUMP_SUM_S, DUMP_TZ_LEAP_SEC_S, DUMP_TZ_MSG_ID_OUT_OF_RANGE, DUMP_TZ_MSG_USAGE, DUMP_TZ_ZONE_ID_S, DUMP_TZ_ZONES_S, ER_ARG_OUT_OF_RANGE, ER_ERROR_SEVERITY, er_set(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_DUMP_TZ, NO_ERROR, NULL, tz_data::timezone_count, tz_get_data(), tz_load(), tz_unload(), tzc_dump_countries(), tzc_dump_leap_sec(), tzc_dump_one_timezone(), tzc_dump_summary(), tzc_dump_timezones(), utility_get_option_bool_value(), and utility_get_option_string_value().
int dumplocale | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2289 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, assert, basename(), DUMPLOCALE_ALPHABET_ALL_CASING, DUMPLOCALE_ALPHABET_LOWER_L, DUMPLOCALE_ALPHABET_LOWER_S, DUMPLOCALE_ALPHABET_S, DUMPLOCALE_ALPHABET_UPPER_L, DUMPLOCALE_ALPHABET_UPPER_S, DUMPLOCALE_CALENDAR_S, DUMPLOCALE_COLLATION_S, DUMPLOCALE_CONSOLE_CONV_S, DUMPLOCALE_END_VALUE_S, DUMPLOCALE_IDENTIFIER_ALPHABET_S, DUMPLOCALE_INPUT_PATH_S, DUMPLOCALE_IS_ALPHABET, DUMPLOCALE_IS_ALPHABET_LOWER, DUMPLOCALE_IS_ALPHABET_UPPER, DUMPLOCALE_IS_CALENDAR, DUMPLOCALE_IS_COLLATION_CP_ORDER, DUMPLOCALE_IS_COLLATION_WEIGHT_ORDER, DUMPLOCALE_IS_IDENTIFIER_ALPHABET, DUMPLOCALE_IS_IDENTIFIER_ALPHABET_LOWER, DUMPLOCALE_IS_IDENTIFIER_ALPHABET_UPPER, DUMPLOCALE_IS_NORMALIZATION, DUMPLOCALE_IS_NUMBERING, DUMPLOCALE_IS_TEXT_CONV, DUMPLOCALE_MSG_INCOMPAT_INPUT_SEL, DUMPLOCALE_MSG_INVALID_CP_RANGE, DUMPLOCALE_MSG_INVALID_LOCALE, DUMPLOCALE_MSG_USAGE, DUMPLOCALE_NORMALIZATION_S, DUMPLOCALE_NUMBERING_S, DUMPLOCALE_START_VALUE_S, DUMPLOCALE_WEIGHT_ORDER_S, ER_LOC_GEN, ER_LOC_INIT, error(), free_and_init, i, text_conversion::init_conv_func, lang_load_library(), lang_locale_data_load_from_lib(), locale_file::lib_file, LOC_LOCALE_STR_SIZE, locale_check_and_set_default_files(), locale_dump(), locale_dump_lib_collations(), locale_get_cfg_locales(), locale_file::locale_name, LOG_LOCALE_ERROR, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_DUMPLOCALE, NO_ERROR, NULL, OPTION_STRING_TABLE, strdup(), strlen, lang_locale_data::txt_conv, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), and UTIL_FUNCTION_ARG::valid_arg.
int estimatedb_data | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
int estimatedb_hash | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
int estimatedb_index | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 322 of file util_common.c.
Referenced by extract_classes_to_file(), extract_indexes_to_file(), extract_objects(), extract_triggers_to_file(), load_console_conv_data(), load_ducet(), load_unicode_data(), loaddb_internal(), locale_check_and_set_default_files(), locale_get_cfg_locales(), locale_prepare_C_file(), locale_save_to_C_file(), tzc_check_new_package_validity(), tzc_export_timezone_dot_c(), tzc_load_backward_zones(), tzc_load_countries(), tzc_load_leap_secs(), tzc_load_rule_file(), tzc_load_zone_names(), and xml_parser_exec().
int gen_tz | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 3924 of file util_sa.c.
References ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, assert, AU_DISABLE_PASSWORDS, basename(), cfg_free_directory(), cfg_read_directory(), check_database_name(), UTIL_FUNCTION_ARG::command_name, db_abort_transaction(), DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_name, db_restart(), db_set_client_type(), db_shutdown(), envvar_tzdata_dir_file(), ER_ALL_FINAL, ER_ERROR_SEVERITY, er_final(), er_init(), ER_NEVER_EXIT, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), GEN_TZ_INPUT_FOLDER_S, GEN_TZ_MODE_S, GEN_TZ_MSG_INVALID_MODE, GEN_TZ_MSG_USAGE, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_GEN_TZ, database_info::name, database_info::next, NO_ERROR, NULL, OPTION_STRING_TABLE, put_timezone_checksum(), strlen, TRUE, TZ_CHECKSUM_SIZE, TZ_GEN_TYPE_EXTEND, TZ_GEN_TYPE_NEW, TZ_GEN_TYPE_UPDATE, and utility_get_option_string_value().
int genlocale | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2059 of file util_sa.c.
References ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, assert, basename(), UTIL_FUNCTION_ARG::command_name, db_error_string(), er_errid(), ER_ERROR_SEVERITY, er_init(), ER_LOC_GEN, ER_NEVER_EXIT, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), free_and_init, GENLOCALE_INPUT_PATH_S, GENLOCALE_MSG_INVALID_LOCALE, GENLOCALE_MSG_USAGE, GENLOCALE_VERBOSE_S, i, lang_init_builtin(), locale_file::ldml_file, locale_check_and_set_default_files(), locale_compile_locale(), locale_destroy_data(), locale_free_shared_data(), locale_get_cfg_locales(), locale_mark_duplicate_collations(), locale_prepare_C_file(), locale_save_all_to_C_file(), LOG_LOCALE_ERROR, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_GENLOCALE, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, strdup(), strlen, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), and UTIL_FUNCTION_ARG::valid_arg.
int installdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1117 of file util_sa.c.
References ARG_FILE_LINE, UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), boot_soft_rename(), cfg_add_db(), cfg_delete_db(), cfg_find_db(), cfg_free_directory(), cfg_read_directory(), cfg_write_directory(), check_database_name(), UTIL_FUNCTION_ARG::command_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_name, db_restart(), db_set_client_type(), db_shutdown(), ER_BO_DATABASE_EXISTS, ER_ERROR_SEVERITY, er_init(), ER_NEVER_EXIT, er_set(), FALSE, INSTALL_FILE_PATH_S, INSTALL_LOG_PATH_S, INSTALL_SERVER_NAME_S, INSTALLDB_MSG_USAGE, LOB_PATH_DEFAULT_PREFIX, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_INSTALLDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PATH_SEPARATOR, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, strdup(), sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int killtran | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1842 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), dump_trantb(), ER_AU_INVALID_PASSWORD, er_init(), ER_NEVER_EXIT, error(), kill_transactions(), KILLTRAN_DBA_PASSWORD_S, KILLTRAN_DISPLAY_INFORMATION_S, KILLTRAN_DISPLAY_QUERY_INFO_S, KILLTRAN_FORCE_S, KILLTRAN_KILL_HOST_NAME_S, KILLTRAN_KILL_PROGRAM_NAME_S, KILLTRAN_KILL_SQL_ID_S, KILLTRAN_KILL_TRANSACTION_INDEX_S, KILLTRAN_KILL_USER_NAME_S, KILLTRAN_MSG_DBA_PASSWORD, KILLTRAN_MSG_INVALID_TRANINDEX, KILLTRAN_MSG_MANY_ARGS, KILLTRAN_MSG_NOT_IN_STANDALONE, KILLTRAN_MSG_USAGE, logtb_free_trans_info(), logtb_get_trans_info(), MAX_KILLTRAN_INDEX_LIST_NUM, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_KILLTRAN, NO_ERROR, NULL, OPTION_STRING_TABLE, parse_int(), PRINT_AND_LOG_ERR_MSG, strlen, TRANDUMP_QUERY_INFO, TRANDUMP_SUMMARY, TRUE, util_log_write_errid(), util_log_write_errstr(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int loaddb_user | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 927 of file load_db.c.
References loaddb_internal().
int lockdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1203 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_set_isolation(), db_shutdown(), er_init(), ER_NEVER_EXIT, lock_dump(), LOCK_OUTPUT_FILE_S, LOCKDB_MSG_BAD_OUTPUT, LOCKDB_MSG_NOT_IN_STANDALONE, LOCKDB_MSG_USAGE, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_LOCKDB, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, PRINT_AND_LOG_ERR_MSG, TRAN_READ_COMMITTED, TRUE, util_log_write_errid(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int mqueueldb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
int optimizedb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1349 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_find_class(), db_login(), db_name, db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_OPTIMIZEDB, NO_ERROR, NULL, OPTIMIZE_CLASS_NAME_S, OPTIMIZEDB_MSG_USAGE, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, sm_update_all_statistics(), sm_update_statistics(), STATS_WITH_SAMPLING, sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int paramdump | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2206 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_PARAMDUMP, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, PARAMDUMP_BOTH_S, PARAMDUMP_MSG_BAD_OUTPUT, PARAMDUMP_MSG_CLIENT_PARAMETER, PARAMDUMP_MSG_SERVER_PARAMETER, PARAMDUMP_MSG_STANDALONE_PARAMETER, PARAMDUMP_MSG_USAGE, PARAMDUMP_OUTPUT_FILE_S, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, sysprm_dump_parameters(), sysprm_dump_server_parameters(), SYSPRM_LOAD_ALL, sysprm_load_and_init(), sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int patchdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1672 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, basename(), boot_emergency_patch(), check_database_name(), UTIL_FUNCTION_ARG::command_name, db_error_string(), db_name, db_set_page_size(), DB_TYPE_BIT, DB_TYPE_CHAR, DB_TYPE_NCHAR, DB_TYPE_VARBIT, DB_TYPE_VARCHAR, DB_TYPE_VARNCHAR, ER_ALL_FINAL, er_final(), er_init(), ER_NEVER_EXIT, estimatedb_data(), estimatedb_index(), ESTIMATEDB_INDEX_BAD_ARGUMENTS, ESTIMATEDB_INDEX_BAD_KEYLENGTH, ESTIMATEDB_INDEX_BAD_KEYTYPE, ESTIMATEDB_INDEX_MSG_AVG_KEYSIZE, ESTIMATEDB_INDEX_MSG_BLT_NPAGES, ESTIMATEDB_INDEX_MSG_BLT_WRS_NPAGES, ESTIMATEDB_INDEX_MSG_INPUT, ESTIMATEDB_INDEX_MSG_INSTANCES, ESTIMATEDB_INDEX_MSG_KEYTYPE, ESTIMATEDB_INDEX_MSG_NPAGES, ESTIMATEDB_INDEX_MSG_NUMBER_KEYS, ESTIMATEDB_INDEX_MSG_USAGE, pr_type::id, IO_DEFAULT_PAGE_SIZE, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_ESTIMATEDB_INDEX, MSGCAT_UTIL_SET_PATCHDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PATCH_RECREATE_LOG_S, PATCHDB_MSG_USAGE, tp_domain::precision, pt_string_to_db_domain(), sysprm_load_and_init(), tp_final(), tp_init(), tp_valid_indextype(), tsc_init(), tp_domain::type, utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int plandump | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2105 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_PLANDUMP, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, PLANDUMP_DROP_S, PLANDUMP_MSG_BAD_OUTPUT, PLANDUMP_MSG_NOT_IN_STANDALONE, PLANDUMP_MSG_USAGE, PLANDUMP_OUTPUT_FILE_S, PRINT_AND_LOG_ERR_MSG, qmgr_drop_all_query_plans(), qmgr_dump_query_plans(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int prestartldb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
int renamedb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1026 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), boot_soft_rename(), check_database_name(), check_new_database_name(), UTIL_FUNCTION_ARG::command_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, FALSE, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_RENAMEDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_PB_NBUFFERS, RENAME_CONTROL_FILE_S, RENAME_DELETE_BACKUP_S, RENAME_EXTENTED_VOLUME_PATH_S, RENAMEDB_MSG_USAGE, RENAMEDB_VOLEXT_PATH_INVALID, RENAMEDB_VOLS_TOFROM_PATHS_FILE_INVALID, sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int restartevnt | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
int restoredb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 908 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, bo_restart_arg::backuppath, basename(), boot_shutdown_server(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_set_client_type(), ER_ALL_FINAL, er_init(), ER_NEVER_EXIT, bo_restart_arg::is_restore_from_backup, bo_restart_arg::keys_file_path, bo_restart_arg::level, log_default_input_for_archive_log_location, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_RESTOREDB, bo_restart_arg::newvolpath, NO_ERROR, NULL, NULL_TRAN_INDEX, OPTION_STRING_TABLE, parse_up_to_date(), PRINT_AND_LOG_ERR_MSG, print_backup_info(), bo_restart_arg::printtoc, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, RESTORE_BACKUP_FILE_PATH_S, RESTORE_KEYS_FILE_PATH_S, RESTORE_LEVEL_S, RESTORE_LIST_S, RESTORE_OUTPUT_FILE_S, RESTORE_PARTIAL_RECOVERY_S, bo_restart_arg::restore_slave, RESTORE_UP_TO_DATE_S, bo_restart_arg::restore_upto_bktime, RESTORE_USE_DATABASE_LOCATION_PATH_S, RESTOREDB_MSG_BAD_DATE, RESTOREDB_MSG_FAILURE, RESTOREDB_MSG_USAGE, bo_restart_arg::stopat, strlen, sysprm_set_force(), util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), and bo_restart_arg::verbose_file.
int restoreslave | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 3736 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, bo_restart_arg::backuppath, basename(), boot_shutdown_server(), check_ha_db_and_node_list(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), bo_restart_arg::db_creation, db_datetime_to_string(), db_error_string(), db_localdatetime(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), delete_all_ha_apply_info(), delete_all_slave_ha_apply_info(), ER_ALL_FINAL, er_init(), ER_NEVER_EXIT, insert_ha_apply_info(), bo_restart_arg::is_restore_from_backup, bo_restart_arg::keys_file_path, bo_restart_arg::level, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_SERVICE_PROPERTY_FAIL, MSGCAT_UTIL_SET_RESTORESLAVE, bo_restart_arg::newvolpath, NO_ERROR, NULL, NULL_TRAN_INDEX, log_lsa::offset, OPTION_STRING_TABLE, log_lsa::pageid, PRINT_AND_LOG_ERR_MSG, print_backup_info(), bo_restart_arg::printtoc, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, bo_restart_arg::restart_repl_lsa, RESTORE_KEYS_FILE_PATH_S, bo_restart_arg::restore_slave, bo_restart_arg::restore_upto_bktime, RESTORESLAVE_BACKUP_FILE_PATH_S, RESTORESLAVE_LIST_S, RESTORESLAVE_MASTER_HOST_NAME_S, RESTORESLAVE_MSG_FAILURE, RESTORESLAVE_MSG_HA_CATALOG_FAIL, RESTORESLAVE_MSG_INVAILD_OPTIONS, RESTORESLAVE_MSG_INVAILD_STATE, RESTORESLAVE_MSG_USAGE, RESTORESLAVE_OUTPUT_FILE_S, RESTORESLAVE_SOURCE_STATE_S, RESTORESLAVE_USE_DATABASE_LOCATION_PATH_S, bo_restart_arg::stopat, SYSPRM_LOAD_ALL, sysprm_load_and_init(), sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), and bo_restart_arg::verbose_file.
int shutdownldb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
int spacedb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 844 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, ASSERT_ERROR, AU_DISABLE_PASSWORDS, basename(), boot_get_lob_path(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), DB_PERMANENT_DATA_PURPOSE, DB_PERMANENT_VOLTYPE, db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, ER_WARNING_SEVERITY, free_and_init, i, IO_PAGESIZE, LOG_PAGESIZE, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_SPACEDB, netcl_spacedb(), NO_ERROR, NULL, spacedb_all::nvols, OPTION_STRING_TABLE, output_file, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_PB_NBUFFERS, SPACE_OUTPUT_FILE_S, SPACE_PURPOSE_S, SPACE_SIZE_UNIT_S, SPACE_SUMMARIZE_S, SPACEDB_ALL_COUNT, SPACEDB_FILE_COUNT, SPACEDB_MSG_ALL_HEADER_PAGES, SPACEDB_MSG_ALL_HEADER_SIZE, SPACEDB_MSG_BAD_OUTPUT, SPACEDB_MSG_FILES_FORMAT, SPACEDB_MSG_FILES_HEADER_PAGES, SPACEDB_MSG_FILES_HEADER_SIZE, SPACEDB_MSG_FILES_TITLE, SPACEDB_MSG_PERM_PERM_FORMAT, SPACEDB_MSG_USAGE, SPACEDB_MSG_VOLS_HEADER_PAGES, SPACEDB_MSG_VOLS_HEADER_SIZE, SPACEDB_MSG_VOLS_PERM_PERM_FORMAT, SPACEDB_MSG_VOLS_PERM_TEMP_FORMAT, SPACEDB_MSG_VOLS_TEMP_TEMP_FORMAT, SPACEDB_MSG_VOLS_TITLE, SPACEDB_OUTPUT_TITLE, SPACEDB_OUTPUT_TITLE_LOB, SPACEDB_SIZE_UNIT_GBYTES, SPACEDB_SIZE_UNIT_HUMAN_READABLE, SPACEDB_SIZE_UNIT_MBYTES, SPACEDB_SIZE_UNIT_PAGE, SPACEDB_SIZE_UNIT_TBYTES, SPACEDB_TO_SIZE_ARG, SPACEDB_TOTAL_ALL, sysprm_set_force(), TRUE, util_byte_to_size_string(), util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
Referenced by file_tracker_item_spacedb().
int statdump | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2323 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_get_system_parameters(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), ER_FAILED, er_init(), ER_NEVER_EXIT, histo_print_global_stats(), histo_start(), histo_stop(), intr_handler(), is_Sigint_caught, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_STATDUMP, NO_ERROR, NULL, OPTION_STRING_TABLE, os_set_signal_handler(), output_file, PRINT_AND_LOG_ERR_MSG, print_timestamp(), prm_get_name(), PRM_ID_HA_MODE, STATDUMP_CUMULATIVE_S, STATDUMP_INTERVAL_S, STATDUMP_MSG_BAD_OUTPUT, STATDUMP_MSG_NOT_IN_STANDALONE, STATDUMP_MSG_USAGE, STATDUMP_OUTPUT_FILE_S, STATDUMP_SUBSTR_S, cubregex::substr(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int synccoll_force | ( | void | ) |
Definition at line 3411 of file util_sa.c.
References AU_DISABLE, AU_ENABLE, boot_add_collations(), CT_COLLATION_NAME, db_find_class(), db_truncate_class(), NO_ERROR, and NULL.
Referenced by main(), and synccolldb().
int synccolldb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 2582 of file util_sa.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, CT_COLLATION_NAME, db_abort_transaction(), DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_name, db_restart(), db_set_client_type(), db_shutdown(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_SYNCCOLLDB, NO_ERROR, NULL, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, synccoll_check(), SYNCCOLL_CHECK_S, synccoll_force(), SYNCCOLL_FORCESYNC_S, SYNCCOLLDB_MSG_SYNC_ABORT, SYNCCOLLDB_MSG_SYNC_CONTINUE, SYNCCOLLDB_MSG_SYNC_OK, SYNCCOLLDB_MSG_USAGE, sysprm_set_force(), TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int tde | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 3716 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, CTIME_MAX, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_commit_transaction(), db_error_string(), db_login(), db_restart(), db_set_client_type(), db_shutdown(), ER_AU_INVALID_PASSWORD, er_init(), ER_NEVER_EXIT, error(), fileio_mount(), KILLTRAN_DBA_PASSWORD_S, LOG_DBTDE_KEYS_VOLID, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_TDE, NO_ERROR, NULL, NULL_VOLDES, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, strlen, tde_add_mk(), TDE_CHANGE_KEY_S, tde_change_mk_on_server(), tde_create_mk(), TDE_DELETE_KEY_S, tde_delete_mk(), tde_dump_mks(), TDE_GENERATE_KEY_S, tde_get_mk_file_path(), tde_get_mk_info(), TDE_MASTER_KEY_LENGTH, TDE_MSG_DBA_PASSWORD, TDE_MSG_MK_CHANGED, TDE_MSG_MK_CHANGING, TDE_MSG_MK_DELETED, TDE_MSG_MK_GENERATED, TDE_MSG_MK_SET_ON_DATABASE_DELETE, TDE_MSG_NO_SET_MK_INFO, TDE_MSG_USAGE, TDE_PRINT_KEY_VALUE_S, tde_print_mk(), TDE_SHOW_KEYS_S, TRUE, util_log_write_errid(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int tranlist | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 1672 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, au_is_dba_group_member(), Au_user, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_string(), db_login(), db_restart(), db_restart_ex(), db_set_client_type(), db_shutdown(), dump_trantb(), ER_AU_INVALID_PASSWORD, er_init(), ER_NEVER_EXIT, error(), logtb_free_trans_info(), logtb_get_trans_info(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_TRANLIST, NO_ERROR, NULL, trans_info::num_trans, OPTION_STRING_TABLE, PRINT_AND_LOG_ERR_MSG, trans_info::tran, TRANDUMP_FULL_INFO, TRANDUMP_SUMMARY, tranlist_cmp_f(), TRANLIST_FULL_SQL_S, TRANLIST_MSG_INVALID_SORT_KEY, TRANLIST_MSG_NOT_DBA_USER, TRANLIST_MSG_NOT_IN_STANDALONE, TRANLIST_MSG_USAGE, TRANLIST_MSG_USER_PASSWORD, TRANLIST_REVERSE_S, tranlist_Sort_column, tranlist_Sort_desc, TRANLIST_SORT_KEY_S, TRANLIST_SUMMARY_S, TRUE, util_log_write_errid(), util_log_write_errstr(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), and utility_get_option_string_value().
int unloaddb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 93 of file unloaddb.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, au_fetch_class(), AU_FETCH_READ, AU_RESTORE, AU_SAVE_AND_ENABLE, AU_SELECT, cached_pages, extract_context::clear_schema_workspace(), UTIL_FUNCTION_ARG::command_name, create_filename_indexes(), create_filename_schema(), create_filename_trigger(), database_name, datafile_per_class, DB_CLIENT_TYPE_ADMIN_UTILITY, db_error_code(), db_error_string(), DB_FETCH_READ, db_restart_ex(), db_set_lock_timeout(), db_shutdown(), DB_SIZEOF, extract_context::do_auth, do_objects, do_schema, ER_AU_INVALID_PASSWORD, er_init(), ER_NEVER_EXIT, error(), est_size, extract_context::exec_name, extract_classes_to_file(), extract_indexes_to_file(), extract_objects(), extract_triggers_to_file(), FOLLOW_ATTRIBUTE_ORDER, FOLLOW_STORAGE_ORDER, free_and_init, get_requested_classes(), hash_filename, i, ignore_err_flag, include_references, input_filename, lo_count, locator_decache_all_lock_instances(), locator_free_list_mops(), locator_get_all_mops(), MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_NO_MEM, MSGCAT_UTIL_SET_UNLOADDB, NO_ERROR, NULL, list_mops::num, OPTION_STRING_TABLE, output_dirname, output_prefix, PRINT_AND_LOG_ERR_MSG, prm_get_bool_value(), prm_get_integer_value(), prm_get_name(), PRM_ID_JAVA_STORED_PROCEDURE, PRM_ID_UNLOADDB_IGNORE_ERROR, PRM_ID_UNLOADDB_LOCK_TIMEOUT, required_class_only, sm_ch_name(), sm_Root_class_mop, extract_context::storage_order, sysprm_set_force(), UNLOAD_CACHED_PAGES_S, UNLOAD_DATA_ONLY_S, UNLOAD_DATAFILE_PER_CLASS_S, UNLOAD_ESTIMATED_SIZE_S, UNLOAD_HASH_FILE_S, UNLOAD_INCLUDE_REFERENCE_S, UNLOAD_INPUT_CLASS_FILE_S, UNLOAD_INPUT_CLASS_ONLY_S, UNLOAD_KEEP_STORAGE_ORDER_S, UNLOAD_LO_COUNT_S, UNLOAD_OUTPUT_PATH_S, UNLOAD_OUTPUT_PREFIX_S, UNLOAD_PASSWORD_S, UNLOAD_SCHEMA_ONLY_S, unload_usage(), UNLOAD_USE_DELIMITER_S, UNLOAD_USER_S, UNLOAD_VERBOSE_S, UNLOADDB_MSG_PASSWORD_PROMPT, util_log_write_errid(), util_log_write_errstr(), utility_get_option_bool_value(), utility_get_option_int_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), verbose_flag, and ws_find().
void util_admin_usage | ( | const char * | argv0 | ) |
Definition at line 122 of file util_sa.c.
References basename(), MSGCAT_UTIL_GENERIC_ADMIN_USAGE, and utility_get_generic_message().
void util_admin_version | ( | const char * | argv0 | ) |
Definition at line 139 of file util_sa.c.
References basename(), MSGCAT_UTIL_GENERIC_VERSION, and utility_get_generic_message().
int util_byte_to_size_string | ( | char * | buf, |
size_t | len, | ||
UINT64 | size_num | ||
) |
Definition at line 955 of file util_common.c.
References _dtoa, ER_FAILED, i, NO_ERROR, NULL, ONE_K, and strlen.
Referenced by btree_scan_for_show_index_capacity(), createdb(), prm_print(), spacedb(), and sysprm_print_sysprm_value().
void util_free_ha_conf | ( | HA_CONF * | ha_conf | ) |
Definition at line 651 of file util_common.c.
References _ha_config::db_names, free_and_init, i, _ha_config::node_conf, node_name, NULL, _ha_config::num_node_conf, and util_free_string_array().
Referenced by check_ha_db_and_node_list(), process_heartbeat(), and util_make_ha_conf().
int util_get_ha_mode_for_sa_utils | ( | void | ) |
Definition at line 872 of file util_common.c.
References prm_get_integer_value(), and PRM_ID_HA_MODE_FOR_SA_UTILS_ONLY.
Referenced by css_get_required_conn_num_for_ha(), process_heartbeat_start(), process_heartbeat_stop(), process_heartbeat_util(), process_server(), us_hb_applylogdb_start(), us_hb_copylogdb_start(), and us_hb_server_start().
int util_get_num_of_ha_nodes | ( | const char * | node_list | ) |
Definition at line 478 of file util_common.c.
References NULL, util_free_string_array(), and util_split_ha_node().
Referenced by css_get_required_conn_num_for_ha().
int util_get_table_list_from_file | ( | char * | fname, |
dynamic_array * | darray | ||
) |
Definition at line 1226 of file util_common.c.
References da_add(), ER_GENERIC_ERROR, i, MSGCAT_UTIL_GENERIC_FILEOPEN_ERROR, MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_GENERIC_NO_MEM, NO_ERROR, NULL, p, SM_MAX_IDENTIFIER_LENGTH, and util_log_write_errid().
Referenced by checkdb(), and checksumdb().
bool util_is_localhost | ( | char * | host | ) |
Definition at line 418 of file util_common.c.
References are_hostnames_equal(), CUB_MAXHOSTNAMELEN, and GETHOSTNAME.
Referenced by check_ha_db_and_node_list(), us_hb_applylogdb_start(), us_hb_applylogdb_stop(), us_hb_copylogdb_start(), and us_hb_copylogdb_stop().
int util_make_ha_conf | ( | HA_CONF * | ha_conf | ) |
Definition at line 694 of file util_common.c.
References _node_config::apply_max_mem_size, assert_release, _node_config::copy_log_base, _node_config::copy_sync_mode, copylogdb_keyword(), _ha_config::db_names, ER_GENERIC_ERROR, error(), i, mode, MSGCAT_UTIL_GENERIC_INVALID_PARAMETER, MSGCAT_UTIL_GENERIC_NO_MEM, NO_ERROR, _ha_config::node_conf, _node_config::node_name, NULL, _ha_config::num_node_conf, prm_get_name(), PRM_ID_HA_COPY_SYNC_MODE, strdup(), util_free_ha_conf(), util_free_string_array(), util_get_ha_parameters(), util_is_replica_node(), util_split_ha_db(), util_split_ha_node(), util_split_ha_sync(), and utility_get_generic_message().
Referenced by check_ha_db_and_node_list(), and process_heartbeat().
int util_msec_to_time_string | ( | char * | buf, |
size_t | len, | ||
INT64 | msec_num | ||
) |
Definition at line 1112 of file util_common.c.
References ER_FAILED, error(), NO_ERROR, NULL, and ONE_SEC.
Referenced by prm_print(), and sysprm_print_sysprm_value().
void util_print_deprecated | ( | const char * | option | ) |
Definition at line 1205 of file util_common.c.
References MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_DEPRECATED, MSGCAT_UTIL_SET_GENERIC, and NULL.
Referenced by addvoldb(), and createdb().
void util_redirect_stdout_to_null | ( | void | ) |
Definition at line 885 of file util_common.c.
Referenced by applylogdb(), and copylogdb().
int util_size_string_to_byte | ( | UINT64 * | size_num, |
const char * | size_str | ||
) |
Definition at line 1027 of file util_common.c.
References ER_FAILED, NO_ERROR, NULL, and util_size_to_byte().
Referenced by addvoldb(), createdb(), and sysprm_generate_new_value().
int util_time_string_to_msec | ( | INT64 * | msec_num, |
char * | time_str | ||
) |
Definition at line 1155 of file util_common.c.
References ER_FAILED, NO_ERROR, NULL, and util_time_to_msec().
Referenced by sysprm_generate_new_value().
const char* utility_get_generic_message | ( | int | message_index | ) |
Definition at line 88 of file util_common.c.
References MSGCAT_CATALOG_UTILS, msgcat_message(), and MSGCAT_UTIL_SET_GENERIC.
Referenced by check_database_name_local(), check_volume_name(), load_properties(), print_message(), util_admin_usage(), util_admin_version(), util_get_ha_parameters(), util_log_write_errid(), and util_make_ha_conf().
INT64 utility_get_option_bigint_value | ( | UTIL_ARG_MAP * | arg_map, |
int | arg_ch | ||
) |
Definition at line 294 of file util_common.c.
References UTIL_ARG_MAP::arg_value, UTIL_ARG_MAP::l, and utility_get_option_index().
Referenced by applyinfo(), and copylogdb().
bool utility_get_option_bool_value | ( | UTIL_ARG_MAP * | arg_map, |
int | arg_ch | ||
) |
Definition at line 245 of file util_common.c.
References UTIL_ARG_MAP::i, and utility_get_option_index().
Referenced by acldb(), addvoldb(), applyinfo(), backupdb(), changemode(), checkdb(), checksumdb(), compactdb(), copydb(), createdb(), deletedb(), diagdb(), dump_tz(), dumplocale(), genlocale(), get_loaddb_args(), killtran(), loaddb_internal(), paramdump(), patchdb(), plandump(), renamedb(), restoredb(), restoreslave(), spacedb(), statdump(), synccolldb(), tde(), tranlist(), unloaddb(), and vacuumdb().
int utility_get_option_int_value | ( | UTIL_ARG_MAP * | arg_map, |
int | arg_ch | ||
) |
Definition at line 227 of file util_common.c.
References UTIL_ARG_MAP::arg_value, UTIL_ARG_MAP::i, and utility_get_option_index().
Referenced by applyinfo(), applylogdb(), backupdb(), changemode(), checksumdb(), compactdb(), createdb(), diagdb(), dumplocale(), get_loaddb_args(), loaddb_internal(), restoredb(), statdump(), tde(), tranlist(), and unloaddb().
int utility_get_option_string_table_size | ( | UTIL_ARG_MAP * | arg_map | ) |
Definition at line 305 of file util_common.c.
References UTIL_ARG_MAP::num_strings, OPTION_STRING_TABLE, utility_get_option_index(), and UTIL_ARG_MAP::value_info.
Referenced by acldb(), addvoldb(), alterdbhost(), applyinfo(), applylogdb(), backupdb(), changemode(), checkdb(), checksumdb(), compactdb(), copydb(), copylogdb(), createdb(), deletedb(), diagdb(), dumplocale(), genlocale(), installdb(), killtran(), lockdb(), optimizedb(), paramdump(), patchdb(), plandump(), renamedb(), restoredb(), restoreslave(), spacedb(), statdump(), synccolldb(), tde(), tranlist(), unloaddb(), and vacuumdb().
char* utility_get_option_string_value | ( | UTIL_ARG_MAP * | arg_map, |
int | arg_ch, | ||
int | index | ||
) |
Definition at line 266 of file util_common.c.
References NULL, UTIL_ARG_MAP::num_strings, OPTION_STRING_TABLE, UTIL_ARG_MAP::p, and utility_get_option_index().
Referenced by acldb(), addvoldb(), alterdbhost(), applyinfo(), applylogdb(), backupdb(), changemode(), checkdb(), checksumdb(), compactdb(), copydb(), copylogdb(), createdb(), deletedb(), diagdb(), dump_tz(), dumplocale(), gen_tz(), genlocale(), get_loaddb_args(), installdb(), killtran(), lockdb(), optimizedb(), paramdump(), patchdb(), plandump(), renamedb(), restoredb(), restoreslave(), spacedb(), statdump(), synccolldb(), tde(), tranlist(), unloaddb(), and vacuumdb().
int utility_initialize | ( | void | ) |
Definition at line 69 of file util_common.c.
References ER_BO_CANNOT_ACCESS_MESSAGE_CATALOG, er_init(), ER_NEVER_EXIT, msgcat_init(), NO_ERROR, NULL, and PRINT_AND_LOG_ERR_MSG.
Referenced by csql(), and main().
int utility_keyword_search | ( | UTIL_KEYWORD * | keywords, |
int * | keyval_p, | ||
char ** | keystr_p | ||
) |
Definition at line 352 of file util_common.c.
References ER_FAILED, UTIL_KEYWORD::keystr, UTIL_KEYWORD::keyval, NO_ERROR, and NULL.
Referenced by changemode_keyword(), and copylogdb_keyword().
int utility_keyword_value | ( | UTIL_KEYWORD * | keywords, |
int * | keyval_p, | ||
char ** | keystr_p | ||
) |
int utility_localtime | ( | const time_t * | ts, |
struct tm * | result | ||
) |
Definition at line 390 of file util_common.c.
References NULL.
Referenced by csql_do_session_cmd(), and print_timestamp().
int vacuumdb | ( | UTIL_FUNCTION_ARG * | arg_map | ) |
Definition at line 3560 of file util_cs.c.
References UTIL_FUNCTION_ARG::arg_map, UTIL_FUNCTION_ARG::argv0, AU_DISABLE_PASSWORDS, basename(), check_database_name(), UTIL_FUNCTION_ARG::command_name, cvacuum(), database_name, DB_CLIENT_TYPE_ADMIN_UTILITY, DB_CLIENT_TYPE_SKIP_VACUUM_ADMIN_CSQL, db_error_string(), db_login(), db_restart(), db_set_client_type(), db_set_isolation(), db_shutdown(), er_get_msglog_filename(), er_init(), ER_NEVER_EXIT, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_GENERIC_INVALID_ARGUMENT, MSGCAT_UTIL_SET_VACUUMDB, NO_ERROR, NULL, OPTION_STRING_TABLE, output_file, PRINT_AND_LOG_ERR_MSG, prm_get_name(), PRM_ID_DISABLE_VACUUM, PRM_ID_JAVA_STORED_PROCEDURE, sysprm_set_force(), TRAN_READ_COMMITTED, TRUE, util_log_write_errid(), util_log_write_errstr(), utility_get_option_bool_value(), utility_get_option_string_table_size(), utility_get_option_string_value(), vacuum_dump(), VACUUM_DUMP_S, VACUUM_OUTPUT_FILE_S, VACUUMDB_MSG_BAD_OUTPUT, VACUUMDB_MSG_CLIENT_SERVER_NOT_AVAILABLE, VACUUMDB_MSG_FAILED, and VACUUMDB_MSG_USAGE.