top of page

Посты на форуме

Admin
24 нояб. 2024 г.
In SQL editor for MySQL
[EN] List of tables in the selected MySQL/MariaDB database SQL queries List of tables in the database select table_name from information_schema.TABLES where Upper(table_schema)=Upper($$DATABASE) and TABLE_TYPE in ('BASE TABLE','SYSTEM VIEW') order by 1 COLUMN - list of columns in the table with data types select column_name, data_type from information_schema.COLUMNS where table_schema= $$DATABASE_NAME and table_name = $$TABLE_NAME order by ordinal_position [RU] Список таблиц в выбранной базе данных MySQL/MariaDB SQL запросы Список таблиц в базе select table_name from information_schema.TABLES where Upper(table_schema)=Upper($$DATABASE) and TABLE_TYPE in ('BASE TABLE','SYSTEM VIEW') order by 1 COLUMN - список колонок в таблице с типами данных select column_name, data_type from information_schema.COLUMNS where table_schema= $$DATABASE_NAME and table_name = $$TABLE_NAME order by ordinal_position
MySQL/MariaDB - table node content media
0
0
4
Admin
24 нояб. 2024 г.
In SQL editor for MySQL
[EN] The node displays information about all created databases in the MySQL DBMS. The node is the root for viewing and managing objects in databases SHOW DATABASES Menu • Copy to clipboard - copy the DB name to the clipboard • Use database - make the extracted database current • Show size table - show the size of all tables in the selected database [RU] Узел отображает информацию о всех созданных базах данных в СУБД MySQL. Узел является корневым для просмотра и управления объектами в базах данных SHOW DATABASES Меню • Copy to clipboard - скопировать в буфер обмена имя БД • Use database - сделать выдранную базу текущей • Show size table - показать размер всех таблиц в выбранной базе
MySQL/MariaDB - Database node content media
0
0
1
Admin
24 нояб. 2024 г.
In SQL editor for MySQL
[EN] Object tree - an interface for visualizing the cluster structure, managing objects. The root record of the tree structurally consists of the name of the database to which the sheet is connected, the cluster version. Each sheet creates several connections to the database: • connection for displaying information in the object tree • connection for executing SQL queries, commands (main process) [RU] Дерево объектов - интерфейс для визуализации структуры кластера, управления объектами.  Корневая запись дерева структурно состоит из имени БД к которой подключен лист, версии кластера. ​ Каждый лист создает несколько соединений с БД: • соединение для отображения информации в дереве объектов • соединение для выполнения SQL запросов, команд (основной процесс)
MySQL/MariaDB - Object tree content media
0
0
3
Admin
24 нояб. 2024 г.
In SQL editor for MySQL
[EN] The connection wizard allows you to set up a connection between a sheet and a database and save it for later use. For more information on working with the wizard, see the section "Database connection manager" Launching the database connection wizard • click the "Show connection manager" button in the "Connection control" block • key combination Alt+F2 Previously saved connections are displayed in the "Connection list" Creating a new connection is done in the program's single connection wizard (the "Edit connect" button) Form fields • "Alias*" - unique identifier, displayed in the list of saved connections • "Library path" - full path to the client library for working with MySQL/MariaDB. By default, the library ".\DLL\PG\libmySQL.dll" is used • "Server*" - DNS name of the server or its IP address • "Port" - port of the server on which the MySQL listener is running. By default, port 3306. • "Login*" - user name. • "Password*" - password. • "Database" - name of the database to connect to. By default: mysql • "Character set" - encoding, by default cp1251. Control buttons • "Edit" - edit connections • "Connect" - connect to the DB using the entered parameters [RU] Мастер соединения позволяет настроить подключение листа к базе данных и сохранить его для последующего использования. Подробнее работа с мастером описана в разделе "Database connection manager" Запуск мастера создания соединения с БД • нажать кнопку "Show connection manager" в блоке "Connection control" • комбинация клавиш Alt+F2   Ранее сохраненные соединения отображаются в списке "Connection list" ​ Создание нового соединения - выполняется в едином мастере соединений программы (копка "Edit connect") Поля формы • "Alias*" - уникальный идентификатор, отображается в списке сохраненных соединений • "Library path" - полный путь к клиентской библиотеке для работы с MySQL/MariaDB. По умолчанию используется библиотека ".\DLL\PG\libmySQL.dll" • "Server*" - DNS имя сервера или его IP адрес • "Port" - порт сервера на котором работает листенер MySQL. По умолчанию порт 3306. • "Login*" - имя пользователя.  • "Password*" - пароль. • "Database" - имя БД к которой производить подключение. По умолчанию: mysql • "Character set" - кодировка, по умолчанию cp1251. ​ Кнопки управления • "Edit" - редактировать соединения • "Connect" - подключится к БД используя введенные параметры
MySQL/MariaDB database connection wizard content media
0
0
6
Admin
23 нояб. 2024 г.
In SQL editor for MySQL
[RU] Лист это область редактора запросов для работы с базами данных.  Для каждого листа создаются свои собственные соединения с базой данных, что обеспечивает работу программы одновременно с произвольным количеством баз 1. Нажатием кнопки "New list for MySQL" 2. File - New - MySQL 3. Комбинация клавиш:  Shift + F4 [EN] The sheet is the area of the query editor for working with databases. For each sheet, its own database connections are created, which ensures the program can work simultaneously with an arbitrary number of databases 1. By pressing the button "New list for MySQL" 2. File - New - MySQL 3. Key combination:  Shift+F4
0
0
3
Admin
08 окт. 2024 г.
In Improvements
[EN] Version 24.4.2 • Updated the connection manager, it has become more convenient and easier to work with. Removed unnecessary buttons • Updated the main form, removed pictures, added a description • As always, code optimization to improve performance • Disabled automatic adjustment of the column width in the grid. Control of the width adjustment and enabling the editing mode is performed either through the context menu or by pressing Ctrl + D • Added the ability to change the size of the code prompter window when it is opened • Fixed a bug due to which when changing the font size of the text, the line size in the code prompter does not change • Optimized the styles of the SQL editor window Version 24.4 The main changes in the current version concern code optimization, performance improvement. But besides that: * Added a grid menu, allows you to save selected lines to files, generate insert, update, delete commands, etc. * Updated icons Version 24.3 During the development of this version, the main attention was paid to the work of the SQL editor and that's what was done: 1. We rewrote the code hint (Code AutoCompletion), now it works strictly within the boundaries of the current SQL block. The separation of blocks inside the tooltip is performed according to the general rules for the editor, namely, the create commands are terminated with the / symbol, the rest ; 2. The code prompter now remembers the keys used to generate hints, saves the data to an array and extracts the data from memory the next time the key is entered. (currently working for PostgreSQL DBMS, the rest of the DBMS will be added in the next version) Points 1 and 2 actually increase the performance of the code hint many times over! 3. Information about the column data type in the form of a code has been added to the grid in the column headers. 4. The data type is displayed in the grid in the column hint 5. Well, we tweaked the code to optimize the column width when uploading data to the grid. Version 24.2 Fixes for identified bugs in version 24.1 • Expanding the list of supported keys for a language pack • The query editor for the MSSQL DBMS has been improved • Changing the program operation logging system. Data is written to a file on disk and to memory structures without accessing the vlc components. • Added program log rotation by date • Extending the functionality of the Form Wizard to support the ability to create custom forms that integrate into various query editor menus (support for all query editor menus for PostgreSQL and MySQL DBMSs). Version 24.1 • Add: SQL editor update for MySQL DBMS • Add: switching the MySQL editor to a single connection manager • Add: language pack editor in table form. Allows you to quickly create translations. • Update: Default style change • Update: SQL editor engine performance has been improved • Add: Removed the modal password entry window and moved it to the main form • Add: Added the ability to change the font name in the query editor. Version 23.4 Identified bugs have been fixed Query editor • The query editor has been speeded up • ctrl+s - save the current sheet to a file on disk (tmp directory) • ctrl + mouse click - displays the code of an object (table, function, view) [PostgreSQL] • new structures in memory for storing operating parameters to speed up work • when you click the mouse in the editor window, information about the pointer position is displayed in the status bar • fix: fixed a bug with de-highlighting selected text CerebroSQL cluster • * shared database configurator updated • * password manager support Version 23.3 • Fix: Исправлена ошибка в функционале перетаскивания имени объекта из дерева в поле ввода SQL. Ошибка заключается в не корректном определении позиции в случаи если произошла прокрутка листа • Fix: Изменен приоритет уровней для подсказчика кода, для случая если в БД есть схема с аналогичным названием, с БД на схему • Add: Оптимизировано использование памяти подсказчиком кода, а так же повышена производительность его работы • Add: Переписано хранилище паролей. Введено понятие пространства, поддержка работы в режиме с центральной базой • Add: Переписана система хранения "шаблонов кода" для редактора запросов. Переход на концепцию пространств. Поддержка многоуровневого дерева Version 23.2 Add: Added the SQL$PG$AUTO_COMMIT parameter to enable/disable the autocommit mode for connecting a sheet of the query editor for PostgreSQL DBMS Add: Added dragging the object name (with schema) from the object tree to the code entry field Query Editor Fix: Speed up work, increased responsiveness of the SQL input window by disabling some of the background processes that do not affect the work Document storage Complete rethinking of the module. • Added concept of space - top-level grouping of documents. • Each document opens in a new sheet • When the program starts, all open documents of the last session are restored. • Added the ability to put documents in "Favorites" • Updated design Version 23.1 Bug: Fixed error "ERROR: near "err_text": syntax error " when viewing the history of executed queries in central database mode Bug: fixed error when deleting an entry in the "Data transfer (lite)" tree - the entry is deleted, but the information in the tree is not displayed Bug: added sorting by name of VIEW node records in the query editor for PostgreSQL DBMS Bug: Fixed problem with program running in wine environment on Astra Linux OS Add: MSSQL table code output switched to separate popup window Add: unified code execution functions in the query editor (single execution process logging format) Add: Added the cdwid parameter (id of the connection to the CDW database) in the CerebroSQL.ini parameter file. The parameter provides automatic connection to the central storage at the program start Add: the output of the program operation log is highlighted in color Add: Data transfer (lite) - logging format reduced to a single one (highlighting lines with color, output format) Add: Data transfer (lite) - updated module interface Add: Data transfer (lite) - added parameter to $DATE (date format in file name yyyymmddhhmiss) for case of data export to CSV file Add: 2 new object classes have been added to the interface language editor (Error description - error message when executing the program, TreeView node - text of nodes in trees) Add: accelerated program loading Fix: fixed generation of select, insert code for PostgreSQL tables displaying deleted columns Fix: Default language pack renamed to DEFAULT Version 22.4 Add: local database markup scripts have been moved to a separate meta-storage. Add: Central database markup scripts (PostgreSQL) moved to a separate meta-storage. Add: updated dashboard of the main program window [1] Add: new program language editor (completely revised approach, coverage of modules will be gradual) [2] Add: code review - optimization of algorithms Add: accelerated program loading Add: convert program to platform (beta operation mode) • The functionality of the "Wizard for creating forms for MDM" has been expanded - it allows you to create both separate windows for the program (call from various menus of the main window and the query editor), and "applications" - groups of combined windows • Data for custom window elements is retrieved from SQL databases by queries Version 22.3 Add: Added creation of the tnsnames.ora file when clicking the "Edit tnsmanes.ora" button in the connection editor if there is no directory file indicated by the path in the TNS_ADMIN field Add: Switching the query editor for Oracle DBMS to a unified connection manager Add: Updated appearance of the wizard for creating links to external programs Fix: executable file compression up to 32M Fix: Updated components Update from 09/14/2022 Fix: Fixed error when selecting a directory in connection manager Add: Added MDM form setup window Version 22.2 • Add: Refinement of the unified connection manager • Add: Transition to a single connection manager of the data transfer manager (Data transfer: lite) • Add: Transition to a single connection manager of the query editor for PostgreSQL DBMS • Add: deep update of data transfer manager (data transfer: lite) • Add: Code fixes and improvements revealed during the operation of version 22.1 • Bug: fixed error saving output of completed queries in local database Version 22.1 What's new: • AWR: comparison of 2 previously generated reports • SQL developer: Add - view statistics on the use of database functions • SQL developer: Add - rman backup info • RMAN: Add - configure backup options • The window for selecting a connection for the monitoring kernel in the form of a structured tree • Tablespace manager: Add - added current file size column • Viewer ControlFile/PFile: Add - viewing all ControlFile and PFile generated by the program • Settings: Add - added a parameter that controls the choice of the method of connecting to servers using Putty (by IP or by DNS name) • Query history: Updated functional • Bug: fixed a bug with displaying the text of a completed request in the current_history mode in the window for viewing the history of completed requests ---------------------------------------------------------------------------------------------------------- 1. Changed table for storing history 2. Added control buttons: Add SQL to Developer, save to file, Copy clipboard, Add to Project manager Transferring data from the history of completed requests is only possible in manual mode Instructions • Open Query Editor • Create sheet for working with SQLite databases • Press the button "Attach databases" • Set the switch opposite the base "core" • Press the "Attach" button • Execute a request Query editor: search connect - connection search window. It can be opened either by the Search button or by the Ctrl + Y key combination. ---------------------------------------------------------------------------------------------------------- SQL developer for PostgreSQL • Rebuilt object tree • COLUMN node - added a child node with a list of system columns • TABLE node - added DEPEND child node, list of referenced base objects • TABLE node - added CHECK child node, list of constraints-checks • Dragging the table name from the tree into the SQL query input field - a select query is added to the input field to the selected table
0
0
59
Admin
22 сент. 2024 г.
In Documentation
[EN] The Session Manager allows you to monitor the work of processes in the Oracle database. Manage sessions, enable/disable session tracing and more Control buttons • Update the data • Open the Query Editor • Open the Active Session Manager • End a dedicated session (the session is terminated with the immediate key) • Enable dedicated session tracing • Finish tracing the session highlighted in the Eracing is enabled for window (the session should be highlighted in the Eracing is enabled for list) • Enable automatic data updates every 5 seconds. • Turn on the backlight of active sessions and sessions that are in the lock state The Sessions tab SQL query select s.SID,        s.SERIAL#,        s.SCHEMANAME,        s.STATUS,        s.EVENT,        s.SQL_ID,        s.OSUSER,        s.MACHINE,        s.MODULE,        s.SERVER,        s.PORT,        s.LOGON_TIME,        s.TERMINAL,        s.PROGRAM,        s.TYPE,        s.SQL_HASH_VALUE,        s.SQL_EXEC_START,        s.ACTION,        s.BLOCKING_INSTANCE,        s.BLOCKING_SESSION_STATUS,        s.BLOCKING_SESSION,        s.FINAL_BLOCKING_SESSION_STATUS,        s.FINAL_BLOCKING_SESSION,        s.CLIENT_INFO,        s.ROW_WAIT_ROW#,        s.ROW_WAIT_BLOCK#,        s.ROW_WAIT_OBJ#,        s.ROW_WAIT_FILE#,        s.PLSQL_SUBPROGRAM_ID,        s.PLSQL_ENTRY_OBJECT_ID,        s.PLSQL_ENTRY_SUBPROGRAM_ID,        s.PLSQL_DEBUGGER_CONNECTED,        s.PLSQL_OBJECT_ID,        s.RESOURCE_CONSUMER_GROUP   from v$session s The query can be changed in the "Program SQL" editor For all the manager's tabs to work correctly, the following fields must be present in the requests: • SID • SERIAL# • EVENT • SQL_ID The remaining fields can be changed. Viewing the description of the waiting session • Select a session in the session list. • In the "Details" block, double-click on the "Event" item The "Parallel session" tab Displays a list of sessions executing requests in parallel in several threads List of parallel computing sessions SELECT DECODE(px.qcinst_id, NULL, username, ' - '||            LOWER(SUBSTR(pp.SERVER_NAME, LENGTH(pp.SERVER_NAME)-4,4))) "Username",        s.sql_id,        DECODE(px.qcinst_id,NULL, 'QC', '(Slave)') "QC/Slave",        TO_CHAR(px.server_set) "SlaveSet",        s.program,        TO_CHAR(s.SID) "SID",        s.Serial#,        TO_CHAR(px.inst_id) "Slave INST",        DECODE(sw.state,'WAITING', 'WAIT', 'NOT WAIT' ) AS STATE,        CASE sw.state           WHEN 'WAITING' THEN SUBSTR(sw.event,1,30)           ELSE NULL        END AS wait_event,        DECODE(px.qcinst_id, NULL, TO_CHAR(s.SID), px.qcsid) "QC SID",        TO_CHAR(px.qcinst_id) "QC INST",        DECODE(px.server_set,'',s.last_call_et,'') "Elapsed (s)"   FROM gv$px_session px,        gv$session s,        gv$px_process pp,        gv$session_wait sw WHERE px.SID=s.SID(+)    AND px.serial#=s.serial#(+)    AND px.inst_id = s.inst_id(+)    AND px.SID = pp.SID(+)    AND px.serial#=pp.serial#(+)    AND sw.SID = s.SID    AND sw.inst_id = s.inst_id ORDER BY username, DECODE(px.QCINST_ID, NULL, px.INST_ID, px.QCINST_ID),   px.QCSID, DECODE(px.SERVER_GROUP, NULL, 0, px.SERVER_GROUP), px.SERVER_SET, px.INST_ID System statistics on the execution of parallel processes SELECT substr(NAME, 21,length(name)) "name",        VALUE,        ROUND((RATIO_TO_REPORT(VALUE) OVER ())*100, 2) || '%' PERC  FROM V$SYSSTAT WHERE NAME LIKE 'Parallel%' ORDER BY NAME DESC The "Blocking tree" tab Displays sessions in the form of a tree that are waiting for the release of a "resource". The root node in the tree is the session holding the lock SQL query with LOCKS as (select /*+ MATERIALIZE*/ * from gv$lock), S as (select /*+ MATERIALIZE*/ s.* from gv$session s), BLOCKERS as (select distinct L1.inst_id, L1.sid                from LOCKS L1, LOCKS L2               where L1.block > 0                 and L1.ID1 = L2.ID1                 and L1.ID2 = L2.ID2                 and L2.REQUEST > 0),  WAITERS as (select inst_id, sid from S where blocking_session is not null or blocking_instance is not null) select   LPAD(' ', (LEVEL - 1) * 2) || 'INST#' || s.inst_id || ' SID#' || sid as BLOCKING_TREE,   s.sid,   s.serial#,   s.program,   substr(s.USERNAME || ' ' || s.CLIENT_IDENTIFIER,1,40) as USERNAME,   EVENT,   last_call_et,   seconds_in_wait as SECS_IN_WAIT,   blocking_session_status as BLOCK_SESSTAT,   pdml_enabled,   s.sql_id,   s.osuser,   p.spid,   s.machine as CLNT_HOST,   s.process as CLNT_PID,   s.port as CLNT_PORT,   substr(trim(NVL(sa1.sql_text,sa2.sql_text)), 1, 100) SQL_TEXT,   decode(sign(nvl(s.ROW_WAIT_OBJ#, -1)), -1, 'NONE', DBMS_ROWID.ROWID_CREATE(1, s.ROW_WAIT_OBJ#, s.ROW_WAIT_FILE#, s.ROW_WAIT_BLOCK#, s.ROW_WAIT_ROW#)) req_rowid,   p1text || ' ' || decode(p1text, 'name|mode', chr(bitand(p1,-16777216)/16777215)||chr(bitand(p1, 16711680)/65535)||' '||bitand(p1, 65535), p1text) as   p1text,   p1,   p1raw,   p2text || ' ' || decode(p2text, 'object #', o.object_name || ' ' || o.owner || '.' || o.object_name, p2text) as   p2text,   p2 from s  left join gv$sqlarea sa1 on s.sql_id = sa1.sql_id and s.inst_id = sa1.inst_id  left join gv$sqlarea sa2 on s.prev_sql_id = sa2.sql_id and s.inst_id = sa2.inst_id  left join dba_objects o on s.p2 = o.object_id  left join gv$process p on s.paddr = p.addr and s.inst_id = p.inst_id connect by NOCYCLE prior sid = blocking_session and prior s.inst_id = blocking_instance start with (s.inst_id, s.sid)            in (select inst_id, sid from BLOCKERS minus select inst_id, sid from WAITERS) Additional information on sessions When the session is highlighted in grids, the program displays additional data. The program displays information depending on the activity of a particular sheet. Cursors - information about open cursors in the session select oc.sql_text, oc.sql_id from V$OPEN_CURSOR oc, v$SESSION s where oc.saddr=s.saddr and s.sid=$$SID SQL Text - the text of the current SQL query in the session select sql_fulltext from v$sql where sql_id='$$SQL_ID' Session statistics - values of non-zero session system statistics select st.name, se.value from v$sesstat se, v$statname st where se.statistic#=st.statistic# and se.value<>0 and sid=$$SID order by 2 desc Lock - locking objects by the session select distinct blocking_session, event, do.owner||'.'||do.object_name req_object, sql_text from v$session s, dba_objects do, v$sql s where s.ROW_WAIT_OBJ# = do.object_id and s.sql_id = s.sql_id and blocking_session is not null and sid=$$SID Longops - data on the time of execution of long-term operations in the database (reading data from a table, sorting) and the estimated time of completion of the operation SELECT sl.OPNAME, sl.TARGET, s.machine, ROUND(sl.elapsed_seconds/60) || ':' || MOD(sl.elapsed_seconds,60) elapsed, ROUND(sl.time_remaining/60) || ':' || MOD(sl.time_remaining,60) remaining, ROUND(sl.sofar/sl.totalwork*100, 2) progress_pct, sl.MESSAGE FROM v$session s, v$session_longops sl WHERE s.sid = sl.sid AND s.serial# = sl.serial# and s.SID = $$SID order by sl.START_TIME desc Plan - the plan for executing the current request select * from TABLE(DBMS_XPLAN.DISPLAY_CURSOR('$$SQL_ID' )) Rollback - statistics on the usage of the rollback segment for the session SELECT rs.segment_name, round(r.rssize/1024/1024)||' MB' "size", r.status FROM v$transaction t, v$session s, v$rollstat r, dba_rollback_segs rs WHERE s.saddr = t.ses_addr AND t.xidusn = r.usn AND rs.segment_id = t.xidusn AND s.sid = $$SID AND s.serial# = $$SERIAL# ORDER BY t.used_ublk DESC Session wait - statistics on the current session waiting select s.EVENT, s.SECONDS_IN_WAIT, s.P1, s.P1TEXT, s.P2, s.P2TEXT, s.P3 from V$SESSION_WAIT s where sid=$$SID order by SECONDS_IN_WAIT desc SQL Monitoring - данные системного пакета DBMS_SQLTUNE анализирующего процесс выполнение запроса SELECT DBMS_SQLTUNE.report_sql_monitor( sql_id => '$$SQL_ID', type => 'TEXT', report_level => 'ALL') AS report FROM dual Query statistics - statistics on query execution (specific sql_id) select * from V$SQLSTATS where sql_id = '$$SQL_ID' [RU] Менеджер сессий позволяет отслеживать работу процессов в базе данных Oracle. Управлять сессиями, включать/выключать трассировку сессий и многое другое Кнопки управления • Обновить данные • Открыть редактор запросов • Открыть менеджер активных сессий • Завершить выделенную сессию (выполняется завершение сессии с ключом immediate) • Включить трассировку выделенной сессии • Завершить трассировку выделенной в окне Eracing is enabled for сессии (сессия должна быть выделена именно в списке Eracing is enabled for) • Включить автоматическое обновление данных каждые 5 секунд. • Включить подсветку активных сессий и сессий находящихся в состоянии блокировки Вкладка "Sessions" SQL Запрос select s.SID, s.SERIAL#, s.SCHEMANAME, s.STATUS, s.EVENT, s.SQL_ID, s.OSUSER, s.MACHINE, s.MODULE, s.SERVER, s.PORT, s.LOGON_TIME, s.TERMINAL, s.PROGRAM, s.TYPE, s.SQL_HASH_VALUE, s.SQL_EXEC_START, s.ACTION, s.BLOCKING_INSTANCE, s.BLOCKING_SESSION_STATUS, s.BLOCKING_SESSION, s.FINAL_BLOCKING_SESSION_STATUS, s.FINAL_BLOCKING_SESSION, s.CLIENT_INFO, s.ROW_WAIT_ROW#, s.ROW_WAIT_BLOCK#, s.ROW_WAIT_OBJ#, s.ROW_WAIT_FILE#, s.PLSQL_SUBPROGRAM_ID, s.PLSQL_ENTRY_OBJECT_ID, s.PLSQL_ENTRY_SUBPROGRAM_ID, s.PLSQL_DEBUGGER_CONNECTED, s.PLSQL_OBJECT_ID, s.RESOURCE_CONSUMER_GROUP from v$session s Запрос может быть изменен в редакторе "Program SQL" Для корректной работы всех вкладок менеджера необходимо наличие в запросах следующих полей: • SID • SERIAL# • EVENT • SQL_ID Остальные поля могут быть изменены.   Просмотр описания ожидания сессии • Выделить сессию в списке сессий. • В блоке "Details" дважды нажать на пункт "Event" Вкладка "Parallel session" Отображает список сессий выполняющих запросы параллельно в несколько потоков Список сессий выполняющих параллельные вычисления SELECT DECODE(px.qcinst_id, NULL, username, ' - '|| LOWER(SUBSTR(pp.SERVER_NAME, LENGTH(pp.SERVER_NAME)-4,4))) "Username", s.sql_id, DECODE(px.qcinst_id,NULL, 'QC', '(Slave)') "QC/Slave", TO_CHAR(px.server_set) "SlaveSet", s.program, TO_CHAR(s.SID) "SID", s.Serial#, TO_CHAR(px.inst_id) "Slave INST", DECODE(sw.state,'WAITING', 'WAIT', 'NOT WAIT' ) AS STATE, CASE sw.state WHEN 'WAITING' THEN SUBSTR(sw.event,1,30) ELSE NULL END AS wait_event, DECODE(px.qcinst_id, NULL, TO_CHAR(s.SID), px.qcsid) "QC SID", TO_CHAR(px.qcinst_id) "QC INST", DECODE(px.server_set,'',s.last_call_et,'') "Elapsed (s)" FROM gv$px_session px, gv$session s, gv$px_process pp, gv$session_wait sw WHERE px.SID=s.SID(+) AND px.serial#=s.serial#(+) AND px.inst_id = s.inst_id(+) AND px.SID = pp.SID(+) AND px.serial#=pp.serial#(+) AND sw.SID = s.SID AND sw.inst_id = s.inst_id ORDER BY username, DECODE(px.QCINST_ID, NULL, px.INST_ID, px.QCINST_ID), px.QCSID, DECODE(px.SERVER_GROUP, NULL, 0, px.SERVER_GROUP), px.SERVER_SET, px.INST_ID Системная статистика по выполнению параллельных процессов SELECT substr(NAME, 21,length(name)) "name", VALUE, ROUND((RATIO_TO_REPORT(VALUE) OVER ())*100, 2) || '%' PERC FROM V$SYSSTAT WHERE NAME LIKE 'Parallel%' ORDER BY NAME DESC Вкладка "Blocking tree" Отображает в виде дерева сессии ожидающие освобождения "ресурса". Корневой узел в дереве - сессия удерживающая блокировку SQL Запрос with LOCKS as (select /*+ MATERIALIZE*/ * from gv$lock), S as (select /*+ MATERIALIZE*/ s.* from gv$session s), BLOCKERS as (select distinct L1.inst_id, L1.sid from LOCKS L1, LOCKS L2 where L1.block > 0 and L1.ID1 = L2.ID1 and L1.ID2 = L2.ID2 and L2.REQUEST > 0), WAITERS as (select inst_id, sid from S where blocking_session is not null or blocking_instance is not null) select LPAD(' ', (LEVEL - 1) * 2) || 'INST#' || s.inst_id || ' SID#' || sid as BLOCKING_TREE, s.sid, s.serial#, s.program, substr(s.USERNAME || ' ' || s.CLIENT_IDENTIFIER,1,40) as USERNAME, EVENT, last_call_et, seconds_in_wait as SECS_IN_WAIT, blocking_session_status as BLOCK_SESSTAT, pdml_enabled, s.sql_id, s.osuser, p.spid, s.machine as CLNT_HOST, s.process as CLNT_PID, s.port as CLNT_PORT, substr(trim(NVL(sa1.sql_text,sa2.sql_text)), 1, 100) SQL_TEXT, decode(sign(nvl(s.ROW_WAIT_OBJ#, -1)), -1, 'NONE', DBMS_ROWID.ROWID_CREATE(1, s.ROW_WAIT_OBJ#, s.ROW_WAIT_FILE#, s.ROW_WAIT_BLOCK#, s.ROW_WAIT_ROW#)) req_rowid, p1text || ' ' || decode(p1text, 'name|mode', chr(bitand(p1,-16777216)/16777215)||chr(bitand(p1, 16711680)/65535)||' '||bitand(p1, 65535), p1text) as p1text, p1, p1raw, p2text || ' ' || decode(p2text, 'object #', o.object_name || ' ' || o.owner || '.' || o.object_name, p2text) as p2text, p2 from s left join gv$sqlarea sa1 on s.sql_id = sa1.sql_id and s.inst_id = sa1.inst_id left join gv$sqlarea sa2 on s.prev_sql_id = sa2.sql_id and s.inst_id = sa2.inst_id left join dba_objects o on s.p2 = o.object_id left join gv$process p on s.paddr = p.addr and s.inst_id = p.inst_id connect by NOCYCLE prior sid = blocking_session and prior s.inst_id = blocking_instance start with (s.inst_id, s.sid) in (select inst_id, sid from BLOCKERS minus select inst_id, sid from WAITERS) Дополнительная информация по сессиям При выделении сессии в сетках, программа отображает дополнительные данные. Программа отображает информацию в зависимости от активности того или иного листа. Cursors - сведения о открытых курсорах в сессии select oc.sql_text, oc.sql_id from V$OPEN_CURSOR oc, v$SESSION s where oc.saddr=s.saddr and s.sid=$$SID SQL Text - текст текущего SQL запроса в сессии select sql_fulltext from v$sql where sql_id='$$SQL_ID' Session statistics - значения не нулевых системных статистик сессии select st.name, se.value from v$sesstat se, v$statname st where se.statistic#=st.statistic# and se.value<>0 and sid=$$SID order by 2 desc Lock - блокировки объектов сессией select distinct blocking_session, event, do.owner||'.'||do.object_name req_object, sql_text from v$session s, dba_objects do, v$sql s where s.ROW_WAIT_OBJ# = do.object_id and s.sql_id = s.sql_id and blocking_session is not null and sid=$$SID Longops - данные по времени выполнения длительных операций в БД (чтение данных из таблицы, сортировка) и ориентировочное время завершения операции SELECT sl.OPNAME, sl.TARGET, s.machine, ROUND(sl.elapsed_seconds/60) || ':' || MOD(sl.elapsed_seconds,60) elapsed, ROUND(sl.time_remaining/60) || ':' || MOD(sl.time_remaining,60) remaining, ROUND(sl.sofar/sl.totalwork*100, 2) progress_pct, sl.MESSAGE FROM v$session s, v$session_longops sl WHERE s.sid = sl.sid AND s.serial# = sl.serial# and s.SID = $$SID order by sl.START_TIME desc Plan - план выполнения текущего запроса select * from TABLE(DBMS_XPLAN.DISPLAY_CURSOR('$$SQL_ID' )) Rolback - статистика использования сегмента отката для сессии SELECT rs.segment_name, round(r.rssize/1024/1024)||' MB' "size", r.status FROM v$transaction t, v$session s, v$rollstat r, dba_rollback_segs rs WHERE s.saddr = t.ses_addr AND t.xidusn = r.usn AND rs.segment_id = t.xidusn AND s.sid = $$SID AND s.serial# = $$SERIAL# ORDER BY t.used_ublk DESC Session wait - статистика по текущему ожиданию сессии select s.EVENT, s.SECONDS_IN_WAIT, s.P1, s.P1TEXT, s.P2, s.P2TEXT, s.P3 from V$SESSION_WAIT s where sid=$$SID order by SECONDS_IN_WAIT desc SQL Monitoring - данные системного пакета DBMS_SQLTUNE анализирующего процесс выполнение запроса SELECT DBMS_SQLTUNE.report_sql_monitor( sql_id => '$$SQL_ID', type => 'TEXT', report_level => 'ALL') AS report FROM dual Query statistics - статистика по выполнению запроса (конкретного sql_id) select * from V$SQLSTATS where sql_id = '$$SQL_ID'
CerebroSQL: Oracle session manager content media
0
0
3
Admin
01 сент. 2024 г.
In Improvements
[EN] During the development of this version, the main attention was paid to the work of the SQL editor and that's what was done: 1. We rewrote the code hint (Code AutoCompletion), now it works strictly within the boundaries of the current SQL block. The separation of blocks inside the tooltip is performed according to the general rules for the editor, namely, the create commands are terminated with the / symbol, the rest ; 2. The code prompter now remembers the keys used to generate hints, saves the data to an array and extracts the data from memory the next time the key is entered. (currently working for PostgreSQL DBMS, the rest of the DBMS will be added in the next version) Points 1 and 2 actually increase the performance of the code hint many times over! 3. Information about the column data type in the form of a code has been added to the grid in the column headers. 4. The data type is displayed in the grid in the column hint 5. Well, we tweaked the code to optimize the column width when uploading data to the grid. [RU] При разработке данной версии основное внимание было уделено работе редактора SQL и вот, что было сделано: 1. Переписали подсказчик кода (Code AutoCompletion), теперь он работает строго внутри границ текущего SQL блока. Разделение блоков внутри подсказчика выполняется по общим правилам для редактора, а именно команды create завершаются символом /, остальные ; 2. Подсказчик кода теперь запоминает используемые ключи для формирования подсказок сохраняет данные в массив и при последующем вводе ключа извлекает данные из памяти. (работает на данный момент для СУБД PostgreSQL, остальные СУБД будут добавлены в следующей версии) Пункты 1 и 2 фактически многократно повышают производительность подсказчика кода! 3. В сетку в заголовки колонок добавлена информация о типе данных колонки в виде кода. 4. В сетке в хинте колонки выводится тип данных 5. Ну и подправили код для оптимизации ширины колонок при загрузке данных в грид.
0
0
11
Admin
02 июн. 2024 г.
In Program modules
[EN] Redo logs: Redo logs are special files in the Oracle database, which ensure that all changes made by the session will be recorded in the logs in case there is a failure between the moment the changes are made and the moment they are written to the data files. Thus, repeat execution logs are the basis of the recovery process. Oracle organizes its repeat execution log files into log groups, and you need to have at least two different groups of repeat execution logs and at least one member in each. At the very least, two groups will be required, because when one re-execution log is archived, the log writer process should be able to continue writing to the active re-execution log. Although the Oracle database will work well enough with only one member in each group of repeat execution logs, Oracle strongly recommends multiplexing online repeat execution logs. Multiplexing simply means that it is necessary to maintain more than one member in each of the repeat execution log groups. All members of such a group are identical — multiplexing is designed to protect against the loss of one of the copies of the log file. When multiplexing online re-execution logs, the log writer process writes in parallel to all files of the group members. The size of the REDO file is selected based on the intensity of data recording in the database, the number of groups and the speed of the disk subsystem. In most cases, the log size is set in the range from 1 to 4 GB, and the number of groups is from 3 to 5. Managing logs The Serebro SQL program provides a complete set of tools for quickly evaluating the correctness of selected log parameters, their number, size, and also allows you to manage them through a simple interface. Estimating the size of files in a group: The monitoring core constantly collects information about the time of the average time of switching records to log groups, on the main window metric Switching logs. A low value of less than 5 minutes indicates potential problems due to the cost of switching the recording process from one group to another. for more information about metrics, see the section "Metrics (main window)" Viewing information about objects with which operations make the maximum contribution to the data generation of repeat execution logs is performed through the "General REDO size", information on the general generation of logs by day is also available there. Viewing information about REDO magazines To view information about a group, select it in the "REDO group list" The "Statistics" block General information • Number - the number of the currently active group • Size - the size of the files in the group • Time start - the time to switch to the specified group • Switching logs (avg) - average activity time of one group • General REDO size - generation of REDO data for the current day starting at 00:00 The "Information on the selected group" block Information about the selected group • Group number - group number • Status - The status of the group • File size - the size of the REDO files in the group • Count member - the number of files in the group • Start time - the time when the group became active for the last time The "Group parameter" block Group Parameters • Group number - group number • Group size - the size of the file in the group • The receipt "OMF (storage files)" is managed automatically. The data is extracted from the v$parameter system view. The values of the db_create_online_log_dest_N parameters are checked, if at least one of the parameters has a value, a check is issued • The "Standby group" check is set if the log group is a standby group • File path - paths to files in the group The "V$INSTANCE_RECOVERY" tab Information from the system view V$INSTANCE_RECOVERY Creating a new group • Click the "Clear page" button The "Group parameter" block • Enter the group number in the "Group number" field (the group number must not overlap with existing ones) • In the "Group size" field, enter the size of the files in the group • If you need to create a standby group, set the "Standby group" check • If OMF is not used, enter file paths in the "File path" block, a maximum of 5 if you need to multiplex files in a group • Click the "Save" button To view the command before executing, click the "Show SQL" button Sample code: alter database add logfile group 4 ('D:\Soft\OracleDB\oradata\ORCLDB\REDO04.log') size 1G [RU] Redo logs: журналы повторного выполнения — это специальные файлы в БД Oracle, благодаря которым гарантируется, что все изменения, выполненные сессией, будут зафиксированы в журналах на случай, если произойдет сбой между моментом проведения изменений и моментом записи их в файлы данных. Таким образом, журналы повторного выполнения — основа процесса восстановления. ​ Oracle организует свои файлы журналов повторного выполнения в группы журналов, и нужно иметь как минимум две разных группы журналов повторного выполнения и, минимум, по одному члену в каждом. Потребуется, самое меньшее, две группы, потому что когда один журнал повторного выполнения архивируется, процесс писатель журнала должен иметь возможность продолжать писать в активный журнал повторного выполнения. ​ Хотя база данных Oracle будет достаточно хорошо работать и с только одним членом в каждой группе журналов повторного выполнения, в Oracle настоятельно рекомендуют мультиплексировать онлайновые журналы повторного выполнения. Мультиплексирование означает просто то, что необходимо поддерживать более одного члена в каждой из групп журналов повторного выполнения. Все члены такой группы идентичны — мультиплексирование предназначено для защиты от потери одной из копий файла журнала. При мультиплексировании онлайновых журналов повторного выполнения процесс-писатель журналов выполняет запись параллельно во все файлы члены группы. ​ Размер файла REDO выбирается исходя из интенсивности записи данных в БД, количества групп и скорости дисковой подсистемы. В большинстве случаем размер журнала  устанавливается в интервале от 1 до 4 ГБ, а количество групп от 3 до 5. Управление журналами Программа CerebroSQL предоставляет полный набор средств для быстрой оценки верности выбранных параметров журналов, их количества, размера, а так же позволяет через простой интерфейс ими управлять. ​ Оценка размера файлов в группе: Ядро мониторинга постоянно собирает информацию о времени среднем времени переключения записи в группы логов, на главном окне метрика Switching logs. Низкое значение показателя, менее 5 минут говорит о потенциальных проблемах из-за издержек на переключение процесса записи с одной группы на другую. подробнее о метриках смотрите в разделе "Метрики (главное окно)" ​ Просмотр информации об объектах операции с которыми вносят максимальный вклад в генерацию данных журналы повторного выполнения выполняется через "General REDO size", там же доступна информация по общей генерации журналов по дням. Просмотр информации о журналах REDO Для просмотра информации о группе, выделить ее в списке "REDO group list" ​ Блок "Statistics" Общая информация • Number - номер текущей активной группы • Size - размер файлов в группе • Time start - время переключения на указанную группы • Switching logs (avg) - среднее время активности одной группы • General REDO size - генерация данных REDO за текущие сутки начиная с 00:00 ​ Блок "Information on the selected group" Информация по выделенной группе • Group number - номер группы • Status - Статус группы • File size - размер файлов REDO в группе • Count member - количество файлов в группе • Start time - время когда группа стала активно в последний раз ​ Блок "Group parameter" Параметры группы • Group number - номер группы • Group size - размер файла в группе • Чек "OMF (storage files)" - управляется автоматически. Данные извлекаются из системного представления v$parameter. Проверяются значения параметров db_create_online_log_dest_N, если хотя бы один из параметров имеет значение, чек выставляется • Чек "Standby group" - устанавливается в случаи если группа логов является standby группой • File path - пути к файла в группе ​ Вкладка "V$INSTANCE_RECOVERY" Информация из системного представления V$INSTANCE_RECOVERY Создание новой группы • Нажать кнопку "Clear page" Блок "Group parameter" • Ввести в поле "Group number" номер группы (номер группы не должен пересекаться с уже существующими) • В поле "Group size" ввести размер файлов в группе • Если необходимо создать standby группу, установить чек "Standby group" • Если OMF не используется, в блоке "File path" ввести пути к файлам, максимум 5 если необходимо мультиплексировать файлы в группе • Нажать кнопку "Save" ​ Для просмотра команды перед выполнение нажать кнопку "Show SQL" Пример кода: alter database add logfile group 4 ('D:\Soft\OracleDB\oradata\ORCLDB\REDO04.log') size 1G
Oracle: REDO log manager content media
0
0
19
Admin
01 июн. 2024 г.
In Program modules
[EN] Logminer is a mechanism for extracting data from archived Oracle DBMS logs. The sequence of actions: • Enter the path to the archive logs folder in the "Archivelog directory" field.  If you expand the list, the information from v$parameter is selected, not the empty values of the log_archive_dest parameters_% • Click the "Get list file" button to get a list of files in the directory • In the list of files in the directory, select the necessary logs to view the data • Click the "View data" button to download data from the log The "Stop logmnr" button - close the dataset The "Re openquery" button - rediscover the dataset ​ The "Query" tab - queries used to view data in the log The "Script" tab - is the full text of the script for viewing logs [RU] Logminer - это механизм извлечения данных из архивных журналов СУБД Oracle. Последовательность действий: • Ввести в поле "Archivelog directory" путь к папке с архивными журналами.  Если раскрыть список, выбирается информация из v$parameter, не пустые значения параметров log_archive_dest_% • Нажать кнопку "Get list file" для получения списка файлов в директории • В списке "The list of files in the directory" выбрать нужные журналы для просмотра данных • Нажат кнопку "View data" для загрузки данных из журнала ​ Кнопка "Stop logmnr" - закрыть набор данных Кнопка "Reopen query" - переоткрыть набор данных ​ Вкладка "Query" - запросы используемые для просмотра данных в журнале Вкладка "Script" - полный текст скрипта для просмотра журналов
Oracle: logminer - user interface content media
0
0
15
Admin
01 июн. 2024 г.
In Program modules
[EN] The compiler allows you to fix errors, fix errors in the code, as well as view a list of errors for all objects. Object tree (queries) The tree of objects with the Invalid status.  • Root nodes are the name of the schema select owner "Owner",       count(*) "Count"  from ALL_OBJECTS where status='INVALID' group by owner order by 1 • Child nodes of the first level - types of objects select object_type "Type",        count(*) "Count"   from ALL_OBJECTS where status='INVALID' and owner='$$SCHEMA_NAME' group by object_type order by 1 • Child nodes of the second level are objects with the 'Invalid' status select object_name "Name"   from ALL_OBJECTS  where status='INVALID'    and object_type='$$OBJECT_TYPE'    and owner = '$$SCHEMA_NAME' group by object_name order by 1 Object Code Editor • Select an object in the "Tree invalid object" tree • Click the "Show code selected object" button IMPORTANT: the create or replace construct must be missing from the text in the "Code edit" field. ​ The "Error list" contains one line for each error in the object text. When clicked, the cursor is moved to the line with the error in the "Code edit" field ​ The "List all errors" tab It is used to view information about errors in database objects. The list can be sorted by scheme, object type  ​ ​ Compiling objects • In the "Tree invalid object" tree, select the desired level (schema, object type, object) • Click the "Run compile" button The compilation process is monitored in the Program Monitor [RU] Компилятор позволяет исправить ошибки, исправить ошибки в коде, а так же просмотреть список ошибок по всем объектам. Дерево объектов (запросы) Дерево объектов в статусе Invalid.  • Корневые узлы - имя схемы select owner "Owner", count(*) "Count" from ALL_OBJECTS where status='INVALID' group by owner order by 1 • Дочерние узлы первого уровня - типы объектов select object_type "Type", count(*) "Count" from ALL_OBJECTS where status='INVALID' and owner='$$SCHEMA_NAME' group by object_type order by 1 • Дочерние узлы второго уровня - объекты в статусе 'Invalid' select object_name "Name" from ALL_OBJECTS where status='INVALID' and object_type='$$OBJECT_TYPE' and owner = '$$SCHEMA_NAME' group by object_name order by 1 Редактор кода объекта • В дереве "Tree invalid object" выделить объект • Нажать кнопку "Show code selected object" ​       ВАЖНО: конструкция create or replace должна отсутствовать в тексте в поле "Code edit". ​ Список "Error list" - содержит по одной строчке для каждой ошибки в тексте объекта. При клике курсор переводится на строку с ошибкой в поле "Code edit" ​ Вкладка "List all errors" Служит для просмотра информации по ошибкам в объектах БД. Список можно сортировать по схеме, типу объекта  ​ ​ Компиляция объектов • В дереве "Tree invalid object" выделить нужный уровень (схема, тип объекта, объект) • Нажать кнопку "Run compile" Мониторинг процесса компиляции осуществляется в "Мониторе программы"
Oracle: Compile invalid objects (wizard) content media
0
0
13
Admin
27 мая 2024 г.
In Documentation
[EN] Program operation logs are an essential tool for identifying problems in the core of a system and obtaining comprehensive information about the functioning of specific modules or processes. System log System messages from the kernel, with the exception of the query editor, are displayed for almost all modules. Each entry of the system log is previously reset to a file CerebroSQL.log in the directory ./logs History of completed requests All executed queries are saved in the local storage of the program (in cases of operation in the mode with the central database, the data is saved in the central database) and displayed on the "Current SQL" page of the "Logs" window Local database: core database -> C$QUERY_HISTORY The mode of operation with the central database: audit.user_sql_run History of DDL teams All executed commands in the query editor are saved separately in the local database in the DDL_EXE table and displayed on the "Command list" tab Error description Error monitoring of the "ORA-*****" family for all modules of the program. This module also allows you to save a description of errors found in Oracle, PostgreSQL, MySQL and MS SQL Server databases and how to fix them. Checking the structure of local databases The database verification log is used to monitor database maintenance by the system core. The database check is started at the start of the program. [RU] Логи работы программы - это механизм определения как проблем в ядре системы, так и получения полной информации о работе тех или иных модулей/процессов  Системный лог Системные сообщения ядра, практически всех модулей - за исключение редактора запросов Каждая запись системного лога сбрасывается предварительно в файл CerebroSQL.log в директории ./logs История выполненных запросов Все выполняемые запросы сохраняются в локальном хранилище программы (в случаи работы в режиме с центральной базой, данные сохраняются в центральной базе) и выводятся на странице "Current SQL" окна "Logs" Локальная БД: база core -> C$QUERY_HISTORY Режим работы с центральной БД: audit.user_sql_run История команд DDL Все выполненные команды в редакторе запросов отдельно сохраняются в локальной базе данных в таблице DDL_EXEC и выводятся на вкладке "Command list" Error description Мониторинг ошибок семейства "ORA-*****" по всем модулям программы. Так же данный модуль позволяет сохранить описание ошибок встречающихся в базах Oracle, PostgreSQL, MySQL и MS SQL Server и способ их исправления. Проверки структуры локальных баз Лог проверки БД служит для контроля обслуживания БД ядром системы. Проверка базы запускается при старте программы.
CerebroSQL: logs content media
0
0
8
Admin
27 мая 2024 г.
In Program modules
[Oracle parameter editor] [Selected Oracle parameter] [The history of changing the parameter value] [RU] Редактор параметров для СУБД Oracle предназначен внесения изменения в конфигурацию базы данных Oracle, а так же для централизованного хранения истории изменения значений. Редактор параметров доступен • из основного окна программы (внесение изменений в БД к которой подключено ядро мониторинга) • из редактора SQL для СУБД Oracle Внесение изменений • Открыть редактор параметров БД Oracle • В списке параметров (Parameter list) выбрать нужный параметр • В поле "Value" ввести новое значение • В переключателе "Scope" выбрать способ внесения изменений • Нажать кнопку "Save" Просмотр истории изменений • Выбрать параметр в списке "Parameter list" • Нажать кнопку "Show history" [EN] The Oracle Parameter Editor is designed to make changes to the configuration of the Oracle database, as well as to centrally store the history of changes in values. The parameter editor is available • From the main program window (making changes to the database to which the monitoring core is connected) • From the SQL editor for Oracle • Making changes • Open the Oracle Database Parameter Editor • In the Parameter list, select the desired parameter • Enter a new value in the "Value" field • In the "Scope" switch, select the method of making changes • Click the "Save" button Viewing the history of changes • Select a parameter from the "Parameter list" • Click the "Show history" button
CerebroSQL: Oracle parameter editor content media
0
0
6
Admin
10 мар. 2024 г.
In Cluster CerebroSQL
[EN] [RU] Центральная база  (CDW) - хранит журналы работы пользовательских копий программы, обеспечивает совместное использование соединений, документации, скриптов, паролей, ETL процессов ​ Работа в режиме с центральной базой данных осуществляется в 2 режимах: • Бесплатно: особенностью работы в данном случаи является то, что все пользователи работают с центральной базой через единую УЗ • Лицензия: в данном режиме работы доступен Менеджер CDW, это специализированный модуль для управления УЗ на сервере PostgreSQL, правами, привилегиями, а так же доступна утилита для запуска программы и выполнения обслуживания локальных баз. Требования База данных В роли центральной базы данных может выступать только СУБД PostgreSQL версии 9 и старше. Установка СУБД PostgreSQL рекомендуется на сервер под управлением ОС Linux ​ Настройка резервного копирования производится в соответствии со стандартами принятыми в Вашей организации ​ Роль в БД PostgreSQL Для создания и разметки базы данный в СУБД PostgreSQL необходимо создать пользователя с правами на создание баз Пример: create user cdwfree with createdb password 'password'; Добавить в файл pg_hba.conf разрешение на подключение к СУБД под созданным пользователем Перезагрузить конфигурацию: SELECT pg_reload_conf(); Создание и разметка базы Важно: база должна отсутствовать на сервере, создание базы выполняется программой! Открыть настройки программы и перейти на вкладку CDW • Нажать кнопку "Добавить соединение" • В поле "Alias" ввести алиас соединения (уникальное значение) • В поле "Server" ввести имя (ip адрес) и порт на котором работает СУБД PostgreSQL в формат: server:port • В поле "Database name" ввести имя новой базы данный хранилища • В поле "User" ввести имя созданного пользователя • В поле "Password" ввести пароль пользователя • Нажать кнопку "Save" для сохранения параметров подключения Запуск конфигуратора и разметка структуры базы данных • В дереве соединений выбрать созданное соединение. • Нажать кнопку "Connect" • Нажать кнопку "Configure database" для запуска мастера создания и разметки базы данных. • В открывшемся мастере установить переключатель на против созданного соединения и нажать кнопку "Create database structure" Заполнить поля: 1. Global name - комментарий к создаваемой базе. Рекомендация: имя должно быть коротким, латинскими буквами. 2. Owner - имя владельца базы данных (имя руководителя подразделения в чьей зоне ответственности находится хранилище) 3. Organization - название организации 4. Database name - указать имя создаваемой базы данных 5. Name of the new tablespace - имя табличного пространства для создаваемой базы  по умолчанию (не обязательно) 6. Tablespace path - путь к папке на диске сервера  (не обязательно) 7. Нажать кнопку Create database (CDW)
CerebroSQL: Режим работы с центральной базой (кластер) content media
0
0
82
Admin
22 февр. 2024 г.
In Documentation
[EN] General • Program owner - program user name/nickname. Informational Used as a filter for sorting data in local database tables, as well as for separating events in the central storage of the program • Language - program language • Type view - default view type used to display data (DBA and ALL) • Switch"Maximum point" - control of the number of points displayed on the graph "Performance monitor" - displayed number of points (point - 15 second interval)​ • Switch "All database [Alert]" - [On] - display information from alert.log for all databases on the server • Switch "SPFile and StartupFile" - [On] - generate startup file (controlfile) and SPFile (database parameters file) when connecting to the database • Switch "Save parameter when connect" - [On] - save the contents of v$parameter in the local program database • Switch "Show message" - [On] - display tray messages about problems and errors • Switch "ORA - from logging" - [On] - collecting all ORA-***** errors into a separate log file • Switch "Mask password" - [On] - mask passwords in windows with '*' character by default • Switch "Putty: Using DNS" - [On] - when connecting to servers, by default use the DNS server name, otherwise IP • Switch "Save command" - [On] - save all executed commands additionally to the local table DDL_EXEC • Switch "Show log error" - [On] - when an error occurs, open the log window • Switch "Connect at startup" - [On] - allow the monitoring kernel to start when the program starts. Automatic connection to the database that was monitored the last time it was used • Switch "Backup close" - [On] - perform backup copies of program databases when shutting down. The backup is saved in the .\config\backup\ directory • Switch "Use of the Diagnostic and Tuning options" - [On] - allow the program to use views/procedures/packages of the "Diagnostic and Tuning" option of the Oracle DBMS • Switch "Document versioning" - [On] - documents are saved as a new version without overwriting previous editions (see Document repository section) • Switch "Docunemt: show conver button" - [On] - show a button to convert documents to a new format. Used for backward compatibility with older versions • Number of characters - number of characters in the password (for a password generator) • Switch "Special characters" - add special characters • Switch "Number" - add numbers • Switch "Lower case" - lowercase characters • Switch "Upper case" - uppercase characters [RU] General • Program owner - имя/ник пользователя программы. Информационно Используется как фильтр для сортировки данный в таблицах локальной БД, а так же для разделения событий в центральном хранилище программы • Language - язык программы • Type view - тип используемых представлений по умолчанию для отображения данных (DBA и ALL) • Переключатель "Maximum point" - контроль количества точек отображаемый на графике "Performance monitor" - отображаемое количество точек (точка - 15 секундный интервал)​ • Переключатель "All database [Alert]" - [On] - отображать информацию из alert.log по всем базам на сервере • Переключатель "SPFile and StartupFile" - [On] - формировать startup file (controlfile) и SPFile (файл параметров БД) при подключении к базе • Переключатель "Save parameter when connect" - [On] - сохранять содержимое v$parameter в локальной БД программы • Переключатель "Show message" - [On] - выводить сообщения в трее о проблемах, ошибках • Переключатель "ORA - from logging" - [On] - сбор всех ошибок ORA-***** в отдельный файл лога • Переключатель "Mask password" - [On] - маскировать пароли в окнах символом '*' по умолчанию • Переключатель "Putty: Using DNS" - [On] - при подключении к серверам по умолчанию использовать DNS имя сервера, в противном случаи IP • Переключатель "Save command" - [On] - сохранять все выполненные команды дополнительно в локальную таблицу DDL_EXEC • Переключатель "Show log error" - [On] - при возникновении ошибки открывать окно лога • Переключатель "Connect at startup" - [On] - разрешить запуск ядра мониторинга при старте программы. Автоматическое подключение к БД мониторинг которой выполнялся при последнем использовании • Переключатель "Backup close" - [On] - выполнять резервное копирование баз программы при завершении работы. Бэкап сохраняется в директорию .\config\backup\ • Переключатель "Use of the Diagnostic and Tuning options" - [On] - разрешить программе использовать представления/процедуры/пакеты опции "Diagnostic and Tuning" СУБД Oracle • Переключатель "Document versioning" - [On] - документы сохраняются в виде новой версии не затирая предыдущих редакций (см. раздел Document repository) • Переключатель "Docunemt: show conver button" - [On] - показать кнопку конвертации документов в новый формат. Используется для обратной совместимости со старыми версиями • Number of characters - количество символов в в пароле (для генератора паролей) • Чек "Special characters" - добавлять спецсимволы • Чек "Number" - добавлять цифры • Чек "Lower case" - символы в нижнем регистре • Чек "Upper case" - символы в верхнем регистре QUERY EDITOR Раскрывающийся список "Completion load" - Значение по умолчанию для нового листа. Определяет способ загрузки подсказок по объектам БД. • Work - В режиме реального времени • Manual - В ручную ​ • Переключатель "Rename history file [tmp dir]" - On - переименовывать временные файлы листов прошлой сессии работы программы, тем самым сохраняя работу прошлой сессии. • Переключатель "Automatically save lists editor" - On - включить механизм автоматического сохранения текста листов редактора запросов в папку на диске. По умолчанию листы сохраняются в файлы в директории .\tmp\lists\<current_date>\<List_name>.sql • Переключатель "Show log operation" - On - показывать полупрозрачное окно с логом выполнения операций в текущем листе. • Переключатель "Copy text new list" - On - при клонировании текущего листа (Ctrl+t) копировать содержимое листа в новый лист. EDIT LOCAL TNS Страница настройки параметров окружения драйвера работы с СУБД Oracle Программа работает с СУБД: • используя локальные библиотеки версии 11.2.0.4 • через установленного клиента на рабочей станции ​ Редактирование параметров 1. Установить чек "Edit configuration" 2. Из раскрывающегося списка выбрать клиента 2.1 <Local> - Локальные библиотеки 2.2 <Имя установленного клиента> - ранее установленный клиент 3. Нажать кнопку "Apply" для применения параметров ​ Редактирование локального файла tnsnames.ora Нажать на кнопку "Edit" ​ Отчет о параметрах используемого окружения Нажать кнопку "Report" для отображения параметров окружения программы для работы с СУБД Oracle.  Monitoring • Переключатель "To chek the rigth on the object" - проверять права на таблицы/представления при подключении к БД. • Переключатель "Save SQL text" - сохранять текст sql запросов выполняемых активными сессиями. Сбор данных выполняется процессом сбора данных о нагрузке на БД • Переключатель "The size of the database" - проверять размер табличных пространств • Переключатель "Easy query" - использовать "стандартный" (с использованием данных из dba_free_space) запрос или облегченный (без использованием данных из dba_free_space) • Переключатель "Automatically [ASH or Real-time]" - разрешить программе автоматически принимать решение о источнике данных  о нагрузке в БД. При доступности представлений ASH принимается решение о их использовании. Если представления не доступны, данные берутся из представления V$SESSION. Рекомендуется отключать данную функцию. • Переключатель "Use mode Real-time" - использовать данные из V$SESSION для формирования профиля нагрузки. Рекомендуется использовать указанный механизм • Переключатель "Adjust the timer" - активация данной функции заставляет ядро системы корректировать время старта сбора данных обеспечивая "строгий" интервал в 1 с. между моментами начала выполнения запросов формирующих ASH профиль. • Переключатель "Show background"  - сбор информации в том числе и по системным процессам LOCALDB Backup • "Backup directory" - путь к папке в которой сохранять резервные копии баз программы при завершении работы. • "Password" - пароль для резервных копий программы ВАЖНО: резервное копирование активируется автоматически при заполнении полей "Backup directory" и "Password" ​ Management • Shrink - очистка кеша страниц для выбранных баз из списка "List local database" • Sweep - выполнить команду vacuum (очистка от мусора страниц) для выбранных баз из списка "List local database" • Analyze - обновить статистику для выбранных баз из списка "List local database" • Backup - выполнить немедленно резервное копирование выбранных баз из списка "List local database" ​ Change password  Смена пароля для входа в программу. ​ Clear ASH database Очистка и сжатие базы ASH.db. Данная база хранит данные по нагрузке на базы собираемою основным ядром программы. Так как данных получаемых из нагруженных баз большое количество, то указанная база имеет тенденцию к росту. Операция очистки позволяет уменьшит размер базы без ее полного пересоздания и потери данных
CerebroSQL: Settings content media
0
0
18
Admin
18 февр. 2024 г.
In CerebroSQL: main window
[EN] The module is used to configure quick launch of third-party applications with certain parameters Creating a link • Click the "Create" button • In the "Group name" field, enter the group name or select a previously saved one from the drop-down list • In the "Alias" field, enter the alias of the record. This information is displayed in the main window menu • In the "Program name" field enter the name of the program to be launched • In the "Exe path" field, specify the full path to the executable file to be launched • In the "Parameter start" field enter the keys to start the executable file • In the "Comment" field, enter a comment if necessary. • Save the connection by clicking the "Save" button [RU] Модуль служит для настройки быстрого запуска сторонних приложений с определенными параметрами Создание линка • Нажать кнопку "Create" • В поле "Group name" ввести имя группы или выбрать из выпадающего списка ранее сохраненное • В поле "Alias" ввести алиас записи. Данная информация выводится в меню основного окна • В поле "Program name" ввести имя запускаемой  программы • В поле "Exe path" указать полный путь до запускаемого исполняемого файла • В поле "Parameter start" ввести ключи для запуска исполняемого файла • В поле "Comment" ввести комментарий при необходимости • Сохранить соединение нажатием кнопки "Save"
CerebroSQL: Setting up quick launch for programs content media
0
0
7
Admin
17 февр. 2024 г.
In CerebroSQL: main window
[EN] The connection creation wizard allows you to configure static connections with Linux/AIX servers for subsequent quick connection to them without entering a login/password Creating a connection • Click the "New" button • In the "Group name" field, enter the name of the group in the tree or select a previously entered name from the drop-down list • In the "Connection alias" field, enter the connection alias (displayed in the main window in the list of connections) • In the "Server IP" field, enter the server's IP address. This address is used to connect • In the "DNS name server" field enter the DNS server name • In the "User connect" field enter the user name of the OS under which the connection is made • In the "User password" field, enter the user password for the case of connecting using a password • In the "Key privat file" field, indicate the path to the file with the private key, if available. • Save the connection by clicking the "Save" button Check connection parameters by clicking the "Connect" button [RU] Мастер создания соединения позволяет настроить статические соединения с серверами Linux/AIX для последующего быстрого подключения к ним без ввода логина/пароля Создание соединения • Нажать кнопку "New" • В поле "Group name" ввести имя группы в дереве или выбрать из выпадающего списка ранее введенное имя • В поле "Connection alias" ввести алиас соединения (выводится в основном окне в списке соединений) • В поле "Server IP" ввести IP адрес сервера. Данный адрес используется для подключения • В поле "DNS name server" ввести DNS имя сервера • В поле "User connect" ввести имя пользователя ОС под которым производится подключение • В поле "User password" ввести пароль пользователя для случая подключения по паролю • В поле "Key privat file" указать путь к файлу с приватным ключом при его наличии • Сохранить соединение нажатием кнопки "Save" ​ Проверить параметры подключения нажатием кнопки "Connect"
Configuration connect for Linux server using putty content media
0
0
7
Admin
17 февр. 2024 г.
In CerebroSQL: main window
[EN] StartupFile [controlfile - text] StartupFile is an SQL script that allows you to recreate the Controlfile of a database and start it. The created script contains only the "NORESETLOGS case" section The file is generated when connecting to the database by the main monitoring kernel.​ A similar script can be obtained by running the command: alter database backup controlfile to trace as '<FilePath>'; Queries used to generate the file select min(group#) as min1, max(group#) as max1  from v$logfile; select lf.GROUP#,       lf.member "member",       l.BYTES/1024/1024||'M' "size"  from v$logfile lf,       v$log l where l.GROUP#=lf.GROUP#   and lf.type ='ONLINE' order by lf.GROUP#; select file_name from dba_data_files; select value  from nls_database_parameters where PARAMETER='NLS_CHARACTERSET'; select file_name,       bytes,       autoextensible,       increment_by * (select value                          from v$parameter                        where name ='db_block_size') "INCR",       round(maxbytes/1024/1024) "MAX"  from dba_temp_files where status='ONLINE';                select sys_context('USERENV','DB_UNIQUE_NAME') "Name",        sys_context('USERENV','SERVER_HOST') "Host" from dual; PFile - parameters file PFile is an Oracle DBMS parameters file used when manually starting the database. Based on PFile, SPFile is created select type, name, value  from V$SYSTEM_PARAMETER where isdefault='FALSE'   and value is not null order by name; select sys_context('USERENV','DB_UNIQUE_NAME') "Name",        sys_context('USERENV','SERVER_HOST') "Host" from dual; [RU] StartupFile [controlfile - text] StartupFile - это SQL скрипт позволяющий пересоздать Controlfile базы данных и запустить ее. В создаваемом скрипте содержится только секция "NORESETLOGS case" Формирование файла осуществляется при подключении к базе данных основным ядром мониторинга.​ Аналогичный скрипт можно получить выполнив команду: alter database backup controlfile to trace as '<FilePath>'; Запросы используемые для формирования файла select min(group#) as min1, max(group#) as max1  from v$logfile; select lf.GROUP#,       lf.member "member",       l.BYTES/1024/1024||'M' "size"  from v$logfile lf,       v$log l where l.GROUP#=lf.GROUP#   and lf.type ='ONLINE' order by lf.GROUP#; select file_name from dba_data_files; select value  from nls_database_parameters where PARAMETER='NLS_CHARACTERSET'; select file_name,       bytes,       autoextensible,       increment_by * (select value                          from v$parameter                        where name ='db_block_size') "INCR",       round(maxbytes/1024/1024) "MAX"  from dba_temp_files where status='ONLINE';                select sys_context('USERENV','DB_UNIQUE_NAME') "Name",        sys_context('USERENV','SERVER_HOST') "Host" from dual; PFile - файл параметров PFile - это файл параметров СУБД Oracle, используемый при ручном запуске базы данных. На основе PFile создается SPFile select type, name, value  from V$SYSTEM_PARAMETER where isdefault='FALSE'   and value is not null order by name; select sys_context('USERENV','DB_UNIQUE_NAME') "Name",        sys_context('USERENV','SERVER_HOST') "Host" from dual;
Oracle: StartUp file and PFile manager content media
0
0
6
Admin
17 февр. 2024 г.
In CerebroSQL: main window
[EN] The window allows you to view detailed backup information using the RMAN utility Window structure Field "For the last" - display records for N days List "List backup" - a list of backup operations with the status of the operation SELECT end_time, input_type||' ('|| case when status = 'RUNNING WITH WARNINGS' then 'RWW' when status = 'RUNNING WITH ERRORS' then 'RWE' when status = 'COMPLETED' then 'C' when status = 'COMPLETED WITH WARNINGS' then 'CWW' when status = 'COMPLETED WITH ERRORS' then 'CWE' when status = 'FAILED' then 'F' else status end||')' "Type", status, session_key, session_recid, session_stamp, command_id, start_time, time_taken_display, input_type, output_device_type, input_bytes_display, INPUT_BYTES_PER_SEC_DISPLAY, output_bytes_display, output_bytes_per_sec_display FROM (SELECT end_time, status, session_key, session_recid, session_stamp, command_id, start_time, time_taken_display, input_type, output_device_type, input_bytes_display, INPUT_BYTES_PER_SEC_DISPLAY, output_bytes_display, output_bytes_per_sec_display FROM v$rman_backup_job_details WHERE start_time> sysdate - 10 ORDER BY start_time DESC) Block "Information" - detailed information about the selected record. The data is displayed by the same query as the information for the "List backup" list "Details" tab The tab displays detailed information about the backup of database files, file sizes and start time of the processing operation select a.STATUS, to_char(open_time,'dd.mm.(http://dd.mm)yyyy hh24:mi') timebegin, round(BYTES/1024/1024,2)|| ' Mb' mbbegin, a.type, filename from v$backup_async_io a where not a.STATUS in ('UNKNOWN') and open_time >= to_date(<Time_start>,'dd.mm.(http://dd.mm)yyyy hh24:mi:ss') and close_time <= to_date(<Time_end>,'dd.mm.(http://dd.mm)yyyy hh24:mi:ss')+10/86400 order by open_time "Log" tab Detailed log of the session execution of the RMAN utility select output from V$RMAN_OUTPUT where session_stamp = $$session_stamp "Configuration" tab View and change backup settings using the RMAN utility select CONF#, name, value from V$RMAN_CONFIGURATION order by name [RU] Окно позволяет просматривать подробную информацию о резервном копировании используя утилиту RMAN Структура окна Поле "For the last" - вывести записи за N дней Список "List backup" - список операций резервного копирования со статусом выполнения операции SELECT end_time, input_type||' ('|| case when status = 'RUNNING WITH WARNINGS' then 'RWW' when status = 'RUNNING WITH ERRORS' then 'RWE' when status = 'COMPLETED' then 'C' when status = 'COMPLETED WITH WARNINGS' then 'CWW' when status = 'COMPLETED WITH ERRORS' then 'CWE' when status = 'FAILED' then 'F' else status end||')' "Type", status, session_key, session_recid, session_stamp, command_id, start_time, time_taken_display, input_type, output_device_type, input_bytes_display, INPUT_BYTES_PER_SEC_DISPLAY, output_bytes_display, output_bytes_per_sec_display FROM (SELECT end_time, status, session_key, session_recid, session_stamp, command_id, start_time, time_taken_display, input_type, output_device_type, input_bytes_display, INPUT_BYTES_PER_SEC_DISPLAY, output_bytes_display, output_bytes_per_sec_display FROM v$rman_backup_job_details WHERE start_time> sysdate - 10 ORDER BY start_time DESC) Блок "Information" - подробная информация о выделенной записи. Данные выводятся тем же запросом, что и информация для списка "List backup" Вкладка "Details" Вкладка выводит подробную информацию о резервном копировании файлов БД, размеры файлов и время старта выполнения операции обработки select a.STATUS, to_char(open_time,'dd.mm.(http://dd.mm)yyyy hh24:mi') timebegin, round(BYTES/1024/1024,2)|| ' Mb' mbbegin, a.type, filename from v$backup_async_io a where not a.STATUS in ('UNKNOWN') and open_time >= to_date(<Time_start>,'dd.mm.(http://dd.mm)yyyy hh24:mi:ss') and close_time <= to_date(<Time_end>,'dd.mm.(http://dd.mm)yyyy hh24:mi:ss')+10/86400 order by open_time Вкладка "Log" Подробный лог выполнения сессии утилиты RMAN select output from V$RMAN_OUTPUT where session_stamp = $$session_stamp Вкладка "Configuration" Просмотр и изменение настроек резервного копирования с помощью утилиты RMAN select CONF#, name, value from V$RMAN_CONFIGURATION order by name
Oracle RMAN backup info content media
0
0
12
Admin
17 февр. 2024 г.
In CerebroSQL: main window
[EN] Viewing information on objects when working with which the maximum amount of data is generated in the REDO logs of the Oracle database Top objects the generate data redo Statistics on objects when working with which create the maximum amount of data in REDO logs select * from (SELECT to_char(min(begin_interval_time), 'DD-Mon-YY HH24:MI') ||' - ' || to_char(max(begin_interval_time), 'DD-Mon-YY HH24:MI') as WHEN, dhso.object_name, dhso.object_type, dhso.tablespace_name, sum(db_block_changes_delta) as db_block_changes, to_char(round((RATIO_TO_REPORT(sum(db_block_changes_delta)) OVER()) * 100, 2), '99.00')||' %' as REDO_PERCENT FROM dba_hist_seg_stat dhss, dba_hist_seg_stat_obj dhso, dba_hist_snapshot dhs WHERE dhs.snap_id = dhss.snap_id AND dhs.instance_number = dhss.instance_number AND dhss.obj# = dhso.obj#(+) AND dhss.dataobj# = dhso.dataobj#(+) AND begin_interval_time BETWEEN to_date('<date_start>','dd.mm.(http://dd.mm)yyyy hh24:mi:ss') AND to_date('<date_end>','dd.mm.(http://dd.mm)yyyy hh24:mi:ss') GROUP BY dhso.object_name,dhso.object_type,dhso.tablespace_name ORDER BY db_block_changes desc) Size REDO archived Statistics on the size of archivelog files generated by day select s."DateFirst", round(sum(s."Bytes")/1024/1024/1024, 2)||' GB' "GB", (select dest_name||'='||destination from V$ARCHIVE_DEST where dest_id=s.dest_id) from (select TRUNC(first_time) "DateFirst", blocks*block_size "Bytes", dest_id from V$ARCHIVED_LOG) s group by s."DateFirst", dest_id order by 1 desc, 3 [RU] Просмотр информации по объектам при работе с которыми формируется максимальное количество данных в журналах REDO базы данных Oracle Top objects the generate data redo Статистика по объектам при работе с которыми создается максимальное количество данных в журналах REDO select * from (SELECT to_char(min(begin_interval_time), 'DD-Mon-YY HH24:MI') ||' - ' || to_char(max(begin_interval_time), 'DD-Mon-YY HH24:MI') as WHEN, dhso.object_name, dhso.object_type, dhso.tablespace_name, sum(db_block_changes_delta) as db_block_changes, to_char(round((RATIO_TO_REPORT(sum(db_block_changes_delta)) OVER()) * 100, 2), '99.00')||' %' as REDO_PERCENT FROM dba_hist_seg_stat dhss, dba_hist_seg_stat_obj dhso, dba_hist_snapshot dhs WHERE dhs.snap_id = dhss.snap_id AND dhs.instance_number = dhss.instance_number AND dhss.obj# = dhso.obj#(+) AND dhss.dataobj# = dhso.dataobj#(+) AND begin_interval_time BETWEEN to_date('<date_start>','dd.mm.(http://dd.mm)yyyy hh24:mi:ss') AND to_date('<date_end>','dd.mm.(http://dd.mm)yyyy hh24:mi:ss') GROUP BY dhso.object_name,dhso.object_type,dhso.tablespace_name ORDER BY db_block_changes desc) Size REDO archived Статистика по размеру файлов archivelog сформированных по дням select s."DateFirst", round(sum(s."Bytes")/1024/1024/1024, 2)||' GB' "GB", (select dest_name||'='||destination from V$ARCHIVE_DEST where dest_id=s.dest_id) from (select TRUNC(first_time) "DateFirst", blocks*block_size "Bytes", dest_id from V$ARCHIVED_LOG) s group by s."DateFirst", dest_id order by 1 desc, 3
Oracle: generate redo data content media
0
0
5
bottom of page