on 04-24-2013 1:26 PM
Hi Experts,
We are using HANA Enterprise Edition and ECC as a source. ECC Tables are replicated in HANA.
Is there a way to find out in which Attribute or Analytic views a Table is used.
Something like Where-Used list.
If I decide to drop a table in HANA, I want to know what all Models it will impact.
I am able to find the Where-Used button for Models but not for the base tables.
Regards,
Sandeep
Hi Sandeep,
We do not have where-Used functionality for tables.
The alternate solution is to write SQL querying from tables referring to repository.
Here is the SQL
SELECT BASE_SCHEMA_NAME, BASE_OBJECT_NAME,
DEPENDENT_SCHEMA_NAME,DEPENDENT_OBJECT_NAME,
DEPENDENT_OBJECT_TYPE
FROM "SYS"."OBJECT_DEPENDENCIES"
WHERE BASE_SCHEMA_NAME = 'SRK' /* <== Schema Name */
AND BASE_OBJECT_NAME = 'EMPLOYEE' /* <== Table Name */
;
Query looks simple but it took me more than 2 hours to find the solution
Regards
Raj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
I came across the exact same requirement today and your solution above is very useful. Small question though: where do we find the list of such system tables? This is so that in the future if there is any such requirement it will help to look into those.
Thanks in advance.
Regards,
Manish
Easy - it's in the documentation
Not to lower the cheer about the DEPENDENCIES-views, but to provide heads up here:
The later means if you for example want to figure out what objects are going to be affected, when you touch this table, you need to check all the way from the table and it's direct depends to the objects dependent on those and so forth.
- Lars
This is really a helpful blog I am really impressed with your work, keep it up the good work
Tables in HANA database can be accessed from HANA Studio in Catalogue tab under Schemas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regarding your posted answer: Please raise your question again as a new question and follow our Rules of Engagement.
The author of the original question is no longer active in the community and won't receive your query.
Feel free to also take our Q&A tutorial . With these tips you'll be able to prepare questions that draw responses from our members.
Thanks!
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot Raj.
Its really helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.