on 08-27-2010 11:19 AM
Hello Experts,
I am using SRM4.0, Requisite Staging 4.0 and Requisit publishing 4.0.
I want to extract the details of all the views existing in Requisite
server from DB. is it possible?
if i access to Requisite through internet explorer, i have to do it view by view.
So if i have access to the database think it will go faster.
Many thanks in advance.
Regards,
Saikrishna.
Hello Saikrishna,
you cat see the database view definitions on Oracle via sqlplus:
set long 2000;
select view_name, text from dba_views where owner like 'SAP%'
order by view_name;
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
thank you for your quick responce.
I have given the command suggested by you, but i din't get any result.
Please find the below the result screen:
SQL> set long 2000;
SQL> select view_name, text from dba_views where owner like 'SAP%'
2 order by view_name;
no rows selected
Any suggestions please.
Regards,
Saikrishna.
Hello Saikrishna,
I don't know the name of your SAP database user,
but typically they have the prefix SAP, so I wonder
why the SQL statement didn't return any rows.
To see all database views, you can try this
SQL command:
set long 2000;
select owner, view_name, text
from dba_views
order by owner, view_name;
This list will surely be quite long, so once you have the
name of the database user who owns the views it
would be best to add a WHERE clause and limit the
select to only this user.
Regards,
Mark
Yes it seems your user (schema owner) is not default which start with SAP and could be SAPSR3, SAPSID or something like that, get the user correct and run the same query to get the lost of views.
You can get the owner from System>Status>DB Owner from SAP Screen.
From command prompt:
SELECT username FROM all_users ORDER BY username;
SQL> set long 2000;
SQL> select view_name, text from dba_views where owner like 'your owner of objects'
2 order by view_name;
When I issued the same command I have got 9672 rows selected.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.