Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
3 replies
46 views

I was wondering if there is any privilege or work around that allows a read-only user I created on Oracle to see the DDL of procedure/view/function from third party apps like SQL Developer. Currently ...
Nibin George's user avatar
1 vote
1 answer
53 views

I would like to decode DATE value written as varchar2 in DBA_HIST_SQLBIND, but unsure where to look for the mask required to decode it properly, SYS> select value_string from DBA_HIST_SQLBIND where ...
mpapec's user avatar
  • 50.7k
0 votes
1 answer
416 views

We've observed a significant number of temporary schemas with names like pg_temp_* and pg_toast_temp_* accumulating in both the Sandbox and Dev environments. Why do the pg_temp_### and pg_toast_temp_##...
Lakshmi Narayana's user avatar
0 votes
0 answers
94 views

I have a specific stored procedure that executes in a SQL Server in about 0.250 seconds, when executed from SQL Server Management Studio, although it takes half a minute to display the resulting ...
Peter's user avatar
  • 1
0 votes
0 answers
280 views

I'm using variables in Grafana queries with ClickHouse, but the variable ${var_name:raw} isn't recognized in the results. The query runs without errors, but no data shows up in the graph. Here’s the ...
Kaleraa's user avatar
  • 53
0 votes
0 answers
58 views

I've enable DDL audits on few of our servers. The past two months I've seen a weird behavior on a server where we host our reportserver database. I'm seeing lots of drop procedures/view followed by ...
SAKA UK's user avatar
  • 39
0 votes
0 answers
24 views

Where can I find statistics for specific table column scans? I have a very large table (near 10^9 rows) which has a few indexes however not on all fields. The non-indexed fields are mostly foreign ...
skywalker's user avatar
  • 141
0 votes
1 answer
627 views

I have 2 database links that have the same db link name, but different service name. As sys dba, I try to drop the one with the wrong TNS info, but I keep getting the "database link not found,&...
BFF's user avatar
  • 396
1 vote
1 answer
712 views

I am a Developer who is also responsible for Database Administration at my company. We have several Microsoft SQL servers including one Azure Managed Instance SQL server. Recently and at random ...
A and M Dev's user avatar
1 vote
0 answers
16 views

I'm working with GridDB and attempting to create a new user and grant it privileges on a specific database. However, I keep encountering the following error: 10090 TXN_OTHER_PRIVILEGE_EXISTS ERROR ...
Samar Mohamed's user avatar
0 votes
0 answers
119 views

Is there a way to instruct dmbs_stats.gather_table_stats() to ignore a particular column? Context: I have a table that has a virtual column that performs a standard_hash() of the concatenation of ...
Alex Bartsmon's user avatar
1 vote
0 answers
46 views

Thanks for taking the time to look into my issue. I currently have a MongoDB Atlas global write cluster with three region-specific shards in UK, US, and HK. The unsharded collections are located ...
Shailendra Garg's user avatar
0 votes
0 answers
288 views

I am encountering an issue in PostgreSQL where a specific user cannot see all the tables in information_schema.tables, even though all tables belong to the same database and schema. Context: ...
dorje's user avatar
  • 77
1 vote
0 answers
120 views

How does one specify the IMMEDIATE option when invoking the DBMS_AUTO_TASK_ADMIN.ENABLE() subprogram? For reference: Oracle 19 PL/SQL Packages and Types Reference Specifying the DEFERRED option ...
Alex Bartsmon's user avatar
1 vote
0 answers
62 views

What is the difference in purpose between Oracle's Automated Maintenance Tasks (autotask) client_name and operation? I am aware that they can be identified with DBA_AUTOTASK_CLIENT and ...
Alex Bartsmon's user avatar
0 votes
0 answers
190 views

I want to find out the total amount of time the queries are running in Redshift. Is there any query with which I can get this information?. I tried to get this data using stl_query but because there ...
Saicharan Reddy's user avatar
0 votes
1 answer
34 views

I am looking for best way to combine these 2 update statements or at least if first failes, is there a best way to report 2nd update as well failure instead of blindly running and completing of 2nd ...
meg's user avatar
  • 1
0 votes
1 answer
84 views

In a multi-tenanted application, each customer's data is stored in a separate schema of a postgreSQL database. I want to grant certain permissions (read-only in my case, but I don't think that's ...
Jacopo Lanzoni's user avatar
0 votes
1 answer
57 views

According to the documentation, when restoring data using the refresh method, both the source and destination clusters must have the same token ranges; otherwise, it can cause issues. Is this ...
Dinesh Chandra's user avatar
0 votes
1 answer
69 views

I’m encountering an issue during snapshot restoration in Cassandra. Scenario: Backup taken from: 3-node cluster (A) Restored on: 3-node cluster (B) After successfully restoring the snapshot, the ...
Dinesh Chandra's user avatar
-1 votes
2 answers
179 views

I have a local PG instance populated with 10's of millions of rows of data and need to run some relatively complex queries for some data analysis work. These queries are currently taking 10+ minutes ...
NSjonas's user avatar
  • 12.4k
2 votes
0 answers
28 views

I'm working with GridDB for managing a distributed database system and recently encountered the following error while trying to perform a user or database administration operation: 10086 ...
Samar Mohamed's user avatar
0 votes
1 answer
87 views

I have a database that is already designed. I made a tracer in order to read the queries that I have run from application against the database, the queries are logging to the trace file but there is a ...
Shakor Maiwand's user avatar
2 votes
1 answer
56 views

I have an Oracle EE 19.3 environment setup where MAX_STRING_SIZE is set to EXTENDED, supporting up to 32k length strings. In this environment, I have two very simplistic tables CREATE TABLE test_a (id ...
Naros's user avatar
  • 21.3k
0 votes
1 answer
78 views

I've developed this TEMP tablespaces Monitor via DBLINKS in ORACLE it sends an email if any temp tablespace reaches any percentage called by v_used: CREATE OR REPLACE PROCEDURE SP_TEMP_MON( v_used ...
Opal R's user avatar
  • 27
0 votes
0 answers
44 views

We have docker containers (12) running on-prem machines, one of them is a postgres DB, on the same query we sometimes get peaks of 30+ seconds for a query that most of the time takes 2 seconds. The ...
Eran's user avatar
  • 1,722
0 votes
1 answer
118 views

I found almost 13830 update rows found like below in each bin logs files. But there are only a few update queries at each log. This command shows only 85 update query mysqlbinlog mysql-bin.005400 | ...
Sheikh Wasiu Al Hasib's user avatar
0 votes
0 answers
25 views

Trying to write a query to join to tables 1:Many and order by the date column descending so we only get a 1:1 record, with the latest many record sorted by date. Table 1 Id Name Table 2 Id Value Id, ...
fr332lanc3's user avatar
0 votes
1 answer
120 views

I have a cluster where running around 20 postgres databases. I need to create read only user for every db. On this server i have service user e.g. service_user that do automaticly all operations in ...
Slam's user avatar
  • 1
0 votes
2 answers
331 views

How could one determine the position of the Low High Water Mark (LHWM) for a non-partitioned heap table segment in Oracle? Note: Using Locally Managed Tablespaces (LMT) and Automatic Segment Space ...
Alex Bartsmon's user avatar
0 votes
1 answer
93 views

I need to export and import database from the old user to the new user through oracle apex or another Methode, how I can do that with detail please I tried to make export database via cmd file, but I ...
Tayseer's user avatar
-1 votes
2 answers
1k views

I'm new to Postgres, and I want to delete a role named rp_ts04, but it complains about dependencies. I don't know how to check for these dependencies. I've checked information_schema but it doesn't ...
Duong's user avatar
  • 511
0 votes
1 answer
371 views

In my DB I have: USER_1 with default temp ts TEMP_1; USER_2 with default temp ts TEMP_2. USER_1 issues "alter session set current_schema = USER_2". After that the USER_1's queries in that ...
WareNick's user avatar
1 vote
0 answers
70 views

When using Simple Parameterization in the AdventureWorks database, you can execute the following query: USE [AdventureWorks2022] GO SET QUOTED_IDENTIFIER OFF SELECT "True" FROM Person....
Ben's user avatar
  • 11
0 votes
1 answer
218 views

I have a question regarding an issue I am having. I have a table that has 2 indexes - a clustered index and one non-clustered index. The clustered index key column is of type INT The non-clustered is ...
DavDBA's user avatar
  • 1
0 votes
0 answers
62 views

I am trying to execute a stored procedure for the list of values from a query using a while loop but the while loop is taking forever to complete. CREATE PROCEDURE ItemsToBeCleared @BatchDays INT ...
PrettyCode's user avatar
0 votes
1 answer
156 views

I generated a pfile from the spfile of my Oracle database and noticed that some parameters appear twice in it with different values. For example: MYDBNAME.__shared_pool_size=16642998272 #which means ...
OTD12's user avatar
  • 3
0 votes
1 answer
1k views

I am trying to automate partition management on my psql (version 15) DB. I would like to delete old partitions to free some space in the db. To do so, i plan to detach it using CONCURRENTLY keyword so ...
Rémi Pradal's user avatar
0 votes
1 answer
165 views

I have two DB. KeyCloak DB which stores users, realm, roles and other info of AuthServer. Application DB which swores data of my application (for example, list of notes, posts and so on). My ...
Андрей Дьячков's user avatar
0 votes
1 answer
330 views

SELECT BYTES/ (1024*1024*1024) GB FROM DBA_SEGMENTS D JOIN DBA_LOBS L ON L.SEGMENT_NAME = D.SEGMENT_NAME WHERE D.OWNER = 'SCHEMA_NAME' AND SEGMENT_NAME = 'MY_LOB' GB 100 Actual LOB object size = 100 ...
AleksRous's user avatar
0 votes
1 answer
984 views

I need to import a dump-file into an Oracle Database. I set myself up with a test VM and installed the latest Oracle Database 21c Express Edition and used: impdp system/123 directory=C:/dump dumpfile=...
voodoo's user avatar
  • 103
0 votes
0 answers
72 views

Backstory: We have an app that connects to a SQL Server database using a clients app on a user's PC. We got the app working through normal channels (whitelisting machine IP, creating a login for the ...
JeffTheDBA's user avatar
-3 votes
1 answer
228 views

Need help to GRANT ALTER only to all the SQL Server Functions. Below is mycode: GRANT ALTER ON FUNCTION::dbo TO [username]
Prakash's user avatar
  • 27
0 votes
1 answer
736 views

Trying to understand the Undo size behaviour . I ran below query initially and noted down the values . Actual undo is 2500 , undo retention 900 and needed Undo size was 430 . Then I performed stress ...
user16117341's user avatar
0 votes
0 answers
70 views

I am a Junior DBA trying to figure out how to add specific security to specific accounts. So we have a database that allows analysts to create their own tables/views and mess around with data in with ...
EAsh's user avatar
  • 9
-1 votes
1 answer
340 views

Oracle database 19c is used for development and testing purposes only. All users (including sys, system and all others created by default during installation) have the same password. For example, ...
Majkl's user avatar
  • 197
0 votes
2 answers
2k views

We need to monitor all SQL-s coming from a certain Application Server to an Oracle DB. For this, we are running the following query: SELECT h.sample_time, u.username, h.program, h.module, ...
altink's user avatar
  • 375
2 votes
0 answers
436 views

This week I came across an interesting point. It was necessary to calculate in which segments of the database the greatest changes were occurring. I first accessed view dba_hist_seg_stat. However, I ...
Рязанский Крестоносец's user avatar
2 votes
2 answers
103 views

I have the following table: CREATE TABLE IF NOT EXISTS import.dre ( idmov integer, companynumber integer, idproduct integer, dtdate date, nrtank integer, dailybalance numeric, ...
lamarcondes16's user avatar
0 votes
1 answer
194 views

I have a use case where I want to create a user which should have access on select for public schema and Views Creation On public schema but not table creation User can create a new view but not table ...
Vishal's user avatar
  • 5

1
2 3 4 5
43