Adding a database

Hi all,
I have an Oracle 9i database that is up and running in production. But I'm doing some new application development stuff on that database, do you know of any good tools like SQL Analyzer in MS SQL Server that I could use that have a graphical user interface similar to Oracle 10g database (HTML DB).
Also I just installed the Oracle 10g Express Edition to play around with it. Is there any way to add my previous Oracle 9i database into this new 10g database. Because it would be really helpful if I could add this 9i database to 10g HTML DB and play around with it using my previous data.
Thanks

Nigs wrote:
> Can someone please help this simpleton with adding a
database to my site. I
> have created the database and now want to create the
page from which users can
> choose from a number of options and pull info from the
database so that it is
> viewable.
>
> I have used the DW8 help and understand I need a driver
for my database? Which
> one? My host supports php that much I do know as well as
cgi.
To use PHP with Dreamweaver, you need to use the MySQL
database. You
don't need a driver. Dreamweaver sets up the connection for
you.
Since you're obviously completely new to all this, it's
difficult to
give you a simple set of instructions in an online forum.
Working with a
database isn't difficult, but nor is it something that you
can pick up
overnight. You might find it useful to take a look at my book
"Foundation PHP for Dreamweaver 8", which is described in
detail here:
http://foundationphp.com/dreamweaver8/
Take a look at the expanded table of contents, which will
give you an
idea of what's involved in setting everything up.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • User defined fields does not get added into database

    Hello Experts
                              User defined fields does not get added into database , when i click add button it
    shows data added sucessfully , but when i check data base no entry is made , only entry is made for
    B1 fields , like DocEntry ,DocNum etc.., no entry is made for U_fields..
    I have check every thing databound is also set to true
    Actually first few 6 data was added properly but now its not geeting added for user fields
    I have used 2 document row  child table for 2 matrix and for remaining Document table
    What might be the problem
    reply soon
    plz suggest

    Hello sir
    I have checked Default form , in that entry is made into database
    but running the form in screen painter in preview mode or through coding it does not get added for user field
    this id my binding code
    LoadFromXML("updateopd.srf")
                oForm = SBO_Application.Forms.Item("updopd")
                oForm.DataBrowser.BrowseBy = "txtpatid"
                'Adding combo in Obervation
                oItem = oForm.Items.Item("txtpatid")
                oEdit2 = oItem.Specific()
                oEdit2.DataBind.SetBound(True, "@UPDATE", "U_PID")
                oItem = oForm.Items.Item("txtmnane")
                oEdit3 = oItem.Specific()
                oEdit3.DataBind.SetBound(True, "@UPDATE", "U_FName")
                oItem = oForm.Items.Item("txtlname")
                oEdit3 = oItem.Specific()
                oEdit3.DataBind.SetBound(True, "@UPDATE", "U_LName")
    Plz suggest

  • Adding new database to RAC.

    Instance not starting after adding new database to RAC.
    CRS-0215: Could not start resource 'xxxxxxxxx.inst'.
    PRKP-1001 : Error starting instance db on node host

    Hi,
    Can you check the tnsnames.ora for this iinstance on the node where you are trying to add the instance.
    ex:
    LISTENERS_MYRAC =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = inst1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = inst2-vip)(PORT = 1521))
    Regards,
    vasu

  • HELP! Oracle FailSafe - Listener fails when adding standalone database

    Well, I have a cluster of two nodes with the following specs:
    (1) an Oracle 10g database each
    (2) Microsoft Cluster Service (MSCS)
    (3) Windows Server 2003 64-bit edition
    (4) Intel Itanium Processor
    (5) Oracle Failsafe 3.3.3 for Windows 2003 64-bit
    The 64-bit Oracle Failsafe doesn't come with Oracle Failsafe Manager, so I used a Failsafe Manager remotely from another clustered servers. The version is also 3.3.3, but it's running on a Windows 2000 Advanced Server.
    Well, after connecting to the 64-bit cluster, I added the standalone database to a Cluster Group. There are two cluster groups on the Server:
    (1)"Cluster Group" (the default cluster group created by MSCS); containing an IP address, a network name, Oracle Cluster Services, and the Quorum hard drive.
    (1)"ORACLE DB" A cluster gropu I created for the database; containing another IP address, a network name for the IP address, and every hard drive volumes of the database files.
    The database currently resides on the Node 2 (because I created it there). I have successfully verified the database (using "Verify Standalone Database" option). BUT when I added the database into the cluster group ORACLE DB, it failed with the following message:
    23 20:48:48 ** ERROR : FS-10066: Failed to start Windows service OracleOraDb10g_home1TNSListener for the Oracle Net listener
    When I opened the Windows Event Viewer, apparently the Listener Service had started, but it soon "terminated unexpectedly":
    At first, the Listener Service appeared to be started:
    But this is what happened next; it seemed the Listener Service terminated abruptly after entering the running state for a very short time:
    What happened? What should I do? What is the problem? Many thanks!
    PS: the following are the messages from both Verifying Standalone Database and Adding Standalone Database. The verification was successfull, but I just failed to add the database:
    >
    Versions: client = 3.3.3 server = 3.3.3 OS =
    Operation: Verifying standalone database "PAYMENT"
    Starting Time: May 11, 2005 19:50:11
    Elapsed Time: 0 minutes, 4 seconds
    1 19:50:11 Starting clusterwide operation
    2 19:50:11 FS-10915: POSDB2 : Starting the verification of standalone resource PAYMENT
    3 19:50:11 FS-10371: POSDB2 : Performing initialization processing
    4 19:50:11 FS-10371: POSDB1 : Performing initialization processing
    5 19:50:12 FS-10372: POSDB2 : Gathering resource owner information
    6 19:50:12 FS-10372: POSDB1 : Gathering resource owner information
    7 19:50:12 FS-10373: POSDB2 : Determining owner node of resource PAYMENT
    8 19:50:12 FS-10374: POSDB2 : Gathering cluster information needed to perform the specified operation
    9 19:50:12 FS-10374: POSDB1 : Gathering cluster information needed to perform the specified operation
    10 19:50:12 FS-10375: POSDB2 : Analyzing cluster information needed to perform the specified operation
    11 19:50:12 FS-10378: POSDB2 : Preparing for configuration of resource PAYMENT
    12 19:50:12 ** WARNING : FS-10247: The database parameter file H:\PAYMENT\admin\pfile\pfilePAYMENT.ora specified for this operation will override the parameter file value in the registry
    13 19:50:12 ** WARNING : FS-10248: At registry key SOFTWARE\ORACLE\KEY_OraDb10g_home1, value of ORA_PAYMENT_PFILE is H:\PAYMENT\admin\pfile
    14 19:50:12 FS-10916: POSDB2 : Verification of the standalone resource
    15 19:50:12 > FS-10341: Starting verification of database PAYMENT
    16 19:50:13 > FS-10342: Starting verification of Oracle Net configuration information for database PAYMENT
    17 19:50:13 > FS-10496: Generating the Oracle Net migration plan for PAYMENT
    18 19:50:13 > FS-10491: Configuring the Oracle Net service name for PAYMENT
    19 19:50:13 > FS-10343: Starting verification of database instance information for database PAYMENT
    20 19:50:13 >> FS-10347: Checking the state of database PAYMENT
    21 19:50:13 >> FS-10425: Querying the disks used by the database PAYMENT
    22 19:50:15 > FS-10344: Starting verification of Oracle Intelligent Agent for database PAYMENT
    23 19:50:15 > FS-10345: Verification of standalone database PAYMENT completed successfully
    24 19:50:15 FS-10917: POSDB2 : Standalone resource PAYMENT was verified successfully
    25 19:50:15 FS-10378: POSDB1 : Preparing for configuration of resource PAYMENT
    26 19:50:15 FS-10916: POSDB1 : Verification of the standalone resource
    27 19:50:15 > FS-10341: Starting verification of database PAYMENT
    28 19:50:15 > FS-10342: Starting verification of Oracle Net configuration information for database PAYMENT
    29 19:50:15 > FS-10496: Generating the Oracle Net migration plan for PAYMENT
    30 19:50:15 > FS-10491: Configuring the Oracle Net service name for PAYMENT
    31 19:50:15 > FS-10343: Starting verification of database instance information for database PAYMENT
    32 19:50:15 > FS-10344: Starting verification of Oracle Intelligent Agent for database PAYMENT
    33 19:50:15 > FS-10345: Verification of standalone database PAYMENT completed successfully
    34 19:50:15 FS-10917: POSDB1 : Standalone resource PAYMENT was verified successfully
    35 19:50:15 The clusterwide operation completed successfully, however, the server reported some warnings.
    >
    Versions: client = 3.3.3 server = 3.3.3 OS =
    Operation: Adding resource "PAYMENT" to group "ORACLE DATABASE"
    Starting Time: May 11, 2005 20:48:43
    Elapsed Time: 0 minutes, 7 seconds
    1 20:48:43 Starting clusterwide operation
    2 20:48:44 FS-10370: Adding the resource PAYMENT to group ORACLE DATABASE
    3 20:48:44 FS-10371: POSDB2 : Performing initialization processing
    4 20:48:44 FS-10371: POSDB1 : Performing initialization processing
    5 20:48:45 FS-10372: POSDB2 : Gathering resource owner information
    6 20:48:45 FS-10372: POSDB1 : Gathering resource owner information
    7 20:48:45 FS-10373: POSDB2 : Determining owner node of resource PAYMENT
    8 20:48:45 FS-10374: POSDB2 : Gathering cluster information needed to perform the specified operation
    9 20:48:45 FS-10374: POSDB1 : Gathering cluster information needed to perform the specified operation
    10 20:48:45 FS-10375: POSDB2 : Analyzing cluster information needed to perform the specified operation
    11 20:48:45 >>> FS-10652: POSDB2 has Oracle Database version 10.1.0 installed in ORADB10G_HOME1
    12 20:48:45 >>> FS-10652: POSDB1 has Oracle Database version 10.1.0 installed in ORADB10G_HOME1
    13 20:48:45 FS-10376: POSDB2 : Starting configuration of resource PAYMENT
    14 20:48:45 FS-10378: POSDB2 : Preparing for configuration of resource PAYMENT
    15 20:48:46 FS-10380: POSDB2 : Configuring virtual server information for resource PAYMENT
    16 20:48:46 ** WARNING : FS-10247: The database parameter file H:\PAYMENT\admin\pfile\pfilePAYMENT.ora specified for this operation will override the parameter file value in the registry
    17 20:48:46 ** WARNING : FS-10248: At registry key SOFTWARE\ORACLE\KEY_OraDb10g_home1, value of ORA_PAYMENT_PFILE is H:\PAYMENT\admin\pfile
    18 20:48:46 > FS-10496: Generating the Oracle Net migration plan for PAYMENT
    19 20:48:46 > FS-10490: Configuring the Oracle Net listener for PAYMENT
    20 20:48:46 >> FS-10600: Oracle Net configuration file updated: F:\ORACLE\PRODUCT\10.1.0\DB_1\NETWORK\ADMIN\LISTENER.ORA
    21 20:48:46 >> FS-10606: Listener configuration updated in database parameter file: H:\PAYMENT\admin\pfile\pfilePAYMENT.ora
    22 20:48:47 >> FS-10605: Oracle Net listener Fslpos created
    23 20:48:48 ** ERROR : FS-10066: Failed to start Windows service OracleOraDb10g_home1TNSListener for the Oracle Net listener
    24 20:48:48 ** ERROR : FS-10065: Error trying to configure the Oracle Net listener
    25 20:48:48 > FS-10090: Rolling back Oracle Net changes on node POSDB2
    26 20:48:50 ** ERROR : FS-10784: The Oracle Database resource provider failed to configure the virtual server for resource PAYMENT
    27 20:48:50 ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
    28 20:48:50 ** ERROR : FS-10497: Starting clusterwide rollback of the operation
    29 20:48:50 FS-10488: POSDB2 : Starting rollback of operation
    30 20:48:50 FS-10489: POSDB2 : Completed rollback of operation
    31 20:48:50 ** ERROR : FS-10495: Clusterwide rollback of the operation has been completed
    32 20:48:50 Please check your Windows Application log using the Event Viewer for any additional errors
    33 20:48:50 The clusterwide operation failed !

    umm... help? Anyone?

  • CloudControl 12c: when adding cluster-database single instances are missing

    Hello ,
    I'e have installed the agent 12c on every single host of our RAC. When adding a database to CloudControl 12c just the RAC-instance gets discovered - but not the single database instances on each host.
    Due to this when clicking targets -> databases I just see the cluster-database - but not every single instance of the database.
    Compared to another RAC database this is totally different behaviour.
    Any help will be appreciated
    Rgds
    JH

    Hello ,
    maybe I should try to explain the issue a little bit clearer...
    We have one RAC database called PROD02. When clicking "targets -> databases" I see the following:
    PROD02 of type Cluster Database
    PROD021 of type Database Instance
    PROD022 of type Database Instance
    That's the way it shoudl be - that's the way I expected it...
    For the newly cofgured RAC database, called PREP02, it looks different when clicking "targets -> databases"
    PREP02 of type Cluster Database
    The single instances don't show up. Of course I see the single instances when clicking on "PREP02" under the item "Instances".
    Now I wonder why these two RAC databases are differently displayed when clicking "targets -> databases". When trying to add the single instances (clicking "Add" under "targets -> databases") and selecting then either "only on the host <hostname>" or "on all hosts in the cluster" no single instances are found or displayed...
    Rgds
    Jan

  • Error while adding oracle database resource to the fail safe group

    Hi,
    we are installaing ERP 6.0 EHP4 , oracle10.2.04  in MSCS
    During the step, Adding the oracle Database Resource to the fail safe
    group , I am getting the error.
    28  13:21:57    ** WARNING : FS-10288: Parameter file C:\oracle\BCP\102\database\init<SID>_OFS.ora is not located on a cluster disk
    29  13:21:57    ** WARNING : FS-10404: The database uses a nonclustered disk in one of the system parameters.  Value of parameter is C:\ORACLE\<SID>\102\RDBMS\AUDIT
    30  13:21:58    ** ERROR : FS-10036: The resource uses disk SAP HDD, which is also used by cluster resource SAP VIP in another group
    31  13:21:58    ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource <SID>.WORLD
    32  13:21:58    ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
    33  13:21:58    ** ERROR : FS-10497: Starting clusterwide rollback of the operation
    34  13:21:58  FS-10488:<primary node name> : Starting rollback of operation
    35  13:21:58   > FS-10090: Rolling back Oracle Net changes on node <primary node name>
    I am having one local disk C: one shared disk Z: and quorum disk Q:
    Shared disk Z: is already used for SAP<sid> group.
    Regards,
    Joel

    Joeldhanaraj wrote:>
    > Hi,
    >
    > we are installaing ERP 6.0 EHP4 , oracle10.2.04  in MSCS
    >
    > During the step, Adding the oracle Database Resource to the fail safe
    > group , I am getting the error.
    >
    > 28  13:21:57    ** WARNING : FS-10288: Parameter file C:\oracle\BCP\102\database\init<SID>_OFS.ora is not located on a cluster disk
    > 29  13:21:57    ** WARNING : FS-10404: The database uses a nonclustered disk in one of the system parameters.  Value of parameter is C:\ORACLE\<SID>\102\RDBMS\AUDIT
    > 30  13:21:58    ** ERROR : FS-10036: The resource uses disk SAP HDD, which is also used by cluster resource SAP VIP in another group
    > 31  13:21:58    ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource <SID>.WORLD
    > 32  13:21:58    ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
    > 33  13:21:58    ** ERROR : FS-10497: Starting clusterwide rollback of the operation
    > 34  13:21:58  FS-10488:<primary node name> : Starting rollback of operation
    > 35  13:21:58   > FS-10090: Rolling back Oracle Net changes on node <primary node name>
    >
    > I am having one local disk C: one shared disk Z: and quorum disk Q:
    >
    > Shared disk Z: is already used for SAP<sid> group.
    Hi Joel,
    how about following the advice given by the error message and moving the mentioned files/folder (init<sid>_OFS.ora, AUDIT folder) to a clustered resource disk?
    just my 2 pence...

  • Error when adding a database

    Hi
    I keep getting this error "Index was outside the bounds of the array. (microsoft.SQLserver.Smo)" when adding a new database.
    How can I fix this
    Thanks

    Hi,
    What version of SQL Server are you on?  What version of SSMS?
    Thanks, Andrew
    My blog...

  • Data adding to database table Its urgent

    How to add data from jsp page to DB table ...
    If jsp contain login&password the n I want to store in table CMS in sql-server ...
    The CMS contain two colomns name & pwd.
    How to add?
    Please tell me by two ways like by inserting to data base by bean using <jsp:useBean> tag...
    And also by adding scriplet in JSP which directly adds to database.
    If any body gives the sample code its good...
    Please I want it urgent.
    thanks in advance...
    by
    amit bhadre

    JSTL has a special sql taglib that you can use to execute queries if you want. I wouldn't recommend that however, JSP's should be used for presentation only. Database transactions should be done in servlets and/or beans, and for that you need to JDBC API.
    JDBC tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    JSTL SQL examples:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSTL7.html

  • Problems adding to database

    I'm making a chat program and I'm trying to use a database for all the users that are connected so the people chatting can see whos connected. Unfortunately, I can't get the usernaes to go into the database. I've tried the same code elsewhere and it works fine but in this program it won't add the names. My database is a MySQL database and has the name 'users' and the table is called 'connected' with 1 column called 'name'. I can get a window to pop up with the column heading at the top but no names will be added. It won't even add the "not good" string in my code... I'm not actually getting any sql errors, it just won't grab the names.
    heres my relevant code:
    static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost/users?user=mike&password=blitz84";
    userName = JOptionPane.showInputDialog(
                ClientGUI.this, "Enter user name:" );
             dUserName = userName;
             dUserName = "Not Good";
                              String input = dUserName;
                        String use = "use users"; 
                        try
                             Class.forName(JDBC_DRIVER);//load database driver class
                             conn = DriverManager.getConnection(DATABASE_URL);//establish connection to database
                             stat = conn.createStatement();//create statement for submitting information to the database
                             stat.executeUpdate(use);//ensures proper database is loaded
                             String query = "insert into connected values('"+input+"')";//string to enter data
                             stat.executeUpdate(query);//submits data to database
                             stat.close();//close connection
                        catch(Exception e)
                             System.out.println("Error at "+e);
                             e.printStackTrace();
                        }//end try and catch             

    I tried it and it still didn't put anything in the database, here's my complete code, maybe that will help:
    package com.deitel.messenger;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.sql.*;
    public class ClientGUI extends JFrame {
         //setting up the database for users
         static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         static final String DATABASE_URL = "jdbc:mysql://localhost/users?user=mike&password=blitz84";
         String use = "use users";
         private Statement stat;
         private Connection conn;
       // JMenu for connecting/disconnecting server
       private JMenu serverMenu;
       // JTextAreas for displaying and inputting messages
       private JTextArea messageArea;
       private JTextArea inputArea;
       private JTextArea users;
       // JButtons and JMenuItems for connecting and disconnecting
       private JButton connectButton;
       private JMenuItem connectMenuItem;  
       private JButton disconnectButton;
       private JMenuItem disconnectMenuItem;
       private JMenuItem showUsers;
       // JButton for sending messages
       private JButton sendButton;
       // JLabel for displaying connection status
       private JLabel statusBar;
       // userName to add to outgoing messages
       private String userName;
       public String dUserName;
       // MessageManager for communicating with server
       private MessageManager messageManager;
       // MessageListener for receiving incoming messages
       private MessageListener messageListener;
       // ClientGUI constructor
       public ClientGUI(MessageManager manager)
          super( "Chat program of Splendor" );
          // set the MessageManager
          messageManager = manager;
          // create MyMessageListener for receiving messages
          messageListener = new MyMessageListener();
          // create Server JMenu     
          serverMenu = new JMenu ( "Server" );  
          serverMenu.setMnemonic( 'S' );
          JMenuBar menuBar = new JMenuBar();
          menuBar.add( serverMenu );
          setJMenuBar( menuBar ); 
          // create ImageIcon for connect buttons
          Icon connectIcon = new ImageIcon(
             getClass().getResource( "images/Connect.gif" ) );
          // create connectButton and connectMenuItem
          connectButton = new JButton( "Connect", connectIcon );
          connectMenuItem = new JMenuItem( "Connect", connectIcon ); 
          connectMenuItem.setMnemonic( 'C' );
          showUsers = new JMenuItem( "Show Users");
          showUsers.setMnemonic('U');
          // create ConnectListener for connect buttons
          ActionListener connectListener = new ConnectListener();
          connectButton.addActionListener( connectListener );
          connectMenuItem.addActionListener( connectListener );
          // create ImageIcon for disconnect buttons
          Icon disconnectIcon = new ImageIcon(
             getClass().getResource( "images/Disconnect.gif" ) );
          // create disconnectButton and disconnectMenuItem
          disconnectButton = new JButton( "Disconnect", disconnectIcon );
          disconnectMenuItem = new JMenuItem( "Disconnect", disconnectIcon );     
          disconnectMenuItem.setMnemonic( 'D' );
          // disable disconnect buttons
          disconnectButton.setEnabled( false );
          disconnectMenuItem.setEnabled( false );
          // create DisconnectListener for disconnect buttons
          ActionListener disconnectListener = new DisconnectListener();
          disconnectButton.addActionListener( disconnectListener );
          disconnectMenuItem.addActionListener( disconnectListener );
          // add connect and disconnect JMenuItems to fileMenu
          serverMenu.add( connectMenuItem );
          serverMenu.add( disconnectMenuItem );
          serverMenu.add(showUsers);          
          // add connect and disconnect JButtons to buttonPanel
          JPanel buttonPanel = new JPanel();
          buttonPanel.add( connectButton );
          buttonPanel.add( disconnectButton );
          // create JTextArea for displaying messages and users
          messageArea = new JTextArea();
          users = new JTextArea();
          // disable editing and wrap words at end of line
          messageArea.setEditable( false );
          messageArea.setWrapStyleWord( true );
          messageArea.setLineWrap( true );
          // put messageArea and users in JScrollPane to enable scrolling
          JPanel messagePanel = new JPanel();
          messagePanel.setLayout( new BorderLayout( 10, 10 ) );
          messagePanel.add( new JScrollPane( messageArea ),
             BorderLayout.CENTER );
          messagePanel.add( new JScrollPane( users ),
             BorderLayout.WEST );
          // create JTextArea for entering new messages
          inputArea = new JTextArea( 4, 20 );
          inputArea.setWrapStyleWord( true );
          inputArea.setLineWrap( true );
          inputArea.setEditable( false );
          // create Icon for sendButton
          Icon sendIcon = new ImageIcon(
             getClass().getResource( "images/Send.gif" ) );
          // create sendButton and disable it
          sendButton = new JButton( "Send", sendIcon );
          sendButton.setEnabled( false );
          sendButton.addActionListener(
             new ActionListener() {
                // send new message when user activates sendButton
                public void actionPerformed( ActionEvent event )
                   messageManager.sendMessage( userName,
                      inputArea.getText());
                   // clear inputArea
                   inputArea.setText("");
          // lay out inputArea and sendButton in BoxLayout and
          // add Box to messagePanel
          Box box = new Box( BoxLayout.X_AXIS );
          box.add( new JScrollPane( inputArea ) );
          box.add( sendButton );
          messagePanel.add( box, BorderLayout.SOUTH );
          // create JLabel for statusBar with a recessed border
          statusBar = new JLabel( "Not Connected" );
          statusBar.setBorder( new BevelBorder( BevelBorder.LOWERED ) );
          // lay out components in JFrame
          Container container = getContentPane();
          container.add( buttonPanel, BorderLayout.NORTH );
          container.add( messagePanel, BorderLayout.CENTER );
          container.add( statusBar, BorderLayout.SOUTH );
          // add WindowListener to disconnect when user quits
          addWindowListener (
             new WindowAdapter () {
                // disconnect from server and exit application
                public void windowClosing ( WindowEvent event )
                   messageManager.disconnect( messageListener );
                   System.exit( 0 );
       } // end ClientGUI constructor
       // ConnectListener listens for user requests to connect to server
       private class ConnectListener implements ActionListener {
          // connect to server and enable/disable GUI components
          public void actionPerformed( ActionEvent event )
             // connect to server and route messages to messageListener
             messageManager.connect( messageListener );
             // prompt for userName
             userName = JOptionPane.showInputDialog(
                ClientGUI.this, "Enter user name:" );
             dUserName = userName;
             dUserName = "Not Good";
                              String input = dUserName;
                        Connection foo = null;
                        PreparedStatement stmt = null;
                        try
                             foo = DriverManager.getConnection("jdbc:mysql://localhost/users?user=mike&password=blitz84");
                             stmt = foo.prepareStatement("INSERT INTO connections VALUES (?)");
                             stmt.setString(1, dUserName); // input is the name of the user as a String
                             stmt.executeUpdate();
                        catch (SQLException e)
                             foo.rollback();
                             e.printStackTrace();
                        finally
                             if (stmt != null) stmt.close();
                             if (foo != null) foo.close();
             // clear messageArea
             messageArea.setText( "" );
             // update GUI components
             connectButton.setEnabled( false );
             connectMenuItem.setEnabled( false );
             disconnectButton.setEnabled( true );
             disconnectMenuItem.setEnabled( true );
             sendButton.setEnabled( true );
             inputArea.setEditable( true );
             inputArea.requestFocus(); 
             statusBar.setText( "Connected: " + userName );
       } // end ConnectListener inner class
       // DisconnectListener listens for user requests to disconnect
       // from DeitelMessengerServer
       private class DisconnectListener implements ActionListener {
          // disconnect from server and enable/disable GUI components
          public void actionPerformed( ActionEvent event )
             // disconnect from server and stop routing messages
             // to messageListener
             messageManager.disconnect( messageListener );
             // update GUI components
             sendButton.setEnabled( false );
             disconnectButton.setEnabled( false );
             disconnectMenuItem.setEnabled( false );
             inputArea.setEditable( false );
             connectButton.setEnabled( true );        
             connectMenuItem.setEnabled( true );
             statusBar.setText( "Not Connected" );        
       } // end DisconnectListener inner class
       // MyMessageListener listens for new messages from MessageManager and
       // displays messages in messageArea using MessageDisplayer.
       private class MyMessageListener implements MessageListener {
          // when received, display new messages in messageArea
          public void messageReceived( String from, String message )
             // append message using MessageDisplayer and
             // invokeLater, ensuring thread-safe access messageArea
             SwingUtilities.invokeLater(
                new MessageDisplayer( from, message ) );
       // MessageDisplayer displays a new message by appending the message to
       // the messageArea JTextArea. This Runnable object should be executed
       // only on the Event thread, because it modifies a live Swing component
       private class MessageDisplayer implements Runnable {
          private String fromUser;
          private String messageBody;
          // MessageDisplayer constructor
          public MessageDisplayer( String from, String body )
             fromUser = from;
             messageBody = body;
          // display new message in messageArea
          public void run()
             // append new message
             messageArea.append( "\n" + fromUser + "> " + messageBody );  
             // move caret to end of messageArea to ensure new
             // message is visible on screen
             messageArea.setCaretPosition( messageArea.getText().length() );                         
       }// end MessageDisplayer inner class
    } // end class ClientGUI
    and here is the code that uses the above code:
    package com.deitel.messenger.sockets.client;
    import com.deitel.messenger.*;
    public class DeitelMessenger {
       public static void main( String args[] )
          MessageManager messageManager;
          // create new DeitelMessenger
          if ( args.length == 0 )
             messageManager = new SocketMessageManager( "localhost" );
          else
             messageManager = new SocketMessageManager( args[ 0 ] ); 
          // create GUI for SocketMessageManager
          ClientGUI clientGUI = new ClientGUI( messageManager );
          clientGUI.setSize( 500, 400 );
          clientGUI.setResizable( false );
          clientGUI.setVisible( true );
    } // end class DeitelMessenger

  • Adding Standalone Database to Group using Fail Safe fails

    Background:
    Oracle: 10.2.0.4
    OFS: 3.4.1
    Have installed Oracle Fail Safe correctly without errors.
    Ran Verify Standalone Database get this result:
    27 10:00:04 > FS-10345: Verification of standalone database MYDB completed successfully
    28 10:00:04 FS-10917: Server01A : Standalone resource MYDB was verified successfully
    29 10:00:04 FS-10378: Server01B : Preparing for configuration of resource MYDB
    30 10:00:04 FS-10916: Server01B : Verification of the standalone resource
    31 10:00:04 > FS-10341: Starting verification of database MYDB
    32 10:00:04 > FS-10342: Starting verification of Oracle Net configuration information for database MYDB
    33 10:00:04 > FS-10496: Generating the Oracle Net migration plan for MYDB
    34 10:00:04 > FS-10491: Configuring the Oracle Net service name for MYDB
    35 10:00:04 > FS-10343: Starting verification of database instance information for database MYDB
    36 10:00:04 > FS-10344: Starting verification of Oracle Intelligent Agent for database MYDB
    37 10:00:04 > FS-10345: Verification of standalone database MYDB completed successfully
    38 10:00:04 FS-10917: Server01B : Standalone resource MYDB was verified successfully
    39 10:00:04 The clusterwide operation completed successfully, however, the server reported some warnings.
    The warnings are concerning dome files that are on the D: drive as oppose to one of the Shared Drives. I made that that the SPFILE and init.ora are on the o1B node and in the same exact Path.
    I did create a Group with a Virtual Address and added the Shared Drive resources
    When I run the "Add to Group" wizard, I have tried using both the SPFILE and the 'init.ora' and get the same result:
    20 10:02:58 >> FS-10605: Oracle Net listener Fslmydbdb created
    21 10:02:59 >> FS-10602: Oracle Net listener LISTENER restarted
    22 10:02:59 > FS-10491: Configuring the Oracle Net service name for MYDB
    23 10:02:59 >> FS-10600: Oracle Net configuration file updated: D:\ORACLE\PRODUCT\10.2.0\DB_1\NETWORK\ADMIN\TNSNAMES.ORA
    24 10:02:59 FS-10381: Server01A : Creating the resource information for resource MYPLM
    25 10:02:59 > FS-10424: Checking whether the database MYDB is online
    26 10:03:07 ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource MYDB
    27 10:03:07 ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
    28 10:03:07 ** ERROR : FS-10497: Starting clusterwide rollback of the operation
    29 10:03:07 FS-10488: Server01A : Starting rollback of operation
    30 10:03:07 > FS-10090: Rolling back Oracle Net changes on node Server01A
    31 10:03:10 FS-10489: Server01A : Completed rollback of operation
    32 10:03:10 ** ERROR : FS-10495: Clusterwide rollback of the operation has been completed
    33 10:03:10 Please check your Windows Application log using the Event Viewer for any additional errors
    34 10:03:10 The clusterwide operation failed !
    I have checked the README files and looked up the FS- Errors, but they are very general and don't give me a clue as towhy they failed.
    Have been Googleing for days and found no answer yet. Are there any other logs that might shed some light on this?
    Thanks and have a great day,
    Andrew

    Additional info.....here's wha tI found on the D:\oracle\product\10.2.0\db_1\log\Server01a\client logs:
    clsc78.log
    Oracle Database 10g CRS Release 10.2.0.4.0 Production Copyright 1996, 2008 Oracle. All rights reserved.
    2009-05-27 13:12:43.942: [  OCROSD][2272]utgdv:1:could not open registry key SOFTWARE\Oracle\ocr os error The system could
    not find the environment option that was entered.
    2009-05-27 13:12:43.942: [  OCRRAW][2272]proprinit: Could not open raw device
    2009-05-27 13:12:43.942: [ default][2272]a_init:7!: Backend init unsuccessful : [33]
    2009-05-27 13:12:43.942: [ CSSCLNT][2272]clsssinit: error(33 ) in OCR initialization
    2009-05-27 13:12:45.036: [  OCROSD][2272]utgdv:1:could not open registry key SOFTWARE\Oracle\ocr os error The system could
    not find the environment option that was entered.
    2009-05-27 13:12:45.036: [  OCRRAW][2272]proprinit: Could not open raw device
    2009-05-27 13:12:45.036: [ default][2272]a_init:7!: Backend init unsuccessful : [33]
    CSS41.log
    Oracle Database 10g CRS Release 10.2.0.4.0 Production Copyright 1996, 2008 Oracle. All rights reserved.
    2009-05-27 13:12:50.833: [  OCROSD][3508]utgdv:1:could not open registry key SOFTWARE\Oracle\ocr os error The system could
    not find the environment option that was entered.
    2009-05-27 13:12:50.833: [  OCRRAW][3508]proprinit: Could not open raw device
    2009-05-27 13:12:50.833: [ default][3508]a_init:7!: Backend init unsuccessful : [33]
    2009-05-27 13:12:50.833: [ CSSCLNT][3508]clsssinit: error(33 ) in OCR initialization
    Related? To me it looks like it initilaizes everything, stop the Database, but then can't startup?
    Thanks..
    Andrew

  • Audit Vault  adding  RAC database for OSAUD collector.

    Hello,
    I am configuring Audit Vault 10.2.3 for some AIX databases.
    Can anyone tell me what exactly is the method for adding OSAUD collector on both nodes of a RAC database.
    I have below configuration.
    Database Name TEST
    instance name on node 1 TEST1
    instance name on node 2 TEST2
    cluster name clusterbloc
    agent name on node 1 agenttest1
    agent name on node 2 agenttest2
    I have run the below commands.
    For first node,
    avorcldb add_source  -src clusterbloc:1521:TEST   -desc 'Test Database'  -agentname agenttest1
    Enter Source user name: srcuser1
    Enter Source password:
    Adding source...
    Source added successfully.
    source successfully added to Audit Vault
    While trying to run for second node, below output was received.
    avorcldb add_source  -src clusterbloc:1521:TEST   -desc 'Test Database'  -agentname agenttest2
    Enter Source user name: srcuser1
    Enter Source password:
    source TEST already exists
    Storing user credentials in wallet...
    Create credential Modify credential
    Modify 3
    done.
    Mapping Source to Agent...
    avorcldb add_collector -srcname TEST    -agentname agenttest2   -colltype OSAUD  -instname  TEST2   -orclhome
    */u01/app/oracle/product/11.2.0.2/dbhome_1*
    source TEST  verified for OS File Audit Collector collector
    Adding collector...
    Collector added successfully.
    collector successfully added to Audit Vault
    remember the following information for use in avctl
    Collector name (collname): OSAUD_Collector_TEST2
    avorcldb add_collector -srcname TEST   -agentname agenttest1   -colltype OSAUD  -instname   TEST1   -orclhome /u01/app/oracle/product/11.2.0.2/dbhome_1
    source TEST verified for OS File Audit Collector collector
    Adding collector...
    Collector added successfully.
    collector successfully added to Audit Vault
    remember the following information for use in avctl
    Collector name (collname): OSAUD_Collector_TEST1
    Now which command should be run for setup ? Or any changes need to be made on earlier commands, especially on add_source ?
    avorcldb setup -srcname TEST
    Or
    these two ?
    avorcldb setup -srcname TEST1
    avorcldb setup -srcname TEST2

    OS collector should be configure for both node in RAC.
    and avorcldb setup -srcname command is run on the Audit Vault Collection Agent with source database name.
    so please run avorcldb setup -srcname TEST from both agent host.
    http://docs.oracle.com/cd/E11062_01/admin.1023/e11059/avadm_app_avorcldb_ref.htm#CEGBEEFJ
    Thanks
    Kuljeet Pal Singh

  • When adding a database copy to a server in the dag I receive the following error message

    I have tried force replication, but didn't work. any suggestion on this
    The wizard could not complete . clokc finish to close this wizard.
    elapsed time 00:02:52
    summary 1 item 0 succeeded, 1 failed
    EX01-DB01
    Error:
    A source-side operation failed. Error An error occurred while running prerequisite checks. Error: the specified database isn't
    configured for replication and therefore cannot be used to perform seed operations. Database:EX01-DB01,
    Server:XXXXXXXXX
    Warning:
    Active directory couldn't be updated in HeadOffice site affected by the change to EX01-DB01; it won't be completely usable
    until after active directory replication occurs.
    Exchange management shell command attempted
    Add-MAILBOXDATABASECOPY. Identiy EX01-DB01 -Mailboxserver HUTAEX01'
    ActivationPreference '3'

    After Add-MailboxDatabaseCopy command fails, do you see if the DatabaseCopy added to the server or?
    I have seen this issue, it fails with above error, but after sometime it shows the copy added to the server.
    Check the event log for more information also, any event related to AD!!!
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • DAG 2013SP1: adding the database copy

    Hello!
    After adding DAG members (according to http://exchangeserverpro.com/exchange-2013-dag-database-copies/) I was going to add a database copy to the DAG (as per this explanation: http://exchangeserverpro.com/exchange-2013-dag-database-copies/) but failed to
    find "Add database copy command":
    Thank you in advance,
    Michael

    Hi,
    Please use the Add-MailboxDatabaseCopy command to add a mailbox database copy to check result.
    Please check the application log to see if there is any related error message.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Belinda Ma
    TechNet Community Support

  • Adding a database to the Oracle Restart Configuration

    Hi,
    I have:
    - 2 nodes - Linux RHEL 5
    - Grid Infrastructure 11.2.0.1
    - Database Standard Edition 11.2.0.1 + RAC
    - All database files on ASM (integrated with GI), software on local storage
    I manually created a clustered database and I am currently trying to add it the Oracle Restart Configuration. The first step is to create a cluster resource for the database using the 'srvctl add database' command. In the documentation I found [http://docs.oracle.com/cd/E11882_01/server.112/e10595/restart005.htm]
    Important:When you manually add a database to the Oracle Restart configuration, you must also add the Oracle grid infrastructure software owner as a member of the OSDBA group of that database. This is because the grid infrastructure components must be able to connect to the database as SYSDBA to start and stop the database.
    For example, if the host user who installed the grid infrastructure home is named grid and the OSDBA group of the new database is named dba, then user grid must be a member of the dba group.>
    In my test system I created the resource without adding the grid user to the OSDBA group of the database and all work fine (at least I don't see any problem). The database is correctly started every time the system starts.
    My question is why it is necessary to add the grid user to the osdba group?
    Regards,
    Tim

    Thanks for the reply.
    It's not so obvious for me. If it was written "...you should...", than it could be treated as recommended. I see "...you MUST also add..." and that for me means it's obligatory.
    When you create a database with DBCA, the grid user is not added to the OSDBA group of the database. I am trying to figure out why.
    Regards,
    Tim

  • Adding 2nd Database in  FAIL-SAFE

    Hi all,
    We have oracle fail-safe setup on oracle 10G windows 64-bit. we need to add one more instance(database) to the existing fail-safe. I have no idea how can i do it and not able to find any relevant documentation.
    Appreciate if you can help me. this is very very urgent please help
    Thanks in advance.
    regards
    Aijaz

    The main failsafe download page is here:
    http://www.oracle.com/technology/software/tech/windows/failsafe/index.html
    The documentation for failsafe is here:
    http://www.oracle.com/technology/documentation/failsafe.html
    The documentation provides excellent step by step instructions about adding a new database to a failsafe configuration.
    Hope this helps you.

Maybe you are looking for

  • Standby Database (Archive Log Mode)

    I'm going to be setting up a standby database. I understand that the primary database must be in archive log mode. Is there any reason for the standby database to be in archivelog mode?

  • My account keeps getting disabled

    Ive just taken the punge and bought my first new Macbook pro.. whats infuriating me is the constant disabling of my account everytime I log in... my password is a very strong password and I nearly gave up with my iPOD because of this. If this doesnt

  • How to set stylesheet in my textarea

    i have set htmltext property to my textarea and need to have stylesheet on textarea . How can I do it

  • How to set the default focus component using FocusTraversalPolicy class??

    hi all... I have a JPanel, of which setFocusCycleRoot() has been made true. I am trying to make sure that whenever I open this panel, the first JTextField must have the focus. the problem is that I have to hit the tab key once, ay satrtuptime. after

  • Problem pulling HTML region using AJAX

    Hi, I am using Ajax with Oracle apex, it pulls the report region ok, but when i try to pull the html region, it doesn't. I tried several different ways and in firefox, it does pull the html region but not also pulls the header and footer. On IE, it g