Score:0

SQL Developer queries are very slow if I am not connected as sys

ru flag

I want to run my PL/SQL Queries on SQL Developer and created a new user connection. But if I run:

set serveroutput on size unlimited;

begin
  dbms_output.put_line('Hello Oracle.');
end;
/

clear screen;

It takes more then 100 seconds. But only if I am connected to a user wit default role. It is very fast when I am connected to sys. How can I fix it?

Score:0
cn flag

I miss quite some information in this question, f.ex:

  • Version of SQL Developer.
  • Version of database.
  • State of database (just created, cloned, whatever).

However, it does sound like one of 2 possible things:

  1. Missing stats (Fixed stats and system stats).
  2. A bug in grants hierarchy, which could indicate the database to be 12.2 or 18C? - in this case I believe a patch exists.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.