Skip to Main Content

SQL Developer

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!

SQL Developer auto-commiting when debugging or running stored procedure.

Charles ShillingFeb 11 2013 — edited Feb 12 2013
I have a procedure stored in my database that I've opened using SQL Developer. When I open the procedure (from the Connections tab on the left pane), and execute the procedure using Run or Debug, I find that SQL Developer auto-commits the changes that happen within the procedure.

I am checking for results using a different session (different program entirely, actually), so I know it's actually a commit and not just uncommited data that I can see.

My autocommit box is unchecked in Tools > Preferences > Database > Advanced.

The procedure does NOT commit data when executed in a SQL Developer worksheet (copy and pasted the PL/SQL from the "Run" or "Debug" dialog box).

The procedure does NOT commit data when run from a program other than SQL Developer.

The procedure does NOT commit data if I manually alter the code from the "Run" or "Debug" dialog to issue a rollback after the procedure has completed.

This is SQL Developer 3.2.20.09.87 using Java Platform 1.6.0_37. I am running Windows 7 Professional 64 bit. The SQL Developer instance is a 32-bit version.

Any ideas?

Edited by: 929664 on Feb 11, 2013 5:57 PM

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
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 12 2013
Added on Feb 11 2013
1 comment
5,367 views