logo       


Re: Oracle scheme: msg#00533

Subject: Re: Oracle scheme
"A better approach could be to create a "login trigger" for the user you connect with. The trigger should then change the session to use another schema (VIBSCANNER)"

This looks pretty ugly and rather "expensive". Why would you want to do this?

Fabio Insaccanebbia wrote:

In Oracle "user" and "schema" are almost synonyms..

Configure iBatis to connect with VIBSCANNER user and you won't need to
prefix the tables with the user name.

If you don't want to connect with VIBSCANNER, you could create
synonyms for the schema of the user you connect with.

A better approach could be to create a "login trigger" for the user
you connect with. The trigger should then change the session to use
another schema (VIBSCANNER)

Hope it helps,
Fabio

2005/8/31, MRaedle@xxxxxxxxxxx <MRaedle@xxxxxxxxxxx>:
Hello all,

I use iBATIS to access ORACLE, MS SQL and other databases (with the same SQL
maps).

To access ORACLE databases I have following connection URL:

Connection URL: jdbc:oracle:thin:@cm_ora_test:1521:webtest

"webtest" indicates the SID of the ORACLE database.
The problem is that under "webtest" more than one databases could managed.
So for each db query I must put the database name in front of the table name
such like this:

"select * from VIBSCANNER.T_ALARM_BAND ..." (VIBSCANNER is the database
name).

For MS Access, MY SQL, ... I couldn't take the same SQL maps and that is not
nice.

Can you tell me, how I could resolve this problem, e.g. indicate also a
scheme in the connection URL
(jdbc:oracle:thin:@cm_ora_test:1521:webtest</scheme>)?

Regards

Manuel






--
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)10 - 6940499
http://www.cumquat.nl

Jan.Vissers@xxxxxxxxxx
M +31 6 5 11 169 556





Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe