Urgent HELP required on forming the Matrix of data using PL/SQL

Hi All,
I'm new to this thread and require your urgent help in this regard.
I've got a requirement for building a 5000 X 5000 matrix using PL/SQL. My original data tables have 5000 rows each and I need to do a correlation analysis using this data and need to store in a physical table and not in-memory. Is this feat achievable using mere PL/SQL? I understand that Oracle DB has a limitation of 1000 columns(but not sure) and hence I'd like to know whether there is any work-around for such scenarios. If not, what are the other alternative method(s) to achieve this feat? Do I need to use any 3rd party tools to get this done? An early reply from the experts is highly appreciated.
Thanking you all Gurus in advance.
Rgds
Sai

Welcome to OTN!
I'll get to your quesiton in a moment, but first some welcome information. Many OTN posters consider it impolite to mark threads as "urgent". We are volunteers and have jobs of our own to do without people we don't know making demands. You are brand new and deserve some patience but please understand this. It is very likely before I finish this post someone will complain about the word "urgent" in your subject.
On to more interesting things :)
You can do the matrix, but are out of luck with a 5000 x 5000 table because Oracle only allows 1000 columns per table. There are ways to work around this.
How do do the matrix depends on what you want to do. You can do this different ways. You can create a table beforehand and use PL/SQL or simple SQL to populate it, or use the CREATE TABLE AS syntax to create and populate it in one step if you can get the underlying SQL to work the way you want, something like
create table my_table as
  select a.*, b.*
    from table1 a, table2 bcan populate a matrix from 2 tables with an intentional cartesian join (the WHERE clause was left out intentionally, provided your data is already in the data base.
If not you can use a PL/SQL routine to populate the data.
There are a couple of ways to solve the 1000 column limit. The easiest way might be to have 5 collections of 1000 columns each. A more complicated but more elegant soltion would be to have nested collections, allowing 2 colliections that you can loop through - a collection of collections. Nested collections can be hard to work with. A third way would be to use nested tables in the database but I personally do not like them and the insert, update, and delete statements for nested tables are hard to use.
I'm not going to give a code example because I am not sure which solution is best for you. If you have further questions post them.

Similar Messages

  • Urgent Help required! - Storing the XML as String instead as a file

    Hi,
    I need urgent help on this.
    I have an XML file. I have used org.w3c.dom to build dom and manipulate the XML file.
    I have updated the values for some of the nodes and I have deleted some of the unwanted nodes.
    I am able to save the output of the DOM as another XML file using
    either transform class or XMLSerializer with OutputFormatter class.
    But my requirement is to save the output of the DOM into a String instead of a file.
    When I save it in String, I need to have the following XML decalration and DOCTYPE declration also with it.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE Test SYSTEM "Test.dtd">
    Can anyone pls help me in this??
    Thanks in Advance. Expecting some inpputs pls....!
    Regards,
    Gayathri.

    hi,
    i think this is what u want
        public static String getXmlString(Document d) {
          StringWriter strResponse = null;
          try {
             OutputFormat format  = new OutputFormat(d);
             strResponse = new StringWriter();
             XMLSerializer serial = new XMLSerializer( strResponse, format );
             serial.asDOMSerializer();
             serial.serialize(d.getDocumentElement());
          catch (Exception e) {
            System.out.println(e.toString());
          return strResponse.toString();
    }HTH
    vasanth-ct

  • Help required to understand the concepts for data files in tablespace

    Hi Guys!
    Conceptual understanding for data files.
    A tablespace is having 2 datafiles.
    What once the data files will get full? I know we can create data files but what if there is no space on the server for any additional file to be created?
    Do we require to make the oldest file offline and move outside the environment?
    Thanks

    782790 wrote:
    Hi Guys!
    Conceptual understanding for data files.
    A tablespace is having 2 datafiles.
    What once the data files will get full? I know we can create data files but what if there is no space on the server for any additional file to be created?
    Do we require to make the oldest file offline and move outside the environment?
    ThanksIf the datafiles are full, there is not much that you would get from the "defragmentation" of the datafiles. It would be sort of like this in the start,
    FFFFFFFFFFFFFFFFFFFFFFFFFF
    Then it will be ,
    FFFFFFFUUUUUFFFFFUUUUUU
    So what you are going to get is something like this, (if would be done),
    FFFFFFFFFFFFFUUUUUUUUUU
    So that's how the datafile would like. But that won't give you much of the space anyways still. The option to add a storage must be there with you. The file being offline wont take away the space that it has already allocated. And moreover, doing so, would also impact the access to the data that it would be storing within it.
    HTH
    Aman....

  • Urgent help required to write the code in  update routine

    Hi all,
    i want to calculate open purchase order qty in update routine
    formula is
    open purchase order qty = scl qty - rec qty
    where schd line date is less then or equal to 90 days from the current date.
    I have written one code : but its giving error that comm_structure is not defined in abap dictionary,can any body help to write appropriate routine. this calculation i am making for MM, and data source and cube are 2lis_02_scl and cube is zc_pur01 ( made by coping the 0pur_c01), data source scl has all fields required in the foumula...here is my code
    DATA:  COMM_STRUCTURE LIKE  /BIC/CS2LIS_02_SCL.
    DATA: SCL_QTY LIKE COMM_STRUCTURE-/BIC/ZK_SCLQTY.
    DATA:      GR_QTY LIKE COMM_STRUCTURE -/BIC/ZK_GRQTY.
    DATA: SCL_DATE.
    SCL_DATE = SY-DATUM + 90.
    SELECT COMM_STRUCTURE -/BIC/ ZK_SCLQTY COMM_STRUCTURE -/BIC/ ZK_GRQTY FROM
    /BIC/CS2LIS_02_SCL INTO   SCL_QTY     GR_QTY  
    WHERE
    COMM_STRUCTURE -/0SCHED_DATE LE SCL_DATE.
    IF SYSUBRC  = 0
    RESULT = SCL_QTY - GR_QTY.
    ELSE = NOVALUE.
    ENDIF.
    Can any body help me soon its very urgent.
    thanks

    Hi Anupam,
    I am not a very good ABAP Programmer, but found some things to notify u inyour code..
    DATA: COMM_STRUCTURE LIKE /BIC/CS2LIS_02_SCL,
          SCL_QTY LIKE COMM_STRUCTURE-/BIC/ZK_SCLQTY,
          GR_QTY LIKE COMM_STRUCTURE -/BIC/ZK_GRQTY.
    DATA  SCL_DATE LIKE SY-DATUM.
    SCL_DATE = SY-DATUM + 90.
    SELECT COMM_STRUCTURE -/BIC/ ZK_SCLQTY COMM_STRUCTURE -/BIC/ ZK_GRQTY FROM
    /BIC/CS2LIS_02_SCL INTO SCL_QTY GR_QTY
    WHERE
    COMM_STRUCTURE -/0SCHED_DATE LE SCL_DATE.
    IF SYSUBRC = 0
    RESULT = SCL_QTY - GR_QTY.
    ELSE.
    What should be the return value if you dont have to    calculate the result."
    ENDIF.
    try it.. and see..
    regards,
    kishore.

  • My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls urgent help/assistant needed as I can not access/use my phone for over 24hrs now.

    My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls  urgent help/assistant needed as I can not access/use my phone for over 24hrs now.

    Hi there,
    Use the method described in the link below to get back up and running:
    http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
    I hope this info helps!
    If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
    If your issue is resolved, don't forget to click the Solution button on the resolution!

  • I am unable to upload the customer master data using BAPI.?

    Hi Guru's,
    i am unable to upload the customer master data using BAPI.(BAPI_CUSTOMER_CREATEFROMDATA1)
    Please guide me how upload the data...
    Thanks in iadvance
    Srinivas...

    Hello Srinivas
    This BAPI does not allow to create a new customer from scratch but only to copy an existing customer to a new one and change its address data.
    The reference customer has to be provided using IMPORTING parameter PI_COPYREFERENCE. See also the BAPI documentation for more details.
    The BAPI does the same like transaction XD01 with Reference.
    Regards
      Uwe

  • Urgent Help Required !!!! For using Netscape to open Form on the Intranet

    Hi ,
    I am successfully able to open Form application in a seperate window using IE 5.0.
    I would like to do the same with Netscape Navigator 4.7. The Navigator justshows a page which asks me to download the plugin and then even after I install the plugin it does the same thing over and over again.
    Please help !!!!!
    Regards,
    Rinas

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Andrew Timpone ([email protected]):
    Which version of the JInitiator are you using. In any case, your HTML must specify the correct classid and version in the HTML section for IE as well as the HTML section for Netscape.
    Below is a sample for JInitiator 1.1.7.27 running forms v6.0
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    <meta name="GENERATOR" content="">
    <title></title>
    <!-- FILE: static.html -->
    <!-- Oracle Static (Non-Cartridge) HTML File Template (Windows NT) -->
    <!-- Rename, and modify tags and parameter values as needed -->
    </head>
    <body bgcolor="#FFFCE8">
    <p><font size="1"><br>
    <br>
    <br>
    </font></p>
    <p align="center">
    <object classid="clsid:093501ce-d290-11d3-a3d6-00c04fa32518"
    codebase="<<your server and path of JInitiator Plug-in goes here>>jinit11727.exe#Version=1,1,7,27"
    align="baseline" border="0" width="1024" height="786">
    <PARAM NAME="CODE" value="oracle.forms.engine.Main">
    <PARAM NAME="CODEBASE" value="/web_code/">
    <PARAM NAME="ARCHIVE" value="/web_code/f60all.jar">
    <PARAM NAME="type" value="application/x-jinit-applet;version=1.1.7.27">
    <PARAM NAME="serverPort" value="4321">
    <PARAM NAME="serverArgs" value="module=<<your form path and name goes here>>">
    <PARAM NAME="serverApp" value="default">
    <PARAM NAME="lookAndFeel" value="oracle">
    <PARAM NAME="separateFrame" value="true">
    <font size="1">
    <COMMENT>
    <embed align="baseline" border="0" width="800" height="600" type="application/x-jinit-applet;version=1.1.7.27"
    java_code="oracle.forms.engine.Main"
    java_codebase="/web_code/"
    java_archive="/web_code/f60all.jar"
    serverport="4321"
    serverargs="module=<<your form path and name goes here>>"
    serverapp="default"
    pluginspage="<<your server and path of JInitiator Plug-in goes here>>"
    colorscheme="Titanium"
    lookAndFeel="oracle"
    separateframe="true">
    <NOEMBED>
    </COMMENT>
    </NOEMBED> </font></object><font size="1"> </font></p>
    </body>
    </html>
    Below is a sample with JInitiator 1.1.5.21 with forms v5.0
    <HTML>
    <!-- FILE: static.html -->
    <!-- Oracle Static (Non-Cartridge) HTML File Template (Windows NT) -->
    <!-- Rename, and modify tags and parameter values as needed -->
    <HEAD><TITLE></TITLE></HEAD>
    <P>
    <OBJECT classid="clsid:9F77a997-F0F3-11d1-9195-00C04FC990DC"
    WIDTH=20
    HEIGHT=20
    codebase="<<your server name and path for JInitiator Plug-in goes here>>jinit115211.exe#Version=1,1,5,21">
    <PARAM NAME="CODE" VALUE="oracle.forms.uiClient.v1_4.engine.Main" >
    <PARAM NAME="CODEBASE" VALUE="/web_code/" >
    <PARAM NAME="ARCHIVE" VALUE="/web_code/f50all.jar" >
    <PARAM NAME="type" VALUE="application/x-jinit-applet;version=1.1.5.21">
    <PARAM NAME="serverPort" VALUE="4321">
    <PARAM NAME="serverArgs" VALUE="module=<<your form path and name goes here>>">
    <PARAM NAME="serverApp" VALUE="default">
    <COMMENT>
    <EMBED type="application/x-jinit-applet;version=1.1.5.21"
    java_CODE="oracle.forms.uiClient.v1_4.engine.Main"
    java_CODEBASE="/web_code/"
    java_ARCHIVE="/web_code/f50all.jar"
    WIDTH=20
    HEIGHT=20
    serverPort="4321"
    serverArgs="module=<<your form path and name goes here>>"
    serverApp="default"
    pluginspage="<<your server name and path for JInitiator Plug-in goes here>>">
    <NOEMBED>
    </COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    </BODY>
    </HTML>
    Hi Andy,
    Thanks a lot !!!
    Its working perfectly fine now.
    Regards,
    Rinas
    Hope this helps<HR></BLOCKQUOTE>
    null

  • Urgent help required for configuring forms server 6.0

    Hi every one/anyone
    i will really appreciate if i can get your attention and a little
    bit of your help in configuration of Developer Server.
    i have similar kind of a problem i hopeany one can shed some
    light on it as well.
    I am using
    Pentium III 450 MHZ 256 MB Ram
    NT server 4.0 with Service pack 3.
    Oracle 8.1.5
    IIS 4 or OAS 4.0.7
    Developer 6.0 down loaded from OTN.
    Internet Explorer 5.
    I have failed to run forms 6.0 on the web, i have tried all the
    option
    JDK supplied with the Developer 6.0 Software on DOS prompt.
    Jinitiator 1.1.7.11
    When i run forms from the Designer they work But When i try them
    to run form the browser Every thing works the status bar
    of the Internet Explorer 5 says applet initialized but the forms
    do not show up. when i press the refresh button of the browser
    the status bar show applet running and a forms window appear's
    but with out showing the form. I have checked from the Java
    Console it shows the same error on and again with or without
    jinitiator. I have almost tried every setting.
    Oracle JInitiator version 1.1.7.11
    Using JRE version 1.1.7.11o
    User home directory = E:\WINNT\Profiles\Administrator
    Proxy Configuration: Manual Configuration
    Proxy:
    Proxy Overrides: <local>
    Opening http://an.ma/web/oracle/forms/engine/Main.class no proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/BufferedApplet.class
    Opening http://an.ma/web/oracle/ewt/popup/PopupApplet.class
    Opening http://an.ma/web/oracle/ewt/popup/PopupOwner.class
    Opening http://an.ma/web/oracle/ewt/event/tracking/MouseGrabPr
    ovider.class
    Opening http://an.ma/web/oracle/ewt/help/HelpCapable.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/ImmediatePainter.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/DoubleBufferer.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/VirtualComponent.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/FocusRoot.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/KeyProcessor.class
    Opening http://an.ma/web/oracle/forms/test/Test.class
    Opening http://an.ma/web/oracle/ewt/painter/PaintContext.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/LWComponent.class
    Opening http://an.ma/web/oracle/forms/ui/mdi/MDIContainer.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenuBar.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/lwMenu/BaseMIContainer.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenuItemContainer.clas
    s
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenu.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenuItem.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/AbstractPainterComponent.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenuInvoker.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWPopupMenu.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenuSeparator.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/Desktop.class
    Opening http://an.ma/web/oracle/forms/ui/mdi/MDIWindowMenu.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWPopupMenuListener.clas
    s
    Opening http://an.ma/web/oracle/ewt/popup/PopupFrame.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/BufferedFrame.class
    Opening http://an.ma/web/oracle/ewt/painter/Painter.class
    Opening http://an.ma/web/oracle/ewt/popup/PopupHandler.class
    Opening http://an.ma/web/oracle/ewt/UIManager.class
    Opening
    http://an.ma/web/oracle/ewt/UIManager$LookAndFeelInfo.class
    Opening http://an.ma/web/oracle/ewt/LookAndFeel.class
    Opening
    http://an.ma/web/oracle/bali/share/collection/StringKey.class
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleLookAndFe
    el.class
    Opening http://an.ma/web/oracle/ewt/laf/basic/BasicLookAndFeel
    .class
    Opening http://an.ma/web/oracle/ewt/painter/BorderPainter.clas s
    Opening http://an.ma/web/oracle/ewt/ColorScheme.class
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleColorSche
    me.class
    Opening http://an.ma/web/oracle/ewt/UIDefaults.class
    Opening http://an.ma/web/oracle/ewt/HashTableDefaults.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/MultiUIDefaults.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/laf/basic/ColorizingFilter
    .class
    Opening http://an.ma/web/oracle/ewt/lwAWT/VComponentPaintConte
    xt.class
    Opening http://an.ma/web/oracle/ewt/painter/ImagePainter.class
    Opening http://an.ma/web/oracle/ewt/painter/AbstractPainter.cl
    ass
    Opening http://an.ma/web/oracle/ewt/laf/basic/PerComponentUIIn
    stantiator.class
    Opening http://an.ma/web/oracle/ewt/UIInstantiator.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/plaf/StatusBarUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/plaf/ComponentUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleStatusBar
    Painter.class
    Opening http://an.ma/web/oracle/ewt/painter/AbstractBorderPain
    ter.class
    Opening http://an.ma/web/oracle/ewt/painter/AbstractWrappingPa
    inter.class
    Opening http://an.ma/web/oracle/ewt/painter/NullPainter.class
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleUIUtils.c
    lass
    Opening http://an.ma/web/oracle/ewt/graphics/ImageSet.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/DoubleBuffer.class
    Opening http://an.ma/web/oracle/ewt/plaf/TextUI.class
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleInsetBord
    erPainter.class
    Opening http://an.ma/web/oracle/ewt/painter/FixedBorderPainter
    .class
    Opening http://an.ma/web/oracle/ewt/util/ImmInsets.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/plaf/ToolBarUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleToolBarPa
    inter.class
    Opening http://an.ma/web/oracle/ewt/laf/oracle/ScrollBoxBorder
    Painter.class
    Opening http://an.ma/web/oracle/ewt/laf/oracle/DisabledBGPaint
    er.class
    Opening http://an.ma/web/oracle/ewt/painter/ColorChange.class
    Opening http://an.ma/web/oracle/ewt/painter/FilledRectPainter.
    class
    Opening http://an.ma/web/oracle/ewt/painter/FGBGColorChange.cl
    ass
    Opening http://an.ma/web/oracle/ewt/laf/oracle/OracleRoundedPa
    inter.class
    Opening http://an.ma/web/oracle/ewt/graphics/SynthesizingImage
    Set.class
    Opening http://an.ma/web/oracle/ewt/graphics/NullImageFilter.c
    lass
    Opening http://an.ma/web/oracle/ewt/painter/ImageSetPainter.cl
    ass
    Opening http://an.ma/web/oracle/ewt/painter/TextPainter.class
    Opening http://an.ma/web/oracle/ewt/painter/TruncatingTextPain
    ter.class
    Opening http://an.ma/web/oracle/ewt/laf/basic/DisablingPainter
    .class
    Opening http://an.ma/web/oracle/ewt/laf/basic/StringInstantiat
    or.class
    Opening http://an.ma/web/oracle/ewt/UIDefaults$DeferredValue.c
    lass
    Opening http://an.ma/web/oracle/ewt/laf/basic/SingletonUIInsta
    ntiator.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/SharedPainter.class
    Opening http://an.ma/web/javax/swing/JInternalFrame.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/util/LocaleUtils.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/util/WindowUtils.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/util/WindowUtils$ActiveWin
    dowTracker.class
    Opening http://an.ma/web/oracle/forms/engine/MainBeanInfo.clas s
    Opening http://an.ma/web/sun/beans/infos/MainBeanInfo.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/BufferedAppletBeanIn
    fo.class
    Opening http://an.ma/web/sun/beans/infos/BufferedAppletBeanInf
    o.class
    Opening http://an.ma/web/oracle/ewt/popup/PopupAppletBeanInfo.
    class
    Opening http://an.ma/web/sun/beans/infos/PopupAppletBeanInfo.c
    lass
    Opening http://an.ma/web/oracle/ewt/help/HelpProvider.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/event/AnyEventListener.cla
    ss
    Opening http://an.ma/web/oracle/forms/ui/FormMouseGrabProvider
    .class
    Opening http://an.ma/web/oracle/ewt/event/tracking/GlassMouseG
    rabProvider.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/DesktopCont
    ainer.class
    Opening http://an.ma/web/oracle/forms/engine/Runform.class no
    proxy
    Opening http://an.ma/web/oracle/forms/engine/MessageHandler.cl
    ass
    Opening http://an.ma/web/oracle/forms/registry/MessageManager.
    class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/LWWindow.cl
    ass
    Opening http://an.ma/web/oracle/ewt/event/tracking/KeyFilterPr
    ovider.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/DesktopEven
    t.class
    Opening http://an.ma/web/oracle/ewt/event/EwtEvent.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/EwtComponent.class
    Opening http://an.ma/web/oracle/ewt/scrolling/Scrollable.class
    Opening http://an.ma/web/oracle/ewt/dnd/Autoscroll.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/event/tracking/GlassMouseG
    rabProvider$Proxy.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericLookAnd
    Feel.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/SystemColorSch
    eme.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/FixedColorSche
    me.class
    Opening http://an.ma/web/oracle/forms/engine/icons/splash.gif
    Opening http://an.ma/web/oracle/ewt/graphics/ImageUtils.class
    Opening http://an.ma/web/oracle/ewt/graphics/ImageLoader.class
    Opening http://an.ma/web/oracle/forms/engine/Splashscreen.clas s
    Opening http://an.ma/web/oracle/ewt/lwAWT/LWComponent$PaintCtx
    t.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericInsetBo
    rderPainter.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericRectang
    lePainter.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericDesktop
    UI.class
    Opening http://an.ma/web/oracle/ewt/laf/basic/BasicComponentUI
    .class
    Opening http://an.ma/web/oracle/ewt/laf/basic/AbstractComponen
    tUI.class
    Opening http://an.ma/web/oracle/ewt/plaf/DesktopUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/WindowManag
    er.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/laf/BaseWin
    dowManager.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/DesktopList
    ener.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/laf/MouseWi
    ndowActivater.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/laf/KeyWind
    owActivater.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/ModalStyle.
    class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/LWWindow$Fo
    cusTransferComp.class
    Opening http://an.ma/web/oracle/ewt/event/tracking/TrackingUti
    ls.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/DesktopCont
    ainer$WindowEnum.class
    Opening http://an.ma/web/oracle/ewt/event/ListenerManager.clas s
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwWindow/DesktopLayo
    ut.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericCompone
    ntUI.class
    Opening http://an.ma/web/oracle/ewt/scrolling/ScrollableExcept
    ion.class
    Opening http://an.ma/web/oracle/forms/ui/mdi/ActivationTracker
    .class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/ScrollableAda
    pter.class
    Opening http://an.ma/web/oracle/ewt/scrolling/arrowBox/ArrowBo
    x.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericMenuBar
    UI.class
    Opening http://an.ma/web/oracle/ewt/plaf/MenuBarUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/MenuBarCo
    ntroller.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/PreferredRowL
    ayout.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/BaseMIContain
    er$AddLsnr.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWPopupMenuEv
    ent.class
    Opening http://an.ma/web/oracle/ewt/popup/NoPopupOwnerExceptio
    n.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericPopupMe
    nuUI.class
    Opening http://an.ma/web/oracle/ewt/plaf/PopupMenuUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/PopupMenu
    Controller.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/PreferredColu
    mnLayout.class
    Opening http://an.ma/web/oracle/forms/engine/RunformBundle_en_
    US.class
    Opening http://an.ma/web/oracle/forms/engine/RunformBundle.cla
    ss
    Opening http://an.ma/web/oracle/forms/engine/RunformBundle_en.
    class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericMenuIte
    mUI.class
    Opening http://an.ma/web/oracle/ewt/plaf/MenuItemUI.class no
    proxy
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/MenuItemC
    ontroller.class
    Opening http://an.ma/web/oracle/ewt/painter/AndOrStatePainterS
    witcher.class
    Opening http://an.ma/web/oracle/ewt/painter/AbstractPainterSwi
    tcher.class
    Opening http://an.ma/web/oracle/ewt/painter/DirectionalBorderP
    ainter.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/KeyStroke
    Painter.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/MenuItemP
    ainter.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/MenuSelCo
    lorChange.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericSelecti
    onPainter.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/MenuSelTe
    xtColorChange.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/DragRedispatc
    her.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericMenuSep
    aratorUI.class
    Opening http://an.ma/web/oracle/ewt/plaf/MenuSeparatorUI.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWCheckboxMen
    uItem.class
    Opening http://an.ma/web/oracle/ewt/thread/Task.class
    Opening http://an.ma/web/oracle/ewt/laf/generic/GenericMenuUI.
    class
    Opening http://an.ma/web/oracle/ewt/plaf/MenuUI.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/SubmenuIc
    on.class
    Opening http://an.ma/web/oracle/ewt/painter/PainterJoiner.clas s
    Opening http://an.ma/web/oracle/forms/engine/icons/bgnd.gif no
    proxy
    Opening http://an.ma/web/oracle/ewt/painter/FixedImagePainter.
    class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/laf/HorzMenuC
    ontroller.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/lwMenu/LWMenuBar$Acc
    elFilter.class
    Opening http://an.ma/web/oracle/ewt/event/tracking/GlassMouseG
    rabProvider$Disp.class
    Opening http://an.ma/web/oracle/forms/handler/UICommon.class
    Opening http://an.ma/web/oracle/forms/handler/IHandler.class
    Opening http://an.ma/web/oracle/forms/api/IObject.class no
    proxy
    Opening http://an.ma/web/oracle/forms/handler/FormWindow.class
    Opening http://an.ma/web/oracle/forms/engine/RunformException.
    class
    Opening http://an.ma/web/oracle/forms/net/Connection.class no
    proxy
    Opening http://an.ma/web/oracle/forms/engine/MessageHandler2.c
    lass
    Opening http://an.ma/web/oracle/forms/engine/FlushQueue.class
    Opening http://an.ma/web/oracle/ewt/util/ClipboardProxy.class
    Opening http://an.ma/web/oracle/forms/engine/Registry.class no
    proxy
    Opening http://an.ma/web/oracle/forms/registry/Registry.dat no
    proxy
    Opening http://an.ma/web/oracle/forms/registry/default.dat no
    proxy
    Opening http://an.ma/web/oracle/forms/net/SocketConnection.cla
    ss
    Opening http://an.ma/web/oracle/forms/net/EncryptedOutputStrea
    m.class
    Opening http://an.ma/web/oracle/forms/net/EncryptedInputStream
    .class
    Opening http://an.ma/web/oracle/forms/net/StreamMessageReader.
    class
    Opening http://an.ma/web/oracle/forms/net/StreamMessageWriter.
    class
    Opening http://an.ma/web/oracle/forms/engine/Message.class no
    proxy
    Opening http://an.ma/web/oracle/forms/engine/TerminalMessage.c
    lass
    Opening http://an.ma/web/oracle/forms/engine/IndexTag.class no
    proxy
    Opening http://an.ma/web/oracle/forms/net/SingleAccessorQueue.
    class
    Opening http://an.ma/web/oracle/forms/engine/DeleteMask.class
    Opening http://an.ma/web/oracle/forms/engine/FontEntry.class
    Forms Applet version is : 4
    Opening http://an.ma/web/oracle/forms/engine/DeferredMessage.c
    lass
    when i press refresh on the ie5 then it says applet started
    creates a window inside the browser with borders
    but does now show any thing expect a few more lines in the
    console window as following
    Opening http://an.ma/web/oracle/ewt/util/StringUtils.class
    Opening http://an.ma/web/oracle/ewt/lwAWT/BufferedPanel.class
    Opening http://an.ma/web/oracle/ewt/popup/PopupPanel.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/WaitingDoubleBuffer.class
    Opening
    http://an.ma/web/oracle/ewt/lwAWT/BalkingDoubleBuffer.class
    Opening http://an.ma/web/oracle/ewt/graphics/GraphicUtils.class
    Opening http://an.ma/web/oracle/ewt/util/ComponentUtils.class
    Opening
    http://an.ma/web/oracle/ewt/layout/DirectionalLayout.class
    I hope any one can help me. I have been trying to run this thing
    for almost 2 months.
    bye
    null

    I had the same problem for the longest time... The problem is
    the "SplashScreen" it hangs everything up...
    My solution was add this line to your html:
    <param name="splashScreen" value="no">
    Good luck,
    Let me know if that works..
    Jeff.
    mobeen (guest) wrote:
    : Hi every one/anyone
    : i will really appreciate if i can get your attention and a
    little
    : bit of your help in configuration of Developer Server.
    : i have similar kind of a problem i hopeany one can shed some
    : light on it as well.
    : I am using
    : Pentium III 450 MHZ 256 MB Ram
    : NT server 4.0 with Service pack 3.
    : Oracle 8.1.5
    : IIS 4 or OAS 4.0.7
    : Developer 6.0 down loaded from OTN.
    : Internet Explorer 5.
    : I have failed to run forms 6.0 on the web, i have tried all
    the
    : option
    : JDK supplied with the Developer 6.0 Software on DOS prompt.
    : Jinitiator 1.1.7.11
    : When i run forms from the Designer they work But When i try
    them
    : to run form the browser Every thing works the status bar
    : of the Internet Explorer 5 says applet initialized but the
    forms
    : do not show up. when i press the refresh button of the browser
    : the status bar show applet running and a forms window appear's
    : but with out showing the form. I have checked from the Java
    : Console it shows the same error on and again with or without
    : jinitiator. I have almost tried every setting.
    : Oracle JInitiator version 1.1.7.11
    : Using JRE version 1.1.7.11o
    : User home directory = E:\WINNT\Profiles\Administrator
    : Proxy Configuration: Manual Configuration
    : Proxy:
    : Proxy Overrides: <local>
    : I hope any one can help me. I have been trying to run this
    thing
    : for almost 2 months.
    : bye
    null

  • [Urgent Help Required] Report not displaying

    Dear All,
    Please help me with a issue in running report from form. I am using the following code to run a report from a form. The issue is that when i click the button i get all the success messages which are in the code and a new browser window opens but my report is not displaying. Please can any one help me with this issue. I have to submit my project with a week so this is very urgent.
    This is the code I am using:
    DECLARE
         v_report_id Report_Object;
         vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
         vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
         /* Get a handle to the Report Object itself. */
         v_report_id:= FIND_REPORT_OBJECT('REPORT7');
         message ('report found');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,cache);
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
         SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, 'repserver90');
         vc_report_job_id:=RUN_REPORT_OBJECT(v_report_id);
         message (vc_report_job_id);
         vc_rep_status := REPORT_OBJECT_STATUS(vc_report_job_id);
         message (vc_rep_status);
    IF vc_rep_status='FINISHED' THEN
         web.show_document 'http://localhost:8888/reports/rwservlet/getjobid='||vc_report_job_id ||'?server='|| 'repserver90','_blank');
         ELSE
              message ('Report failed with error message '||vc_rep_status);
         END IF;
    END;

    Any Help in this Regards will be highly appreciated

  • Urgent help required: Query regarding LC Variables

    Hi All
    Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
    I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
    export LC_COLLATE=en_US.ISO8859-1
    export LC_MESSAGES=C
    export LC_MONETARY=en_US.ISO8859-1
    export LC_MONETARY=en_US.ISO8859-1
    export HZ=100
    export LC_CTYPE=en_US.ISO8859-1
    export LANG=en_US.UTF-8
    Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
    1. Can someone please tell me, what each of these variable mean and how these values make a difference.
    2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
    As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
    Appreciate your help in this regard.
    Thanks
    Amit
    Hi All
    A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
    Request everyone to please give their inputs as it's a bit urgent.
    Thanks for all the help in advance.
    Thanks
    Amit
    Some help required please...
    Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
    Edited by: amitsinhaengg on Jul 22, 2009 2:06 AM

    LC_CTYPE
    Controls the behavior of character handling functions.
    LC_TIME
    Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
    LC_MONETARY
    Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
    LC_NUMERIC
    Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
    LC_COLLATE
    Specifies a collation order and regular expression definition for the locale.
    LC_MESSAGES
    Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
    You can use command
    # locale -k LC_CTYPE
    to see more detail about each type.

  • Urgent Help Required for Connect Four Game

    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
         int player1;
         int player2;
         public PlayGame()
              //this.player1 = player1;
              //this.player2 = player2;
         public void StartGame()
         try{
         // int X = 0, Y = 0;
         //int value;
         int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
         int[][] ConnectFourArray = new int[6][7];
         int num1, num2;
         for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
         //Player player1;
         //Player player2;
         public ClassConnectFour()
              //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end class
    I am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda
    //

    Hi,
    Thanks for your help but I really don't understand the table lookup algorithm. Could you please send me some code to implement that.
    I will send you the formatted code as well
    Thanks for your help.
    looking forward to your reply.
    Koonda
    Hi all,
    I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the internet which helped me little bit. But there are lot of problems I am facing developing the whole game. I have drawn the Board and the two players can play. The players numbers can fill the board, but I have problem implementing the winner for the game. I need to implement the hasWon() method for Horizontal win, Vertical win and Diagonal win. I also found some code examples on the net but I was unable to make it working. I have 5 classes and one interface which I m implementing. The main problem is how to implement the hasWon() method in the PlayGame class below with Horizontal, vertical and diagonal moves.
    Sorry there is so much code.
    This the interface I must implement, but now I am only implementing the int move() of this interface. I will implement the rest later after solving the winner problem with your help.
    Interface code..............
    interface Player {
    void init (Boolean color);
    String name ();
    int move ();
    void inform (int i);
    Player1 class......................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player1 implements Player
    public Player1()
    public int move()
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player1;
    System.out.println ("What is your Number, player 1?");
    player1 = scan.nextInt();
    System.out.println ("Hey number"+player1+" are you prepared to CONNECT FOUR");
    System.out.println();
    return player1;
    //Player.move();
    //return player1;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "Koonda";
    }//end player1 class
    Player2 class...........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class Player2 implements Player
    public int move()
    //int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    // cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    //int num1, num2;
    Scanner scan = new Scanner(System.in);
    // BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
    int player2;
    System.out.println ("What is your Number, player 2?");
    player2 = scan.nextInt();
    System.out.println ("Hey "+player2+" are you prepared to CONNECT FOUR");
    System.out.println();
    //return player1;
    return player2;
    }//end move method
    public void init (Boolean color)
    public void inform (int i)
    public String name()
    return "malook";
    }//end player1 class
    PlayGame class which contains all the functionality.........................................................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class PlayGame
    //Player player1;
    //Player player2;
    int [][]ConnectFourArray;
    boolean status;
    int winner;
    int player1;
    int player2;
    public PlayGame()
    //this.player1 = player1;
    //this.player2 = player2;
    public void StartGame()
    try{
    // int X = 0, Y = 0;
    //int value;
    int cup0,cup1,cup2,cup3,cup4,cup5,cup6;
    cup0=5;cup1=5;cup2=5;cup3=5;cup4=5;cup5=5;cup6=5;
    int[][] ConnectFourArray = new int[6][7];
    int num1, num2;
    for(int limit=21;limit!=0;limit--)
    BufferedReader selecter = new BufferedReader (new InputStreamReader(System.in));
    String column1;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=1;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=1;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=1;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=1;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=1;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=1;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=1;
    cup6=cup6-1;
    System.out.println();
    BufferedReader selecter2 = new BufferedReader (new InputStreamReader(System.in));
    String column2;
    System.out.println();
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    System.out.println ("Please Select a column of 0 through 6 ");
    column1 = selecter.readLine();
    num1= Integer.parseInt(column1);
    System.out.println();
    if (num1==0){
    ConnectFourArray[cup0][0]=2;
    cup0=cup0-1;
    else if (num1==1){
    ConnectFourArray[cup1][1]=2;
    cup1=cup1-1;
    else if (num1==2){
    ConnectFourArray[cup2][2]=2;
    cup2=cup2-1;
    else if (num1==3){
    ConnectFourArray[cup3][3]=2;
    cup3=cup3-1;
    else if (num1==4){
    ConnectFourArray[cup4][4]=2;
    cup4=cup4-1;
    else if (num1==5){
    ConnectFourArray[cup5][5]=2;
    cup5=cup5-1;
    else if (num1==6){
    ConnectFourArray[cup6][6]=2;
    cup6=cup6-1;
    System.out.println();
    System.out.println();
    catch (Exception E){
    System.out.println("Error with input");
    System.out.println("Would you like to play again");
    try{
    String value;
    BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));
    // Scanner scan = new Scanner(System.in);
    System.out.println("Enter yes to play or no to quit");
    // value = scan.nextLine();
    // String value2;
    value = reader.readLine();
    //value2 = reader.readLine();
    if (value.equals("yes"))
    System.out.println("Start again");
    StartGame(); // calling the StartGame method to play a game once more
    else if (value.equals("no"))
    System.out.println("No more games to play");
    // System.exit(0);
    else
    System.exit(0);
    System.out.println();
    catch (Exception e){
    System.out.println("Error with input");
    finally
    System.out.println(" playing done");
    //StartGame();
    //check for horizontal win
    public int hasWon()
    int status = 0;
    for (int row=0; row<6; row++)
    for (int col=0; col<4; col++)
    if (ConnectFourArray[col][row] != 0 &&
    ConnectFourArray[col][row] == ConnectFourArray[col+1][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+2][row] &&
    ConnectFourArray[col][row] == ConnectFourArray[col+3][row])
    //status = true;//int winner;
    if(status == player1)
    System.out.println("Player 1 is the winner");
    else if(status == player2)
    System.out.println("Player 2 is the winner" );
    }//end inner for loop
    }// end outer for loop
    } // end method Winner
    return status;
    }//end class
    ClassConnectFour which designs the board........................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class ClassConnectFour
    //Player player1;
    //Player player2;
    public ClassConnectFour()
    //this.player1 = player1;
    public void DrawBoard()
    int[][] ConnectFourArray = new int[6][7] ;
    for ( int row=0; row < ConnectFourArray.length; row++ ){
    System.out.print("Row " + row + ": ");
    for ( int col=0; col < ConnectFourArray[row].length; col++ )
    System.out.print( ConnectFourArray[row][col] + " ");
    System.out.println();
    System.out.println();
    }//end class
    TestConnetFour class which uses most of the above class..................
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    public class TestConnectFour
    public static void main(String[] args)
    ClassConnectFour cf = new ClassConnectFour();
    cf.DrawBoard();
    Player1 player1 = new Player1();
    Player2 player2 = new Player2();
    player1.move();
    player2.move();
    System.out.println("Number 1 belongs to player " + player1.name());
    System.out.println("Number 2 belongs to player " + player2.name());
    PlayGame pg = new PlayGame();
    pg.StartGame();
    pg.hasWon();
    //pg.Play();
    //System.out.println(player.name());
    //System.out.println(player2.name());
    }// end main
    }//end classI am sorry for all this junk code but I only understand it this way. Your urgent help is required. Looking forward to your reply.
    Thanks in advance.
    Koonda

  • URGENT HELP REQUIRED!

    I am having problems implementing a username validaion bean for my login system. Every time I click my login icon on my main JSP page the login JSP page does not appear except one of the error JSP pages.
    How can I correct this problem?
    Does the code below look correct?
    Below is the codes for the Username Validation Bean :
    LOGIN.JSP
    <%@ page import="java.io.*"%>
    <%@ page import="java.util.*"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="com.mysql.jdbc.*"%>
    <%@ page errorPage="badLogin.jsp"%>
    <%@ page import="gcd.UserNameValidationBean"%>
    <%
    Class.forName("com.mysql.jdbc.Driver");
    java.sql.Connection connection=java.sql.DriverManager.getConnection("jdbc:mysql://localhost/gcdBB_db");
    java.sql.Statement statement = connection.createStatement();
    Enumeration parameters = request.getParameterNames();
    if(parameters.hasMoreElements())
    String usernameValue = request.getParameter("username");
    String passwordValue = request.getParameter("password");
    statement.executeUpdate("INSERT INTO users (username,password) VALUES ('"+usernameValue+"','"+passwordValue+"')");
    %>
    GOODLOGIN.JSP
    <%@ page errorPage="badLogin.jsp"%>
    <%@ page import="gcd.UserNameValidationBean"%>
    <% UserNameValidationBean validationBean = new UserNameValidationBean();
    if(request.getParameter("username")!=null)
    validationBean.validateUserNameBean(request.getParameter("username"));
    %>
    <%=request.getParameter("username")%>
    USERNAMEVALIDATIONBEAN.JAVA
    package gcd;
    public class UserNameValidationBean
    public UserNameValidationBean(){}
    public boolean validateUserName(String userName) throws InvalidUserNameException
    if(userName.length() < 32)
    throw new InvalidUserNameException("User Name Invalid: " + userName);
    return true;
    INVALIDUSERNAMEEXCEPTION.JAVA
    package gcd;
    public class InvalidUserNameException extends Exception
    public InvalidUserNameException(String message)
    super(message);
    I need urgent help to get this working!

    Here is code for badLogin.jsp and badLoginWithExceptonObject:
    BADLOGIN.JSP
    <HTML><HEAD><TITLE>Login Failure</TITLE></HEAD>
    <BODY bgcolor="#FF9900">
    <H1></H1>
    <font face="Arial" size="3">Sorry but you either entered an incorrect username
    or password </font>
    <P><font face="Arial" size="3">Try Again</font>
    </BODY></HTML>
    BADLOGINWITHEXCEPTIONOBJECT.JSP
    <HTML><HEAD><TITLE>Check User Login Against Parameters</TITLE></HEAD>
    <BODY bgcolor="#FF9900">
    <%@ page isErrorPage = "true"%>
    <P><font face="Arial" size="3">Error =</font> <%= exception.getMessage()%> <% PrintWriter writer = new PrintWriter(out); %>
    <P><font face="Arial" size="3">Stack =</font> <% exception.printStackTrace(writer); %>
    <P><font face="Arial" size="3">Try Again</font>
    </BODY></HTML>

  • Urgent help required in migration

    Hello,
    I am stuck on 77% of r3load process my all 15/16 processes are finished successfully only one process has failed I have cut paste the log (SAPAPPL1.log) below of the same. Request your urgent help.
    DbSl Trace: Connecting via TNS_ADMIN=/oracle/F01/920_64/network/admin, tnsname=F01
    DbSl Trace: Got NLS_LANG=AMERICAN_AMERICA.US7ASCII from environment
    DbSl Trace: Now I'm connected to ORACLE
    DbSl Trace: Database instance F01 is running on e027pae0 with ORACLE version 9.2.0.7.0
    trying to restart import ###
    (RIM) INFO: table "BKPF" truncated
    restart finished ###
    #START: 20070530101004
    TAB: BKPF
    (RD) ERROR: missing last block number for table "BKPF" in directory file "/sapcd/EXPDIR/DATA/SAPAPPL1.TOC"
    #STOP: 20070530101004
    Thanks & Regards,
    Bhushan

    Did you split the files?
    It seems that export file for this table got corrupt.
    Unfortunately, you ahve to start again. I had a similar problem and had to do it again.

  • Urgent Help Required - Video Not playing on IE11 and Firefox

    Hi,
    I need Urgent Help , I am trying to Play this Presentation on IE 11 and Firefox and it doesn't play the Video part which is FLV and f4v formats.
    I have been googeling it but couldn't find a solution so far ,Can anyone please help , its really urgent as I am done with the Project ,and this is the last bit which I have been struggling with for a while now.
    Here is the HTML Code I am using :
    <----------------------------------------------------------------------------------------- ----------------------------------------------------------------->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
      <title>index</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <style type="text/css" media="screen">
      html, body { height:100%; background-color: #ffffff;}
      body { margin:0; padding:0; overflow:hidden; }
      #flashContent { width:100%; height:100%; }
      </style>
    </head>
    <body>
      <div id="flashContent">
       <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="800" height="600" id="index" align="middle">
        <param name="movie" value="index.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="play" value="true" />
        <param name="loop" value="true" />
        <param name="wmode" value="window" />
        <param name="scale" value="showall" />
        <param name="menu" value="true" />
        <param name="devicefont" value="false" />
        <param name="salign" value="" />
        <param name="allowScriptAccess" value="sameDomain" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="index.swf" width="800" height="600">
         <param name="movie" value="index.swf" />
         <param name="quality" value="high" />
         <param name="bgcolor" value="#ffffff" />
         <param name="play" value="true" />
         <param name="loop" value="true" />
         <param name="wmode" value="window" />
         <param name="scale" value="showall" />
         <param name="menu" value="true" />
         <param name="devicefont" value="false" />
         <param name="salign" value="" />
         <param name="allowScriptAccess" value="sameDomain" />
        <!--<![endif]-->
         <a href="http://www.adobe.com/go/getflash">
          <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
         </a>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
       </object>
      </div>
    </body>
    </html>
    <----------------------------------------------------------------------------------------- ----------------------------------------------------------------->

    Any Help in this Regards will be highly appreciated

  • URGENT help required : Custom Authentication Plugin for validation of users

    Hi Experts.
    I'm a newbie and am stuck in middle of nowhere.
    I have been asked to develop a custom authentication plug-in which would validate a user using the attributes such as a userid and a shared-userid.
    shared-userid is just a custom id that would be generated on the basis of some logic.
    Currently I'm using OAM 10.1.4.3.0 on WINDOWS server and as everybody, I'm also not able to find any sample files or sample folder structure.
    As per one of the other threads https://forums.oracle.com/forums/thread.jspa?messageID=3838474, sample code and sample folders are removed from this particular version and were present in some previous version.
    So, can anyone please help me out with the following:
    1. How can I proceed to accomplish this task, i.e. to check whether a user-id and a shared-userid both are validated and a user is granted access.
    2. Are all of these files required to create a custom authentication plug-in or can we proceed only with the ".c" file (i.e. make file, authn.c, and a dll file made using the make file and .c file)
    3. Can anybody provide me with a sample file or a sample code written in "C" wherein the plug-in connects to the LDAP and searches for a particular dn for comparison or something. Also a sample make file for windows to convert the .c file to .dll.
    PLEASEEEE help me ASAP.
    Regards
    Edited by: 805912 on Nov 15, 2011 7:18 PM

    Hi,
    Regarding question 2, you also need the header file is supplied in the Access Server installation directory, under ...access\oblix\sdk\authn_api and is called authn_api.h. you need this to build the dll which must then be placed in the Access Server's ...\access\oblix\lib directory.
    Regarding question 3, if you install an earlier version of the Access Server, ie 10.1.4.2 or less, then you will get a \access\oblix\sdk\authentication\samples\authn_api directory that contains a basic sample authentication plugin. However, there is still documented in the 10.1.4.3 Developer Guide another sample plugin, simplapi.c, in the 10.1.4.3 Developer Guide with instructions on how to use it. It does work, but unfortunately requires a couple of edits to get it working after copy&pasting it (no code changes, just fairly obvious case changes eg changing ObanPlugin* to ObAnPlugin*). I used the following commands to get it to compile into a .so file on unix:
    g++44 -c -fPIC -Wno-deprecated -m32 simpleapi.c
    g++44 -shared -nostdlib -lc -m32 simpleapi.o -o simpleapi.so
    but I really would not know if or how these translate into a Windows environment.
    Regards,
    Colin
    Edited by: ColinPurdon on Nov 15, 2011 2:50 PM

Maybe you are looking for