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!

How to pull the table owner

2811145Jan 14 2016 — edited Jan 14 2016

In the application we are using having the schema name different on each environment. I am creating the report and the SQL query should be same for all the environment. As the schema name is different in each environment, I am trying to write a query to pull schema name to append it before the table name.

  1. E.g.

Owner schema: dev_db

Reporting Schema: report_db

Table Name: Catalog

Query: select * from catalog.

  I wanted to bind the owner value (select owner  from all_tables where table_name = 'CATALOG') to the reporting query.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2016
Added on Jan 14 2016
1 comment
991 views