Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to combine two JSON array list into single array list

Kannan SekarMar 2 2022

We are using Oracle 19C version. we have json like below,
{ "tktKey": "123456", "attlist1": [ { "attkey": "123", "attval": "abc" }, { "attkey": "456","attval": "def" } ], "attlist2": [{"attkey": "098", "attval": "xyz" } ]}
form above json i need to combine attlist1 and attlist2 and make it to single attlist.
The Excepted output should be like below,
{ "tktKey": "123456", "attlist": [ { "attkey": "123", "attval": "abc" }, { "attkey": "456", "attval": "def" }, { "attkey": "098", "attval": "xyz" } ]}

Comments

John Thorton

Some, many, most Professional IT groups maintain application code, including DDL, in source code repository.

so just do the following

1) extract DDL into single text file.

2) use favorite text editor to do global Search & Replace of CHAR to BYTE

3) run changed text file against newly created Oracle database

4) save text file back into code repository

unknown-7404

expdp, by default, generated internal DDL to create table observing current NLS_LENGTH_SEMANTICS of each column.

. . .

But I want an option to force expdp to not get/inherit the CHAR_USED value from DBA_TAB_COLUMNS

Then use the right tool for the job instead of expdp.

Using Sql Developer you can set all of the options you want for the metadata of the objects you export.

pastedImage_3.png

See that 'Add BYTE keyword' checkbox at the upper right?

Just uncheck it and do your export.

1 - 3

Post Details

Added on Mar 2 2022
11 comments
5,800 views