Import utility/mechanism for Oracle in Java

Hi,
Here's my requirement:
I need to upload text(csv) files into Oracle tables through Java code.
The code needs to be generic, so that someone calling it just provides the table name and the file to be uploaded; and the file gets uploaded into the table.
Parsing the file line-by-line is not an option, as:
1. The file/table formats will keep changing during the applications life-cycle.
2. Performance issues, as the file sizes will be huge (>100 MB).
The other option I explored was the sqlldr utility from Oracle. Its quite fast and easy to use but is a command-line utility which would have to be called through the use of Runtime.exec() or similar mechanism, which doesn't seem like a good choice for an enterprise application when seen in the perspective of error/exception handling, code executing outside JVM etc.
Does anyone know of any similar utility written in Java or any other innovative way of handling such a requirement?
Any pointers would be appreciated.

Parsing the file line-by-line is not an option, as:
1. The file/table formats will keep changing during
the applications life-cycle.What's the problem with that? You will always need to specify table name, and columns to insert into. The app will then read the file line by line and insert records into the database (but you should do the inserts in batches, and not line by line)
2. Performance issues, as the file sizes will be huge
(>100 MB).100MB is not huge.
Kaj

Similar Messages

  • Export import - using TOAD FOR ORACLE  and ORACLE DATABASE 10G EXPRESS or s

    Hi all,
    Could you please kindly help me?
    I am using TOAD FOR ORACLE to export a table to flat file A. The tool just supports to distinguish fields by "spaces".
    And the web page of ORACLE DATABASE 10G EXPRESS to import the data from flat file A to another database. To load data to a table from a text file, the web page bases on "comma" to distinguish fields.
    So could you have any suggestion for me? I need to export data via TOAD FOR ORACLE. And then import it to another database by the home page of ORACLE DATABASE 10G EXPRESS or sqlplus.
    Thank you so much for your help!

    Dont use TOAD for exporting your data. Use PL/SQL. Below is the code given in Asktom.com that does what you want.
    create or replace function  dump_csv( p_query     in varchar2,
                                          p_separator in varchar2 default ',',
                                          p_dir       in varchar2 ,
                                          p_filename  in varchar2 )
    return number
    is
        l_output        utl_file.file_type;
        l_theCursor     integer default dbms_sql.open_cursor;
        l_columnValue   varchar2(2000);
        l_status        integer;
        l_colCnt        number default 0;
        l_separator     varchar2(10) default '';
        l_cnt           number default 0;
    begin
        l_output := utl_file.fopen( p_dir, p_filename, 'w' );
        dbms_sql.parse(  l_theCursor,  p_query, dbms_sql.native );
        for i in 1 .. 255 loop
            begin
                dbms_sql.define_column( l_theCursor, i, l_columnValue, 2000 );
                l_colCnt := i;
            exception
                when others then
                    if ( sqlcode = -1007 ) then exit;
                    else
                        raise;
                    end if;
            end;
        end loop;
        dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
        l_status := dbms_sql.execute(l_theCursor);
        loop
            exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
            l_separator := '';
            for i in 1 .. l_colCnt loop
                dbms_sql.column_value( l_theCursor, i, l_columnValue );
                utl_file.put( l_output, l_separator || l_columnValue );
                l_separator := p_separator;
            end loop;
            utl_file.new_line( l_output );
            l_cnt := l_cnt+1;
        end loop;
        dbms_sql.close_cursor(l_theCursor);
        utl_file.fclose( l_output );
        return l_cnt;
    end dump_csv;
    /Here is the link to this thread in asktom.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059

  • Dynamic 3d-Party DS Import for Oracle in Java-App

    Hi,
    i'm currently trying to implement some sort of dynamic import-functionality from within a java-webapplication. The User should be able to select different datasources (MS Access, Excel, CSV, MS SQL-Server) from a browser-interface and then have them imported into one consolidated Server (on a regular/monthly baisis). Obviously it would be of great help if one could use the functionality offered by the Oracle-Server from within the java-application to support this process. I am currently exploring the Oracle-"Landscape" for a proper solution/concept for this matter and would be very greatful for some help or a slight push in the right direction.
    Desired functionality:
    - Build up Connections to Datasources on the filesystem (MS Access, MS Excel, CSV) (dynamically selectable from within the application)
    - Import the Data into a Oracle-Server, whilst taking into account the different dialects and constrains etc.
    What i found so far:
    SQL Loader:
    Not a valid option since the user would have to convert all databases into flatfiles before every import session.
    Oracle Data Pump:
    This one offers a complete Java-API, which is great, but i am not sure how i could use it to import Data from a 3d party datasource (is this possible?).
    Oracle Generic Connectivity:
    Allows the usage of excel or access databases from within oracle as if they were oracle tables(?). One big benefit would be the abstraction from the different dialects. Question is how to setup the connection from within the java-code (manipulate the initsid-files and probably setup the ole-db or odbc connections). I guess there is no java-API for some parts of this functionality?
    Oracle SQL Developer Migration Workbench:
    This tool actually comes quite close to the desired Import-functionality (which is why i choose this forum for my post). Would it be possible to access some of the functionality this tool offers from within a java-application, to automate the import on a regular basis as described?
    Are there any other good options? Possibly even with a java-API?
    Thank you very much in advance!

    Hi,
    i'm currently trying to implement some sort of dynamic import-functionality from within a java-webapplication. The User should be able to select different datasources (MS Access, Excel, CSV, MS SQL-Server) from a browser-interface and then have them imported into one consolidated Server (on a regular/monthly baisis). Obviously it would be of great help if one could use the functionality offered by the Oracle-Server from within the java-application to support this process. I am currently exploring the Oracle-"Landscape" for a proper solution/concept for this matter and would be very greatful for some help or a slight push in the right direction.
    Desired functionality:
    - Build up Connections to Datasources on the filesystem (MS Access, MS Excel, CSV) (dynamically selectable from within the application)
    - Import the Data into a Oracle-Server, whilst taking into account the different dialects and constrains etc.
    What i found so far:
    SQL Loader:
    Not a valid option since the user would have to convert all databases into flatfiles before every import session.
    Oracle Data Pump:
    This one offers a complete Java-API, which is great, but i am not sure how i could use it to import Data from a 3d party datasource (is this possible?).
    Oracle Generic Connectivity:
    Allows the usage of excel or access databases from within oracle as if they were oracle tables(?). One big benefit would be the abstraction from the different dialects. Question is how to setup the connection from within the java-code (manipulate the initsid-files and probably setup the ole-db or odbc connections). I guess there is no java-API for some parts of this functionality?
    Oracle SQL Developer Migration Workbench:
    This tool actually comes quite close to the desired Import-functionality (which is why i choose this forum for my post). Would it be possible to access some of the functionality this tool offers from within a java-application, to automate the import on a regular basis as described?
    Are there any other good options? Possibly even with a java-API?
    Thank you very much in advance!

  • How long should the Repository Creation Utility take for Oracle Portal?

    I'm running the Oracle Repository Creation Utility (RCU) as a precursor to installing WebCenter, and the schema creation process is stuck on the "Portal" step. The first 10-12 steps each took less than 30 seconds to complete, and the last step has been going for 2 hours 14 minutes.
    I checked the rcu log files, and they are constantly being updated with new progress information as though the process is still working. I haven't been able to find anyone else on the internet with this problem. From various screenshots on google, it looks like it can complete in under 10 minutes in some cases.
    Thanks,
    Dave

    Is it showing some error ?
    Check with DB settings and parameters properly.Usaully it should not take long time to complete.Possible chances are corrupt rcu file.I would suggest download again the RCU and re-run it.
    Anyways in which version of DB you are trying to install ?(vendor and version).
    Which version of RCU you are using ?
    Regards,
    Hoque

  • Query to do import and Export for Oracle 10g

    For MYSQL we have queries available for import and export
    import:-LOAD DATA INFILE 'filename' INTO TABLE tablename FIELDS TERMINATED BY ','
    export:-SELECT * into OUTFILE 'file name' FIELDS TERMINATED BY ',' FROM tablename
    Do we have similar query in Oracle which can be executed on SQL * Plus

    Is it a feedback opinion you want to get/put ?
    If not, then use a proper forum, which you can find somewhere here below :
    http://forums.oracle.com/forums/category.jspa?categoryID=18
    Maybe Database General is the one for your question.
    By the way, explain where you get the data from (flat file -sqlldr - or dump file -imp -?), and where you want to put the data (flat file - select - or dump file -exp - ?), be sure you know the format of file of your output.
    Nicolas.

  • Deinstall utility failed for oracle 11.2.0.2 grid

    Hi,
    I am trying to deinstall the Oracle 11.2.0.2 grid at AIX when executing deinstall utility its failing with error
    CLUSTER_NODES does'nt contain the LOCAL_NODE
    and LOCAL NODE is setting as virtual name instead of public name.
    Regards.

    Hi,
    the installer/deinstaller is looking up the hostname, which is used in the inventory (inventory_location/ContentsXML/inventory.xml)
    So if there you have the "wrong" hostnames, update them with the
    runInstaller -updateNodelist
    command. (Setting them correctly).
    After that deinstall should work.
    Regards
    Sebastian

  • Suggestion for Oracle: Distribute java using up2date

    I've been hunting high and low for the simplest possible way to both a) install and b) keep updated "sun java" on our oel-boxes. Earlier, we've been downloading and installing RPMs from java.sun.com, but that of course deals only with installation, and not updating.
    Hence, I believe this is a suggestion -- but if someone says "you can do it now", consider this the question "how":
    * Create an up2date-channel that contains the latest java-versions (jre, jdk, 32bit, 64bit)
    * Let me install it using "up2date java-1.6.0-sun-devel"
    * ...and let "update -u" keep it updated
    Doing this will help me install and enable me to keep it updated -- both of which are laudable goals, I think!
    Also, it seems that RedHat already does this, using their "Supplementary Server" channel, ref http://docs.redhat.com/docs/en-US/JBoss_Enterprise_SOA_Platform/5/html/Getting_Started_Guide/appe-install_jdk_rhel.html.

    btw - not that this helps your case right now but
    we already have virtualbox on ULN in a channel and it's up to date / current. We'll do a better job at all the others as well.
    # yum install VirtualBox-3.2
    Loaded plugins: downloadonly, security
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package VirtualBox-3.2.x86_64 0:3.2.10_66523_rhel5-1 set to be updated
    --> Finished Dependency Resolution
    Dependencies Resolved
    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Updating:
    VirtualBox-3.2 x86_64 3.2.10_66523_rhel5-1 el5_oracle 54 M

  • Import Integration Script Needed for Oracle DB

    Hi All!
    Anybody can give me import integration script for Oracle DB if i want to import data directly from DB where i dont need to extract or make Flat file and to keep at specific location location on fdm directory.
    A script which integrates if new location is created in set of books of accounts or any entity will be created in Oracle Apps. and stored in specific db. From where i have staging area where relevent DB with req feilds and records.
    Thanks in Advance
    Regards

    Hello,
    If you review the FDM Workbench Admin Guide there is a sample one already.
    There are only a few differences between Oracle and SQL:
    1. The provider string (which can be generated by looking at a .UDL file in a text editor)
    2. Oracle DB's are case sensitive, and by default everything non-quoted is pushed to uppercase (which is pretty much everything for FDM)
    Thank you.

  • Problem installing weblogic jdriver for oracle

    Hi ,
    I have installed WLS510 and Oracle8i Personal Edition on windows98. I have
    put the c:\weblogic\bin\oci815_8 directory in the system path and
    c:\oracle\ora81\jdbc\lib\classes102.zip in the CLASSPATH
    Now when I try to test the connection using the following command:
    $ java utils.t3dbping URL user password DB driver_class driver_URL
    I get error :
    Connecting to WebLogic with the WebLogic JDBC Driver
    Can't connect with the WebLogic JDBC driver:
    System.loadLibrary threw java.lang.UnsatisfiedLinkError
    with the message 'no weblogicoci36 in java.library.path'.
    Server StackTrace:
    <not available>]
    Could anyone please tell me what java.library.path is and where should I
    find
    weblogicoci36.
    Thanks
    Vishwajeet Lohakarey

    java.library.path is Java System variable for seting directories where will java look out for native library modules (DLLs on NT). It is normally unset because DLLs are serached by standard NT algorithm (PATH variable, System dir) too.
    weblogicoci36 is native module name of WL JDBC driver for Oracle that Java&NT couldn't find. Coresponding DLL file is in your c:\weblogic\bin\oci815_8 directory.
    Problem could be in that if WL is started as NT Service,
    a) PATH variable must be set for System not for User and
    b) this setting don't take effect until NT restart.
    VZ
    "Vishwajeet Lohakarey" <[email protected]> wrote:
    Hi ,
    I have installed WLS510 and Oracle8i Personal Edition on windows98. I have
    put the c:\weblogic\bin\oci815_8 directory in the system path and
    c:\oracle\ora81\jdbc\lib\classes102.zip in the CLASSPATH
    Now when I try to test the connection using the following command:
    $ java utils.t3dbping URL user password DB driver_class driver_URL
    I get error :
    Connecting to WebLogic with the WebLogic JDBC Driver
    Can't connect with the WebLogic JDBC driver:
    System.loadLibrary threw java.lang.UnsatisfiedLinkError
    with the message 'no weblogicoci36 in java.library.path'.
    Server StackTrace:
    <not available>]
    Could anyone please tell me what java.library.path is and where should I
    find
    weblogicoci36.
    Thanks
    Vishwajeet Lohakarey

  • How we build Java Database Connectivity for Oracle 8i Database

    Can any one send me a sample code for Java Database Connectivity for Oracle 8i Database
    it will be a grat help
    Thanks & Regards
    Rasika

    You don't need a DSN if you use Oracle's JDBC driver.
    You didn't read ANY of the previous replies. What makes you think this one willk help? Or any instruction, for that matter?
    Sounds like you just want someone to give it to you. OK, I'll bite, but you have to figure out the rest:
    import java.sql.*;
    import java.util.*;
    * Command line app that allows a user to connect with a database and
    * execute any valid SQL against it
    public class DataConnection
        public static final String DEFAULT_DRIVER   = "sun.jdbc.odbc.JdbcOdbcDriver";
        public static final String DEFAULT_URL      = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Edu\\Java\\Forum\\DataConnection.mdb";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        public static final String DEFAULT_DRIVER   = "com.mysql.jdbc.Driver";
        public static final String DEFAULT_URL      = "jdbc:mysql://localhost:3306/hibernate";
        public static final String DEFAULT_USERNAME = "admin";
        public static final String DEFAULT_PASSWORD = "";
        /** Database connection */
        private Connection connection;
         * Driver for the DataConnection
         * @param command line arguments
         * <ol start='0'>
         * <li>SQL query string</li>
         * <li>JDBC driver class</li>
         * <li>database URL</li>
         * <li>username</li>
         * <li>password</li>
         * </ol>
        public static void main(String [] args)
            DataConnection db = null;
            try
                if (args.length > 0)
                    String sql      = args[0];
                    String driver   = ((args.length > 1) ? args[1] : DEFAULT_DRIVER);
                    String url      = ((args.length > 2) ? args[2] : DEFAULT_URL);
                    String username = ((args.length > 3) ? args[3] : DEFAULT_USERNAME);
                    String password = ((args.length > 4) ? args[4] : DEFAULT_PASSWORD);
                    System.out.println("sql     : " + sql);
                    System.out.println("driver  : " + driver);
                    System.out.println("url     : " + url);
                    System.out.println("username: " + username);
                    System.out.println("password: " + password);
                    db = new DataConnection(driver, url, username, password);
                    System.out.println("Connection established");
                    Object result = db.executeSQL(sql);
                    System.out.println(result);
                else
                    System.out.println("Usage: db.DataConnection <sql> <driver> <url> <username> <password>");
            catch (SQLException e)
                System.err.println("SQL error: " + e.getErrorCode());
                System.err.println("SQL state: " + e.getSQLState());
                e.printStackTrace(System.err);
            catch (Exception e)
                e.printStackTrace(System.err);
            finally
                if (db != null)
                    db.close();
                db = null;
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection() throws SQLException,ClassNotFoundException
            this(DEFAULT_DRIVER, DEFAULT_URL, DEFAULT_USERNAME, DEFAULT_PASSWORD);
         * Create a DataConnection
         * @throws SQLException if the database connection fails
         * @throws ClassNotFoundException if the driver class can't be loaded
        public DataConnection(final String driver,
                              final String url,
                              final String username,
                              final String password)
            throws SQLException,ClassNotFoundException
            Class.forName(driver);
            this.connection = DriverManager.getConnection(url, username, password);
         * Get Driver properties
         * @param database URL
         * @return list of driver properties
         * @throws SQLException if the query fails
        public List getDriverProperties(final String url)
            throws SQLException
            List driverProperties   = new ArrayList();
            Driver driver           = DriverManager.getDriver(url);
            if (driver != null)
                DriverPropertyInfo[] info = driver.getPropertyInfo(url, null);
                if (info != null)
                    driverProperties    = Arrays.asList(info);
            return driverProperties;
         * Clean up the connection
        public void close()
            close(this.connection);
         * Execute ANY SQL statement
         * @param SQL statement to execute
         * @returns list of row values if a ResultSet is returned,
         * OR an altered row count object if not
         * @throws SQLException if the query fails
        public Object executeSQL(final String sql) throws SQLException
            Object returnValue;
            Statement statement = null;
            ResultSet rs = null;
            try
                statement = this.connection.createStatement();
                boolean hasResultSet    = statement.execute(sql);
                if (hasResultSet)
                    rs                      = statement.getResultSet();
                    ResultSetMetaData meta  = rs.getMetaData();
                    int numColumns          = meta.getColumnCount();
                    List rows               = new ArrayList();
                    while (rs.next())
                        Map thisRow = new LinkedHashMap();
                        for (int i = 1; i <= numColumns; ++i)
                            String columnName   = meta.getColumnName(i);
                            Object value        = rs.getObject(columnName);
                            thisRow.put(columnName, value);
                        rows.add(thisRow);
                    returnValue = rows;
            else
                int updateCount = statement.getUpdateCount();
                returnValue     = new Integer(updateCount);
            finally
                close(rs);
                close(statement);
            return returnValue;
         * Close a database connection
         * @param connection to close
        public static final void close(Connection connection)
            try
                if (connection != null)
                    connection.close();
                    connection = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a statement
         * @param statement to close
        public static final void close(Statement statement)
            try
                if (statement != null)
                    statement.close();
                    statement = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a result set
         * @param rs to close
        public static final void close(ResultSet rs)
            try
                if (rs != null)
                    rs.close();
                    rs = null;
            catch (SQLException e)
                e.printStackTrace();
         * Close a database connection and statement
         * @param connection to close
         * @param statement to close
        public static final void close(Connection connection, Statement statement)
            close(statement);
            close(connection);
         * Close a database connection, statement, and result set
         * @param connection to close
         * @param statement to close
         * @param rs to close
        public static final void close(Connection connection,
                                       Statement statement,
                                       ResultSet rs)
            close(rs);
            close(statement);
            close(connection);
    }%

  • I can't  cast  java.util.Date to  oracle.jbo.domain.Date

    Hi, i have a variable "pippo" type java.util.Date formatted like (dd-MM-YYYY hh:mm:ss)
    and I want insert in my Database where the field is Date type(oracle.jbo.domain.Date)
    in the same format(dd-MM-YYYY hh:mm:ss).
    I try to convert "pippo" but the result is formatted(dd-MM-YYYY hh:mm:ss).
    Thank's a lot yours time and i'm very sorry for my easy english
    Bye Luca

    Here is what i have seen that works , but does not preserve milliseconds. Does anyone have other solution? Using dateValue() looses hours, mins and seconds.
    public oracle.jbo.domain.Date toJboDate(java.util.Date pJavaDate)
    return new oracle.jbo.domain.Date(new Timestamp(pJavaDate.getTime()));
    public java.util.Date toJavaDate(oracle.jbo.domain.Date pJboDate)
    return new Date(pJboDate.timestampValue().getTime());
    Chandresh

  • Import the classes in the package java.util

    I haven't taken a class in two years so I have ideas but am unsure of myself, and I most likely am way off base, but is this how you import the classes in the package java.util
    import java.util.*;
    I would appreciate anyone's help. I have a lot of questions.
    Thanks,
    rp

    My assignment is below so that you will know exactly what I am asking. I am being asked to create an instance of LinkedList. I know that this is a part of the java.util. So when you create an instance of LinkedList would that be similar to instance variables? or am I misunderstanding something. I have several ideas, so I will start with the first one.
    LinkList();
    I really appreciate your taking the time to answer my questions to help me to rebuild my confidence in doing this.
    Thanks,
    // 2. import the classes in the package java.util
    public class MyProgram
         public static void main(String [] args)
              // 3. Create an instance of LinkedList
              // 4. add 5 entries to the list so that it contains
              //     Ann, Bart, Carl, Dirk, Zak
              // 5. display the list on one line using a loop and ADT list methods
              System.out.println("\n\n3. ");
              // 6. display the list using one println
              System.out.println("\n\n4. ");
              // 7. create a ListIterator object for the list
              // 8. display the list on one line using the iterator
              System.out.println("\n\n6. ");
              // 9. restore the iterator to the first item in the list
              // 10. retrieve and display the first item in the iteration,
              //      then advance the iterator to the next item
              System.out.println("\n\n8. ");
              // 11. advance the iterator to the end of the list without displaying anything;
              //      do not use the length of the list
              // 12. display the last item in the list
              System.out.println("\n\n10. ");
              // 13. move back to the beginning of the list without displaying anything;
              //      do not use the length of the list
              // 14. display the first item in the list
              System.out.println("\n\n12. ");
              // 15. advance the iterator to the end of the list without displaying anything;
              // 16. advance the iterator - what happens?
              System.out.println("\n\n14. ");
              // 17. advance the iterator within a try block; catch the exception, display a message,,
              //      and set the iterator back to the beginning of the list.
              System.out.println("\n\n15. ");
              // 18. what does nextIndex and previousIndex return?
              System.out.println("\n\n16. ");
              // 19. move the iterator to the third item in the list; if you were to
              //      execute next(), the third item would be returned and the iterator
              //      would advance to the 4th item.
              System.out.println("\n\n17. ");
              // 20. add the string "New" to the list; where is it inserted relative to
              //      the current item in the iteration?
              System.out.println("\n\n18. ");
              // 21. remove the current item; what happens?
              System.out.println("\n\n19. ");
              // 22. display the current item in the list without advancing the iteration
              //      in 2 ways, as follows:
              // 22A - using only iterator methods
              System.out.println("\n\n20A. ");
              // 22B using an iterator method and list methods
              System.out.println("\n\n20B. ");
              // 23. advance the iterator and remove the current item; which one is removed?
              System.out.println("\n\n21. ");
              // 24. move the iterator back and remove the current item; which one is removed?
              System.out.println("\n\n22. ");
              // 25. move the iterator to the first item in the list and change it to "First"
              System.out.println("\n\n23. ");
         } // end main
    } // end MyProgram

  • Job opening for Oracle ADF with Java

    Guys,
    I am in need of 30 candidates who have experience on Oracle ADF framework along with Java. The position will be Wisconsin and the project will be contract based. The duration will be more than 6 months and rates are open.
    If you or your friends are interested in this offer, please send your resumes to [email protected] with a subject "Resume for Oracle ADF position".
    Thanks
    Srini

    Dear Sir,
    With reference to the website of your company I came to know that there always are the vacancies for the suitable candidates and hence I wish to apply for the same.Currently working in hydraulic environment I am approaching you through this application with great enthusiasm, that I have scope and chance to show my ability and contribute my efforts in well direction. I am enclosing here with my complete Curriculum Vitae .
    I am currently working with M/s Minar Hydrosystems PVT. LTD. in Nagpur which is one of the largest manufacturers of hydraulic/pneumatic cylinders, jacks etc. I am In charge for quality department having complete knowledge of instruments with level II in non destructive and automated non destructive techniques. Also handling SAP module in current company with effective administration.
    If you need further information regarding my candidature please do write/call me.
    Thanks & Regards
    Rushikesh P. Deogade
    Nagpur, India
    Ph.:- +91 9923858523
    Attachments:
    B.E. Mechanical with 3 years exp as a QC Incharge.doc ‏25 KB

  • Script request for  exporting, importing, inserting entry to Oracle 9i LDAP

    Do anyone has the scripts for exporting, importing, inserting entry to Oracle 9i LDAP server? Thanks for help.

    you can use ldapsearch utility to generate ldif files. Perform a search on the node you want to export and specify the output to be in LDIF format ( -L - this is a ldapsearch option). Once you have the ldif file, you can import it to any LDAPv3 complaint server such as OID. for OID, use ldapadd/ldapmodify utility to import the data.
    These utilities are present under IAS_HOME/bin or ORACLE_HOME/bin.

  • App failed due to java.sql.SQLException: [Microsoft][ODBC driver for Oracl

    Hello I developed a small applicaion for insert data into database.but i am getting exception in the server like this.
    app failed due to java.sql.SQLException: [Microsoft][ODBC driver for Oracle][Oracle]ORA-01401: inserted value too large for column
    And the code is given below..
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Jdbc1 extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    PrintWriter out=response.getWriter();
    String no=request.getParameter("no");
    String name=request.getParameter("name");
    String age=request.getParameter("age");
    try
    System.out.println("1");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    System.out.println("2");
    Connection con=DriverManager.getConnection("jdbc:odbc:rakesh","scott","tiger");
    System.out.println("3");
    Statement st=con.createStatement();
    System.out.println("4");
    st.executeUpdate("INSERT INTO ind VALUES('+no+','+name+','+age+')" );
    con.commit();
    con.close();
    catch(Exception e)
    System.out.println(" app failed due to "+e);
    }Please give solution for this....

    Hello sir..
    thanks for ur reply...
    for oracle 10g -----> we use XE as datasourse
    name..What?
    now i am using oracle 8i...Not so from the code you posted. Didn't I see "jdbc:odbc:..." in your first post?
    so what should i
    write...in the datasourse name...that means.......
    Connection
    con=DriverManager.getConnection("jdbc:oracle:thin:@loc
    alhost:1521:????????","scott","tiger");Do you really use the default username and password?
    What should i write in place of ?????????..The name of the database you wish to connect to, of course.
    Do you have your tnsnames.ora set up properly? Did you install this database?
    None of this has ANYTHING to do with the error you posted, of course. Fix that first and then worry about the thin driver. At least it appears that the code you posted managed to connect to the database.
    %

Maybe you are looking for

  • Go Flex TV media player can no longer see the external drive on my airport

    Hi there I have an external hard drive hooked up via usb to my airport extreme. I recently purchased a goflex seagate media center for my tv. At first the seagate recognized my external drive with no problem. Streaming files from the hard drive with

  • No Conditions Determined (NoAuthorization for Input)

    Hi, I'm new in SAP, can anybody please help me with this error messages happened in MIGO transaction?  "No Conditions Determined (No Authorization for Input) - Message No.: 06235 Diagnosis: Your user master record does not include authorization to pe

  • Make screen (physically) brighter

    hi, i have noticed that my toshiba satellite (2007) screen is very dim compared to say an apple compouter or macbook.. i have already increased brightness all the way through the settings, and increased brightness & gamma through the chip settings, b

  • Printed emails with skipped lines in message

    Printed page has a blank space down the length of a line when printing an email. This happens on the 2nd or 3rd line of th message and ocurrs evry 4-6 lines there after. Unt is about 3 years old and worked prefectly withou any problem until now.

  • Standalone Flex App

    I want to use some components from a Flex app that we are developping to create a standalone application for some of our clients who just want to use a few (small) features of our application. I'm planning to use the in-process HSQLDB database and no