this is my set: connection Name : test1 TNS name DB1 Security Explicit User: system Password : systemtest
when i code like below, ENGINE SQLORA SET DEFAULT_CONNECTION test1 select * from xxxx ; END
this result is 0 number...
when i change to ENGINE SQLORA SET DEFAULT_CONNECTION test1 select * from dbwork.xxxx ; END
this result is ok....
below is my question, i don't want to codeing : select * from dbwork.xxxx
i want to use select * from xxxx
how can I Configuring the Adapter for Oracle,
I used MSSQL before ,there are "Default Database" setting ..
I want use Oracle like MSSQL ,how can I setting.
I used WF7703 32bit
Thanks, JamesThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.8 WebFOCUS 7.6.10 BI FLEX .NET
December 01, 2011, 06:10 AM
Well, what can I say? If you want to use Oracle as if it were MSSQL then I'd advise to port the Oracle db to MSSQL. You just simply can't compare the two with respect to how to work with them. They are two very different database engiens, and that diference is reflected in the way you have to work with them. If you stick to using master files then you can still simply say TABLE FILE xxx, the connection info is stored in the access file. But if you go native, well then you have to abide by the rules that govern that specific db engine.
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
December 01, 2011, 08:57 AM
James, You are connecting to Oracle with one user and running a query against another user's table. Oracle does not know which user's table "xxxx" you want to query.
There are at least two ways to do this: 1) Log into Oracle as the dbwork user.
2) Use synonyms on each object so you don't need to use the explicit "owner.object" reference. (Oracle does not have a default setting for this. There are public synonyms that apply for all users, but you still need to create one for every object/table.) "Create synonym xxxx for dbwork.xxxx;" Run this while logged in as the user you will be connecting with, not while logged in as dbwork.
3) I would suggest that you not connect as system. This is a DBA user with full permissions to the database. Depending on your data security concerns, you may not want to connect as dbwork either. We usually use another proxy ID just for reporting connections. This user will need the grants for read access and any synonyms that you want.