Error in data base connection - Help me

Hi,
In our application we are using jdbc:odbc:driver to connect with MSAccess database (.mdb), The data base is password protected,, when I run the application and access the database the user name, application path and the password is stored in the system registry automatically . The path where the details are stored is
I don’t know the reason behind this update in the registry, how can I remove the entry from the registry using java code.
Requirement:
The password should not be updated in the registry , how can I avoid this?
The sample code is
String database1 = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
database1+=sample.mdb+";PWD="+”sample”;
con = DriverManager.getConnection(database1 ,”admin”,”sample”);

Hello Jschell,
Thank you for your message.
Our application's feature set is defined by what we store in a table in the DB. Eg: 1 means premium version, 2 means basic version etc. The app is written and tested, and prior to shipment we only change this value.
It would take us too long to change the basic logic. One alternate we thought is to encrypt this number by multiplying it with a large prime.
Is there some other way in which we can protect the user name / password ?
Thanks
Sivan

Similar Messages

  • How to change the Data base connection Dynamically

    Hi
    Hi create a crystal reports using crystal report 12.0 in this i use the standard wizard and local data base connection and create a dotnet programme for this .Now i want to  change the database because because i want to instal it in client they use a different connection so i need to change the connection .How is it possible . PLzzzzz tell me it is urgen t
    Addvance thnks

    Hi
    To change the database you can use DataSource  Option that is present in the Menu Bar.
    Go to Database
    ->Set Datasource Location
    ->Replace the current Data Source with the new Datasource.
    Hope this helps
    Shraddha

  • One application module with 3 differente data base connections

    I have 3 different servers for data base connections. The main is "sys", the second "stanby" and the third: "bdbatch". In the old application,that i m re programating, uses a properties to read the connection. If the main is not available then goes to the stanby an then to the third. With this new application with adf i have to do the same. So how can i configure the application module to do this? do i have to make extra code? or just configure an xml file??

    i faced this problem before in Dynamic JDBC Credentials topic solution provided by Steve Muench (to make your AM Databse Connection to be dynamic as you need).
    http://smuenchadf.samplecode.oracle.com/samples/11gDynamicCredentials.zip
    Note : Example Contains the Full JDBC Connection String in dynamic way
    i finished this solution in my App and Successed.
    Thanks

  • Library Update rqstd on Aperture 3.2; now won't open get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"   TIme machine won't load backup "error code -8003"

    Aperture working on OS 10.6.8 then Library Update rqstd on Aperture 3.2; said yes;
    now Aperture won't open,  get msg "error opening data base for the library "~/Pictures/Aperture Library.aplibrary"  
    TIme machine won't load backup "error code -8003"
    Tried reloading Aperture 3.2 but get same result.

    You’re running an outdated copy of Safari on your Desktop. That won’t work.
    In the Finder, select
    Go ▹ Applications
    from the menu bar, or press the key combination shift-command-A to open the Applications folder. Check that the Safari application is in that folder. If it is, use it, and delete the copy on your Desktop. Never move or copy built-in applications.
    If you've deleted Safari from the Applications folder, back up all data, then reinstall OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.

  • Cube to Cube "Error in data Selection" plz help

    Hi this is Ajay Reddy
    when am sending data from Cube to Cube am getting an error
    "Error in data Selection" plz help

    Hi,
    It needs a Note implementaion. I got similar problem in version BIW 7 and SP 11. We got the solution with on of the note . I am not able to recollect the note number.
    Any way check the notes 920971,155471 may help you or not.
    With rgds,
    Anil Kumar Sharma .P

  • Error opening data base for the library for Aperture

    Hello,
    I have been using Aperture all day and for some reason am now getting this error message when trying to open it again.
    Te was an error opening the data base for the library "users/*******/pictures/aperture3triallibrary.aplibrary
    Has this happened for anyone else?
    Many Thanks

    When I hold down ⌘⌥ firmly, at the same time, and with these keys held down double click the Aperture library that I want to repair, I get this panel:
    Then, when I select "Repair"  Aperture will show a progress bar and the Dock icon will stay highlighted.
    When it is finished, the Aperture window will open.
    When I select repair, it seems as though it doesn't run. I don't get a dialog box to confirm it's happening and on the dock the little light under the Aperture icon isn't lit, which seems it is'nt open or running.
    After you select "Repair", does the panel close and then nothing? Or does the panel not react?
    I still don't see fully, what is going on on your mac.
    But it is a good sign, that you can create a new library. That suggests, that Aperture is running correctly on your mac, and "only" your old library has a problem. Try to test the new library - import a few images and try to adjust them.
    Once you are convinced, that the new library is working well, you have three options.
    Try "Rebuild" instead of "Repair".
    Or try to import your old library into the new library (Aperture's main menu bar > File >Import > Library) - that is another approach to rebuilsd the library.
    Or restore from backup. To restore from Time Machine, open a Finder Window showing your Aperture library, and then enter Time Machine. Go back in time to the most recent date that has a working Aperture library and select "Restore". If you have enough space on your disk, restore to a different folder and don't overwrite your current library.
    Regards
    Léonie

  • Applet and Data Base. Help me PLEASE!!!

    Hi,
    I'm a brazilian man.
    Can a applet make consults in my data base each "x" seconds?
    I need open a frame with other applet inside him (the frame)...
    Open the frame after check a flag in my data base.
    Have you a source code for this problem?
    I hope you can help me!!!
    I'm waiting...

    Hi,
    I need a applet that check a flag in my database each "x" seconds...
    Must I to use RMI for access the remote database, ok? How (if yes)?
    If the flag is found then a "new MyFrameClient()" is open... This system is for instant communication for two active users in my site! First, a user click on link for invitation (then update fields in my database) and a "new MyFrameServer()" is open. Second, after check in database, a "new MyFrameClient()" is open and start chatting.
    Understand me?
    I hope you can help me, please!!! Know (or have) you for a source code for this?
    I'm waiting for reply, ok!!!

  • Error on data base insert

    hello mike,       
                           i am getting error  when i insert the data in to sql data base, check my code, last day i was using the same method it was workking well, now i am getting problem ... please find this attachment.
    Regards,
    Balaji DP
    Attachments:
    db1.JPG ‏63 KB
    insert.vi ‏30 KB

    It looks like your database reference is invalid; check your UDL file.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • How to Create Filter by date Query for access using Data base connectivity tool

    Hello,
    I had started my project by reading Access datas, by using an UDL connection,
    but now i want to create an access filter using a query that would permit to select two dates, and to obtain all corresponding datas, how to do it using the Parmetrized SQL query?
    Best regards,
    Remark: i dont know the SQL language
    ~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~
    **The Best Way To Predict**The**Future Is To Invent It**
    Solved!
    Go to Solution.

    Hi mike,
    I want to thank you for your help, i really appreciate it,
    i tried to make the code as ur picture, i had no problem to execute it, but i have no data's in the output
    i changed the date format, because i suppose that its a short date format in the database.
    can you just look at it, and tell me if you can find the problem,
    thank you again for your help
    Best regards,
    ~~~~~~~~~~~~~~~~~~Looking for a LABVIEW JOB (In EUROPE)>~~~~~~~~~~~~~~~~~~
    **The Best Way To Predict**The**Future Is To Invent It**
    Attachments:
    db.JPG ‏126 KB
    lav.JPG ‏82 KB

  • Error in Data Base object editor opening.

    Hi All,
    I have one server with Repowner. i created two users in two different systems with repuser1 & repuser2.
    i sucessfully imported the source data,when i am creating new table in target it gives the following error message.
    API5072 internal error
    any one help me regarding this

    Hi Stevencallan,
    i am not installed any workflow schemas.
    Can u please explain me clearly.

  • HP Photosmart C4795 Wireless Setup (Error Messege: Device Not Connected) Help?!?

    I've had my HP Photosmart C4795 since 2009. I've haven't had any major issues with the printer until recently (probably time to get a new one).
    This is my issue; the printer can't connect to my network. I'm able to print via USB from my Mac or PC. But I'd like to be able to print from any computer on my home network. In the past I've setup the printer to network with minor issue. I've had issues ever since the Mountain Lion Update (running version 10.8.3).
    I've attempted to try once again to connect the printer to the network and I get an error message from my the HP Installer software (Device Not Connected). I've tried to troubleshoot the printer with no luck. These are solutions I've tried
    1) Uninstalled HP Installer Software/Setup via Mac  - I added the printer using the latested instructions provide from HP Supports section. I set up the printer but I can't it isn't showing up on any other computer.
    2) WPS - My router (supplied by Comcast) couldn't find the printer. I used routers login website to connect the printer but it didn't work.
    3) I've printed out the HP Network Configuration Page and manually add the printer's MAC Address to list on my router's devices list. I still can't connect wirelessly to the printer.
    I've connected this printer wirelessly in the past before the Mountain Lion Update. Can anyone help?

    First, on the printer go to Setup [Scan] > Wireless > Restore Defaults.
    Then, set the printer up using WPS (pushbutton) - start it in the printer (Wireless menu) first, then the router within 2 minutes of starting it on the printer.
    There is no HP software for 10.8, so you need to uninstall it.   Uninstall the software using the 'scrubber' option:
    Go to Applications/Hewlett Packard/ click on HP Uninstaller
    Click on Continue
    Highlight your device on the left pane
    Press and hold Control + Alt + Cmd keys on the keyboard simultaneously while you click on Uninstall This IS the Scrubber Option, there is no button labeled "Scrubber"
    There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    Click Continue and let it finish
    Download and install this: http://support.apple.com/kb/DL907
    Restart your Mac.
    Now reset the printing system:
    - Sys Prefs, Print & Fax
    - Right (control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add it. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How to overwrite data base connection in SSIS

    Hi,
    I wanted to know how to overwrite database connection in SSIS & how do we call a database connection in SSIS.
    Links will also help.
    Regards,
    Ajay

    >> how do we call a database connection in SSIS.
    New OLE DB Connection can be created and SQL Server name and DB name should be provided.
    Please refer:
    SQL Server Integration Services (SSIS) Connection Managers
    >> how to overwrite database connection in SSIS
    Dynamically set the Connection String by using Variable expression or setting it via Script Task.
    Please refer:
    Dynamic Connection Strings in SSIS
    Reza Rad's Technical blog: Dynamic connection string in SSIS
    - Vaibhav

  • Data Base- formula help wanted

    I have a database for 1200 ladies dresses
    I need to make a multiple selection. For example to select from pull down menus 1. The Maker. 2. The size. 3. The colour 4. The price range. Then to click the select button to bring up those dresses within those parameters.
    I'm struggling - can anyone help please.

    On the web MySQL and PHP are the most common ways to search a database and display the result in a webpage.
    Since iWeb does not support either you have to create a PHP page and embed it in an iWeb page with the HTML Snippet. See a sample page here :
    http://dailynews.webege.com/forms/Message.html
    PHP is available on your Mac, but MySQL has to be installed. This is a good source to get started :
    http://www.entropy.ch/software/macosx/welcome.html

  • Related To My SQL Data Base Resultset Coonectivity

    Hi
    I want to open Crystal report through Java 1.5 Using JAVA Beans class.
    Data Base: My SQL, JDBC connectivity
    Class Names: CrystalRepoty(For Viewing The Report)
    Bean Class(WorkinfoDataSourceBean): For Data Base Connectivity
    When i open the perticular report its gives error.
    Error Detials
    Failed to open connection (Connection: databaseType=Java Beans Connectivity serverName=WorkinfoDataSourceBean state=closed databaseDriverName=crdb_javabeans.dll).
    com.crystaldecisions.reports.queryengine.al: Error loading ResultSet class (WorkinfoDataSourceBean)

    Hi,
    When there is a need to display huge amount of data...one approach is to display data on demand by user. 
    Keep updating the table with latest 100 rows and when user wants previous history populate the table with previous history of data.  By providing comfortable user interface user will not feel it as a burden.
    Hope this helps.
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • EJB- data base connectiviy:

    we used Jdeveloper 3.0 to develop a Simple EJB object using the wizard.
    we have also deployed the same in the oracle 8i data base(8.1.5).
    there were no errors during deployment.
    we used jdk 1.1.8 option for developing EJB objects.
    we have also created a EJB client using JDveloper Wizard.
    client is also working fine when we invoke the EJB object .
    In our bean class we are using JDBC calls for validation:
    we used the following code in the bean class in our method for getting connection:
    Connection conn = new oracle.jdbc.driver.OracleDriver().defalutConnection();
    with this connection we executed JDBC calls.
    the client is able to establish a data base connection .and able to invoke our bean method also.
    Here the data base to which we connect is same where we deployed our EJB object.
    (the deployement and JDBC calls are made to the same data base )
    Now we try to use the following code for connecting to the data base other than where we deployed the EJB object.
    The data base from where we try to establish data base conncection is oracle 8.0.4 . (for business logic )
    we use the following code in our bean class for the data base connection
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@192.168.1.99:1521:orcl"
    Connection conn = DriverManager.getConnection( url,"pilotjava","insyst");
    when we run the clinet it is giving following error message
    "D:\Oracle\JDeveloper\java\bin\javaw.exe" -classpath "D:\Oracle\JDeveloper\lib\jbotester.zip;D:\Oracle\JDeveloper\lib\jbodatum.zip;D:\Oracle\JDeveloper\lib\jbomt.zip;D:\Oracle\JDeveloper\lib\jboremote.zip;D:\Oracle\JDeveloper\lib\jnd i.jar;D:\Oracle\JDeveloper\lib\xmlparserv2.jar;D:\Oracle\JDeveloper\myclasses;D:\Oracle\JDeveloper\lib\jdev-rt.zip;D:\Oracle\JDeveloper\jdbc\lib\oracle8.1.5\classes111.zip;D:\Oracl e\JDeveloper\lib\connectionmanager.zip;D:\Oracle\JDeveloper\lib\jbodatum.zip;D:\Oracle\JDeveloper\lib\jbomt.zip;D:\Oracle\JDeveloper\lib\jboremote.zip;D:\Oracle\JDeveloper\lib\jndi .jar;D:\Oracle\JDeveloper\lib\xmlparserv2.jar;D:\Oracle\JDeveloper\myprojects\mayur;D:\Oracle\JDeveloper\lib\jbohtml.zip;D:\Oracle\JDeveloper\lib\jboremoteejb.zip;D:\Oracle\JDevelo per\aurora\lib\aurora_client.jar;D:\Oracle\JDeveloper\aurora\lib\vbjorb.jar;D:\Oracle\JDeveloper\aurora\lib\vbjapp.jar;D:\Oracle\JDeveloper\lib\javax_ejb.zip;D:\Oracle\JDeveloper\l ib\jboo8i.zip;D:\Oracle\JDeveloper\jswdk-1.0\lib\servlet.jar;D:\Oracle\JDeveloper\lib\ojsprun.jar;D:\Oracle\JDeveloper\myprojects\WebApp6;D:\Oracle\JDeveloper\aurora\lib\aurora_cli ent.jar;D:\Oracle\JDeveloper\aurora\lib\vbjorb.jar;D:\Oracle\JDeveloper\aurora\lib\vbjapp.jar;D:\Oracle\JDeveloper\aurora\lib\vbjtools.jar;D:\Oracle\JDeveloper\aurora\lib\vbj30ssl. jar;D:\Oracle\JDeveloper\myprojects\MrSource1.jar;D:\Oracle\JDeveloper\myprojects\MrGenerated1.jar;D:\Oracle\JDeveloper\myprojects\MyEJBmaytestRSource1.jar;D:\Oracle\JDeveloper\myp rojects\MyEJBmaytestRGenerated1.jar;D:\Oracle\JDeveloper\java\lib\classes.zip;D:\Oracle\JDeveloper\jfc\lib\swingall.jar" oracle.jbo.jbotester.MainFrame -M Local -C "jdbc:oracle:thin:pilotjava/[email protected]:1521:ORCL" -T AppModule -N mayur.AppModule -H "D:\Oracle\JDeveloper\doc"
    AppAccelerator(tm) 1.1.8 for Java (JDK 1.1), x86 version.
    Copyright (c) 1997-1998 Borland International. All Rights Reserved.
    Copyright (c) 1997-1999 Oracle Corporation. All Rights Reserved.
    Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
    Creating an initial context
    Looking for the EJB published as 'test/MyEJBmaytestR'
    Creating a new EJB instance
    thge value is mayur.JomItemViewImpl@1ec343
    Error is java.sql.SQLException: No suitable Driver
    OracleDriver.connect
    where mayur.JomItemViewImpl@1ec343 is the Object referece of the bean class -> beanclass.toStirng()
    please suggest us solution for our problem.
    advance thanks for your help.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by JDev Team:
    You cannot connect thru OCI drivers. Not sure about the global database names. You can check in the documentation available on the OTN
    thanks and best regards
    raghu<HR></BLOCKQUOTE>
    Dear Raghu/Laura,
    Thanks for your reply .
    we tried, as per your sugession, creating a DB link to the other data base,
    it is not working out. we get following error ,when we run the client.
    OUR DBLINK NAME IS : ORACLE.WORLD.
    "D:\JDEV3.0\java\bin\javaw.exe" -mx50m -classpath
    projects\varaEJBSource.jar;D:\JDEV3.0\java\lib\classes.zip" varaganEJB.varaganEJBJSClient
    Creating an initial context
    Looking for the EJB published as 'test/varaganEJB'
    Creating a new EJB instance
    Calling varaganEJB.varaEJB methods...
    ...done!varagan
    error during invoke ejbnull
    javax.jts.HeuristicRollbackException
    when we tried to call the tables of the same database it is working fine .
    we have tested the database link , by calling the same Sql statement using
    oracle 8i client (SQL) , it is working fine.
    Following is the source code of us: Pl go thru and suggest us.
    NOTE: I HAVE REMOVED THE SOME OF THE DEFALUT CODES GEN BY JD.....(BUT FOR THE NAMES)
    TO REDUCE UNNECESSARY INFO.
    REMOTE:
    public interface varaEJB extends EJBObject {
    public java.lang.String getEname(int empno) throws java.rmi.RemoteException;
    public java.lang.String getmyName() throws java.rmi.RemoteException;
    HOME:
    varaEJB create() throws java.rmi.RemoteException, javax.ejb.CreateException;
    BEANCLASS:
    public class varaEJBClass implements SessionBean {
    public String getmyName() throws RemoteException{
    return "varagan";
    public String getEname(int empno) throws RemoteException{
    // String sql = "select ename from emp where empno = ?";
    String sql1 = "select item_name from [email protected] where item_code = ?" ;
    try {
    Connection connect = new oracle.jdbc.driver.OracleDriver().defaultConnection() ;
    System.out.println("connected");
    PreparedStatement ps = connect.prepareStatement(sql);
    System.out.println("statement prepared");
    ps.setString(1,"FAB7022050");
    // ps.setInt(1,empno);
    ResultSet rs = ps.executeQuery();
    if (rs.next())
    return rs.getString(1);
    else
    return "No record for this emp number";
    }catch(Exception ex){
    System.out.println("error occurred druing sql "+ex);
    return ex.getMessage();
    }// getename
    CLIENT CODE:
    public class varaganEJBJSClient {
    public static void main(String[] args) {
    String ejbUrl = "sess_iiop://192.168.1.24:2481:ORCL/test/varaganEJB";
    String username = "scott";
    String password = "tiger";
    // Setup the environment
    Hashtable environment = new Hashtable();
    // Tell JNDI to speak sess_iiop
    environment.put(javax.naming.Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
    // Tell sess_iiop who the user is
    environment.put(Context.SECURITY_PRINCIPAL, username);
    // Tell sess_iiop what the password is
    environment.put(Context.SECURITY_CREDENTIALS, password);
    // Tell sess_iiop to use credential authentication
    environment.put(Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
    // Lookup the URL
    varaganEJB.varaEJBHome homeInterface = null;
    try {
    System.out.println("Creating an initial context");
    Context ic = new InitialContext(environment);
    System.out.println("Looking for the EJB published as 'test/varaganEJB'");
    homeInterface = (varaganEJB.varaEJBHome) ic.lookup(ejbUrl);
    catch (ActivationException e) {
    System.out.println("Unable to activate : " + e.getMessage());
    e.printStackTrace();
    System.exit(1);
    catch (CommunicationException e) {
    System.out.println("Unable to connect: " + ejbUrl);
    e.printStackTrace();
    System.exit(1);
    catch (NamingException e) {
    System.out.println("Exception occurred!");
    System.out.println("Cause: This may be an unknown URL, or some" +
    " classes required by the EJB are missing from your classpath.");
    System.out.println("Suggestion: Check the components of the URL," +
    " and make sure your project includes a library containing the" +
    " EJB .jar files generated by the deployment utility.");
    e.printStackTrace();
    System.exit(1);
    // That's it!
    try {
    System.out.println("Creating a new EJB instance");
    varaganEJB.varaEJB remoteInterface = homeInterface.create();
    System.out.println("Calling varaganEJB.varaEJB methods...\n");
    // Method calls go here!
    // e.g.
    // System.out.println(remoteInterface.foo());
    System.out.println("...done!"+remoteInterface.getmyName());
    System.out.println("employee name is : "+remoteInterface.getEname(7839));
    catch (Exception e) {
    System.out.println("error during invoke ejb"+e.getMessage());
    e.printStackTrace();
    PLEASE SUGESST US.
    WE HAVE ANOTHER DOUBT ,RELATED TO DBLINK,;
    WE ARE NOT ABLE TO CREATE A DB LINK OF OUR OWN NAME , THE NAME MUST BE "ORACLE.WORLD".
    WHAT IS THE LOGIC BEHIND?
    ANY PARAMETER TO BE SET UP SEPARTELY?
    null

Maybe you are looking for

  • Featured of iTunes Store of Hong Kong is not working

    When I press Featured, an error says "Your request could not be completed" "Items you've requested is not currently available in Hong Kong Store". What happens?

  • Is there a complete demo on Hyperion Planning?

    Other products normally attach a complete demo for reference, I can't see it in Hyperion Planning. Might because I can't configure application wizard correctly, does the sample application can totally explain Hyperion's idea and thinking? I don't thi

  • Custom Leave approval task problem

    Dear All,    I have a problem with my custom leave approval webdynpro task.   Actually I was using standard task , TS12300097 for leave approval. It was working fine from SAP worklist from portal. If someone tries to approve from SAP R/3 it was provi

  • I download updates and lose programmes

    I was notified I needed to update (Java for Mac OS X 10.4 Release 6, Quicktime, Security Update 2007-009 (PowerPC)and MacOSXUpd10.4.11PPCPatch.pkg), so I did. Now Safari, iTunes etc won't work. I downloaded Pacifist_2.5.1 and MacOSXUpdCombo10 to fix

  • Xml, Monitoring

    Hello Experts, My questions are, - What is XML and why is it used in XI? Does XI only understands XML? - What is a protocal, why do we use it in first hand? what is transport protocol and what porotocol XI uses? - What is monitoring? How does the mon