Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I return the schema name of a Oracle table

Status
Not open for further replies.

mgpeters

Technical User
Jun 22, 2006
90
US
I am writing reports in CR 10 against a Oracle9i Enterprise Edition Release 9.2.0.6.0 db via a direct connection.

My db has multiple schemas and my reports never cross schemas. I will frequently make new copies of reports and point them to a different schema. Instead of modifying items in each report (such as headers, date ranges, etc) when I make these copies, I want to have one or more custom functions to programatically set these.

My thinking is that if I can evaluate the schema name and then pass it to the custom function, then I can program my function to return to proper results based on what schema the report is pointing to.

Can anyone help?
 
Code:
select owner from all_tables where table_name = 'TABLE_NAME_HERE'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top