Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1753
  • Last Modified:

SAP 4.0B and "Exec Sql" in ABAP code

Hi,

I attempting to use "EXEC SQL" in ABAP code on a SAP 4.0B system to access
Z tables at the
Oracle level and tables in a remote database connected using Oracle's
DBLINK.  The problem I have is that when I do a select on either the
remote table or an SAP table (VBAP)it gives table not found.  I assume
that I am connecting with an id different than the owner of the SAP
tables.  Here is what I need to find out.

1.  Are there special considerations to using the Exec Sql command?
2.  Is there a owner for SAP tables that has to be defined in SQL
statements?
    Is there a command that can establish connection as the owner id
so that subsequent DB activities don't need to qualify the owner.
3.  Is anyone currently connecting to remote Oracle databases via
DBLINK?  I am looking for feedback on how it works.

Thanks

Bill Brennum
0
pgwjb
Asked:
pgwjb
1 Solution
 
daravuthCommented:
hello,

owner of any sap table in oracle is "sap"
so

SVRMGR> select count(*) from tadir;
select count(*) from tadir
                     *
ORA-00942: table or view does not exist



SVRMGR> select count(*) from sapr3.tadir;
COUNT(*)
----------
    302383
1 row selected.
SVRMGR>

more I don't know, good luck
0
 
pgwjbAuthor Commented:
Thanks,  I was able to figure it out yesterday.  But your answer is correct.

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now