OCI Connectivity For Oracle Plz Solve This Error

Ads
 

OCI Connectivity For Oracle Plz Solve This Error

import java.io.*; import java.sql.*; import java.lang.*; import oracle.jdbc.OracleDriver; public class OraThin { public static void main(String[] args) { try { Connection con; DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Class.forName("oracle.jdbc.driver.OracleDriver"); System.out.println("done"); con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:xe","system","kevalonly"); Statement s=con.createStatement(); s.execute("INSERT INTO mlogin values('admin','kevalonly')"); ResultSet rs=s.executeQuery("Select *from mlogin");

            //ResultSet rs=s.executeQuery("Select *from mlogin");
            while(rs.next())
                {
            System.out.println(rs.getString("username"));
            System.out.println(rs.getString("password"));
                }

            s.execute("commit");
        rs.close();
        s.close();
        System.out.println("getConnection done........................");
        con.close();
       }
       catch(Exception e)
       {
        e.printStackTrace();
       }
}

}

---> I found Error below how i can solve this error plz tell me some answer

Package not found Error

View Answers

Ads









Related Tutorials/Questions & Answers:
OCI Connectivity For Oracle Plz Solve This Error
OCI Connectivity For Oracle Plz Solve This Error  import java.io....) { e.printStackTrace(); } } } ---> I found Error below how i can solve this error plz..."); con=DriverManager.getConnection("jdbc:oracle:thin
OCI Connectivity For Oracle Plz Solve This Error
OCI Connectivity For Oracle Plz Solve This Error  import java.io....) { e.printStackTrace(); } } } ---> I found Error below how i can solve this error plz..."); con=DriverManager.getConnection("jdbc:oracle:thin
Advertisements
how to solve this problem for oracle connectivity
how to solve this problem for oracle connectivity  Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap ter could not establish the connection
oracle connectivity
oracle connectivity  con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","hr","hr"); i have error on above line when i tried...=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","hr","hr
Oracle Database connectivity probem
Oracle Database connectivity probem  hi Below is the code of oracle database connectivity, when i compile it, it will show the error... also set the environment variable like that .;E:\oracle\ora81\jdbc\lib
oracle connectivity problem with netbeans
oracle connectivity problem with netbeans  sir I am using oracle.... for this after adding new driver(ojdbc6.jar) in services tab I got connectivity with oracle... of simple connectivity with oracle in this I am giving driver details
jdbc oracle connectivity problem
jdbc oracle connectivity problem  Hi All, I am trying to connect my swing application to oracle DB . but class.forname is giving error. Please suggest me if there is some different way to connect swing application to oracle
plz solve my query?
plz solve my query?  how to remove all the options from select control in html using java script?   JavaScript remove all items <html> <script language="javascript" > function removeAllItems(selectbox
ArrayList question plz solve it
ArrayList question plz solve it  An arraylist object stores an Emp Object, where there is name,age,address of the employee is stored, And i want to access the data in the basis of age based? Provide answer to the question
plz help meto solve this question
plz help meto solve this question  for a file that exist what will be the length() method in the file class return
servelet connectivity with oracle using procedure
servelet connectivity with oracle using procedure   kindly elaborate how servlet code connect to oracle br using procedure
plz anyone can solve my
plz anyone can solve my  creat an applet prog which accepts the details of 10 customers like name , address , city , ect. and display it   import java.awt.*; import javax.swing.*; import java.awt.event.*; import
JSP-Oracle connectivity
JSP-Oracle connectivity  I have created a "dynamic web project" mainly with jsp files in eclipse and now, want to connect with oracle 10g, so how can I proceed for the database connection
Database Connectivity Withe Oracle
Database Connectivity Withe Oracle  Develop a program to perform the database driven operation like insert, Delete, Update and select. To perform the above operations create one table named Employee. Field Name Field Type EmpId
StringIndexOutOfBound error !!! plz give me the reason for this error ,plz.........
StringIndexOutOfBound error !!! plz give me the reason for this error ,plz.........  import java.util.Scanner; class Even { static int getEven(int firstno,int secondno) { int counteven=0; for(int i=firstno;i<=secondno;i
error oracle database connection?
error oracle database connection?  hi now i am trying to connect oracle database and also insert my data into table, but it's not working.. I created... in oracle table. my table name is logininfoclient_sla. this is my coding
please solve this error Warning: mail() [function.mail]:
please solve this error Warning: mail() [function.mail]:   please solve this error Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing
how to solve 'Stop Running This Script' Error ?
how to solve 'Stop Running This Script' Error ?  Hi.. When opened the page on IE browser(version : 8.0),it gives an java script error (i.e.Stop Running This Script). I have used jsp/servlet for this. Please help to resolved
oracle insert statement error - JDBC
oracle insert statement error  hi.. please help me to insert a image into oracle 11g database and please say me how can i insert image from directory like G:\imagefolder\ultrasoundimage\02us02.jpeg please help me
how to solve this kind of error in Eclipse IDE?
how to solve this kind of error in Eclipse IDE?   i'm creating... are installed. but i'm getting exactly this error, any one out of this problem of error. thanks in advance. ![this is image of error, and i will try to start
Jdbc connectivity in java to oracle for retrieving data between two dates
Jdbc connectivity in java to oracle for retrieving data between two dates  Dear Sir, I Need a program in which i want to retrieve the data b/w two... am using the oracle. please help. thankyou sir
ModuleNotFoundError: No module named 'oci'
is throwing following error: ModuleNotFoundError: No module named 'oci' How to remove the ModuleNotFoundError: No module named 'oci' error...: No module named 'oci' error will be solved. Thanks
ModuleNotFoundError: No module named 'oci'
is throwing following error: ModuleNotFoundError: No module named 'oci' How to remove the ModuleNotFoundError: No module named 'oci' error...: No module named 'oci' error will be solved. Thanks
how to solve error like'java.lang.NumberFormatException: For input string: "7600113411"' this
how to solve error like'java.lang.NumberFormatException: For input string: "7600113411"' this  java.lang.NumberFormatException: For input string: "7600113411"    java.lang.NumberFormatException: For input string
Solve it
Solve it  How to calculate the value which contains oparator and operand both using command line argument
connectivity
connectivity  sir i have created a web page for login form and i have also created the related data base in both ms access and oracle 10g now how to store those values in form to databases can u plz hlp me
ModuleNotFoundError: No module named 'oci-cli'
ModuleNotFoundError: No module named 'oci-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'oci..., ModuleNotFoundError: No module named 'oci-cli' error will be solved
ModuleNotFoundError: No module named 'oci-cli'
ModuleNotFoundError: No module named 'oci-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'oci..., ModuleNotFoundError: No module named 'oci-cli' error will be solved
solve this
solve this   Create a student class. The student object should have studentid, studentname, subject and marks as properties. Also generate the getter and setter methods. Create 5 objects of this class and populate values
plz check my codings are correct or not...There is an error..i cant find it..
plz check my codings are correct or not...There is an error..i cant find it..  import java.util.Scanner; public class Student { private String indexNo; private String gender; private char initial; private int mark1
**Connectivity is not getting done in this program plz check it out wat is the problem with that Although i've made tables in MA-ACCESS**
**Connectivity is not getting done in this program plz check it out wat is the problem with that Although i've made tables in MA-ACCESS**  <p>import java.io.*; import java.awt.*; import java.awt.event.*; import

Ads