Print Thread
Bug: Object rename doesn't work when owner prefix is enabled
#65695 05/09/24 03:23 PM
Joined: May 2011
Posts: 37
L
Member
OP Online Sleepy
Member
L
Joined: May 2011
Posts: 37
Hi,

When Configure -> Preferences -> Options -> Always include owner prefix is turned on, then rename of view/table (and probably another type of objects) from the context menu throws an exception ORA-01765: specifying owner's name of the table is not allowed.

Steps to reproduce:
  • Go to Configure -> Preferences -> Options and turn on Always include owner prefix
  • Refresh the objects list so the schema name appear before the object names
  • Select any view/table from the Object browser
  • Right click and select Rename from the context menu
  • Set the new name and press OK button


Best regards,
Lukasz
Re: Bug: Object rename doesn't work when owner prefix is enabled
Lukasz Indeka #65697 05/10/24 09:24 AM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
This seems to work fine for me. PL/SQL Developer correctly executes an "alter table USER.OLDNAME rename to NEWNAME" command.

Can you let me know your PL/SQL Developer version and your Oracle Server version?


Marco Kalter
Allround Automations
Re: Bug: Object rename doesn't work when owner prefix is enabled
Marco Kalter #65700 05/13/24 12:39 PM
Joined: May 2011
Posts: 37
L
Member
OP Online Sleepy
Member
L
Joined: May 2011
Posts: 37
PL/SQL Developer
Version 15.0.4.2064 (64 bit)

Using
Home: OraClient19Home1
DLL: D:\app\client\lindeka\product\19.0.0\client_1\bin\oci.dll
OCI: version 12.1 (19.3.0.0.0)
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0


Best regards,
Lukasz
Re: Bug: Object rename doesn't work when owner prefix is enabled
Lukasz Indeka #65701 05/14/24 08:39 AM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
That is basically the same versions I tested, so there must be some other factor involved. To obtain some more diagnostic information, can you modify the PL/SQL Developer shortcut and add the DebugSQL parameter? For example:

"C:\Program Files\PLSQL Developer 15\plsqldev.exe" DebugSQL

Reproduce the problem and send me the debug.txt file that is generated in the %APPDATA%\PLSQL Developer 15 directory (e.g. C:\Users\<User>\AppData\Roaming\PLSQL Developer 15).


Marco Kalter
Allround Automations
Re: Bug: Object rename doesn't work when owner prefix is enabled
Lukasz Indeka #65702 05/14/24 10:56 AM
Joined: May 2011
Posts: 37
L
Member
OP Online Sleepy
Member
L
Joined: May 2011
Posts: 37
I’ve been wrong in my initial post. The problem appears only when I try to rename a view, not a table. With tables, it works just fine with both configuration switch values.


Best regards,
Lukasz
Re: Bug: Object rename doesn't work when owner prefix is enabled
Lukasz Indeka #65703 05/15/24 08:22 AM
Joined: Aug 1999
Posts: 22,221
Member
Offline
Member
Joined: Aug 1999
Posts: 22,221
For views (and sequences) this did indeed not work. We have fixed this for the next release.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.028s Queries: 14 (0.006s) Memory: 2.5222 MB (Peak: 3.0428 MB) Data Comp: Off Server Time: 2024-05-20 13:12:08 UTC
Valid HTML 5 and Valid CSS