Applet in JDK 1.1 accessing remote database
Hi,
I'm trying to make an Applet access a remote Oracle Database using Jdbc thin driver. The database and the Web Server are in deferent machines. The browser i'm using is Internet Explorer. But I always get the followin exception:
Cannot access "remote-machine" at com/ms/security/premissions/NetIOPermissionCheck.
How can I solve that?
Thank you,
Nei
Another interesting thing is, the applet ( jar) that is signed will display the security dialog if I connect from a client that has java plugin 1.4 ( jsdk 1.4) or if I copy it and run it on a j2sdk1.4 machine. I checked the java.policy files on both 1.3.1 machine and 1.4.1 and they are the same.
TIA
Krishna
Similar Messages
-
How to access remote database using applet
hi all,
I want to know how to access remote database using applet,
Please help me anybody.
Regards
JesuIf the database is on a public server, you probably can't access it directly (security wise). You can make your applet talk to a server-side application, which makes the database calls on behalf of the applet. But even in an intranet environment this setup is often preferable, because you don't need to distribute a JDBC driver to all your clients.
-
PERFORMANCE while accessing remote database DB2 on AS/400 using WAS
Subject: PERFORMANCE while accessing remote database
We have IBMWebSphere Application Server Standard Edition 3.5.3 running on
AS/400 iSeries Server (V4R5, test)and local DB2 Database.
I am using AS/400 Developer Kit for Java JDBC Driver(type2, com.ibm.db2.jdbc.app.DB2Driver)
to talk to local database. The performance was very good.
When I try to access remote database (every thing same as local) which is on another AS/400
machine of V4R4 (we use it for production, remote database) using IBM Toolbox for Java JDBC driver
(com.ibm.as400.access.AS400JDBCDriver, type 4 driver), I can see 30to40%decrease in performance.
Here we have WAS on previous V4R5 AS/400 machine.
My questions are
Is the performance decrease is due to
1. the driver I am using? if it is Is there any other alternative drivers to access
remote database to boost performance?
2. the release difference of local(V4R5) and remote data base(V4R5)
3. Currently most uses remote database while we do this testing. Is that the cause?
or Is there any other cause or Drivers etc??? Suggestions and help is most welcome.
Thank you.What about
4. the data has to travel across the network. -
Access remote database in desktop application
Hi friends,
I am developing an desktop appication in that I have to access the data reside in another machine.
how can do this through java.
how to set url for this.
since normally we will use the jdbc:odbc:......
for access remote machine database.
plz give the procedure in brief.
Raj with reg.What?
It all depends on what database you are using, and which driver you are using.
Please google on jdbc and your database name.
Kaj -
WebSphere V5 accessing remote database
Hi.
Sorry to post IBM product specifice question here. I didn't know where else to put it.
I need to deploy J2EE appl using CMP beans to WebSphere Application Server version5 to use remote database(DB2) within LAN.
I have no idea to where to begin and what to look for.
Can anyone guide me here?You need to configure that database as a data source in Websphere using the admin tool. Check the help for details.
-
Unable to access remote database object using database link
Hi all,
I have created a database link to a remote server
SQL> create database link remote_link connect to lax_dba identified by lax_dba using 'abc.corp.com';
database link created
when i am trying to access any table of lax_dba
sql> select * from laxtab@remote_link;
i am getting this Ora error
ORA-12514: TNS:listener does not currently know of service requested in connect
I need your help please to solve this issue
Thanks n Regards
LaxmanThe database server where you defined the link (not your PC) has resolved 'abc.corp.com' to a server/port/service combination using its tnsnames.ora, sqlnet.ora and possibly ldap.ora settings. You can try
tnsping abc.corp.comon the server (as ReubenC suggested) to see what it's attempting to connect to. (It's important to do this on the database server and not on your PC as they will have different tns settings etc.)
It has then found the server and found a listener running on it (so you're getting close), but that remote listener doesn't recognise the service you're asking for. It might be something like the '.com' suffix. -
Heterogeneous Services failure on accessing remote database under XP
Hi All,
I can set up HS.
My problem is, that it works only when the datasource is sitting on serverside.
If I try to connect to a database what is sitting on a remote machine HS does not want to find it. Even if I using mapped drive, or \\server\shared_folder or novell directory tree.
Even if also using CONNECT TO "MyUserName" IDENTIFIED by "MyPassword" which have full access to the folder of the remote machine.
Could you please help me?
[email protected]What do you mean by that? What kind of network files?
Again my situation in details:
Case A - sais, I can handle HS, where it points to a file sits on localhost.
Case B,C,D,E - sais, 10g can not see the file via ODBC with my settings.
- Case A
PARTNER.DBF can be found in C:\
ODBC point to this file.
10g can make the database connection activate.
I can see the table, everything is okay.
- Case B
PARTNER.DBF can be found in K:\
where K: is a mapped drive on the Microsoft Network. It is a shared directory. Shared for read and write. And I have these rights.
ODBC point to this file.
10g can NOT make the database connection activate.
I can NOT see the table. "Unknown path" it sais.
- Case C
PARTNER.DBF can be found in L:\
where L: is a mapped drive on the Novell NDS tree. It is a shared directory. Shared for read and write. And I have these rights.
ODBC point to this file.
10g can NOT make the database connection activate.
I can NOT see the table. "Unknown path" it sais.
- Case D
PARTNER.DBF can be found at \\my_collegaue's_machine\shared_dir\
I have rights to the file.
ODBC point to this file.
10g can NOT make the database connection activate.
I can NOT see the table. "Unknown path" it sais.
- Case E
PARTNER.DBF can be found in \\Hh\.FS2_USZ.HLT\HPRG\DATA
I have rights to the file.
ODBC point to this file.
10g can NOT make the database connection activate.
I can NOT see the table. "Unknown path" it sais.
So what should I chage in 10g settings?
What changes should I make?
What kind of command should I type?
Please help and be a little more specific.
Thx in advance.
Andrew
[email protected] -
JDeveloper embedded OC4J accessing remote database
How do I configure the embedded OC4J JNDI w/JDBC to use a local TNSNames.ora file setting to connect to a remote 9i database?
You might want to consult the OC4J admin guide.
http://download.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDCFBIH
For the embedded OC4J you can access datasource settings through tools->Embedded OC4J preferences. -
Problem while accessing object in remote database
Hi All,
We have a procedure "UPDATE_CONV_DETAILS" created in the remote databse in the "apps" schema. The synonym for the procedure is created in the billing schema(present in the remote database). A dblink is created the local database through which we are tring to access the remote object "UPDATE_CONV_DETAILS".
Dblink script:
create public database link PRE_TO_CEL
connect to BILLING
identified by BILLING
using 'MAP1';
When trying to access the object from the local machine using the schema name.object_name it works fine:
SQL> DESC APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
PROCEDURE APPS.UPDATE_CONV_DETAILS@PRE_TO_CEL
Argument Name Type In/Out Default?
IN_MOBILE VARCHAR2 IN
IN_SERVICE_CODE VARCHAR2 IN
IN_STATUS VARCHAR2 IN
OUT_ERROR_CODE NUMBER OUT
But when trying the access the same object using the synonym_name it gives the error:
SQL> DESC UPDATE_CONV_DETAILS@PRE_TO_CEL
ERROR:
ORA-04043: object APPS.UPDATE_CONV_DETAILS does not exist
Regards,
KirtiYou have two schema.
apps
billing
both reside in remote database.
there on procedure and on procedure u create one synonym and u want to access it.
ur remote database name is "map1"
on ur local database ur create one dblink to access remote database.
ORA-04043: object string does not exist
Cause: An object name was specified that was not recognized by the system. There are several possible causes:
- An invalid name for a table, view, sequence, procedure, function, package, or package body was entered. Since the system could not recognize the invalid name, it responded with the message that the named object does not exist.
- An attempt was made to rename an index or a cluster, or some other object that cannot be renamed.
Action: Check the spelling of the named object and rerun the code. (Valid names of tables, views, functions, etc. can be listed by querying the data dictionary.) -
Remote database access via JDBC?
Hello,
Can anyone give me info on accessing remote databases (i.e. Microsoft
Access, etc) from Java programs (Servlets, JSP's, Classes) residing on the
iSeries (AS400) or perhaps any platform?
I currently have a couple of web applications set up on the Websphere App server that access DB2/400 database and I also have some Java Classes on PC's that access MS Access datafiles. I would like to begin writing the majority of my applications that run on the iSeries (or host system) that can remotely access other databases on our network.
Any info would be of great help to me.
Thank you
DonI don't know of any existing Access JDBC drivers that support remote access, after all, the Access database itself is not remote access capable except via file sharing. One possibility is to look for a Type 3 JDBC driver that supports reuse of other Type 1 (ODBC bridge), Type 2 (Java/Native Mix) and Type 4 (pure Java)JDBC drivers on the server side.
If you were using WebLogic Server, I suppose you could use its remote JDBC facilities, but that won't help you.
One problem you will have to face is that Access JDBC drivers are not (if I recall) meant to be used in a multithreaded fashion. Good luck. By the way, it might be far simpler to port the Access database to DB2/400.
Chuck -
Connecting Remote Database in 8i
I have system in my house, windows 2000 is OS,Oracle as database
I want to connect My freinds Database using the Modem.
Do I require His IP ADDRESS. specifing his IP ADDRESS in listner can it possible.If any body having solution. pls replyYou will have to configure the tnsname using your friend's ip address and global name of his database.
Then you will need to create database link from your database to remote database.
Refer this url for more info on creating database link and accessing remote database
http://www.experts-exchange.com/Databases/Oracle/Q_20660517.html
Chandar -
Applet + remote database + newbie
Hi,
Tired of microsoft randomly dumping the market making me rewrite applications each time they publish updated os,language etc...i finally (and really happily) surrender to java....
Here is my point : i'd like to create applet-based application that will retrieve-update from/to remote server, (access database for instance)...am i pointing the worng direction or does it seem a good choice.
Is it necessary to use servlets ? (all i've seen about applet-servlets seems a bit confusing even though it seems the right way to build solid rock applications, actually, i could begin with applets and remote database and later go to an applet-servlet application)
Any good suggestion is welcome, but, please ,don't tell me about .netYou can make a database connection via an Applet or an Servlet. You can make a database connection via Applet - Servlet - Database also.
Making db connecion using applets or servlets is easy task.
Visit the site's applet section to have an example. Since you are a beginner, it might look like a nightmare ;-)
Hope it helps
Uma
http://www.javagalaxy.com -
How can I access a database remote without using dblink, synonyms,aliases?
My store procedure access a remote tables using dblink, synonyms, alias, but by business company requirenments I nedd to use another data base access method. My PL/SQL statement looks like
select c.cus_id, c.cus_name, p.bankaccno
into v_cus_id, v_cus_name, v_bankaccno
from customer c, payment@finantial p
where c.cus_id = p.cus_id
Are any method else to connect to several remote databases concurrently?
If Yes, plase say me how is it, or tell me where do I obtain some examples, or any documentation.
Edited by: user518321 on Apr 21, 2009 1:58 PM
Ok, But I must not use any of these data base access method, metioned: dbliks, aliases, synonyms.
Edited by: user518321 on Apr 21, 2009 2:05 PM
Ok, It is enough for now, I am surprised for the response time and for their arguments, thanks a lot.
Edited by: user518321 on Apr 21, 2009 2:50 PMIf you want to access a table in a remote database using SQL, you will need a database link. It would be exceptionally odd for the business to require that you access a remote database and to prohibit the use of database links. What is the business reason for that combination?
If you want to look into rather more esoteric solutions, you could load a JDBC driver for the remote database, write a Java stored procedure that queries the remote table using that JDBC driver, and then cobble together some PL/SQL that joins the two result sets. You won't be able to reference the remote table in SQL and the solution won't scale well as data volumes increase and you'll be writing a whole lot of code to manually join tables together, but it does avoid database links. Of course, whatever concerns lead to the ban on database links would probably apply to loading a JDBC driver into the database and writing Java stored procedures to access the remote database, but since you haven't explained the reasoning behind the restrictions, we're just guessing.
Justin -
ORA-28150 when accessing data from a remote database
Portal Version: Portal 3.0.9.8.0
RDBMS Version: 8.1.6.3.0
OS/Vers. Where Portal is Installed:: Solaris 2.6
Error Number(s):: ORA-28150
I have a problem with using a database link to access a table in
a remote database. So long as the dblink uses explicit logins
then everything works correctly. When the dblink does not have a
username then I get the ORA-28150 message. The database link is
always public. A synonym is created locally that points to a
synonym in the remote database. I am using the same Oracle user
in both databases. The Oracle portal lightweight user has this
same Oracle user as its default schema. The contents of the
remote table are always visible to sqlplus, both when the link
has a username and when it doesn't have a username.
All the databases involved are on the same version of Oracle.
I'm not sure which Oracle login is being used to access the
remote database, if my lightweight user has a database schema
of 'xyz' then does portal use 'xyz' to access the remote
database? I would be very grateful for any help or pointers that
might help to solve this problem.
James
To further clarify this, both my local and remote databases
schemas are owned by the same login.
The remote table has a public synonym.
The link is public but uses default rather than explicit logins.
The local table has a public synonym that points to the remote
synonym via the database link.
If I change the link to have an explicit login then everything
works correctly.
I can view the data in the remote database with TOAD and with
sqlplus even when the database link has default login rather
than explicit login.
This seems to point to Portal as being the culprit. Can anyone
tell me whether default logins can be used across database links
with portal?
TIA
James832019 wrote:
One way to do this is by creating a database link and joining the two tables directly. But this option is ruled out. So please suggest me some way of doing this.Thus you MUST use two connection strings.
Thus you are going to be either constructing some intricate SQL dynamically or you are going to be dragging a lot of data over the wire and doing an in memory search.
Although realistically that is what the database link table would have done as well.
Might be better to look at moving the table data from one database to the other. Depends on size of course. -
Airport Extreme & Remote Access for database application
Hi There,
I have spent an entire week of my time between apple, apple consultants and networking experts trying to get a access remotely to a simple database program inside an wireless network. I have read the discussions on remote access thru the AEBS and port mapping.
I'm hoping an user here can help me with a foolproof solution that the 'apple experts' can seem to design?
All that is required to get this program up and running remotely is the ip address of my computer inside my wireless network. I have set that this computer to a static address but since my dsl provider uses dynamic IP's this doesn't seem to work (or it does for about 12 hours until the IP address of my AEBS is changed). Will port mapping work for me or is my only solution an up-charged static IP?
Thanks in advance for any suggestions......the thought of spending another week on this is frightening!If your ISP is refreshing the dynamic host configuration of the public ip address assigned to the ISP provided router you will need to request a static ip address from your service provider.
The addresses that are used "inside of your network" are private ip addresses. If you are using the (1) public address for your router (APE)(Apple airport extreme) from the ISP what you are trying to do will not work very well since your router (APE) will use the Public IP address to provide access to the public internet for your private network using the private ip addresses you have used to create your subnet and told your router (APE) about. Three private IP address schemes can be used for a private internet. One for each class. Class A 10.x.x.x/8, Class B 172.16.0.0/12 and Class C 192.168.0.0/24. Translated using dynamic NAT (network address translation with overload) making your LAN hosts using private IP addresses to seem as if they are using a public ip address allowing access to the public internet where only public ip addresses can be used.
PAT (port address translation) is what you are trying to accomplish. For PAT you must have a valid public ip address from your ISP and a private address from your network assigned to interesting host. Use the private ip assigned to the interesting host in the port mapping panel of airport admin that you wish to allow access to via the global internet as well as the tcp or udp port number for the traffic to be directed. For example port 5003 for FileMakerPro or port 20 and 21 for ftp. You should also implement security policies to protect your network and hosts.
Since you said that it works for 12 hours you must have the basics set up correctly. All you need now is to get a static ip address assigned to you from your ISP or use a service such as http://www.dyndns.com/
Hope I didn't ramble on too much
Maybe you are looking for
-
Document could not be printed, No pages selected | But they were selected
Although the pages were selected the following error messages were received. I verified the HP Officejet 6700 Premium drivers and Acrobat Reader were updated.
-
My new podcast episodes are not showing up on the main page
my podcast page hasn't updated in 2 weeks even though i've been adding new episodes to my feed: http://www.cofc.edu/~hiottm/RSS.XML When i click SUBSCRIBE, i see the newest episodes there, so iTunes is reading my feed correctly, but why aren't they s
-
I have been using Acrobat Pro 9 to add 3D images (mostly .WRL/VRML and .dae files) to lecture notes that I use to teach. I just upgraded to Acrobat XI Pro and was surprised to find that the 3D capability was gone. Is the only option to spend anothe
-
Can't Install iTunes, Folder Path error
I'm trying to install iTunes 7, and I keep getting the error message, "Folder Path 'My Pictures' contains invalid character. Ideas?
-
How to email report ouput as attachment
Hi, Can anybody tell me how to email report ouput as attachment. Regards, Soumya.