Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connect to OID using JNDI name?

413914May 19 2005 — edited May 20 2005
I would like to connect to OID from a J2EE app deployed on Oracle 9iAS using a JNDI name.

I am currently using datasources in this manner, for example:

Context ic = new InitialContext();
ds = (DataSource) ic.lookup("jdbc/OracleDS");

will return the datasource defined by the JNDI name jdbc/OracleDS.

I would like to access OID in the same way ie bind the OID URL to a JNDI name and then have references in the code use the JNDI name.

I've not been able to find much documentation on this - can anyone help - is it possible?

Thanks

Steve

Comments

Billy Verreynne

Simple answer - no.

The machine name (and other client details) is set by the client driver. Not the client application.

BTW, why this requirement?

1009739

I am working in ORACLE 11 g Release 2 using PL/SQL Developer Tool

Every time i am logging in i could find my machine name in OSUSER in v$session table.

So i want to stop is there any other tool or any other way to stop it

JustinCave
Answer

Why do you want to prevent the DBA from determining what machine you are connected from?

Given that this information is coming from your client machine, it is certainly possible to hack your machine so that it reports a different name assuming you have root/ Administrator access.  But that's something that an attacker would normally want to do, not something that a normal user would want to do.  That's why we're trying to determine why you are trying to hide this information.

Justin    

Marked as Answer by 1009739 · Sep 27 2020
1009739

See when i am accessing via guest account it take the name into it. So i don't want to insert guest name instead it must enter my machine name or null.

Billy Verreynne

So. What?

What is The Problem?

If you want to obfuscate what the OCI client driver reports to the server, you will need some low level hacks that are not easy and trivial. So why do you want to tackle such a hack complexity, instead of just doing your job via that database connection?

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 17 2005
Added on May 19 2005
1 comment
234 views