How to connect using netbean 6.5 and oracle lite 10g

Hello everyone.. I am really really new in this kind of thing. My task is that I need to develop a simple system using netbean and oracle lite 10g..Does anyone can at least give me a little bit tutorial for a head start in order to connect them.. I really appreciate for those who answer this.. Thank you guys...

you mean to connect from java to oracle lite server or client?
-if it is server you mean then you probably need to run some oracle apis (e.g. the consolidator aps).
String url="MOBILEADMIN/123@jdbc:oracle:thin:@MYSERVER:1521:MYDB" ;
ResourceManager.initialize(url);
rm = ResourceManager.getInstance();
User usr = rm.getUser(user);
for (Enumeration e = usr.getDevices(); e.hasMoreElements();) {
Device dev = (Device)e.nextElement();
}//AND you may continue from here in order to send commands to the devices
-if you have a oracle repository at the back end and you want to connect to that then you can connect like:
DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance ());
String url="jdbc:oracle:thin:@myserver:port:database;
c=DriverManager.getConnection( url,"username", "password" );
s=c.createStatement();
s.executeQuery("Select TRIM(CODES) AS CODES,TRIM(SURNAME)||'_'||TRIM(FIRSTNAME) AS NAME from MYDB.USERS");
ResultSet rs =s.getResultSet();
-now if you want to connect to the oracle lite client database then you may connect using the polite
you should write something like (i havent tried it because i use handheld clients)
String ConnectMe=("jdbc:polite:SCOTT/tiger:polite;DataDirectory=c:\Oracle_Home;Database=polite;IsolationLevel=SINGLE;USER;Autocommit=ON;CursorType=DYNAMIC")
try {
Connection conn = DriverManager.getConnection(ConnectMe)
catch (SQLException e)
(check the internet for jdbc:polite connection strings)
gl

Similar Messages

  • Hibernate and Oracle Lite 10g

    Has anyone been able to get Oracle Lite 10g working with Hibernate?

    What problems are you having? You are using Webtogo OC4J right?
    It has been a while since I worked with Hibernate and in theory, it should work with any relational database. Since Oracle Lite closely resembles Oracle, I can't see an issue with the database, just the container that it is running in.
    <property name="connection.driver_class">oracle.lite.web.WTGJdbcDriver</property>
    <property name="connection.url">jdbc:oracle:webtogo</property>
    <property name="connection.username"></property>
    <property name="connection.password"></property>

  • Creme 4.0 and Oracle Lite 10G

    Hello Everybody,
    i´ve developed an Oracle Lite app that works fine on my Laptop, but now i want to deploy it on my pocket PC running windows mobile 2003 (XCale processor) with CrEme 4.0 JVM.
    What do i need to do to put it to work?
    Can anyone send me a .lnk file so that i can use as an example??
    Regards,
    Paulo

    48#\Windows\CrEme\bin\CrEme.exe -Of -classpath '\pp_app\simpleapp.jar' SimpleApp
    in the Oracle lite manual you can read:
    When using the CrE-ME 4.0 JVM, use the DriverManager class to connect to an
    Oracle Lite Database.
    For example, use the following:
    politeConnection = DriverManager.getConnection(DSN,UserName,Password);
    To run a sample class ExampleClass, part of ExamplePackage.jar, use the
    following command at the CrE-ME command prompt:
    48#\Windows\CrEme\bin\CrEme.exe -Of -classpath \orace\olitejdbc40.jar;\orace\msync.jar;\ExamplePackage.jar
    ExampleClass

  • How can i use my iPhone 4 and connect via bluetooth with my macpro

    how can i use my iPhone 4 and connect via bluetooth with my macpro

    The only way that you can connect your iPhone to the mac is to use it for a "Wi-fi hotspot" meaning that you can use the celluar connectivity of your phone to connect your computer to the interent.
    Do you mean a MacBook Pro of the desktop MacPro?

  • How to connect my iPad, Brother printer, and AirPort Extreme?

    How to connect my iPad, Brother printer, and AirPort Extreme?

    I don't believe any of the Brother printers are AirPrint-enabled. Is your Brother printer network-ready? That is, does is support either/both a wired or wireless connection or just uses USB to connect?

  • How to connect to a Sql server from Oracle using db link

    Hi All,
    Does anybody have any idea about how to connect to a sql server from oracle database using db link to syncronize the data? I need to pull the data from Sql server table to Oracle tables and relay messages back to the sql server.
    Thank you,
    Praveen.

    we have 2 products - DG4MSQL and DG4ODBC.
    DG4ODBC is for free and requires a 3rd party ODBC driver and it can connect to any 3rd party database as long as you use a suitable ODBC driver
    DG4MSQL is more powerfull as it is designed for MS SQL Server databases and it supports many functions it can directly map to SQL Server equivalents - it can also call remote procedures or participtae in distributed transactions. Please be aware DG4MSQL requires a license - it is not for free.
    Check out Metalink and you'll find notes how to configure both products.
    For a generic overview:
    Note.233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    And the setup notes:
    DG4ODBC
    Note.561033.1 How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) :
    Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit RDBMS.HS-3-2 :
    Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003) V817:
    Note.466228.1 How to Setup DG4ODBC on Linux x86 32bit
    DG4MSQL
    Note.466267.1 How to Setup DG4MSQL (Database Gateway for MS SQL Server) on Windows 32bit
    Note.562509.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) 64bit Unix OS (Linux, Solaris, AIX,HP-UX)
    Note.437374.1 How to Setup DG4MSQL (Oracle Database Gateway for MS SQL Server) Release 11 on Linux

  • How to connect a Razr to iCal and Address Book w/ bluetooth

    How to connect a Razr to iCal and Address Book w/ bluetooth
    Hello. I am going to post this in multiple forums because I searched but couldn't find anything on how to sync my Razr with Tiger's iCal and Address Book so this is the How To.
    First, download the software Pacifist which can be found on www.versiontracker.com. After the download, put your Tiger DVD into the drive, open the packages in Pacifist, and do a search for iSync.app. Drag that app into your Applications folder. Go to www.versiontracker.com again, and download the iSync 2.1 update. Run that update, and after the restart, use the bluetooth setup to connect to your phone. After pairing, the bluetooth setup should say that you can sync your contacts and ical list. Go to your Applications folder and find iSync. Using this application, you can now adjust the settings for your iCal and Address Book apps.
    Good luck!

    Hi,
    There's a dedicated forum for Server customers.
    Good luck,
    S.

  • TS1398 How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    How can I use both, Windows PC and iMac, when using WiFi?. It is either-or. What can I do?

    What does this have to do with using an iPad?
    But yes, you should be able to connect to your home WiFi network with multiple computers and devices. In my house my wife, my daughter and I will all be using the WiFi Internet connection at the same time with our Laptops and I will also be using my iPad, my daughter uses her iPhone, and we have no issues at all.
    Is this what you want to know about?

  • I have an iTunes account with a $25.00 credit but everytime I go to purchase a song, it goes to my credit card details. How do I use the iTunes credit and not the credit card?

    I have an iTunes account with a $25.00 credit but everytime I go to purchase a song, it goes to my credit card details. How do I use the iTunes credit and not the credit card?

    Just to confirm, you are logged into the iTunes Store using the account in which the balance exists, and the balance is showing at the top of the iTunes Store window? And you're not trying to purchase gifts for someone else?

  • I have a ipod shuffle synced to a desktop (ver 9), I have a new laptop and downloaded itunes (ver 10.7).  When i plug the ipod in the new laptop it wants to delete my songs. How do i use my new alptop and ipod together?

    I have a ipod shuffle synced to a desktop (ver 9), I have a new laptop and downloaded itunes (ver 10.7).  When i plug the ipod in the new laptop it wants to delete my songs. How do i use my new alptop and ipod together?

    Your iPod is designed to sync with only one iTunes library at a time.  It will recognize the iTunes library on the PC as a new library.  If you sync the iPod with this new library, all content will be erased from the iPod and replaced with what is in the new library.  So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • Unable to connect to Wi-Fi connection using WPA2 PSK authentication and encryption type TKIP

    I was referred to here from this thread at the Windows Insider Program: http://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_web/unable-to-connect-to-wi-fi-connection-using-wpa2/07bae1ed-c7fb-4f85-9d26-5549cc23e57a?msgId=2eb70420-fe35-494b-a13d-dcacd4d55eb9&rtAction=1426697691002
    My issue is copy/pasted below:
    Original Title: TKIP selection in WiFi network settings
    I have a workplace WiFi connection using WPA2 PSK authentication and encryption type TKIP.
    On the machine I used to test Windows 10, I had a previous installation of Windows 7 professional which connected to my workplace WiFi using the above settings. After installing Windows 10, my workplace wifi settings were imported and worked fine.
    Windows 10 had a system crash, and since I had deleted my previous windows installation, I performed a complete reinstall of Windows 7. However, when I went to install Windows 10 again, I had not taken the time to set up my workplace Wifi on Windows
    7 before installing Windows 10. As a result, I had to set up my workplace wifi as a new connection in Windows 10.
    When going to set up the wifi connection, the encryption type was grayed out, but appeared to default to AES. Searching the internet suggested that Windows 8.1 did not need a encryption type selected, because Windows could automatically determine
    if it was TKIP or AES, hence why the option to select encryption type was grayed out. However, after completing the setup of my workplace wifi, Windows 10 could not connect to my workplace wifi. After restoring Windows 7 with a factory reset, and setting up
    the workplace wifi (the encryption type selection was not grayed out and I manually selected TKIP encryption), my workplace wifi was working again.

    I was referred to here from this thread at the Windows Insider Program: http://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_web/unable-to-connect-to-wi-fi-connection-using-wpa2/07bae1ed-c7fb-4f85-9d26-5549cc23e57a?msgId=2eb70420-fe35-494b-a13d-dcacd4d55eb9&rtAction=1426697691002
    My issue is copy/pasted below:
    Original Title: TKIP selection in WiFi network settings
    I have a workplace WiFi connection using WPA2 PSK authentication and encryption type TKIP.
    On the machine I used to test Windows 10, I had a previous installation of Windows 7 professional which connected to my workplace WiFi using the above settings. After installing Windows 10, my workplace wifi settings were imported and worked fine.
    Windows 10 had a system crash, and since I had deleted my previous windows installation, I performed a complete reinstall of Windows 7. However, when I went to install Windows 10 again, I had not taken the time to set up my workplace Wifi on Windows
    7 before installing Windows 10. As a result, I had to set up my workplace wifi as a new connection in Windows 10.
    When going to set up the wifi connection, the encryption type was grayed out, but appeared to default to AES. Searching the internet suggested that Windows 8.1 did not need a encryption type selected, because Windows could automatically determine
    if it was TKIP or AES, hence why the option to select encryption type was grayed out. However, after completing the setup of my workplace wifi, Windows 10 could not connect to my workplace wifi. After restoring Windows 7 with a factory reset, and setting up
    the workplace wifi (the encryption type selection was not grayed out and I manually selected TKIP encryption), my workplace wifi was working again.

  • How to connect an external hard drive and monitor a single port thuderbolt

    how to connect an external hard drive and monitor a single port thuderbolt

    Yu connect the HDD to your Mac and then the monitor to the HDD.
    The HDD  should have TWO T-Bird ports on the enclosure.
    Its called daisy chaining and up to five devices can be connected in this fashion.

  • How can i use Nikon D 7100 and Panasonic Lumix DMC-LF1 with Photoshop CS 5 Camera Raw?

    How can i use Nikon D 7100 and Panasonic Lumix DMC-LF1 with Photoshop CS 5 Camera Raw?

    The one needs 7.4 (or better), the other 8.1, so Photoshop CS5 with ACR6 is not up to the task.
    The free DNG Converter could be used to convert the RAW images to DNG which your version of ACR should be able to process.

  • How can a use a itunes soft. and create a new id

    how can a use a itunes soft. and create a new id itunes ?
    and
    we are update the lattest version in my iphone 3gs 16gb ?
    how can backup my iphone and install other application ?
    pls. reply me .
    jayesh panchal

    It is not possible to delete an apple id completely. You can only delete information like credit card, adress, name... To do this, go to iTunes Store, click on your email adress in the upper right corner and enter your password. Now you can manage your account.
    An apple id without password is not possible.

  • Help building an e-commerce site using DreamWeaver MX 2004 and Oracle 10G

    I'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice in DreamWeaver to go for a .asp or .jsp setup. I have several questions, here goes:
    1. Is there any book/tutorial/whitepaper out there that describes building an ecommerce site using Oracle 10G/9I/8I? Just some examples as how to make the datamodel regarding the shopping basket etc.
    2. I prefer DreamWeaver as it let's me make nice looking css style based pages without throttling too much through the code. Are there Oracle tools which allow me to make an advanced nice looking ecommerce site?
    I hope some of you can help me get started. Any effort is appreciated.
    Cheers

    I'm new to using Oracle 10G. After reviewing several rdms's I've picked Oracle 10G as my rdms. I'm trying to build an ecommerce site using DreamWeaver MX 2004 and Oracle 10G. The website will be selling hardware and software products. I have a choice in DreamWeaver to go for a .asp or .jsp setup. I have several questions, here goes:
    1. Is there any book/tutorial/whitepaper out there that describes building an ecommerce site using Oracle 10G/9I/8I? Just some examples as how to make the datamodel regarding the shopping basket etc.
    2. I prefer DreamWeaver as it let's me make nice looking css style based pages without throttling too much through the code. Are there Oracle tools which allow me to make an advanced nice looking ecommerce site?
    I hope some of you can help me get started. Any effort is appreciated.
    Cheers

Maybe you are looking for

  • Page setup fails export to PDF

    I have exported a pages document as PDF, but when I open it with an adobe reader it switches page size. I wrote it as A4, but the PDF opens as US letter size. I can change the page setup in the adobe and print as A4, but the PDF is for circulating to

  • When Scaling Image, Cannot See All Of Image

    I want to allow the user to zoom into an image. Using drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) achieves this, however it displays the scaledImage on background that is of the same size as the original image. i

  • How to learn about debugging

    debugging fundamental concepts

  • Turning down/up input level from inside logic......

    Hi. Some levels that i being in to logic from various sources are sometimes way too loud or too quiet. Is there anyway to turn this input level up or down from inside logic. I ask this because i am turning the level up on my mixing desk so loud that

  • Set Static (Persistent) Networking Route

    I've been pouring over the internet looking for a solution to my problem. I am very new to Apple and am attempting to access an AS/400 system at my work. I have the documents on how to set it up properly in a windows environment but nothing for a Mac