Issue with TruncateLongDefaultNames on Oracle 19

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
PeterUser
Posts: 70
Joined: Mon 27 Feb 2017 07:45

Issue with TruncateLongDefaultNames on Oracle 19

Post by PeterUser » Thu 23 Jun 2022 08:53

Hello,

I have an issue with the TruncateLongDefaultNames after an upgrade to Oracle 19.

One of our customers is currently upgrading from Oracle 12 to 19. At the moment one of the test systems is updated, while other test systems and the production system are not.

We work with the TruncateLongDefaultNames = true option to avoid long identifiers.

When I run

Code: Select all

Update-Database ... -Script
on the Oracle 12 database, I get

Code: Select all

-- Script was generated by Devart dotConnect for Oracle, Version 9.16.1434
-- Product home page: http://www.devart.com/dotconnect/oracle
-- Database version: Oracle 12.1.0.2
-- Script date 23/06/2022 10:43:26

DROP INDEX PLATINEN_ADMIN.IX_N1493827076
/
with the Oracle 19 database, I get

Code: Select all

-- Script was generated by Devart dotConnect for Oracle, Version 9.16.1434
-- Product home page: http://www.devart.com/dotconnect/oracle
-- Database version: Oracle 19.0.0.0
-- Script date 23/06/2022 10:42:37

DROP INDEX PLATINEN_ADMIN.IX_PCB_TYPES_CREATED_IN_LOCATION_ID
/
This discrepancy is an issue since my databases would diverge. According to the documentation, I would expect to see the truncated version:
TruncateLongDefaultNames - When set to true, long default names of triggers, sequences, indexes, primary keys, and foreign keys, generated by Code-First Migrations, will be truncated to 30 symbols. When set to false, an exception will be raised for long default names. Be careful when setting the property to true, because checks for uniqueness of names are not performed. Default value is true.
Is there a way to use truncated names with Oracle 19?

Kind regards
Peter

PeterUser
Posts: 70
Joined: Mon 27 Feb 2017 07:45

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by PeterUser » Tue 12 Jul 2022 13:48

Ping

PeterUser
Posts: 70
Joined: Mon 27 Feb 2017 07:45

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by PeterUser » Mon 18 Jul 2022 09:04

Ping

PeterUser
Posts: 70
Joined: Mon 27 Feb 2017 07:45

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by PeterUser » Tue 26 Jul 2022 16:10

Ping

PeterUser
Posts: 70
Joined: Mon 27 Feb 2017 07:45

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by PeterUser » Fri 16 Sep 2022 11:37

Hello,

is there any update or information on this issue?

Kind regards
Peter

TheCoolest
Posts: 22
Joined: Tue 24 Mar 2020 11:02

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by TheCoolest » Sun 18 Sep 2022 11:29

You will most likely need to open a formal ticket. I couldn't get a reply on the forum for months until I did.

PeterUser
Posts: 70
Joined: Mon 27 Feb 2017 07:45

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by PeterUser » Mon 19 Sep 2022 05:49

Yes. Seems pretty dead around here. I'm not sure, if they are really maintaining this code first any more.

Thanks for the advice
Peter

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Issue with TruncateLongDefaultNames on Oracle 19

Post by Shalex » Mon 03 Oct 2022 16:33

Sorry for the delayed response. We have reproduced the described issue with TruncateLongDefaultNames=true on Oracle 19 and will notify you about the result of our investigation.

Post Reply