Cloning with customization and shared application tier.

Hi,
I have to customize applications 11i and with creating a custom schema and customizing apache, please let me know what are the steps i should take so that the customizations are there when i clone the system in a shared application tier.
Thanks,
vp

Hi,
For cloning, you will have to follow the Rapid Clone document of your application release -- See (Note: 799735.1 - Rapid Clone Documentation Resources, Release 11i and 12).
For customization, please see (Note: 270519.1 - Customizing an AutoConfig Environment).
Regards,
Hussein

Similar Messages

  • Shared application tier

    Hi,
    I want to move to shared appl tier.
    we have 1 node for database (srvdb1) 10.2.0.4 and
    2 nodes for application (srvap1,srvap2) behind a load balancer and PCP configured.
    I have created new QFS mount point which is visible on both application node.
    I am reading Note 384248.1 but not clear.
    i will be thankfull if any one kindly give step by step procedure.

    870031 wrote:
    From Note 384248.1
    section 7 1
    If i have any customize configuration will this configuration comes automatically when i clone.
    if not then how to find existance of customize configuration in my previous instance, and how to migrate it.What customization you are referring to? Are you referring to "Section 7: Migrate Non-Shared Application Tier to Shared Application Tier File System"?
    Thanks,
    Hussein

  • Shared Application Tier File System in Oracle Applications R12

    Hi
    Recently I came to an environment, here we are having 3 nodes with Shared Application Tier File System - One is Admin & DB and the other two are Applications Nodes(Apache and Forms) with load balancing. Its a Shared Application Tier File system so APPS_TOP is NFS mounted on two Applications Nodes. But i see ADMIN Node INST_TOP is also mounted on these two Applications Nodes...Could you please let me know what for this is????? or for what reasons we can keep like this?????

    my question is Admin node and two Application Nodes are having INST_TOPS locally on those nodes it self,the best practice is to have $INST_TOP directory located on a each server local mount directory.
    Re: Shared Application File System on Linux
    other than that Why ADMIN Node INST_TOP is mounted on these two Application Nodes.you have to check with your admins who implemented initially.but best practice is to have $INST_TOP directory located on a server local mount point.

  • OraInventories in r12 shared application tier

    Hi,
    I have some doubts regarding oraInventories in r12.0.4 shared application tier
    1)$ORACLE_home/inventory-->is local inventory located in evey oracle home RIGHT.
    2)/r12/GOLD/inst/apps/GOLD_fbiprddb/admin/oraInventory-->it is global inventory which lists 10.1.2 and 10.1.3 homes only

    Hi,
    1)$ORACLE_home/inventory-->is local inventory located in evey oracle home RIGHT?Already answered this above.
    2)/r12/GOLD/inst/apps/GOLD_fbiprddb/admin/oraInventory-->it is global inventory which lists 10.1.2 and 10.1.3 homes only and is located on primary application node only.so when i apply patches to these homes using opatch and oui i should apply on primary application node RIGHT?Correct (except for the global inventory which is explained in my previous reply).
    3)there is another global inventory on database tier which is primary application node also path-->/r12/GOLD/db/tech_st/10.2.0/admin/oui/GOLD_fbiprddb/oraInventory which lists only RDBMS_ORACLE_HOME.So when apllying patch to RDBMS i should show this path of oraInventory RIGHT?I believe there is only one global oraInventory directory, which can be found in oraInst.loc file. For other directories, those are local inventories.
    Regards,
    Hussein

  • Shared Application Tier -- NFS Single Point of Failure

    I am trying to convince mgmt that Shared Application Tier via NFS is the only way to go.
    Currently, we have a 4 node environment, 1 dedicated to database, then 3 application tiers.
    Is there any reasonable fault tolerant solution for NFS ??
    I am not a storage expert, but can a storage area be created on a SAN, then have all tiers NFS to the SAN area ??
    Inherently, the SAN devices are fault tolerant and dual HBA's to dual SAN switches provide protection.
    Am I missing something ?? By the way, we are a Solaris shop.

    Sawwan
    Look at Steven Chan Forum discussion section
    http://blogs.oracle.com/stevenChan/2007/05/reducing_patching_downtimes_vi.html
    Posted on June 1, 2009 14:30
    Robin Chatterjee:
    Hi atul, I notice that this may be a dead thread but I belive the answer to your question is that when you run autoconfig and chek the log you will notice that there is a preliminary stage where it says updating contect values int he databse. at that point if the database has a higher serrial number than the filesystem file then the filesystem contect file will be updated by the values in the database *( i assume not all of the values. this will then result in createion of an updated xml file. in fact the xml file is rewritten every time you run autoconfig*

  • Internal and External application tier File move

    Hi all,
    I am new oracle apps R12 with 3 tier instance.
    We are created the oracle apps R12 instance with 3 tier. Two tier is Application tier and one tier is Database tier.
    The data base tier is common for both application tier. The issue is, we are moved the all customized Development works into only one application tier (i.e. Internal tier). So we are not moved the all customized Development work into second application tier (i.e. External tier).
    My question is, we are not moving all customized work into both application tier means , is there any issue will occur ?
    How can we handle my customized works both application tiers( i.e. Internal and external tiers) ?
    Please help,
    Thanks,
    Prab.

    Hi;
    They are questioning me why we have to do that.Answer is easy, You can mention for ebs stability all nodes should be on same level :) If they push you more please show metalink notes which is already sharing by Hussein Sawwan. If they still persist say them you will go wiht SR and confirm wiht support ;)
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • UTL_SMTP with a attachment from Application Tier?

    Hi Experts,
    My requirement is to submit a concurrent after completion sending a mail to user with the attachment of the same concurrent output. I am using UTL_SMTP package for sending emails, Now problem is that when ever It tries to attach the file it reads it from Database tier, I want it to read it from Application tier.
    Any thoughts?
    Regards,
    Hasan

    I shared folder of concurrent output on Application Tier as "Concurrent_output".
    I mapped this folder in Database tier as "H:\"
    I made a new directory in Database as
    Create or replace directory testdirectory as 'H:\';
    Grant all on directory testdirectory to public;
    exec testmail(123);
    Error:
    ORA-22288: file or LOB operation FILEOPEN failed
    And I try to put a file in existing Drive i.e. (C:, D:), it works fine.If it works fine in C: or D: drives then why don't you use any of these two?
    Thanks,
    Hussein

  • Sharing application tier- specifying configuration top

    Dear all,
    In note 233428.1 Sharing the Application Tier File System in Oracle Applications 11i
    when running the script,
    Absolute path of config top <Configuration_top> Location in which the iAS and 8.0.6 instance-specific configuration files should be stored. Specify a secure location for these files. For eg: Choose a local directory for storing the configuration files
    which location I have to specify here ?
    comments pls
    Thanks
    Yusuf

    Hi,
    We use $COMMON_TOP/conf for this location which is inherited as the value of the environment variable $IAS_CONFIG_HOME.
    You may have your own choice of this location, though.
    Rgds,
    Rakesh.

  • Need help with simple file sharing application

    I have an assignment to build a Java File Sharing application. Since I'm relatively new to programming, this is not gonna be an easy task for me.
    Therefore I was wondering if there are people willing to help me in the next few days. I will ask questions in this thread, there will be loads of them.
    I already have something done but I'm not nearly halfway finished.
    Is there a code example of a simple file sharing application somewhere? I didn't manage to find it.
    More-less, this is what it needs to contain:
    -client/server communication (almost over)
    -file sending (upload, download)
    -file search function (almost over)
    -GUI of an application.
    GUI is something I will do at the end, hopefully.
    I hope someone will help me. Cheers
    One more thing, I'm not asking for anyone to do my homework. I will only be needing some help in the various steps of building an application.
    As I said code examples are most welcome.
    This is what I have done so far
    Server:
    package ToJeTo;
    import java.io.*;
    import java.net.*;
    public class MultiServer {
        public static ServerSocket serverskiSoket;
        public static int PORT = 1233;
        public static void main(String[] args) throws IOException {
            try {
                serverskiSoket = new ServerSocket(PORT);
            }catch (IOException e) {
                System.out.println("Connection impossible");
                System.exit(1);
            do {
                Socket client = serverskiSoket.accept();
                System.out.println("accepted");
                ClientHandler handler = new ClientHandler(client);
                handler.start();
            } while(true);
    }Client:
    package ToJeTo;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.net.*;
    import java.util.Scanner;
    public class MultiClient {
        public static InetAddress host;
        public static int PORT = 1233;
        public static void main(String[] args) {
            try {
                host = InetAddress.getLocalHost();
            }catch (UnknownHostException uhe) {
                System.out.println("Error!");
                System.exit(1);
            sendMessages();
        private static void sendMessages() {
            Socket soket = null;
            try {
                soket = new Socket(host, PORT);
                Scanner networkInput = new Scanner(soket.getInputStream());
                PrintWriter networkOutput = new PrintWriter(soket.getOutputStream(), true);
                Scanner unos = new Scanner(System.in);
                String message, response;
                do {
                    System.out.println("Enter message");
                    message = unos.nextLine();
                    networkOutput.println(message);
                    response = networkInput.nextLine();
                    System.out.println("Server: " + response);
                }while (!message.equals("QUIT"));
            } catch (IOException e) {
                e.printStackTrace();
            finally {
                try{
                    System.out.println("Closing..");
                    soket.close();
                } catch (IOException e) {
                    System.out.println("Impossible to disconnect!");
                    System.exit(1);
    }ClientHandler:
    package ToJeTo;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class ClientHandler extends Thread {
        private Socket client;
        private Scanner input;
        private PrintWriter output;
        public ClientHandler(Socket serverskiSoket) {
            client = serverskiSoket;
            try {
            input = new Scanner(client.getInputStream());
            output = new PrintWriter(client.getOutputStream(), true);
            } catch (IOException e) {
                e.printStackTrace();
            public void run() {
                String received;
                do {
                received = input.nextLine();
                output.println("Reply: " + received);
                } while (!received.equals("QUIT"));
                try {
                    if (client != null)
                        System.out.println("Closing the connection...");
                        client.close();
                }catch (IOException e) {
                    System.out.println("Error!");
    }Those three classes are simple client server multi-threaded connection.

    Now the other part that contains the search function looks like this:
    package ToJeTo;
    import java.io.*;
    import java.util.*;
    public class User {
        String nickname;
        String ipAddress;
        static ArrayList<String> listOfFiles = new ArrayList<String>();
        File sharedFolder;
        String fileLocation;
        public User(String nickname, String ipAddress, String fileLocation) {
            this.nickname = nickname.toLowerCase();
            this.ipAddress = ipAddress;
            sharedFolder = new File(fileLocation);
            File[] files = sharedFolder.listFiles();
            for (int i = 0; i < files.length; i++) {
                listOfFiles.add(i, files.toString().substring(fileLocation.length()+1));
    public static void showTheList() {
    for (int i = 0; i < listOfFiles.size(); i++) {
    System.out.println(listOfFiles.get(i).toString());
    @Override
    public String toString() {
    return nickname + " " + ipAddress;
    User Manager:
    package ToJeTo;
    import java.io.*;
    import java.util.*;
    class UserManager {
        static ArrayList<User> allTheUsers = new ArrayList<User>();;
        public static void addUser(User newUser) {
            allTheUsers.add(newUser);
        public static void showAndStoreTheListOfUsers() throws FileNotFoundException, IOException {
            BufferedWriter out = new BufferedWriter(new FileWriter("List Of Users.txt"));
            for (int i = 0; i < allTheUsers.size(); i++) {
                    System.out.println(allTheUsers.get(i));
                    out.write(allTheUsers.get(i).toString());
                    out.newLine();
            out.close();
    }Request For File
    package ToJeTo;
    import java.util.*;
    public class RequestForFile {
        static ArrayList<String> listOfUsersWithFile = new ArrayList<String>();
        Scanner input;
        String fileName;
        public RequestForFile() {
            System.out.println("Type the wanted filename here: ");
            input = new Scanner(System.in);
            fileName = input.nextLine();
            for (User u : UserManager.allTheUsers) {
                for (String str : User.listOfFiles) {
                    if (str.equalsIgnoreCase(fileName))
                        listOfUsersWithFile.add(u.nickname);
        public RequestForFile(String fileName) {
            for (User u : UserManager.allTheUsers) {
                for (String str : User.listOfFiles) {
                    if (str.equalsIgnoreCase(fileName))
                        listOfUsersWithFile.add(u.nickname);
        public static List<String> getAll() {
            for (int i = 0; i < listOfUsersWithFile.size(); i++) {
                //System.out.println("User that has the file: " + listOfUsersWithFile.get(i));
            return listOfUsersWithFile;
    }Now this is the general idea.
    The user logs in with his nickname and ip address. He defines his own shared folder and makes it available for other users that log on to server.
    Now each user has their own list of files from a shared folder. It's an ArrayList.
    User manager class is there to store another list, a list of users that are connected with server.
    When the user is searching for a particular file, he is searching through all the users and their respective files lists. Therefore for each loop inside a for each loop.
    Now the problem is how to connect all that with Client and Server class and put it into one piece.
    GUI should look somewhat like this:

  • Problem with firefox and gtk applications in KDE!

    Hi there, i have my arch installed and it's great, i use kdemod that is quite perfect but i have a problem: all the gtk applications like firefox, eclipse, emesene and so on are terrible looking expecially the fonts. Here what I've done:
    1) installed kdemod-gtk-qt-engine and configured to use qt theme and it's better
    2) enabled fonts with antialiasing and hinting
    3) installed fonts for lcd like cairo-lcd
    4) installed microsoft fonts
    But stille it's ugly and it's impossible to use the apps, here's a screenshot:
    The point is that i can't use konqueror because i need some plugins like googlebrowsersync that doesn't exist for konqueror. And in other distros like n00buntu it works.
    Thanks for your help!

    pelle.k wrote:
    I can relate to what borzo is saying, because i have exactly the same problem.
    See, i have installed libxft-lcd and enabled antialiasing and sub-pixel hinting in kde font properties. All kde fonts look great. Now, i usually the exactly the same in gnome "Appearance" font settings (when i use gnome).
    The thing is when you have KDE installed you can't set antialiasing and sub-pixel hinting for *GTK* apps, even if you can set a theme and font size with gtk-chtheme/.gtkrc
    This has nothing to do with how firefox renders fonts, really, but how GTK fonts a drawn in KDE since gnome-settings-manager isn't running, and thus GTK apps get crappy fonts (including firefox html rendering).
    So, how can i enable antialiasing and sub-pixel rendering specifically for GTK apps in KDE without running gnome-settings-manager?
    I know this is an old thread, but I'm still having exactly the same problem. I've been fiddling with fonts for a whole week now. Fonts in KDE apps look great, but crappy in GTK-apps like Thunderbird and Firefox. Like Pelle asked: how can I set aintialiasing and sub-pixel redndering for GTK apps? When running Gnome the fonts in GTK-apps look so much better. I wanna use my shiny new KDE 4 desktop, though.

  • Problem with drag and drop application windows from one workspace to another

    I work with multiple desktops (Spaces) and before I freely dragged the mouse a window from one space to another, now the mouse rests on the edge of space and the application does not become the next space. What am I doing wrong or where this option is set?

    After the publication of the problem has disappeared, the window is dragged. Miracle! )

  • Disadvantage of Shared application tier

    Dear,
    What are the disadvantage of selecting of share applications tier on Oracle Apps R12.1. over Redhat Linux 5.3.
    kinldy advise if out of two applications node is down the other application will be work?
    Regards,

    Sawwan
    Look at Steven Chan Forum discussion section
    http://blogs.oracle.com/stevenChan/2007/05/reducing_patching_downtimes_vi.html
    Posted on June 1, 2009 14:30
    Robin Chatterjee:
    Hi atul, I notice that this may be a dead thread but I belive the answer to your question is that when you run autoconfig and chek the log you will notice that there is a preliminary stage where it says updating contect values int he databse. at that point if the database has a higher serrial number than the filesystem file then the filesystem contect file will be updated by the values in the database *( i assume not all of the values. this will then result in createion of an updated xml file. in fact the xml file is rewritten every time you run autoconfig*

  • Having issues with workbook and sharing

    Ive used excel for my scheduling for over 10 years or so and sharing it so everyone in the office has access.  Since we switched to the new office, now it changes the fonts, colors, size every time you open it.  Tied to set a default them but
    didnt work, its driving me nuts having to change 100 cells or lines every time i open it. Any ideas?  Thank you!

    Hi,
    Do you mind telling us what is the previous and new version of Office? From Excel 2003 upgrade to Excel 2007 or later version?
    If it is, the issue may be caused by the file format, we should make sure that the workbook is being saved in native Excel 2007/2010 format. If you are saving it in the older Excel 97-2003 format, then it is possible that the losses you are seeing are
    due to the formatting not being supported in the older format.
    Then, we may try the workaround: Transfer your data from the current workbook to a new workbook and then see if the problem occurs in the new one.
    http://excelribbon.tips.net/T009484_Losing_Formatting.html
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • RAC with ASM and shared disks?

    Hi all,
    Can someone clarify this little point please. If I use ASM as my storage with a RAC database, I have to configure these nodes to shared disks. At least this is what the UG says ...
    When you create a disk group for a cluster or add new disks to an existing clustered disk group, you only need to prepare the underlying physical storage on shared disks. The shared disk requirement is the only substantial difference between using ASM in a RAC database compared to using it in a single-instance Oracle database. ASM automatically re-balances the storage load after you add or delete a disk or disk group.
    With my 9i databases, I used HCAMP to allow for concurrent VG access among the nodes. My questions are ...
    1) How can I share this storage as stated above without using HACMP? My understanding is with 10g I no longer have to use it.
    2) Can Oracle's clusterware be used to share storage? I have not seen any indication that it does.
    3) Does this mean I still have to use HCAMP with 10g crs to allow shared storage?
    Thank you

    "...meaning visible to all the participating nodes, which you don't need HACMP..."
    This is one step forward, but still not clear. On unix, storage is presented to ASM as raw volumes. As such, how can these volumes be visible on all nodes without using HCAMP (or whatever 3rd party clusterware you are using). Presenting raw volumes on several nodes is something that is not done at OS level without using some clusterware functionality.
    I do understand that storage or LUNs can be shared at the SAN fabric level. But then, these LUNs are carved in bug chunks and I would like to be able to allocate storage at much granular level using raw partitions.
    So all in all, here are my questions ...
    1) On unix platforms, can ASM disks be LUNs, raw volumes, or may be both?
    2) If raw volumes, how are these shared (or made visible) without using 3rd party clusterware? Having managed 9i RAC, it was the function of HACMP to make these volumes visible on all nodes, otherwise, we had to imp/exp VGs on all nodes to make them visible.
    Thank you

  • Username and password with Access and JDBC application

    Hello all,
    I have written an application which accesses a MS Access database. I have created a dialog which asks the user for a username and password. I then include the username and password to connect to the database. I have created groups and users in the Access database and have given each user different privaleges. However, when I run my application, any user can get any privelage. I am missing something. Thanks in advance.

    // ConnectToDatabase.java
    // Copyleft (c) 2001 RatKing
    // ��������������������������������Java Bean
    // E-mail: [email protected]
    // This can use in JSP or Java Application or Applet
    // AFTER you have setup the ODBC source in Windoz.
    package rat;
    import java.sql.*;
    import java.util.*;
    public class ConnectToDatabase{
    private String driverClass = "sun.jdbc.odbc.JdbcOdbcDriver"; // JDBC-ODBC Bridge Driver
    private String dbURL = "jdbc:odbc:yourdbname"; // the name of your ODBC Source's Database
    private String userName = "yourname"; // user ID
    private String password = "yourpassword"; // user password
    private Connection connection = null; // Connection to the Database
    private Statement statement = null; // Statement object
    public ConnectToDatabase () {
    // ������������������
    public Connection getConnection() throws ClassNotFoundException, SQLException {
    if(connection != null) {
    return connection;
    Class.forName(driverClass);
    connection = DriverManager.getConnection(dbURL, userName, password);
    return connection;
    } // getConnection()
    public void closeConnection() throws SQLException {
    if (connection != null) {
    // Makes all changes made since the previous commit/rollback permanent
    // and releases any database locks currently held by this Connection object.
    if (!connection.getAutoCommit())
    connection.commit();
    closeStatement();
    connection.close();
    connection = null;
    } // closeConnection()
    * If not connected to database...connect to database, create a statement,
    * and, return the Statement.
    protected void createStatement() throws SQLException, Exception {
    if(statement == null) {
    Connection connection = getConnection();
    statement = connection.createStatement();
    * This method executes a statement and returns true or false. Any type
    * of Statement may be executed by this command.
    public boolean execute(String sqlString) throws SQLException, Exception {
    if(statement == null){
    createStatement();
    boolean returnValue = statement.execute(sqlString);
    return returnValue;
    * This method executes the statement and returns a ResultSet from
    * execution of the query. Only a SELECT Statemet is applicable here.
    public ResultSet executeQuery(String sqlString) throws SQLException, Exception {
    if(statement == null){
    createStatement();
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    * This method executes update statements and returns a count of
    * the updates. Only a INSERTS, DELETES, and UPDATES are applicable here.
    * In addition, SQL statements that return nothing such as SQL DDL statements
    * can be executed.
    public int executeUpdate(String sqlString) throws SQLException, Exception {
    if(statement == null){
    createStatement();
    int returnValue = statement.executeUpdate(sqlString);
    return returnValue;
    * This method closes the Statement.
    public void closeStatement() throws SQLException {
    if(statement != null){
    statement.close();
    statement = null;
    * If it is not connected to database, connect to database and
    * create a statement and returns the Statement
    * @param scrollType should be ResultSet.TYPE_FORWARD_ONLY
    * or ResultSet.TYPE_SCROLL_INSENSITIVE
    * or ResultSet.TYPE_SCROLL_SENSITIVE
    * @param updateType should be ResultSet.CONCUR_READ_ONLY or
    * ResultSet.CONCUR_UPDATABLE ;
    protected Statement getStatement(int scrollType, int updateType)
    throws SQLException, Exception {
    Connection connection = getConnection();
    // for cloudscape to work with scrollable resultsets, the autocommit
    // should be false.
    connection.setAutoCommit(false);
    Statement statement = connection.createStatement(scrollType,
    updateType);
    return statement;
    * If it is not connected to database, connect to database and
    * create a preparestatement and returns the Statement
    * @param sqlString queryString to make a statement
    * @param scrollType should be ResultSet.TYPE_FORWARD_ONLY
    * or ResultSet.TYPE_SCROLL_INSENSITIVE
    * or ResultSet.TYPE_SCROLL_SENSITIVE
    * @param updateType should be ResultSet.CONCUR_READ_ONLY or
    * ResultSet.CONCUR_UPDATABLE ;
    protected PreparedStatement getStatement(String sqlString,
    int scrollType,
    int updateType) throws SQLException,
    Exception {
    Connection connection = getConnection();
    // for cloudscape to work with scrollable resultsets, the autocommit
    // should be false.
    connection.setAutoCommit(false);
    PreparedStatement preparedStatement =
    connection.prepareStatement(sqlString, scrollType, updateType);
    return preparedStatement;
    * this method executes the statement and resuts the resultSet due to
    * execution of Statement.
    * only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollInsensitiveReadOnly(String sqlString,
    Vector values) throws SQLException, Exception {
    PreparedStatement preparedStatement = getStatement(sqlString,
    ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    for (int i = 1; i <= values.size(); i++) {
    preparedStatement.setObject(i, values.elementAt(i - 1));
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = preparedStatement.executeQuery();
    return rs;
    * this method executes the statement and resuts the resultSet due to
    * execution of Statement. only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollInsensitiveReadOnly(String sqlString)
    throws SQLException, Exception {
    Statement statement = getStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    * this method executes the statement and returns the resultSet due to execution
    * of Statement. only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollForwardOnly(String sqlString,
    Vector values) throws SQLException, Exception {
    PreparedStatement preparedStatement = getStatement(sqlString,
    ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
    for (int i = 1; i <= values.size(); i++) {
    preparedStatement.setObject(i, values.elementAt(i - 1));
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = preparedStatement.executeQuery();
    return rs;
    * this method executes the statement and returns the resultSet due to
    * execution of Statement. only SELECT Statemet is applied here.
    public ResultSet executeQueryScrollForwardOnly(String sqlString)
    throws SQLException, Exception {
    Statement statement = getStatement(ResultSet.TYPE_FORWARD_ONLY,
    ResultSet.CONCUR_READ_ONLY);
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    * Method executeQueryScrollSensitiveReadOnly
    * @param sqlString String
    * @param values Vector
    * @return ResultSet returns ResultSet due to statement execution
    * @throws Exception
    * @throws SQLException
    * @see
    public ResultSet executeQueryScrollSensitiveReadOnly(String sqlString,
    Vector values) throws SQLException, Exception {
    PreparedStatement preparedStatement = getStatement(sqlString,
    ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    for (int i = 1; i <= values.size(); i++) {
    preparedStatement.setObject(i, values.elementAt(i - 1));
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = preparedStatement.executeQuery();
    return rs;
    * Method executeQueryScrollSensitiveReadOnly
    * @param sqlString
    * @return
    * @throws Exception
    * @throws SQLException
    * @see
    public ResultSet executeQueryScrollSensitiveReadOnly(String sqlString) throws SQLException, Exception {
    Statement statement = getStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    // Execute a SQL statement that returns a single ResultSet.
    ResultSet rs = statement.executeQuery(sqlString);
    return rs;
    //////////////Other things maybe useful ///////////////////
    # Refer to Appendix A for more info on configuring the JDBC
    # driver via setting of the DRIVER_CLASS and DATABASE_URL properties
    #JDBC Driver Class
    # for ODBC Driver:
    #DRIVER_CLASS=sun.jdbc.odbc.JdbcOdbcDriver
    # for Oracle Driver
    #DRIVER_CLASS=jdbc.oracle.driver.OracleDriver
    # for CloudScape Driver equipped with J2EE reference implementation
    #DRIVER_CLASS=RmiJdbc.RJDriver
    # for CloudScape Driver equipped with BEA Weblogic Server
    DRIVER_CLASS=COM.cloudscape.core.JDBCDriver
    #Database URL
    # for ODBC URL
    #DATABASE_URL=jdbc:odbc:tShirts
    # for Oracle URL
    #DATABASE_URL=jdbc:oracle:thin:@localhost:1521:ORCL
    # for URL with CloudScape equipped with J2EE reference implementation
    #DATABASE_URL=jdbc:rmi:jdbc:cloudscape:beeshirtsdb
    # for URL with CloudScape equipped with BEA Weblogic Server
    DATABASE_URL=jdbc:cloudscape:D:\\weblogic\\eval\\cloudscape\\beeshirts
    #UserName to connect to database
    UserName=TSHIRTS
    #Password to connect to database
    Password=TSHIRTS
    #otherParameters
    SUB_PROPERTIES=
    #SQL Query
    SQL_QUERY_STATEMENT = SELECT * FROM TSHIRTS.CUSTOMER
    #SQL Update , if you run this program please change the id 129 to different value each time
    SQL_UPDATE_STATEMENT = INSERT INTO TSHIRTS.CUSTOMER VALUES ('129','Sam','Cheng','S','123 Sam St.', 'C3','Baltimore','MD','20222','4104444444' ,'[email protected]')
    #Join STATEMENT
    SQL_QUERY_STATEMENT_JOIN = SELECT TSHIRTS.CUSTOMER.*, TSHIRTS.ORDERS.* FROM TSHIRTS.CUSTOMER, TSHIRTS.ORDERS WHERE CUSTOMER.CUSTOMER_ID = ORDERS.CUSTOMER_ID_FK
    #OUTER JOIN for ORACLE
    #SQL_QUERY_STATEMENT_OUTER_JOIN = SELECT CUSTOMER.* FROM TSHIRTS.CUSTOMER,STATE WHERE CUSTOMER.STATE(+) = STATE.CODE(+)
    #OUTER JOIN for MSACCESS
    #SQL_QUERY_STATEMENT_OUTER_JOIN = SELECT C.* , S.* FROM CUSTOMER C OUTER JOIN STATE S on C.STATE = S.CODE
    #OUTER JOIN for MSACCESS and Cloudscape
    SQL_QUERY_STATEMENT_OUTER_JOIN = SELECT C.* , S.* FROM TSHIRTS.CUSTOMER C LEFT OUTER JOIN TSHIRTS.STATE S on C.STATE = S.CODE
    #SQL Statement with Like for MSACCESS
    #SQL_QUERY_STATEMENT_WITH_LIKE = SELECT CUSTOMER.* FROM CUSTOMER WHERE CUSTOMER.FIRST_NAME LIKE \'*R*\'
    #SQL Statement with Like for ORACLE and Cloudscape
    SQL_QUERY_STATEMENT_WITH_LIKE = SELECT * FROM TSHIRTS.CUSTOMER WHERE FIRST_NAME LIKE '%R%'
    #Prepared QUERY Statement
    PREPARED_SQL_QUERY_STATEMENT = SELECT * FROM TSHIRTS.CUSTOMER WHERE FIRST_NAME = ?
    PREPARED_SQL_QUERY_STATEMENT_VALUES = Roy
    #Prepared Insert
    PREPARED_SQL_INSERT_STATEMENT = INSERT INTO TSHIRTS.CUSTOMER VALUES(?,?,?,?,?,?,?,?,?,?,?)
    PREPARED_SQL_INSERT_STATEMENT_VALUES =130,John,Hiller,Miller,125 S St.,C6,Baltimore,MD,20100,4104444444,[email protected]
    #Prepared Update
    PREPARED_SQL_UPDATE_STATEMENT = UPDATE TSHIRTS.STATE SET STATE_NAME = 'California' WHERE CODE = ?
    PREPARED_SQL_UPDATE_STATEMENT_VALUES =CA
    #Data base schema name
    SCHEMA_NAME =TSHIRTS

Maybe you are looking for

  • How to delete records from MTL_SYSTEM_ITEMS table

    Hello Experts, BANNER ======= Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production PL/SQL Release 8.1.7.4.0 - Production CORE     8.1.7.0.0     Production TNS for IBM/AIX RISC System/6000: Version 8.1.7.4.0 - Production NLSRTL Version 3.4.1.0.0

  • FAQ - Print a List Item in SharePoint 2010

    FAQ - Print a List Item in SharePoint 2010 step 1) Open a List; step 2) Hit the List tab; step 3) Click the Form Web Parts dropdownlist; step 4) Choose "Default Display Form"; step 5)At the top of the Page – Insert Tab, Click the Web Part button to a

  • Multicast to Host but not to Guest

    Hi all I have a strange situation. To give you some background, I have recently built 2 Hyper V3 2 node server 2012 clusters in a failover environment; all has been working without issue. The kit moves from location to location, so is frequently turn

  • NG6 pattern lock problem.

    Is anyone else having the problem of not being able to interact with their phone after the NG6 update with pattern lock enabled? On the first unlock my phone takes me to my home screen but does not respond to touch. If I relock and then unlock again

  • Installer.app rights

    Is it normal for Installer.app located in /System/Library/Core Services, when it asks for your admin password, to ask for the right system.install.root.user ?