Oracle Hello World: Specifying Schema in Connection

Posts   
 
    
ianvink
User
Posts: 393
Joined: 15-Dec-2006
# Posted on: 21-Oct-2020 02:01:21   

In the Relational Model Data Retrieval Wizard for Oracle ODP.Net , Oracle 11.2

The server name is

SERVER:PORT/SERVICE_NAME (see image)

Is there a way to specify the Schema too? Our Database has hundreds of schemas that appear and each time we go in, it takes a while to find it.

Ian

Attachments
Filename File size Added on Approval
2020-10-20_17-00-19.jpg 120,722 21-Oct-2020 02:01.29 Approved
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 21-Oct-2020 07:13:55   

Hi Ian,

AFAIK, you can't indicate the schema on the server name. The schema selection takes place in the next step. What you could do is create a user with access only to those schemas you are interested in.

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39613
Joined: 17-Aug-2003
# Posted on: 21-Oct-2020 09:35:53   

An alternative could be a tnsnames.ora file with the full connection information and then refer to the tnsname as the server. The user specified still has to have access to metadata in the oracle database tho.

PDBORA12 =   
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = windows2008r2.sd.local)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVER=DEDICATED)
      (SERVICE_NAME = PDBORA12)
    )
  )

here we define the 'PDBORA12' name, and we use that as the server name which makes us able to connect to the PDB database in oracle 12c which has the schema we need.

Frans Bouma | Lead developer LLBLGen Pro