Skip to Main Content
  • Questions
  • “CREATE/ALTER TABLE” statements are not presented in oracle trace files

Breadcrumb

XMAS_TREE

The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.

Question and Answer

Connor McDonald

Thanks for the question, Dmitry.

Asked: June 23, 2020 - 8:46 pm UTC

Last updated: June 24, 2020 - 12:45 am UTC

Version: Oracle 11.2.0.4

Viewed 1000+ times

You Asked

Hello, Tom!

I have an issue with Oracle 11.2.0.4 on LINUX: when I run a "CREATE TABLE" or "ALTER TABLE" statements, I do not see them fully in the trace file of the session. I see only first 25 characters.
Please advise.

Thank you in advance!

Dmitry

and Connor said...

I remember this too. This is a bug.

We have always truncated *some* DDL for security reasons, ie

SET ROLE
GRANT
ALTER USER
ALTER ROLE
CREATE USER
CREATE ROLE

because the password would be in the trace file otherwise. The bug ended up with all DDL being truncated.

Speak to Support - there may be patches available for your platform....or its time to upgrade :-)

We're not taking comments currently, so please try again later if you want to add a comment.

More to Explore

SQL

The Oracle documentation contains a complete SQL reference.