Simple SQL query SQL developer takes it, The wizzard of XE does not

Hello everybody
I wrote this simple query which SQL developer runs fine, but when I try to launch a Report based on this sql query it tells me invalid sql statement. That is true, it may be invalid because this IF clause in there..but SQL developer seems to be very tolerant or understands more...
the reason I wrote that is because obviously if there are no bosses, ie = 0 then i would get an error when dividing it by 0, so I put that 0 just to select the good ones
if count (bosses) >0
select company, postcode,
sum( bosses/staff)
from evaluation
group by company, postcode
Thank you very much
Alvaro

oh yes (blushed in shame as how dumb i looked like) i knew about the denominator 0 and infinite as as result i just didnt notice my zero was on the numerator :(
however, i run the query and i got this message in sql developer
Error starting at line 1 in command:
select company, postcode,
case when staff != 0 then sum( bosses/staff) end
from evaluation
group by company, postcode
Error at Command Line:2 Column:10
Error report:
SQL Error: ORA-00979: not a GROUP BY expression
00979. 00000 - "not a GROUP BY expression"
*Cause:   
*Action:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Can we implement the custom sql query in CR for joining the two tables

    Hi All,
    Is there anyway to implement the custom sql query in CR for joining the two tables?
    My requirement here is I need to write sql logics for joining the two tables...
    Thanks,
    Gana

    In the Database Expert, expand the Create New Connection folder and browse the subfolders to locate your data source.
    Log on to your data source if necessary.
    Under your data source, double-click the Add Command node.
    In the Add Command to Report dialog box, enter an appropriate query/command for the data source you have opened.
    For example:
    SELECT
        Customer.`Customer ID`,
        Customer.`Customer Name`,
        Customer.`Last Year's Sales`,
        Customer.`Region`,
        Customer.`Country`,
        Orders.`Order Amount`,
        Orders.`Customer ID`,
        Orders.`Order Date`
    FROM
        Customer Customer INNER JOIN Orders Orders ON
            Customer.`Customer ID` = Orders.`Customer ID`
    WHERE
        (Customer.`Country` = 'USA' OR
        Customer.`Country` = 'Canada') AND
        Customer.`Last Year's Sales` < 10000.
    ORDER BY
        Customer.`Country` ASC,
        Customer.`Region` ASC
    Note: The use of double or single quotes (and other SQL syntax) is determined by the database driver used by your report. You must, however, manually add the quotes and other elements of the syntax as you create the command.
    Optionally, you can create a parameter for your command by clicking Create and entering information in the Command Parameter dialog box.
    For more information about creating parameters, see To create a parameter for a command object.
    Click OK.
    You are returned to the Report Designer. In the Field Explorer, under Database Fields, a Command table appears listing the database fields you specified.
    Note:
    To construct the virtual table from your Command, the command must be executed once. If the command has parameters, you will be prompted to enter values for each one.
    By default, your command is called Command. You can change its alias by selecting it and pressing F2.

  • HT4060 Ipad 3 Fresh out of the box today, simply does not charge. Thoughts? (other than take it back to apple)

    Ipad 3 Fresh out of the box today, simply does not charge. Thoughts? (other than take it back to apple)

    If it is just out of the box, I would take it straight back to Apple and ask them to fix it.
    Why should you have to mess around with fixing a device?
    Allan

  • Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201).

    "Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201)"
    This error keeps cropping up now and again on most of our domain controllers (OS-2008 AND 2008R2)...Usually a restart fixes the issue however the issue repeats and security logs don't generate.
    Any advice on how to fix this issue permanently would be greatly appreciated.

    Please see this: https://social.technet.microsoft.com/Forums/windows/en-US/95987ca3-a1b2-4da6-95b7-d825d06cdac7/error-code-4201-the-instance-name-passed-was-not-recognized-as-valid-by-a-wmi-data-provider?forum=w7itprosecurity
    You can also try rebuilding the WMI repository: http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • HT1657 Downloaded 2 rentals and they won't play. They ask if I would like to begin the rental period, I say yes and it takes me to the dvd screen, but does not play. I hit play, fast forward, skip chapters and nothing.

    Downloaded 2 rentals and they won't play. They ask if I would like to begin the rental period, I say yes and it takes me to the dvd screen, but does not play. I hit play, fast forward, skip chapters and nothing.

    I'd report the problem to the iTunes Store. 
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • HT4236 Ever since I got the iTunes upgrade, iPhoto does not open and take the photos from my iPhone.  I have the older version of iPhoto, so Photo Stream does not work.  Can you please help?

    Ever since I got the iTunes upgrade, iPhoto does not open and get pictures from my iPhone.  How do I fix this?  Thanks.

    You can stop new photos being automatically added to Photostream in iPhoto from iPhoto preferences > Photostream.

  • What action dom i take for this error message "C:\DOCUME~1\user\LOCALS~1\Temp\physics.pdf could not be opened, because the associated helper application does not exist. Change the association in your preferences"?

    I get this message when I try to download a pdf file from a website.
    "C:\DOCUME~1\user\LOCALS~1\Temp\physics.pdf could not be opened, because the associated helper application does not exist. Change the association in your preferences."
    This is a new error. There used to be no problem.

    Do you have any setting for MP3 in Tools > Options > Applications ?
    You usually need the QuickTime plugin to play MP3 files on Windows because that is the only plugin that supports that file extension if there is no MIME type specified to play the file with another plugin like Windows Media Player or RealPlayer.

  • Argument error; the number of columns does not equal the number of parameters.

    I am using the Database Toolkit (Enterprise Connectivity) to check for a network connection and then send information from a local database to a SQL database on the network if needed.  In development of the code I continue to receive Error 1 and the Possible Reason(s) is "Argument error; the number of columns does not equal the number of parameters."  I am using the DBToolsSelectData.VI to retrieve data from the local MDB file and the DBToolsInsertData.VI to write it to the SQL file.  The collection of the data from the MDB file is successful and the connection and validation of the table and columns in the SQL file is also successful.  The error occurs when the Insert VI tries to build the query.  The number of columns being written (attempted) does match the number of columns in the data, they are both 16 string arrays.

    Ok, it's taken a bit, and I have a solution! It took a while to figure out what the DCT is doing, but it seems to be working now.
    The reason for the original error is that you were passing into the insert subVI an array of variants - which the input to the VI coerced into a single variant. You were getting the error because as far as the insert VI was concerned you were only passing it a single data value. The way to get around that was to create a cluster with one element for each column value, convert the cluster to a variant and pass the result to the insert VI - see attachment.
    In terms of the other modifications, I made a copy of the endurance.mdb file, emptied it and used it as the destination for the copy.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    NetworkCheck.vi ‏49 KB

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

  • REP-52005: The specified key userlogin does not exist in the key map file.

    Hi,
    I am using oracle 11g report server. I am getting the error of REP-52005: The specified key userlogin does not exist in the key map file.
    I updated the user_string in cgicmd.dat file. My cgicmd.dat file content is below
    ; OracleAS Reports Services                       ;
    ; CGICMD.DAT                                      ;
    ; Example CGICMD.DAT Mapping file                 ;
    ; Syntax: 
    ;      KEY : VALUE
    ; Where:
    ; KEY - the first argument of the rwservlet URL request (case sensitive).
    ; VALUE - command line parameters and/or special parameters.
    ; Keys can be referenced in the following ways:
    ;    1. Parameter on command line to the reports servlet
    ;          e.g. http://machine/servlet/rwservlet?KEY
    ;    2. Parameter on command line to a reports jsp
    ;          e.g. http://machine/mydir/myreport.jsp?KEY
    ;    3. Within a reports jsp - in the rw:report custom tag
    ;          e.g. <rw:report parameters="KEY">
    ; In addition to the Reports Server command line parameters, VALUE can include special parameters
    ; represented as "%X", where X identifies the parameter. Currently recognized special
    ; parameters:
    ;  %0 - %9 - 0..9 arguments from original rwservlet URL request. Note that %0 refers to the key itself.
    ;  %* - entire contents (all arguments) of original rwservlet URL request.
    ;  %D - request users to input database userid everytime they run the report.
    ;  %P - request for report parameter form in HTML format. It generates the PARAMFORM=HTML
    ;       construction on the first submission of the URL and PARAMFORM=NO upon parameter form submission.
    ; CGICMD.DAT Usage Notes
    ;   1. Multiple keys in this file MUST be separated by an EXTRA empty line.
    ;   2. Extra spaces are ignored. Multi-line entries allowed.
    ;   3. Lines starting with ";" character are treated as a comments.
    ;   4. Comments within a key or key value are NOT allowed.
    ;   5. NLS language support is provided and can be used (encoding should match the one
    ;      used in HTML request - no language conversion of any kind is attempted.
    ;   6. For %P special parameter, HTML format is by default mapped to the HTMLTABLE format in this release.
    ;      The HTML format in the future may be mapped to the HTMLCSS format.
    ;;;;;;;;;;;; Example Key Entries
    ;  Example 1:  Run a simple breakb report and output to HTML
    orqa: report=breakb.rdf destype=cache desformat=html server=repserver
    ; Example 2: prompt for userid the first time, then use database userid stored in the cookie subsequently.
    report_defaultid: report=breakb.rdf destype=cache desformat=html server=repserver
    ; Example 3: use %D to require user authentication every time
    report_secure: report=breakb.rdf destype=cache desformat=html server=repserver1 %D
    ; Example 4:  Take all arguments from URL and send it to the reports server
    run: %*
    ; Example 5:  Run breakb report with HTML parameter form.
    breakbparam : report=breakb.rdf destype=cache desformat=html server=repserver userid=scott/tiger@mydb %P
    ; Example 6: take all URL arguments, and also generate a HTML parameter form  
    runp: %* %P
    ; Example 7: Run an Express Report. Replace <MYHOST> with the name of the machine running the Express server. The
    ; builder on-line help explains the rest of the parameters (the /sl, st etc. etc.)
    express: report=my_expr_rep express_server="server=ncacn_ip_tcp:<MYHOST>/sl=1/st=1/ct=0/sv=1/" desformat=htmlcss userid=scott/tiger@mydb destype=cache server=repserver
    ;;;;;;;;;;;; Keys for Reports Demos
    ; Using default/in-process server.
    ; JSPs
    ;charthyperlink_ias: userid="scott/tiger@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=%DBHOSTNAME%)(PORT=%DBPORT%))(CONNECT_DATA=(SID=%DBSID%)))" %*
    ;charthyperlink_ids: userid=scott/tiger@ %*
    ;barcodeweb:         userid=oe
    ;parmformjsp:        userid=oe
    ;tutorial:           userid=oe
    ; Paper Reports
    ;xmldata:            userid=oe report=inventory_report.rdf destype=cache p_filelocation="http://%HOSTNAME%:%OC4JPORT%/reports/examples/xml_pds/scripts/" desformat=pdf
    ;barcodepaper:       userid=oe report=shippingmanifest.rdf destype=cache desformat=pdf
    ;distributionpaper:  userid=oe report=inventory_report_dist.rdf distribute=yes destination=exampledistribution.xml
    ;pdfenhancements:    userid=oe report=utf8test.rdf destype=cache desformat=pdf
    userlogin : userid=SYMFINBTOTEST@fin10r21 %*
    As in the above file i have added a key as userlogin at the end of the file. But the reports server does not take the key that i have given. I followed the same steps provided in oracle docs. I used "showmap" to check the cgicmd file that is used by the reports
    http://aspirevm8-17.aspiresys.com:9002/reports/rwservlet/showmap?server=bluQubeReportsAtLocalEnv&destype&userid=SYMFINBT…
    It shows me the content of the cgicmd.dat file and it also shows my updations. But in the "Parsed Map File Entries" it does not show my key value pair
    Parsed Map File Entries
    Return to Top
    Key Name
    Value
    runp
    %* %P
    breakbparam
    report=breakb.rdf destype=cache desformat=html server=repserver userid=scott@mydb %P
    report_defaultid
    report=breakb.rdf destype=cache desformat=html server=repserver
    run
    report_secure
    report=breakb.rdf destype=cache desformat=html server=repserver %D
    express
    report=my_expr_rep express_server="server=ncacn_ip_tcp:<MYHOST>/sl=1/st=1/ct=0/sv=1/" desformat=htmlcss userid=scott@mydb destype=cache server=repserver
    orqa
    report=breakb.rdf destype=cache desformat=html server=repserver
    Please help me to to make the key being populated here and being used by the reports server.
    Thanks,
    Priya

    uncomment #KEYPMAPFILE=CGICMD.DAT. remove the #
    then for development set
    reloadkeymap=yes (same file - rwservlet.properties).
    Now it should reload everytime. (otherwise for every change u need to restart oc4j_bi_forms)
    (For * production* may be you want to set reloadkeymap=no once all testing is done)
    see cgicmd.dat for many examples of using keymap file
    [ All Docs for all versions ]
    http://otn.oracle.com/documentation/reports.html
    [ Publishing reports to web - 10G ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [ Building reports - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [ Forms Reports Integration whitepaper 9i/10g ]
    9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    http://www.oracle.com/technology/products/forms/techlisting10g.html
    ---------------------------------------------------------------------------------

  • ORA-00942: the table or view does not exist

    Hello!!!!
    I have tree simple mappings each one with only one dimention and sometimes external or normal tables. One of them is ok but I can´t deploy the others.
    In Controle Center I have this messege: the table or view does not exist.
    I genereted both queries and run in SQL navigator with the same message.
    I realized that I can set the schema properties for external tables but I couldn´t do the same for Dimension (or I don´t know where I can do this).
    I believe that I have to set this propertie for dimension to have my mapping running ok, but I realized that the only one mapping that is ok does not have this propertie set.
    Where is the problem?!!?!?!?
    I validated these mapping and they have warnnings about column length, no errors.
    In the previous OWB version I used to set this propertie, but in 10.2 I don´t know if is realy necessary.

    Try to open the package body with a tool like TOAD and try to compile it. When you use TOAD the process stops where the error is. Then you know which table or view doesn't exist for the OWB. If the table or view does exist then it is almost certainly a missing privilege that prevents you from succesfully deploying your mapping. If the table or view does not exist then you've got to deploy the underlying (bound) table.
    Regards,
    Jörg

  • MBAM - SCCM 2012 Reports - Error: the 'MBAM Policy' view does not exist

    Hi
    I have installed MBAM with SCCM 2012 integration. A single server install with SQL server 2012. Mostly it has gone smoothly and laptops are being encrypted and pins stored and recoverable. The problem I have is reports are not showing. I get the following
    error message.
    "Error: the 'MBAM Policy' view does not exist"
    Any ideas why this is? I get the same error message with all 4 reports.

    Hi Slycy,
    There is another thread that seems to be a similar issue
    here that may help you. The last post in particular has a number of steps that you can use to speed up creation of the views:
    Just for future reference, there are quite a few things that have to happen before the view is created. This is merely how CM works.
    Make MBAM MOF changes
    Select TPM spec version in hardware inventory
    Install MBAM CM Integration feature
    Perform a machine policy refresh cycle on a client to get the MOF changes that need to be inventoried
    Perform hardware inventory
    Update MBAM Supported Computers collection membership.  The machine should appear if it meets the criteria
    Run another machine policy refresh on the client so that the Configuration Baseline will come down
    Make sure that the MBAM agent has woken up once
    Evaluate the Configuration Baseline
    The MBAM views should be created now.
    You don't have to do this for every machine, but this is the process to speed it up.  If you let CM do it, it could take over a week before the view is created the first time, depending on when Hardware inventory runs, etc.
    Hope this helps,
    David

  • Errors in the high-level relational engine. The data source view does not contain a definition for the table or view. The Source property may not have been set.

    Hi All,
    I have a cube in which i'm using the TIME DIM that i created in the warehouse. But now i wanted a new measure in the cube which is Average over time and when i wanted to created the new measure i got a message that no time dim was defined, so i created a
    new time dimension in the SSAS using wizard. But when i tried to process the new time dimension i'm getting the follwoing error message
    "Errors in the high-level relational engine. The data source view does not contain a definition for "SSASTIMEDIM" the table or view. The Source property may not have been set."
    Can anyone please tell me why i cannot create a new measure average over the time using my time dimension? Also what am i doing wrong with the SSASTIMEDIM, that i'm getting the error.
    Thanks

    Hi PMunshi,
    According to your description, you get the above error when processing the time dimension. Right?
    In this scenario, since you have updated the DSV, it should have no problem on the table existence. One possibility is that table has been specified for tracking in the notifications for proactive caching, but isn't available any more for some
    reason. Please change the setting in Proactive Caching into "MOLAP".
    Reference:
    How To Implement Proactive Caching in SQL Server Analysis Services SSAS
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • The SYSVAL table entry for the database version (16) does not match the required version

    We upgraded from Tidal Enterprise Scheduler (TES) 5.31 to 6.1 on fresh Windows x64 2008 R2 servers.  I did a fresh install but our DBA restored a copy of our database from pre-prod which was at 5.31.  I get the error below.  Note, SQL went from 2005 to 2012 during this upgrade.  Do I need to change a value in this table to reflect the SQL change?
    [04/29 12:47:14:198]:TIDAL Enterprise Scheduler: version 6.1.0.133
    [04/29 12:47:14:198]:Java version: 1.8.0
    [04/29 12:47:14:198]:Java Virtual Machine version: 25.0-b70
    [04/29 12:47:14:198]:Start Time : 04/29/14 12:47:14:198
    [04/29 12:47:14:198]:----------------------------------------------------------------------------
    [04/29 12:47:14:198]:Database URL :jdbc:sqlserver://SQL2012-Host:1433;responseBuffering=adaptive
    [04/29 12:47:14:198]:Database Driver :com.microsoft.sqlserver.jdbc.SQLServerDriver
    [04/29 12:47:14:198]:Maximum number of log files = 100
    [04/29 12:47:14:198]:Added a LogFile called 'RegularFile'
    [04/29 12:47:14:198]:LogManager: setting default log
    [04/29 12:47:14:214]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:14:495]:MessageBroker: Instantiated TcpTransportServer (URI = tcp://0.0.0.0:6215)
    [04/29 12:47:16:975]:Retrieved a LogFile called 'RegularFile'
    [04/29 12:47:17:272]:The SYSVAL table entry for the database version (16) does not match the required version (23). Shutting down.
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:
    [04/29 12:47:20:282]:Shutting down the application

    I had this error last night while applying a patch to 6.0. However in my case the version was 21 versus a required version of 23.
    As far as i know 6.1 is not compatible with the 5 db schema, so you will need an update / migration plan for the db also.

  • The affinity mask specified does not match the CPU mask on this system.

    We are having a problem with one of our SQL servers, and in comparing it to the backup server which is working fine, I noticed some differences. I attempted to correct the differences, but no luck.
    The dell server has 4 dual-core processors and at one point hyper-threading was enabled. One of our DBAs recommended that it be turned off. We didn't have any major problems until recently and it seems that getting this setting right is the lynchpin. Any suggestions?
    John
    EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE
    GO
    EXEC sys.sp_configure N'affinity mask', N'0'
    GO
    EXEC sys.sp_configure N'affinity I/O mask', N'0'
    GO
    RECONFIGURE WITH OVERRIDE
    GO
    EXEC sys.sp_configure N'show advanced options', N'0' RECONFIGURE WITH OVERRIDE
    GO
    Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
    Msg 5832, Level 16, State 1, Line 1
    The affinity mask specified does not match the CPU mask on this system.
    Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
    The configuration option 'affinity mask' does not exist, or it may be an advanced option.
    Msg 15123, Level 16, State 1, Procedure sp_configure, Line 51
    The configuration option 'affinity I/O mask' does not exist, or it may be an advanced option.
    Msg 5832, Level 16, State 1, Line 1
    The affinity mask specified does not match the CPU mask on this system.
    Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
    Msg 5832, Level 16, State 1, Line 1
    The affinity mask specified does not match the CPU mask on this system.

    I had P2V'd a SQL 2008 server and was having this issue.  I tried everything I could find to get the affinity corrected; setting the Lock Pages security policy, trying the affinity commands in Single User mode, etc.
    Then wrighbar's response got me headed in the right direction, but I ran into an issue where the previous engineer had set the Physical SQL server to have affinity on procs 9-16 of a 16 proc box, I could only set up to 8 procs on my VM.  After searching
    for a while for registry keys or config files that might be editable to change the affinity I couldn't find where SQL got that information from.  Finally it hit me, maybe it's stored in the master or msdb datatbases.  
    SOLUTION: I was able to go back to the original Physical machine, change the affinity settings there, Stop SQL on both boxes, then copied MASTER, MODEL, MSDB, TEMPDB from the original Physical machine to the new virtual machine.  All services started
    OK on the virtual machine now and affinity was set the way I needed it.

Maybe you are looking for

  • Verizon doesn't care if you pay for Priority Overnight.

    I preordered the Note 3, and picked priority overnight shipping, it cost me $14.99. First of all, when I preordered my S4 I got overnight as well, I ended up receiving the phone earlier than most customers, and I got it before I go into work. That be

  • Problem in app

    hi guru's There are invoices overdue under vendor xyz and abc but its has not picked up in payment proposal what would be the reason?? value points assigned thanks in advance regards sunitha

  • Console in WinXP don't work

    Hi folks, I updated my OS to XP, my weblogic console does't work now. In the left side of the console there should be a tree like control, but now nothing but a "x" on the left side. Can somebody please tell me how to solve this promblem? I did downl

  • Queries on AIA services implementation

    Hi, I am new to OFM and AIA. I am trying to create AIA sample application and have the following queries. 1. can we develop a sample AIA appliacation using Jdeveloper 10.1.3.4? 2. Are AIA services (ESB, ABCS, EBF) just needs to be deployed/registered

  • Extract files from a zip file

    Here is my scenario: I have a zip file, DataStore.zip, which as two layers of zip files.                                      DataStore.zip                                            |            01.zip       02.zip         03.zip      04.zip etc