{"id":1273,"date":"2025-10-27T08:08:02","date_gmt":"2025-10-27T05:08:02","guid":{"rendered":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273"},"modified":"2025-10-27T12:23:53","modified_gmt":"2025-10-27T09:23:53","slug":"db-administration-notes","status":"publish","type":"post","link":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273","title":{"rendered":"DB administration notes"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>AB user roles:\n\n-AB user - regular user who can modify, add, filter, and search as needed\n\n-AB programmer - creates functions and procedures (triggers)\n\n- DBA - AB administrator - ensures that the right users have the right permissions\n\n- AB designer - creates tables and the AB structure<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>DBA - AB administrator types:\n*system administrator\n*AB architect\n*AB analyst\n*Data warehouse administrator -  \u0430\u0434\u043c\u0438\u043d \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 (admeladu)<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">The two main objectives (tasks) of the DBA:<br>1. User support and access sharing and configuration<br>2. Ensuring AB security and performance<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">AB security - 3 key aspects:<br>*data confidentiality<br>GRANT role to user [identified by pwd] [with grant option];<br>REVOKE role from user;<br><br>*data availability (availability) - \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c - data is available at the right time and to the right user<br>*data integrity (integrity) - \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c - reliable data sources<\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Risk<\/strong><\/td><td><strong>Safety aspect<\/strong><\/td><\/tr><tr><td>Human errors<\/td><td>confidentiality, availability, integrity<\/td><\/tr><tr><td>physical defects (hardware)<\/td><td>availability, integrity<\/td><\/tr><tr><td>operating system failures<\/td><td>availability, integrity, confidentiality<\/td><\/tr><tr><td>database system failures<\/td><td>availability, integrity, confidentiality<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">-COMMIT - The COMMIT command is used to save all changes made during the current transaction to the database. Once the transaction is committed, the changes become permanent. <br><br>-ROLLBACK - If an error occurs, such as a query problem, you can use ROLLBACK to undo all changes made during the transaction.<br><br>-ROLLFORWARD - This command restores the database by applying the transactions stored in the database log files. <br><br>-Data mining - Discovering valuable patterns and insights from large data sets using machine learning, statistics, and database system methods.<br><br>-Data warehouse - a central repository of data integrated from various sources. These store current and historical data, organized in a way that is optimized for data analysis, reporting, and drawing conclusions based on integrated data.<br><br>GROUP BY - this statement groups rows with the same values into summary rows, for example, \"find the number of customers in each country\"<br><br>SELECT COUNT(CustomerID), Country<br>FROM Customers<br>GROUP BY Country;<br><br>UNION ALL - command combines the result sets of two or more SELECT statements (allows duplicate values)<br><br>SELECT City FROM Customers<br>UNION ALL<br>SELECT City FROM Suppliers<br>ORDER BY City;<br><br>GROUPING - Determines whether the column expression in the GROUP BY list is aggregated or not<br><br>SELECT SalesQuota, SUM(SalesYTD) 'TotalSalesYTD', GROUPING(SalesQuota) AS 'Grouping'  <br>FROM Sales.SalesPerson  <br>GROUP BY SalesQuota WITH ROLLUP;  <br>GO<br><br>- ROLLUP - operator enhances the capabilities of the GROUP BY clause, allowing<br><br>GROUP BY - this clause groups rows with the same values into summary rows, for example, \"find the number of customers in each country\"<br><br>SELECT COUNT(CustomerID), Country<br>FROM Customers<br>GROUP BY Country;<br><br>UNION ALL - command combines the result sets of two or more SELECT statements (allows duplicate values)<br><br>SELECT City FROM Customers<br>UNION ALL<br>SELECT City FROM Suppliers<br>ORDER BY City;<br><br>GROUPING - Determines whether the column expression in the GROUP BY list is aggregated or not<br><br>SELECT SalesQuota, SUM(SalesYTD) 'TotalSalesYTD', GROUPING(SalesQuota) AS 'Grouping'  <br>FROM Sales.SalesPerson  <br>GROUP BY SalesQuota WITH ROLLUP;  <br>GO  <br><br>- ROLLUP - The operator enhances the capabilities of the GROUP BY clause by allowing the calculation of subtotals and totals for a set of columns.<br><br>select COALESCE(Department, 'Total') as Department SUM(Salary)<br>from Employee1<br>Group By ROLLUP (Department);<br><br>- CUBE - is an extension of the GROUP BY clause that allows you to generate all possible combinations of groups for specified columns, including subtotals and totals.<br><br>SELECT state, SUM(salary) AS salary<br>FROM salary_reports<br>GROUP BY CUBE(state)<br>ORDER BY state;<br><br>Difference between ROLLUP and CUBE - ROLLUP summarizes based on the hierarchy of columns used in the GROUP BY clause. CUBE groups by all combinations of values. \/ Rollup sums the hierarchically selected columns CUBE calculates the sums in each column\/combination<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Keys<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">PRIMARY KEY<\/h3>\n\n\n\n<p>PRIMARY KEY \u2013 is a column or group of columns in a table that uniquely identifies each row in the table. A primary key cannot be duplicated, which means that the same value cannot appear more than once in the table. A table cannot have more than one primary key.<\/p>\n\n\n\n<p>In this example, StudID is the primary key:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png\" alt=\"\" class=\"wp-image-1353\"\/><\/figure>\n\n\n\n<p>Rules for defining the primary key:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>No two rows may have the same primary key value.<\/li>\n\n\n\n<li>Each row must have a primary key value.<\/li>\n\n\n\n<li>The primary key field must not be empty.<\/li>\n\n\n\n<li>The value of the primary key column must never be changed or updated if any foreign key references that primary key.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>ALTERNATE KEY<\/strong><\/h3>\n\n\n\n<p>ALTERNATE KEY &#8211; is a column or group of columns in a table that uniquely identifies each row in the table. A table can have multiple primary key options, but only one can be designated as the primary key. All keys that are not primary keys are called alternate keys.<\/p>\n\n\n\n<p>In this table, StudID, Roll No, and Email are qualified as primary keys. Since StudID is the primary key, Roll No and Email become alternate keys.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-1.png\" alt=\"\" class=\"wp-image-1355\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">CANDIDATE KEY<\/h3>\n\n\n\n<p>CANDIDATE KEY in SQL &#8211; is a set of attributes that uniquely identifies tuples in a table. A candidate key is a superkey that has no duplicate attributes. The primary key should be selected from among the candidate keys. Each table must have at least one candidate key. A table can have multiple candidate keys, but only one primary key.<\/p>\n\n\n\n<p>Candidate key properties:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It must contain unique values.<\/li>\n\n\n\n<li>In SQL, a candidate key can have multiple attributes.<\/li>\n\n\n\n<li>It must not contain null values.<\/li>\n\n\n\n<li>It should contain the minimum number of fields to ensure uniqueness.<\/li>\n\n\n\n<li>It must uniquely identify each record in the table.<\/li>\n<\/ul>\n\n\n\n<p>Candidate key Example: In this table, Stud ID, registration number, and e-mail are candidate keys that help us uniquely identify student data in the table.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-2-1024x226.png\" alt=\"\" class=\"wp-image-1356\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-3.png\" alt=\"\" class=\"wp-image-1357\"\/><\/figure>\n\n\n\n<p class=\"has-small-font-size\">(this picture is a good example)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">FOREIGN KEY<\/h3>\n\n\n\n<p>FOREIGN KEY &#8211; is a column that creates a relationship between two tables. The purpose of a foreign key is to maintain data integrity and enable navigation between two different entities. It acts as a cross-reference between two tables, as it refers to the primary key of the other table.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-5-1024x498.png\" alt=\"\" class=\"wp-image-1359\"\/><\/figure>\n\n\n\n<p>In this DBMS example, we have two tables: teachers and departments in a school. However, it is not possible to see which search works in which department.<\/p>\n\n\n\n<p>In this table, we can add a foreign key Deptcode to the teacher&#8217;s name and create a link between the two tables.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-6-1024x226.png\" alt=\"\" class=\"wp-image-1360\"\/><\/figure>\n\n\n\n<p>This concept is also known as reference integrity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">COMPOUND KEY<\/h3>\n\n\n\n<p>COMPOUND KEY &#8211; consists of two or more attributes that allow you to uniquely identify a specific record. It is possible that each column is not unique in the database by itself. However, when combined with another column or columns, the combination of composite keys becomes unique. The purpose of a composite key in a database is to uniquely identify each record in a table.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-7-1024x348.png\" alt=\"\" class=\"wp-image-1361\"\/><\/figure>\n\n\n\n<p>In this example, OrderNo and ProductID cannot be the primary key because they do not uniquely identify the record. However, a composite key of Order ID and Product ID could be used because it uniquely identifies each record.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">COMPOSITE KEY<\/h3>\n\n\n\n<p>COMPOSITE KEY &#8211; is a combination of two or more columns that uniquely identifies rows in a table. The combination of columns ensures uniqueness, although individual uniqueness is not guaranteed. Therefore, they are combined to uniquely identify records in a table.<\/p>\n\n\n\n<p>The difference between a composite key and a composite key is that any part of a composite key can be a foreign key, but a composite key may or may not be part of a foreign key.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-8.png\" alt=\"\" class=\"wp-image-1362\" style=\"width:410px;height:auto\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">SUPER KEY<\/h3>\n\n\n\n<p>SUPER KEY &#8211; A set of one or more attributes (columns) that uniquely identifies a record is known as a superkey. It may contain additional attributes that are not essential for uniqueness but still uniquely identify the row. For example, STUD_NO, (STUD_NO, STUD_NAME), etc.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A superkey is a group of one or more keys that identifies the uniqueness of rows in a table. It supports NULL values in rows.<\/li>\n\n\n\n<li>A superkey may contain additional attributes that are not necessary to ensure uniqueness.<\/li>\n\n\n\n<li>For example, if the column &#8220;STUD_NO&#8221; can uniquely identify a student, adding &#8220;SNAME&#8221; to it still forms a valid superkey, even though it is not necessary.<\/li>\n<\/ul>\n\n\n\n<p>Example: See the STUDENT table.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-9.png\" alt=\"\" class=\"wp-image-1363\"\/><\/figure>\n\n\n\n<p>The superkey could be a combination of STUD_NO and PHONE, as this combination uniquely identifies the student.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-10.png\" alt=\"\" class=\"wp-image-1364\" style=\"width:535px;height:auto\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">UNIQUE KEY<\/h3>\n\n\n\n<p>UNIQUE KEY &#8211; ensures that all values in a column or group of columns are unique throughout the entire table. In addition, if a unique key is applied to multiple columns at once, every combination of values in those columns must be unique throughout the entire table.<\/p>\n\n\n\n<p>Another feature of unique keys is that, unlike primary keys, they can contain NULL values, which can be unique. However, duplicate non-null values are not allowed.<\/p>\n\n\n\n<p>Let&#8217;s look at a table called Student, using the desc command to display the column with a unique key:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">desc Student;<br>+-----------------+-------------+------+-----+---------+-------+<br>| Field           | Type        | Null | Key | Default | Extra |<br>+-----------------+-------------+------+-----+---------+-------+<br>| id              | int(11)     | YES  | UNI | NULL    |       |<br>| name            | varchar(60) | YES  |     | NULL    |       |<br>| national_id     | bigint(20)  | NO   |     | NULL    |       |<br>| birth_date      | date        | YES  |     | NULL    |       |<br>| enrollment_date | date        | YES  |     | NULL    |       |<br>| graduation_date | date        | YES  |     | NULL    |       |<br>+-----------------+-------------+------+-----+---------+-------+<br><\/pre>\n\n\n\n<p>Here, the column id is marked with the UNI key, which indicates that it is a unique key. In addition, we see the YES mark under the Null column, which means that the id column may contain NULL values.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SIMPLE KEY<\/h3>\n\n\n\n<p>SIMPLE KEY &#8211; is a single attribute or column that uniquely identifies each row or record in a table. For example, a student ID can be a simple key in a student table, as no two students can have the same ID. A simple key is also called a primary key and usually has some restrictions, such as not allowing null values or duplicate values. A simple key can also be referenced by other tables as a foreign key to create a relationship between them.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image-11.png\" alt=\"\" class=\"wp-image-1365\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Links<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DBMS Keys: Candidate, Super, Primary, Foreign Key Types with Example \u2013 <a href=\"https:\/\/www.guru99.com\/dbms-keys.html\">https:\/\/www.guru99.com\/dbms-keys.html<\/a><\/li>\n\n\n\n<li>Keys in Relational Model \u2013&nbsp;<a href=\"https:\/\/www.geeksforgeeks.org\/dbms\/types-of-keys-in-relational-model-candidate-super-primary-alternate-and-foreign\">https:\/\/www.geeksforgeeks.org\/dbms\/types-of-keys-in-relational-model-candidate-super-primary-alternate-and-foreign<\/a><\/li>\n\n\n\n<li>Understanding MySQL Keys: MUL, PRI, and UNI Explained \u2013&nbsp;<a href=\"https:\/\/www.baeldung.com\/sql\/mysql-keys-mul-pri-uni\">https:\/\/www.baeldung.com\/sql\/mysql-keys-mul-pri-uni<\/a><\/li>\n\n\n\n<li>What is the difference between a composite key and a simple key? &#8211; <a href=\"https:\/\/www.linkedin.com\/advice\/0\/what-difference-between-composite-key-simple-txnce#:~:text=A%20simple%20key%20is%20also,establish%20a%20relationship%20between%20them.\">https:\/\/www.linkedin.com\/advice\/0\/what-difference-between-composite-key-simple-txnce#:~:text=A%20simple%20key%20is%20also,establish%20a%20relationship%20between%20them.<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The two main objectives (tasks) of the DBA:1. User support and access sharing and configuration2. Ensuring AB security and performance AB security &#8211; 3 key aspects:*data confidentialityGRANT role to user [identified by pwd] [with grant option];REVOKE role from user;*data availability (availability) &#8211; \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c &#8211; data is available at the right time and to the right [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1273","post","type-post","status-publish","format-standard","hentry","category-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DB administration notes - Hussein Tahmazov portfolio eng<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DB administration notes - Hussein Tahmazov portfolio eng\" \/>\n<meta property=\"og:description\" content=\"The two main objectives (tasks) of the DBA:1. User support and access sharing and configuration2. Ensuring AB security and performance AB security - 3 key aspects:*data confidentialityGRANT role to user [identified by pwd] [with grant option];REVOKE role from user;*data availability (availability) - \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c - data is available at the right time and to the right [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273\" \/>\n<meta property=\"og:site_name\" content=\"Hussein Tahmazov portfolio eng\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-27T05:08:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-27T09:23:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png\" \/>\n<meta name=\"author\" content=\"Hussein\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hussein\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273\"},\"author\":{\"name\":\"Hussein\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#\\\/schema\\\/person\\\/f75baafdedeb73cd9ef1d8d87311bbb0\"},\"headline\":\"DB administration notes\",\"datePublished\":\"2025-10-27T05:08:02+00:00\",\"dateModified\":\"2025-10-27T09:23:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273\"},\"wordCount\":1083,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image.png\",\"articleSection\":[\"Database\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273\",\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273\",\"name\":\"DB administration notes - Hussein Tahmazov portfolio eng\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image.png\",\"datePublished\":\"2025-10-27T05:08:02+00:00\",\"dateModified\":\"2025-10-27T09:23:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#\\\/schema\\\/person\\\/f75baafdedeb73cd9ef1d8d87311bbb0\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#primaryimage\",\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image.png\",\"contentUrl\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/image.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?p=1273#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DB administration notes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#website\",\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/\",\"name\":\"Hussein Tahmazov portfolio eng\",\"description\":\"Junior Software Developer\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/#\\\/schema\\\/person\\\/f75baafdedeb73cd9ef1d8d87311bbb0\",\"name\":\"Hussein\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g\",\"caption\":\"Hussein\"},\"sameAs\":[\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\"],\"url\":\"https:\\\/\\\/khusseintakhmazov24.thkit.ee\\\/wp\\\/eng\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DB administration notes - Hussein Tahmazov portfolio eng","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273","og_locale":"en_GB","og_type":"article","og_title":"DB administration notes - Hussein Tahmazov portfolio eng","og_description":"The two main objectives (tasks) of the DBA:1. User support and access sharing and configuration2. Ensuring AB security and performance AB security - 3 key aspects:*data confidentialityGRANT role to user [identified by pwd] [with grant option];REVOKE role from user;*data availability (availability) - \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c - data is available at the right time and to the right [&hellip;]","og_url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273","og_site_name":"Hussein Tahmazov portfolio eng","article_published_time":"2025-10-27T05:08:02+00:00","article_modified_time":"2025-10-27T09:23:53+00:00","og_image":[{"url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png","type":"","width":"","height":""}],"author":"Hussein","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Hussein","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#article","isPartOf":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273"},"author":{"name":"Hussein","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#\/schema\/person\/f75baafdedeb73cd9ef1d8d87311bbb0"},"headline":"DB administration notes","datePublished":"2025-10-27T05:08:02+00:00","dateModified":"2025-10-27T09:23:53+00:00","mainEntityOfPage":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273"},"wordCount":1083,"commentCount":0,"image":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#primaryimage"},"thumbnailUrl":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png","articleSection":["Database"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#respond"]}]},{"@type":"WebPage","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273","url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273","name":"DB administration notes - Hussein Tahmazov portfolio eng","isPartOf":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#website"},"primaryImageOfPage":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#primaryimage"},"image":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#primaryimage"},"thumbnailUrl":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png","datePublished":"2025-10-27T05:08:02+00:00","dateModified":"2025-10-27T09:23:53+00:00","author":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#\/schema\/person\/f75baafdedeb73cd9ef1d8d87311bbb0"},"breadcrumb":{"@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#primaryimage","url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png","contentUrl":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/wp-content\/uploads\/2025\/10\/image.png"},{"@type":"BreadcrumbList","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?p=1273#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng"},{"@type":"ListItem","position":2,"name":"DB administration notes"}]},{"@type":"WebSite","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#website","url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/","name":"Hussein Tahmazov portfolio eng","description":"Junior Software Developer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/#\/schema\/person\/f75baafdedeb73cd9ef1d8d87311bbb0","name":"Hussein","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e10dcd9bae99726932e7824a93117d2a279e021c0f4ff3cc2972016580127314?s=96&d=mm&r=g","caption":"Hussein"},"sameAs":["https:\/\/khusseintakhmazov24.thkit.ee\/wp"],"url":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/?author=1"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts\/1273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1273"}],"version-history":[{"count":1,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts\/1273\/revisions"}],"predecessor-version":[{"id":1274,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=\/wp\/v2\/posts\/1273\/revisions\/1274"}],"wp:attachment":[{"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/khusseintakhmazov24.thkit.ee\/wp\/eng\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}