Database Search Problem

Hey,
I am creating a database with a user profile, where a user can select their interests.
i.e
Golfing Yes/No
Movies Yes/No
Travelling Yes/No
So, there are 20 interests like that, and each of them is a boolean.
Would it be inefficient to create 20 boolean fields like that ?
I kinda thought that would be inefficient (not sure if it's true) and thought of a way to put it into the database as a BYTE(20) stream, like
1001010001011, where 1-yes, 0-no.
However the problem is.. what if I want to do a search where only the first question is yes, and all the other does not matter ?
For example.
I want to search for a string like 1????????????, where ? could be 0 or 1.
So here are my 2 questions:
Will I need to traverse the whole database that way ? (use BYTE(20))
or should I just code them as 20 separate booleans ?
thanks !
Dennis

G'day DennisMV,
I'd suggest 20 separate booleans. It may take some more space (however these are booleans, so the space would be extremely small!) . But it will save you alot of time writing code that you don't really need to. Also, hunting down small, sinister, evil bugs would be alot tougher using the stream. That's the direction i'd head in anyway.
Good Luck,
TimmyP

Similar Messages

  • Multiple field database search problem... plz help me

    Hi,
    I have a search form with 6 search fields. 5 text boxes and one combo box. I want to search values from two tables based on this search keys. I am using 3 tables. Followings are the table structure....
    comp_det
    CREATE TABLE `comp_det` (`comp_id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
    `compname` VARCHAR( 100 ) NOT NULL ,
    `address` VARCHAR( 100 ) NOT NULL ,
    `city` VARCHAR( 100 ) NOT NULL ,
    `state` VARCHAR( 100 ) NOT NULL ,
    `membnum` VARCHAR( 100 ) NOT NULL ,
    PRIMARY KEY ( `comp_id` )) TYPE = MYISAM ;
    pro_det
    CREATE TABLE `comp_det` (`comp_id` INT( 11 ) NOT NULL AUTO_INCREMENT , `pro_name` VARCHAR( 100 ) NOT NULL , PRIMARY KEY ( `pro_id` )) TYPE = MYISAM ;
    comp_prod
    CREATE TABLE comp_prod (comp_id INT NOT NULL,pro_id INT NOT NULL,productName varchar(255),FOREIGN KEY (comp_id) REFERENCES comp_det (comp_id),FOREIGN KEY (pro_id) REFERENCES pro_det (pro_id)) TYPE = MYISAM ;
    These are the search key :
    Company Name (compname from comp_det)
    contact person (personname from comp_det)
    city( city from comp_det)
    state (state from comp_det)
    membership number (membnum from comp_det)
    Products( pro_name from pro_det)
    i tried with with the following sql query. But i couldn't gt the correct result
         String cn="'"+request.getParameter("compname")+"'";
         String cp="'"+request.getParameter("contactperson")+"'";
         String ct="'"+request.getParameter("city")+"'";
         String st="'"+request.getParameter("state")+"'";
         String mn="'"+request.getParameter("membershipnumber")+"'";
         String ps="'"+request.getParameter("pro_name")+"'";
         String slct="";
    slct="select distinct t1.comp_id, t1.compname, t1.personname, t1.city, t1.state, t1.email, t1.website, t2.pro_name from comp_det t1, pro_det t2, comp_prod t3 where t1.compname= " + cn + " or t1.personname= " + cp + " or t1.city = " + ct + " or t1.state = " + st + "or t1.membnum = " + mn + "or t2.pro_id = " + ps + " and t1.comp_id = t3.comp_id ORDER BY t1.compname";
    Please help me..... Its urgent
    Thanks

    hi
    thanks for your reply. Iam using prepared statement.
    here my coding
    String DbDriver = "org.gjt.mm.mysql.Driver";
    String url="jdbc:mysql://localhost:3306/mydb";
         Connection con=null;
         PreparedStatement pstmt=null;
    try {
              Class.forName(DbDriver).newInstance();
    con=DriverManager.getConnection(url,"myuid","mypwd");
         String cn="'"+request.getParameter("compname")+"'";
         String cp="'"+request.getParameter("contactperson")+"'";
         String ct="'"+request.getParameter("city")+"'";
         String st="'"+request.getParameter("state")+"'";
         String mn="'"+request.getParameter("membershipnumber")+"'";
         String ps="'"+request.getParameter("pro_name")+"'";
         String slct="";
              slct="select distinct t1.comp_id, t1.compname, t1.personname, t1.city, t1.state, t1.email, t1.website, t2.pro_name from comp_det t1, pro_det t2, comp_prod t3 where t1.compname= " + cn + " or t1.personname= " + cp + " or t1.city = " + ct + " or t1.state = " + st + "or t1.membnum = " + mn + "or t2.pro_id = " + ps + " and t1.comp_id = t3.comp_id ORDER BY t1.compname";
    pstmt = con.prepareStatement(slct);
              ResultSet rs = pstmt.executeQuery();

  • Database search results

    i have a master results page (aspVB) from Dreamweaver 8. have
    search page from
    WebAssist Database Search using advanced text search (single
    search box)
    question 1 - when a user hits 'enter' on the search page, all
    records show,
    no matter if there is any value in the search box or not. How
    do you prevent
    any records showing, if 'enter' is selected and the search
    box is empty, and
    if there is a value in the search box and 'enter' is
    selected, show just the
    results from the search box value?
    question 2 - if more than one word is put in the search box,
    such as, 'green
    sol' the results show any thing with 'green' as well as
    anything
    with 'sol' and also anything with 'green sol'. how can you
    just have the
    results with 'green sol' and not 'green' or 'sol'. result
    wanted is 'green
    solutions' or 'green solar' or 'green sold'.
    thanks for your help
    jim balthrop

    Thank you for pointing out this problem. It has been fixed. (If you still see the wrong topic being linked to, try refreshing your browser. If it's still a problem, it might take a little while for the Database 11.2 documentation library to be updated on various systems worldwide. It did work just now for me.)

  • Capture database search string

    Thanks to all who help,
    I maintain a database search utility on our company Intranet that was developed using FrontPage (our only company standard development tool). The user enters a product code and initiates the search. When the results are found in the database, the original page reloads and the information about the product displays below the original. I have a "Print the results" button on the page that, at present, prints the entire page.
    What I would like to be able to do is have the print button actually open another window that displays only the information that the user requested, so that they don't get my original page design (and all the unnecessary information) on their printout.
    Would someone please help me to implement this change.
    Thanks,
    Bob

    I don't know what you're talking about with back and front end of scripts, but if you think this is a Java-related question, then please post some Java code that you've tried to write to solve this problem, or some thoughts on what classes and methods might be used.
    Also keep in mind that JavaScript is not Java and this forum is not relevant to JavaScript in any way.

  • Database termination Problem

    Hi every body ..plz help me on this..
    We are facing database termination problem in ECC6 production syste.
    Database: Oracle 10.2, O/S: Windows 2003. Spam  :27, SP level 13.
    Error is:
    Errors in file f:\oracle\p02\saptrace\background\p02_ckpt_6520.trc:
    ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF'
    ORA-27072: File I/O error
    OSD-04008: WriteFile() failure, unable to write to file
    O/S-Error: (OS 33) The process cannot access the file because another process has locked a portion of the file.
    When we are performing backup then data base termination occuring freequently.
    Give right solution as early as possible.
    Thanks,
    Nani.

    Hi,
    Have a look at below snote which actually speaks about the oracle error codes
    Snote :  546006
    within the Snote it says :-
    " If you cannot access a database file (for instance a data file, control file or RedoLog) for whatever reason, an ORA-270xx appears. The actual cause comes from additional error messages (usually in the operating system) that occur on ORA-270xx. "
    And as per your last update
    " ORA-00206: error in writing (block 3, # blocks 1) of control file
    ORA-00202: control file: 'D:\ORACLE\P02\ORIGLOGB\CNTRL\CNTRLP02.DBF' "
    i think there is problem accessing the database control file. Hence you  are facing the above problem.
    I think if you recreate your control file i think, it should resolve the problem.
    Hope it will be helpful to resolve your problem.
    Rgds
    Radhakrishna D S

  • Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem

    Hi,
    I failed to connect Tomcat 5.0.24 with Postgresql
    7.4.2. The files created by me and the changes i had
    made in the existing files are rates.jsp,
    conversionDAO.java, web.xml and server.xml. The error
    message on the top of the rest of it was "The value of
    useBean class attribute converter.conversionDAO is
    invalid". So far I found out that the coding for
    database connectivity purpose in conversionDAO.java
    cause the error. Another thing is Postgresql jdbc
    driver is required to set in the CLASSPATH for the
    java file to access the Postgresql database. I don't
    know where should I put it in Tomcat for web
    application. Anyway, I put it in
    $CATALINA_HOME/shared/lib according the book i
    refered. I do the database connectivity coding refer
    to the Tomcat Kick Start book from Sams Publishing.
    Below are the coding involved, please show me the
    mistake i had made. Thank you.
    ----server.xml----
    <Context path="/database"
    docBase="${catalina.home}/webapps/database" debug="0"
    reload="true">
    <ResourceParams name="jdbc/conversion">
    <parameter>
    <name>username</name>
    <value>myusername</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mypassword</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>org.postgresql.Driver</value>
    </parameter>
    <parameter>
    <name>url</name>
    <value>jdbc:postgresql://localhost/conversion</value>
    </parameter>
    </ResourceParams>
    </Context>
    ----web.xml----
    <servlet>
    <servlet-name>conversionDAO</servlet-name>
    <servlet-class>converters.conversionDAO</servlet-class>
    </servlet>
    <resource-ref>
    <res-ref-name>jdbc/conversion</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    ----conversionDAO.java----
    public conversionDAO() throws SQLException,
    NamingException
    Context init = new InitialContext();
    Context ctx = (Context)
    init.lookup("java:comp/env");
    DataSource ds = (DataSource)
    ctx.lookup("jdbc/conversion");
    con = ds.getConnection();
    select = con.prepareStatement(
    "SELECT rate FROM Exchange WHERE src= ? AND dst =

    Immediate HELP in Tomcat 5 to Postgresql 7.4 database connectivity problem (cont.)
    Errors log
    2004-06-06 01:07:53 StandardContext[servlets-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[servlets-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]SessionListener: contextDestroyed()
    2004-06-06 01:07:53 StandardContext[jsp-examples]ContextListener: contextDestroyed()
    2004-06-06 01:07:59 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-06-06 01:08:00 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-06-06 01:08:00 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-06-06 01:08:01 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /rates/rates.jsp(5,0) The value for the useBean class attribute converters.conversionDAO is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:141)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3261)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    ----more----

  • Database configuring problem in setup of managed systems in SMD

    Hello,
    i'm doing the setup of a CRM 5.0 in SMD Abap+Java and the setup results returns following:
    "Database configuration problem"  with the exception:
    java.lang.NullPointerException
         at com.sap.smd.server.manager.SMDPluginProperties.setProperty(SMDPluginProperties.java:114)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.configureCustomProperties(ConfigurationTask.java:242)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.configureProperties(ConfigurationTask.java:370)
         at com.sap.smd.agent.plugins.database.ConfigurationTask.execute(ConfigurationTask.java:124)
         at com.sap.sup.admin.setup.AppCfgTasks.configureDbApp(AppCfgTasks.java:115)
         at com.sap.sup.admin.setup.SetupStep.execute(SetupStep.java:202)
         at com.sap.smd.agent.plugins.remotesetup.SapInstance.setup(SapInstance.java:217)
         at com.sap.sup.admin.setup.SapCluster.setup(SapCluster.java:461)
         at com.sap.sup.admin.setup.SapCluster.access$000(SapCluster.java:26)
         at com.sap.sup.admin.setup.SapCluster$SetupRunner.run(SapCluster.java:669)
         at java.lang.Thread.run(Thread.java:534)
    Anybody knows which can be the problem?
    Thanks a lot
    Carlos

    Hi Shriraj,
    ensure that the installation path is correct. I only put /urs/sap/<SID> and you must put /usr/sap/<SID>/DV***/.
    In my case with that the setup returns all in green.
    I hope it helps you
    Regards
    Carlos

  • SIMPLE Database Design Problem !

    Mapping is a big problem for many complex applications.
    So what happens if we put all the tables into one table called ENTITY?
    I have more than 300 attributeTypes.And there will be lots of null values in the records of that single table as every entityType uses the same table.
    Other than wasting space if I put a clustered index on my entityType coloumn in that table.What kind of performance penalties to I get?
    Definition of the table
    ENTITY
    EntityID > uniqueidentifier
    EntityType > Tells the entityTypeName
    Name >
    LastName >
    CompanyName > 300 attributeTypes
    OppurtunityPeriod >
    PS:There is also another table called RELATION that points the relations between entities.

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    check the coloumn with WHERE _entityType='PERSON'
    as there is is clustered index on entityType...there
    is NO performance decrease.
    there is also a clustered index on RELATION table on
    relationType
    when we say WHERE _entityType ='PERSON' or
    WHERE relationType='CONTACTMECHANISM'.
    it scans the clustered index first.it acts like a
    table as it is physically ordered.I was thinking in terms of using several conditions in the same select, such as
    WHERE _entityType ='PERSON'
      AND LastName LIKE 'A%' In your case you have to use at least two indices, and since your clustered index comes first ...
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Have you ever thought of using constraints in your
    modell? How would you realize those?
    ...in fact we did.We have arranged the generic object
    model in an object database.The knowledge information
    is held in the object database.So your relational database is used only as a "simple" storage, everything has go through your object database.
    But the data schema is held in the RDBMS with code
    generation that creates a schema to hold data.If you think that this approach makes sense, why not.
    But in able to have a efficent mapping and a good
    performance we have thought about building only one
    table.The problem is we know we are losing some space
    but the thing is harddisk is much cheaper than RAM
    and CPU.So our trade off concerated on the storage
    cost.But I still wonder if there is a point that I
    have missed in terms performance?Just test your approach by using sufficiently data - only you know how many records you have to store in your modell.
    PS: it is not wise effective using generic object
    models also in object databases as CPU cost is a lot
    when u are holding the data.I don't know if I'd have taken your approach - using two database systems to hold data and business logic.
    PS2: RDBMS is a value based system where object
    databases are identity based.we are trying to be in
    the gray area of both worlds.Like I wrote: if your approach works and scales to the required size, why not? I would assume that you did a load test with your approach.
    What I would question though is that your discussing a "SIMPLE Database Design" problem. I don't see anything simple in your approach when it comes to implementation.
    C.

  • Database connection problem when i try store the values in JTable

    Hi Sir,
    I have a database connection problem when i try to store the data's in a JTable.I think the problem is with in the database connection.I have used 3 vectors here.The database which i have used is
    Access.Where the program is compiling well.But when i run it only the first column heading is printed and error message showing that
    "Invalid Cursor State".I need to solve this problem.pls. do help me.
    I will provide u with the code.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.sql.*;
    public class DataBaseVector extends JPanel
    //Container contentPane=getContentPane();
    JScrollBar jsb = new JScrollBar(JScrollBar.HORIZONTAL);
    JScrollBar jsb1 = new JScrollBar(JScrollBar.VERTICAL);
    Image i1;
    String url="jdbc:odbc:Ananth";
    Vector col=new Vector();
    Vector rows=new Vector();
    Vector rdata=new Vector();
    Connection conn;
    public DataBaseVector()
    //super("JTable With ScrollBars");
    this.setLayout(new BorderLayout());
    UIManager.put("ScrollBar.track",Color.red);
    UIManager.put("ScrollBar.thumb",Color.blue);
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    conn=DriverManager.getConnection(url); // Is there any problem here?
    Statement st=conn.createStatement();
    ResultSet rs=st.executeQuery("Select * from AccountMaster");
    // rs is the result set obtained
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
    for(int i=1;i<=cols;i++)
    col.addElement(rsmd.getColumnName(i));
    rdata.addElement(rs.getString(i));
    rows.addElement(rdata);
    }catch(Exception e)
         System.out.println("The Error Message was:"+e.getMessage());
    JTable jt=new JTable(rows,col);
    int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
    int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
    JScrollPane jsp=new JScrollPane(jt,v,h);
    this.add(jsp,BorderLayout.CENTER);
    this.add(jsb, BorderLayout.SOUTH);
    this.add(jsb1, BorderLayout.EAST);
    public static void main(String args[])
    JFrame jf=new JFrame();
    JPanel frame=new DataBaseVector();
    jf.getContentPane().add(frame);
    jf.setSize(800,600);
    jf.setVisible(true);
    Thanx,
    m.ananthu

    The problem is ResultSet.next() is not called.
    Try this and modify the table creation as you need.
    ResultSetMetaData rsmd=rs.getMetaData();
    int cols=rsmd.getColumnCount();
         while(rs.next()) {
              for(int i=1;i<=cols;i++)
                        col.addElement(rsmd.getColumnName(i));
                        rdata.addElement(rs.getString(i));
              rows.addElement(rdata);
    Hope this helps

  • How do I create a simple database search

    Either I'm being very stupid or all the manuals and books I'm
    reading really are skirting round the obvious question of how do I
    build a search page (using Dreamweaver 8) that searches a database
    using only valid values previously fetched from the database. Can
    anyone advise?
    Example:
    Say I've got a table called members which holds a list of
    members of a gym. Say I want to offer my users a way of filtering
    down the list of members by (say) home town and hair colour.
    What I want to do is offer my users two lists which are
    generated using Datasets: One listing all the unique hometowns of
    my members and one listing unique hair colours. I want my users to
    enter search criteia but only valid ones - so they must select from
    the list of valid values I provide them with. I'll then filter my
    main resulkts based on what they select.
    But how do I do this? Not using URL variables obviously. And
    not using Form variables as you can't list database items in a form
    variable (can you?). I've got "DW 8: The Missing Manual" which I
    was hoping would give me the answers I'm looking for but instead
    seems to get very excited about the power of Dreamweaver 8 then
    skirts round the fact that you can't use current database values to
    do a database search!!! (unless I'm missing something that is)
    While I'm at it - I'd idealy want to achieve all this on a
    single page but I'm willing to concede on that if technology
    predicts otherwise.
    ASP.NET (VB)
    Dreamweaver 8.0.2
    Any guidance would be very welcome. (I'm new to all this by
    the way)

    > But how do I do this? Not using URL variables obviously.
    Querystrings could be used if you wanted to. That'd be nice
    so people could
    bookmark the page.
    > ASP.NET (VB)
    Might be time to consider NOT using DW, as it no longer
    supports ASP.net
    But, in pseudo code:
    onPageLoad:
    - get list of hometowns
    - populate hometown dropdown
    - get list of hair colors
    - populate hair color dropdown
    onPostBack:
    - check to see if there is a hometown selected
    - check to see if there is a hair color selected
    - if either of the above, modify the WHERE clause in your
    SQL query to
    reflect those values.
    If you wanted to add querystrings, modify the logic as such:
    onPageLoad:
    - get list of hometowns
    - populate hometowndropdown
    - get list of hair colors
    - populate hair color dropdown
    - check for querystrings
    - if they exist, grab them, modify the WHERE clause in your
    SQL query to
    reflect those values and show the results.
    onPostBack:
    - check to see if there is a hometown selected
    - check to see if there is a hair color selected
    - do a response.redirect to this page adding the appropriate
    querystrings
    if either of the above had values.
    -Darrel

  • WLI 7.0 samples database setup problem

    I have just installed WL Platform 7.0. I want to run the WLI samples and did the following:
    1. Started "Integration Database Wizard" for WLI samples and performed "SwitchDB"
    - provided valid database properties for oracle. Completed successfully - config.xml
    for samples is updated.
    2. Ran RunSamples script - Gives database connect problems and database is not created.
    The user/pwd/machine name/SID are all correct.
    I observed that as part of "RunSamples", it again invokes "SwitchDB" (command I see
    is "switchdb oracle"). This resets the database properties in config.xml to the defaults
    - so obviously this is causing the connection problem.
    Pls let me know what is going wrong here?
    Thanks

    Garf,
    You are correct in your analysis. When you run the 'RunSamples' script,
    it will call switchdb and this causes the 'defaults' to be set in
    config.xml. Running the wliconfig utility is the customer experience
    BEA would like to have with regard to setting up the database. However,
    the RunSamples script has not been updated to correctly reflect that the
    customer would have already performed this step. When RunSamples calls
    switchdb, it is getting the defaults from the following location:
    <USER_DEFINED_DOMAIN>/dbInfo/<DATABASE>/setDBVars and setDBVarsExt files
    So for example, if you accepted the default user directory and your
    BEA_HOME is C:/bea and you were using the EAI Domain template calling
    your domain eaidomain and your are using Oracle, you should update the
    following files:
    C:\bea\user_projects\eaidomain\dbInfo\oracle\setDBVars.cmd and
    setDBVarsExt.cmd
    Edit these files to reflect your DB connection properties.
    When RunSamples calls switchdb, these properties will be used to update
    the wliPool in config.xml. I hope this helps and sorry for the
    inconvenience.
    Cheers,
    Chris
    Garf wrote:
    I have just installed WL Platform 7.0. I want to run the WLI samples and did the following:
    1. Started "Integration Database Wizard" for WLI samples and performed "SwitchDB"
    - provided valid database properties for oracle. Completed successfully - config.xml
    for samples is updated.
    2. Ran RunSamples script - Gives database connect problems and database is not created.
    The user/pwd/machine name/SID are all correct.
    I observed that as part of "RunSamples", it again invokes "SwitchDB" (command I see
    is "switchdb oracle"). This resets the database properties in config.xml to the defaults
    - so obviously this is causing the connection problem.
    Pls let me know what is going wrong here?
    Thanks

  • SOON: Advisor Webcast - WebCenter Content: Database Searching and Indexing

    Learn how to improve search performance by attending the 1 hour Advisor Webcast: WebCenter Content: Database Searching and Indexing on March 15, 2012 at 16:00 UK / 167:00 CET / 08:00 am Pacific / 9:00 am Mountain / 11:00 am Eastern. For details, go here https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=1399682.1.
    TOPICS WILL INCLUDE:
    * Optimize the database index for faster searching
    * Locate WebCenter Content problematic queries
    * Use SQL Developer to find explain plans and profile SQL statements
    * Configure WebCenter Content to tweak search settings
    Edited by: user754652 on Jan 30, 2012 7:44 AM
    Edited by: user754652 on Mar 7, 2012 7:09 AM

    Hi All,
    Not sure if this is the right forum however I am not able to find the installation for Release 11gR1: 11.1.1.7.0 at http://www.oracle.com/technetwork/middleware/webcenter/content/downloads/index.html
    Any pointers where can I download from?
    Thanks

  • Database Searching Algorithms

    Hi..
    I have to do some research about database searching algorithms.
    Would someone here help me and give a list of that algorithms and which one is the best.
    What is the name of this algorithms which when u type in a key such "a" then it display a list of information that started with "a".

    I guess I have more time than I thought... :)
    Here is a full working example all in one class...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MAIN
         DefaultListModel model_my_list = new DefaultListModel();
        JList my_list = new JList(model_my_list);
         DefaultListModel model_list_of_finds = new DefaultListModel();
        JList list_of_finds = new JList(model_list_of_finds);
         JTextField search_box = new JTextField(20);
         JTextField add_box = new JTextField(20);
         public MAIN()
              JFrame frame = new JFrame( "Search test" );          
              frame.setSize( 500, 500 );
              Container container = frame.getContentPane();
             GridBagLayout gbl = new GridBagLayout();             
             container.setLayout(gbl);
             GridBagConstraints gbc = new GridBagConstraints();
             Action actionAdd = new AbstractAction("ADD")
                 public void actionPerformed(ActionEvent evt)
                      model_my_list.add( model_my_list.size(), add_box.getText() );
                      add_box.setText("");
             JButton buttonAdd = new JButton(actionAdd);
             buttonAdd.setPreferredSize( new Dimension( 100, 30 ) );
             gbc.gridx = 2;
             gbc.gridy = 2;
             gbl.setConstraints(buttonAdd, gbc);
             container.add( buttonAdd );
             Action actionSearch = new AbstractAction("SEARCH")
                 public void actionPerformed(ActionEvent evt)
                      search( search_box.getText() );
             JButton buttonSearch = new JButton(actionSearch);
             buttonSearch.setPreferredSize( new Dimension( 100, 30 ) );
             gbc.gridx = 2;
             gbc.gridy = 4;
             gbl.setConstraints(buttonSearch, gbc);
             container.add( buttonSearch );         
             JLabel add_label = new JLabel( "Add element" );
             gbc.gridx = 1;
             gbc.gridy = 1;
             gbl.setConstraints(add_label, gbc);
             container.add( add_label );
              gbc.gridx = 1;
             gbc.gridy = 2;
             gbl.setConstraints(add_box, gbc);
             container.add( add_box );
             JLabel search_label = new JLabel( "Search keyword" );
             gbc.gridx = 1;
             gbc.gridy = 3;
             gbl.setConstraints(search_label, gbc);
             container.add( search_label );
              gbc.gridx = 1;
             gbc.gridy = 4;
             gbl.setConstraints(search_box, gbc);
             container.add( search_box );
              JLabel all_label = new JLabel( "All elements" );
             gbc.gridx = 1;
             gbc.gridy = 5;
             gbl.setConstraints(all_label, gbc);
             container.add( all_label );
             JScrollPane all_scroll = new JScrollPane( my_list );
              gbc.gridx = 1;
             gbc.gridy = 6;
             gbl.setConstraints(all_scroll, gbc);
             container.add( all_scroll );
              JLabel found_label = new JLabel( "Searched elements" );
             gbc.gridx = 2;
             gbc.gridy = 5;
             gbl.setConstraints(found_label, gbc);
             container.add( found_label );
             JScrollPane found_scroll = new JScrollPane( list_of_finds );
              gbc.gridx = 2;
             gbc.gridy = 6;
             gbl.setConstraints(found_scroll, gbc);
             container.add( found_scroll );
              frame.pack();
              frame.setResizable( false );
              frame.setVisible( true );          
         public void search( String searchWord )
              model_list_of_finds.clear(); //empty
              for ( int i = 0; i < model_my_list.size(); i++ )
                   String text = (String)model_my_list.get(i);
                   if ( text.startsWith( searchWord ) )
                        model_list_of_finds.add( model_list_of_finds.size(), text );
                        continue;
                   if ( text.endsWith( searchWord ) )
                        model_list_of_finds.add( model_list_of_finds.size(), text );
                        continue;
                   String keyword[]  = text.split( searchWord );
                   if (keyword.length > 1 ) //if there was a split... there was a find
                     model_list_of_finds.add( model_list_of_finds.size(), text );
                     continue;
         public static void main ( String args[] )
              new MAIN();
    }

  • Outlook 2010, Exchange 2010 - Searching Problems

    Anyone out there able to help with some searching problems some of our users have been seeing?
    Searching in OWA works fine but some people have problems when searching for older emails in Outlook. We've rebuilt Outlook profiles, rebuilt the windows index's (which seems to work but only temporarily). If there's a way to schedule the Windows index to
    rebuild every night or once  week, I'd be very happy to test that out but haven't been able to figure out how to do that.
    Anyone have any other ideas?

    Hi,
    It seems something keeps corrupting the index... Run Anti-virus program and Malicious Software Removal Tool to scan your system, check if there's any virus or malware that may cause the index issue.
    If this issue persists, please also go to File tab ->
    Options -> Search -> Indexing Options
    -> Advanced -> Click Troubleshoot search and indexing, to do some troubleshooting steps to find the possible cause.
    I hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • How to chart database search results?

    I'm new to Macs and Appleworks. I want to make a graph/chart of numbers that come from summary fields of a database search. Do I somehow link the database search results to a spreadsheet? Can I put the graph on a database report page? Thanks.

    Maybe this will help.
    You can create a bar chart this way.
    You have some summary fields to be charted, call them sum1, sum2, etc.
    Create another summary field for each that you have. The basic formula will be:
    LEFT("||||||||||||||||||||||||||||||||||",SUM('sum1'))
    This will give a number of line characters to match the sums. Position these fields to form a chart. You can modify the font and style, etc.
    There're also some variations. If your totals are large, you could divide the final parameter by something:
    LEFT("||||||||||||||||||||||||||||||||||",SUM('sum1')/2)
    And even multiply by something if your totals are small.
    This is using the standard line character. You could also use dingbats - the "n" will give a solid square: LEFT("nnnnnnnnnnn",SUM('sum1'))
    Additionally, to fill gaps between characters, you can create two chart fields for each total and overlap them.
    Now, these are summary fields and so need to be on the summary part of the layout, and you must be in Page View to see.
    David

Maybe you are looking for

  • Unable to retrieve mail from server on my account

    Hi there. I am unable since june 26 to retrieve email from the server. I check information on my mail app and i see my mail list store on the server. I also tried to send me an email. But still unable to retrieve it. So i can send email, but enable t

  • Why is there increase in monthly billing

    Why does current bill reflect an increase ? It has been $101.49 and this month's billing is for $120.14, an increase of $18.65. I haven't made any changes to my account. Thank you for any assistance you can provide.

  • Error COUNTRYGROUPING_NOT_FOUND ESS

    Is some specific country grouping needs to be done for ESS ? We are implementing ESS and when we try to test some settings on portal the system is giving error saying "The following ABAP Exception occurred: COUNTRYGROUPING_NOT_FOUND". already assigne

  • "add folder to library" question

    Firstly - I don't want to put all my music in the iTunes Media folder and let iTunes organise my libary - I like it the way it is. So I've used the "add folder to library" function to add my music library from another location. I realise that iTunes

  • Backup internal and external hard drives-TC and offsite

    I now have Mavericks 10.9.3 on my iMac with a 2TB (1.25 TB used) internal hard drive. I also have some external drives attached to my iMac with older iPhoto libraries and other files (total file sizes 940 GB and 505 GB).  I primarily use Aperture now