Skip to content

Tag: oracle

dbms_metadata.get_ddl not working

I want to get the DDL of Table CARD_TABLE in XT schema But my select Query works I queried dba_objects it still got the table: Answer From the dbms_metadata documentation: If nonprivileged users are granted some form of access to an object in someone else’s schema, they will be able to retrieve the gran…

Time zone conversion in SQL query

I am using a query to get some application Received Date from Oracle DB which is stored as GMT. Now I have to convert this to Eastern standard/daylight savings time while retrieving. I am using the below query for this: It works fine for Standard time. But for daylight savings time we need to convert it to &#…