Implementing A Group BY outside the database

Guys,
I have out today that I need to provide an implementation which allows dynamic Group by's to be proceessed in Java. I have looked at Hibernate but it does not support what I have in mind.
Ideally I have a result set of 1000 rows (say). I need to be able to add group by as well as aggregation to this result set. This can not be done at the database level.
Any ideas on how to approach - perhaps a database framwork which allows results to be processed.
Thanks

DuffyMo,
I have been visiting this site for well over 2 years and it is good to see you still particpating.
Thank you.
Ideally Hiberante would be great but I could not get anything concrete to work - The reason I ask to do this way - is becuase we are using a Microsoft stored procedure which has all the data in a non aggregarted realtion (table).
My application needs to display this data but there are rules like Grouping which need to be applied.
I think it is very difficuklt to write a group by in Java - Do you have any knowledge of wether Hibernate can process a stored proecdrue, possible many times (since it might be a group by on multiple columns)
Thanks

Similar Messages

  • Can Discoverer have link to display documents stored outside the database?

    I posted a message some time ago called "Possible for Discoverer to display BLOB type documents stored in database?" and got great answer.
    Now our customers are asking if it is possible, from Discoverer, to link somehow to a file stored outside the database on the Unix file system and get their computer to display it? Can anyone tell me if this is possible please?
    The only thing I've seen in the documentation that may be related is in Oracle Business Intelligence Discoverer Configuration Guide, section 10.6 List of Discoverer user preferences. It says there that Discoverer preference ProtocolList can be set so that Discoverer hyperlinks can be set to use protocols such as telnet, but the default is HTTP, HTTPS, and FTP.
    THank you in advance if you can help.
    Regards,
    Julie.

    Hi Rod,
    I have tried the second method: "create a Oracle directory pointing to the Unix directory containing the files". I have had success with it, but I'd be grateful if you could advise me if you would have done this the same way as described below:
    I put two Word docs and two text docs called clob_test1.txt, clob_test2.txt, blob_test1.doc, blob_test2 in the Unix directory corresponding to an Oracle directory called 'EIF'. I thought an extrenal table was needed so that Discoverer would have an object to write a queruy against. So I created a file called lob_test_data.txt with the following contents:
    1,01-JAN-2006,text/plain,clob_test1.txt
    2,02-JAN-2006,text/plain,clob_test2.txt
    3,01-JAN-2006,application/msword,blob_test1.doc
    4,02-JAN-2006,application/msword,blob_test2.
    THen I created an external table using the following DDL:
    CREATE TABLE jum_temp_lob_tab (
    file_id NUMBER(10),
    date_content DATE,
    mime_type VARCHAR2(100),
    blob_content BLOB
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY EIF
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    BADFILE EIF:'lob_tab_%a_%p.bad'
    LOGFILE EIF:'lob_tab_%a_%p.log'
    FIELDS TERMINATED BY ','
    MISSING FIELD VALUES ARE NULL
    file_id CHAR(10),
    date_content CHAR(11) DATE_FORMAT DATE MASK "DD-MON-YYYY",
    mime_type CHAR(100),
    blob_filename CHAR(100)
    COLUMN TRANSFORMS (blob_content FROM LOBFILE (blob_filename) FROM (EIF) BLOB)
    LOCATION ('lob_test_data.txt')
    PARALLEL 2
    REJECT LIMIT UNLIMITED
    then created a Discoverer End User Layer folder against this external table, and used exactly the same technique as we did for downloading the BLOB from the database table (creating a new folder item containing a URL calling a database procedure which calls the Oracle code to download the doc). THis worked, but sometimes my PC didn't seem to know that the Word docs were Word docs and it needed to launch Word. Other times it did manage to do this OK. It always displayed the two .txt files as HTML docs.
    Just wondered if you'd be good enough to critique this approach.
    THank you, Julie.

  • Oracle apex outside the database

    What risks or impacts do you think if I plan to implement APEX outside the production database. Basically having a separate database all together and apex running into that seperate database. But a lot of source data is in the production database. So looking into this situation, what are the risks and concerns you might think of?
    My team is not comfortable implementing apex inside the production database.

    Hi
    >
    they never install anything on production databases, apex installs a lot of its own objects and they want to keep production bare bones.
    >
    I can see no real justoification to back this up. Ideally APEX should be running within the database where the data that it is accessing it resides. The objects that APEX creates are contained within its own schema and it doesn't take up much space at all.
    By separating the APEX install to a different database, you create a whole new level of configuration headaches and things to go wrong.
    >
    my concern is about vendor level support and other issues
    >
    APEX is free as long as the database is sufficiently licensed - you don't need anything additional to have APEX running on a correctly licensed Oracle database.
    It appears that 'they' have decided on a blanket rule through fear of breaking something (probably due to something having gone wrong once in the past). This is not the correct way to work. If they took the time to understand the technology that they are administering, they would see that an APEX installation should have pretty much zero impact on the production database.
    We successfully run 3 APEX instances on the three production systems, each where the relevant data resides - 2 OLTP databases and a Data Warehouse.
    Again, if they can come up with something specific rather than a sweeping statement and a suggestion to do it another way (using db links) with no reasoning or justification - it would be easier to allay their fears.
    Cheers
    Ben

  • Decrypting data from Oracle 8.1.7.4 outside the database

    I need to decrypt some data that is DES encrypted using Oracle 8i (8.1.7.4) and the DBMS Obfuscation Toolkit, outside of the database where it was encrypted, and I hope someone here might have some hints on how I can achieve that.
    I have currently experimented with both encrypting and decrypting the same data using the obfuscation toolbit, Perl (Crypt::CBC / Crypt::EBC) and PHP (mcrypt), getting pretty much identical results from the latter. They do, however, not match what I see using the obfuscation toolkit, so the must be something here I don't quite understand.
    From what I have gathered, the obfuscation toolkit encrypts the data using
    * CBC
    * Initialization vector consisting of 8 chr(0)'s
    * Padding using spaces to achieve an encryption string of a multiple of 8 bytes.
    Below I'm including 1) The PL/SQL code which is used to encrypt the data (des_encrypt_hex()), 2) the PHP code I used to test encryption. When trying to encode the same string using the obfuscation toolkit and PHP, I end up with completely different HEX values. I have also tried several variations of both this PHP code and the Perl code, using various other kinds of padding and chaining modes, but no luck.
    If anyone could give me some pointers as to what I am doing wrong here, I'd be really grateful.
    1)
    ================================================================================
    FUNCTION des_encrypt
    ( string_in in VARCHAR2) RETURN VARCHAR2
    IS
    l_data varchar2(2000);
    key_check_flag number;
    l_encrypted_string varchar2(2000);
    BEGIN
    -- the key and the input data must have a length
    -- divisible by eight (the key must be exactly 8 bytes long).
    l_data := RPAD(string_in,(TRUNC(LENGTH(string_in)/8)+1)*8,CHR(32));
    key_check_flag := mod(length(des_key_string),8);
    IF key_check_flag != 0 then
    RAISE_APPLICATION_ERROR(-20199,'Key should be 8 char long');
    END IF;
    -- Encrypt the input string
    DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT
    ( input_string => l_data,
    key_string => des_key_string,
    encrypted_string => l_encrypted_string);
    RETURN l_encrypted_string;
    END;
    FUNCTION des_encrypt_hex
    ( string_in in VARCHAR2) RETURN VARCHAR2
    IS
    l_encrypted_string varchar2(2000);
    BEGIN
    l_encrypted_string := des_encrypt(string_in);
    l_encrypted_string := rawtohex(UTL_RAW.CAST_TO_RAW(l_encrypted_string));
    RETURN l_encrypted_string;
    END;
    ===============================================================================
    And the way I call it:
    DECLARE
         RETURN_VALUE VARCHAR2(2000) := '-';
         STRING_IN VARCHAR2(2000) := '12345678901';
    BEGIN
         RETURN_VALUE := KATALOG.PKG_PRKCRYPTO.DES_ENCRYPT_HEX(STRING_IN);
         DBMS_OUTPUT.PUT('RETURN_VALUE: ');
         DBMS_OUTPUT.PUT_LINE(RETURN_VALUE);
         DBMS_OUTPUT.PUT('STRING_IN: ');
         DBMS_OUTPUT.PUT_LINE(STRING_IN);
    END;
    GO
    ===============================================================================
    2)
    <?php
    $space = chr(32);
    $null = chr(0);
    $key = "xxxxxxxx";
    $input = "12345678901$space$space$space$space$space";
    $iv = "$null$null$null$null$null$null$null$null";
    print bin2hex(mcrypt_cbc(MCRYPT_DES, $key, $input, MCRYPT_ENCRYPT, $iv));
    ?>

    I might have been unclear in my initial post, but I do have the DES encryption key used on the Oracle side. If you got that part, then my question would be: Is the Oracle 8.1.7.4 DES encryption incompatible with every other DES encryption implementation out there?

  • Reference images outside the database

    Hi,
    I tried to return html content from a pl/sql procedure but the images referenced were missing. Attached please see the part of the coding in the pl/sql procedure. Everything worked except the images. When I specified something like <img src="" />, the image would come up. Whenever I included an inline (or external) stylesheet in the pl/sql procedure, the images were not picked up.
    Thanks.
    Andy
    Here is the code:
    CREATE OR REPLACE PROCEDURE test_email AS
    ret_code integer := -1;
    begin
    -- Send email
    select db_mail.send_mail('[email protected]',
    'test email',
    '<html>
    <head>
    <title></title>
    <style type="text/css">
    div#pullquote
         background: #fff url(<reference image in another server>) no-repeat;
    div#pullquote p
         padding: 0 20px;     
    div#pullquote h2
    margin: 0;
         padding: 20px 20px 0 20px;
         background: url(<reference image in another server>) no-repeat 100% 0;
    div#pullquote p.furtherinfo
         text-align: right;
    </style>
    </head>
    <body>
    <!-- start content -->
    <img src="http://<server name>:7778/i/themes/custom/hrims_logo.gif" alt="" class="left" />
         <div id="pullquote">
    <h2></h2>
         <h3>this is a test</h3>
    </div>
    <!-- end content -->
    </body></html>',
    'HRiMS',
    'text/html')
    INTO ret_code
    FROM dual;
    end test_email;

    CREATE OR REPLACE PROCEDURE test_email AS
      ret_code integer := -1;
    begin
      -- Send email
      select db_mail.send_mail('[email protected]',
               'test email',
               '<html>
               <head>
               <title></title>
               <style type="text/css">
    div#pullquote { background: #fff url(<reference image in another server>) no-repeat; }
    div#pullquote p { padding: 0 20px; }
    div#pullquote h2 { margin: 0; padding: 20px 20px 0 20px; background: url(<reference image in another server>) no-repeat 100% 0; }
    div#pullquote p.furtherinfo { text-align: right; }
               </style>
               </head>
               <body>
               <!-- start email content --><div id="pullquote"><h2></h2>this is a test</div>
               <!-- end content -->
               </body></html>',
               'HRiMS',
               'text/html') INTO ret_code FROM dual; end test_email;The database version is 10.2.0.1.0.
    I'm trying to use PL/SQL to generate email content in HTML.
    Thanks.
    Andy

  • Storing attachments outside the database..??

    Hi All,
    We are working on R12.1.3 ,OEL 5.4.
    My client wants to store the Ebs attachments on to the local file system rather than the database...!!!!
    Is it possible to store the FND_LOB attachments to local disk...?
    Please guide me...!
    Thanks
    RB
    Edited by: R12DBA on Nov 14, 2010 7:47 AM

    I do not know of a way of doing so using base functionality. One way would be to use a custom table that is externally defined, but this would mean a lot of custom code being written and maintained.
    The space will be taken up regardless of where the files are stored - on the filesystem or the database. In addition, file stored on the filesystem are susceptible to possible virus attacks, while data in the database is not.
    HTH
    Srini

  • Fulltext search of binary files outside of database in SQL 2012/Server 2012

    This may be more of a Windows Server 2012 question but I'm not sure.
    I have a system that holds large amounts of binary files (pdf, doc, etc.).  The files themselves are held outside the database in a folder and a SQL table holds the metadata.  I used the Indexing Service available through Windows Server 2008 to
    create a catalog called "EFCATALOG" to index the contents of the external folder, then created a linked server called MYIDXS which allowed me to query that external indexing catalog from within SQL with a query like this:
    EXEC sp_addlinkedserver MYIDXS, 'Internal App', 'MSIDXS', 'EFCATALOG'
    SELECT * FROM MYDOCS
    LEFT JOIN OPENQUERY(MYIDXS,'SELECT FILENAME FROM SCOPE() WHERE CONTAINS (''test'')') AS MYTBL
    ON MYDOC_FILE_NAME = MYTBL.[FILENAME]
    With Windows Server 2012, I'm missing the functionality to create the indexing service catalog.  I've added the Windows Search Service and see how I can configure folders for searching, but there is no naming functionality for this and I don't see how
    I can get the above query/structure to work in Windows Server 2012/SQL Server 2012 environment.  In fact, there isn't much at all online regarding the search service or the relationship back to the older versions in 2008 and before.
    Is there any way to continue this structure in 2012?  I would like to avoid recoding my application to work with a different structure.  I'm afraid that changing everything to work with the FILETABLE/FILESTREAM functionality added in SQL 2012
    will be necessary which is fine long term, but not convenient right now.
    Thanks in advance for any suggestions/help.

    Thank you Fanny Liu, based on your link the syntax has changed dramatically. I need to query SYSTEMINDEX now and the structure is very different.    It still seems that this new syntax requires creating a linked server of a different type. 
    I've tried:
    EXEC sp_addlinkedserver @server = 'TEST', @provider = 'Search.CollatorDSO.1', @datasrc = 'SYSTEMINDEX', @srvproduct = '', @provstr='Application=Windows'
    SELECT FileName FROM OPENQUERY("TEST", 'SELECT Filename FROM SYSTEMINDEX')
    Msg 7302, Level 16, State 1, Line 1
    Cannot create an instance of OLE DB provider "Search.CollatorDSO.1" for linked server "TEST".
    I've also tried using just "Search.CollatorDSO"as the provider since that is the provider name listed in management studio but basically the same error comes back.
    So I have 2 questions:
    1) Is it possible for my original process to work in Windows Server 2012 in any way (meaning that the OPENQUERY example I provided can remain relatively unchanged)?
    2) If change is necessary using this new SYSTEMINDEX and linked server combination, why is my linked server definition failing?  I'm using SQL Server 2012....Microsoft SQL Server 2012 - 11.0.2100.60 (X64)
     Feb 10 2012 19:39:15
     Copyright (c) Microsoft Corporation
     Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    Thank you.

  • Solving "COMMIT business rules" on the database server

    Headstart Oracle Designer related white paper
    "CDM RuleFrame Overview: 6 Reasons to get Framed"
    (at //otn.oracle.com/products/headstart/content.html) says:
    "For a number of business rules it is not possible to implement these in the server
    using traditional check constraints and database triggers. Below you can find two examples:
    Example rule 1: An Order must have at least one Order Line ..."
    But, one method exists that allows solving "COMMIT rules" completely on the database level.
    That method consists of the possibility of delaying the checking of the declarative constraints (NOT NULL, Primary Key, Unique Key, Foreign Key, Check Constraints) until the commit
    (that method was introduced first in the version 8.0.).
    E.g. we add the field "num_emps" to the DEPT table, which always has the value of the number
    of the belonging EMP rows and add DEFERRED CK which uses the values from that field:
    ALTER TABLE dept ADD num_emps NUMBER DEFAULT 0 NOT NULL
    UPDATE dept
    SET num_emps = (SELECT COUNT (*) FROM emp WHERE emp.deptno = dept.deptno)
    DELETE dept WHERE num_emps = 0
    ALTER TABLE dept ADD CONSTRAINT dept_num_emps_ck CHECK (num_emps > 0) INITIALLY DEFERRED
    Triggers that insure the solving of the server side "COMMIT rules" are fairly simple.
    We need a packed variable that is set and reset in the EMP triggers and those value
    is read in the bur_dept trigger (of course, we could have place the variable in the package
    specification and change/read it directly, thus not needing the package body,
    but this is a "cleaner" way to do it):
    CREATE OR REPLACE PACKAGE pack IS
    PROCEDURE set_flag;
    PROCEDURE reset_flag;
    FUNCTION dml_from_emp RETURN BOOLEAN;
    END;
    CREATE OR REPLACE PACKAGE BODY pack IS
    m_dml_from_emp BOOLEAN := FALSE;
    PROCEDURE set_flag IS
    BEGIN
    m_dml_from_emp := TRUE;
    END;
    PROCEDURE reset_flag IS
    BEGIN
    m_dml_from_emp := FALSE;
    END;
    FUNCTION dml_from_emp RETURN BOOLEAN IS
    BEGIN
    RETURN m_dml_from_emp;
    END;
    END;
    CREATE OR REPLACE TRIGGER bir_dept
    BEFORE INSERT ON dept
    FOR EACH ROW
    BEGIN
    :NEW.num_emps := 0;
    END;
    CREATE OR REPLACE TRIGGER bur_dept
    BEFORE UPDATE ON dept
    FOR EACH ROW
    BEGIN
    IF :OLD.deptno <> :NEW.deptno THEN
    RAISE_APPLICATION_ERROR (-20001, 'Can''t change deptno in DEPT!');
    END IF;
    -- only EMP trigger can change "num_emps" column
    IF NOT pack.dml_from_emp THEN
    :NEW.num_emps := :OLD.num_emps;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER air_emp
    AFTER INSERT ON emp
    FOR EACH ROW
    BEGIN
    pack.set_flag;
    UPDATE dept
    SET num_emps = num_emps + 1
    WHERE deptno = :NEW.deptno;
    pack.reset_flag;
    END;
    CREATE OR REPLACE TRIGGER aur_emp
    AFTER UPDATE ON emp
    FOR EACH ROW
    BEGIN
    IF NVL (:OLD.deptno, 0) <> NVL (:NEW.deptno, 0) THEN
    pack.set_flag;
    UPDATE dept
    SET num_emps = num_emps - 1
    WHERE deptno = :OLD.deptno;
    UPDATE dept
    SET num_emps = num_emps + 1
    WHERE deptno = :NEW.deptno;
    pack.reset_flag;
    END IF;
    END;
    CREATE OR REPLACE TRIGGER adr_emp
    AFTER DELETE ON emp
    FOR EACH ROW
    BEGIN
    pack.set_flag;
    UPDATE dept
    SET num_emps = num_emps - 1
    WHERE deptno = :OLD.deptno;
    pack.reset_flag;
    END;
    If we insert a new DEPT without the belonging EMP, or delete all EMPs belonging to a certain DEPT, or move all EMPs of a certain DEPT, when the COMMIT is issued we get the following error:
    ORA-02091: transaction rolled back
    ORA-02290: check constraint (SCOTT.DEPT_NUM_EMPS_CK) violated
    Disvantage is that one "auxiliary" column is (mostly) needed for each "COMMIT rule".
    If we'd like to add another "COMMIT rule" to the DEPT table, like:
    "SUM (sal) FROM emp WHERE deptno = p_deptno must be <= p_max_dept_sal"
    we would have to add another column, like "dept_sal".
    CDM RuleFrame advantage is that it does not force us to add "auxiliary" columns.
    We must emphasize that in real life we would not write PL/SQL code directly in the database triggers, but in packages, nor would we directly use RAISE_APPLICATION_ERROR.
    It is written this way in this sample only for the code clarity purpose.
    Regards
    Zlatko Sirotic

    Zlatko,
    You are right, your method is a way to implement "COMMIT rules" completely on the database level.
    As you said yourself, disadvantage is that you need an extra column for each such rule,
    while with CDM RuleFrame this is not necessary.
    A few remarks:
    - By adding an auxiliary column (like NUM_EMPS in the DEPT table) for each "COMMIT rule",
    you effectively change the type of the rule from Dynamic (depending on the type of operation)
    to a combination of Change Event (for updating NUM_EMPS) and Static (deferred check constraint on NUM_EMPS).
    - Deferred database constraints have the following disadvantages:
    When something goes wrong within the transaction, then the complete transaction is rolled back, not just the piece that went
    wrong. Therefore, it becomes more important to use appropriate commit units.
    There is no report of the exact row responsible for the violation nor are further violations either by other rows or of other
    constraints reported.
    If you use Oracle Forms as a front end application, the errors raised from deferred constraints are not handled very well.
    - CDM discourages the use of check constraints. One of the reasons is, that when all tuple rules are placed in the CAPI,
    any violations can be reported at the end of the transaction level together with all other rule violations.
    A violated check constraint would abort the transaction right away, without the possibility of reporting back other rule violations.
    So I think your tip is a good alternative if for some reason you cannot use CDM RuleFrame,
    but you'd miss out on all the other advantages of RuleFrame that are mentioned in the paper!
    kind regards, Sandra

  • I have been interested in how lightroom uses the catalog so was poking around a backup of the catalog. I found it rather concerning that although the database (catalog) is pretty well designed, there is no referential integrity defined or enforced.

    I have been interested in how lightroom uses the catalog so was poking around a backup of the catalog.  I am a database administrator and I found it rather concerning that although the database (catalog) is pretty well designed, there is no referential integrity defined or enforced. This is non-standard practice and could well be the source of corrupt catalogs I have seen many people complain about. I would strongly recommend the developers modify the catalog and adopt best practices if they want to improve the stability of Lightroom and the catalog.

    I would imagine that data integrity is not enforced for performance reasons. In a closed environment like LR where the application has complete control over the data, enforcing data integrity may not be worth the performance hit. Often what is done in an environment like this is to have data integrity on in test environments which would expose data integrity bugs but where the impact of performance is low. In "production" it is then turned off to get as much performance as possible. I would say there are many more complaints about performance than corrupt catalogs. And corrupt catalogs are more likely due to interruptions in writing to the catalog (like crashes, backups or dropbox activity while LR is running, etc). Data integrity would not help in these cases as they are outside the databases control.

  • Xmldom.writetofile - writes it only in the server where the database is....

    Is there a workaround that i can create the xml file outside the database server?

    You can use java or whatever client technology tools you are using should support some sort of XML processing.

  • Problem with Opening the Database

    Dear All,
    I am learning myself Backup And Recovery.
    I messed up with Redo Log files and now the database is not opening.
    What actually I did is
    1) I got 2 redo log groups with I member file in each group.
    Group 1 (redo1) & Group 2(redo 2)
    2) Then I shutdown the database "Shutdown Normal"
    3) Then I removed the one redo log files. (redo 1) "rm redo1"
    4) Now I tried to open the database. It didnot opened as redo 1 is not available
    5) Now I Added one group 3 when the database is in mount mode (alter database add logfile group 3 ...)
    6) Now when I tried to drop the redo log file, I am getting the below error
    ORA-01623 log 1 is current log for instance orcl (thread 1) - cannot drop.
    7) So Now I am not able to open the database
    Can Anyone please help me out.
    Appreciate any help
    Thanks & Regards
    Madhu K

    Madhu,
    Can you try recreating the controlfile ? All it does is resets the redologs (reinitializes them). There wont be any dataloss. You can open the database using "alter database open resetlogs" after you recreate the controlfile.
    Have you looked into the backup and recovery case scenarios. They covered loss of redologs also.
    Since you are learning by yourself, i hope you are following Official Oracle guides. They are your bible when you practice things for the first time.
    http://www.oracle.com/pls/db102/portal.portal_db?selected=4 => Backup and Recovery Section => Backup and Recovery Basics and Backup and Recovery Advanced User's Guide
    -Srinivas

  • Sending Mail Notification From the database server

    Hi All,
    I want to send the mail notification to any email id from the database server.
    I used the in built Package UTL_SMTP(pp_to,pp_from,pp_subject,pp_hostname) but i didn't got the success. Actually i dont know how and what parameters has to pass to this package .
    It will great help if some body helps with the an example.
    Thanks in Advance

    917574 wrote:
    I want to send the mail notification to any email id from the database server.Oracle version?
    The easiest is to use UTL_MAIL - available from 10g onwards. If you're on 11g, you also need an ACL (Access Control List) entry to allow PL/SQL code to step outside the database and connect to an external server.
    UTL_MAIL uses UTL_SMTP. You can use UTL_SMTP directly, but then you need to understand the SMTP protocol and how to correctly construct Multipurpose Internet Mail Extensions (MIME) e-mail bodies. Not difficult - but something that many developers seem insistent to remain ignorant about.

  • Query to view the support group of a generated ticket in the Database, not the Data Warehouse

    Hi,
    I need a query to view the support group of a generated ticket, but the query must be useful in the only Database (I don't know what happened in the DW, could be a issue).
    Please help me,
    Greetings! 

    it's "possible", in the same way that low temperature fusion and space elevators are "possible". There's nothing conclusively ruling it out, but not something you want to attempt on your own under a time constraint. 
    The "Active" ServiceManager database is a 5th or 6th normal form dynamic software defined snowflake schema representitive object database. Updating the database directly is strictly unsupported, and
    Travis has discouraged people from even trying to read from it. a college of mine does service manager and operations manager databases at a 400+ level full time, and after 2+ years of doing it, he
    almost understands the operational database. it's WELL beyond me, and I do Service Manager basically full time. 
    That being said, if you are brave and only looking for some basic data, you might be able to tease some things out with the SQL management studio and a good grasp of SQL syntax.
     for a production environment, you're much better off fixing the DW. 

  • Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.

    Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.
    I have dropped and recreated a fact table to refresh the data as the table is having identity columns. So not able to directly insert data. After that cube is throwing above error.
    Please suggest.

    Hi Md,
    It hard to analyse the issue base on the limited information, Are there any error message on the log? Under C:\Program Files\Microsoft SQL Server\MSAS11.\OLAP\Log (this could be different for your server), there are 3 log files that are generated:
    msmdrrv.log
    FlightRecorderCurrent.trc
    FightRecorderBack.trc
    The msmdrrv.log simply points to the other two logs. There might be some detail information for this error. Please provide us the detail information about it, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Implementation of double-byte character support in the Database

    Hi experts,
    There is an oracle 10.2.0.5 standard edition database running on windows platform. The application team needs to add a column of the datatype double byte (chinese characters) to an existing table. By doing so, will we have to change the character set of the database ? Would implementing this cause any impact on the database ?
    Is it possible to change the existing single byte column to the double byte column in a table?
    Edited by: srp on Dec 18, 2010 2:21 PM

    I think you should post your request to Globalization Support forum Globalization Support with following details:
    what is the APIs used to write data ?
    what are the APIs used to read data ?
    what is the client OS ?
    what is the value of NLS_LANG environment variable in client environment
    Note that command line SQL*Plus under Windows does not display Unicode data: try to use instead SQL Developer.
    Example:
    1. run in SQL*Plus:
    SQL> desc t;
    Name                                      Null?    Type
    X                                                  NUMBER(38)
    Y                                                  NVARCHAR2(10)
    SQL> insert into t values(1, unistr('\8349'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t;
             X Y
             1 ■
    SQL> select dump(y, 1016)  from t;
    DUMP(Y,1016)
    Typ=1 Len=2 CharacterSet=AL16UTF16: 83,49Run in SQL Developer:
    select * from t
    X                      Y         
    1                      草       

Maybe you are looking for

  • Anyone else seeing these issues?

    Since upgrading to CS 5.5 several months ago about half of my company has been experiencing errors in InDesign specifically where files become corrupted for no reason, InDesign force closes, can't copy and paste in or out of InDesign, and a whole bun

  • S-video to imovie

    Is there any way for me to get my hi8 s-video movies onto imovie

  • Sync iphone to computer

    I have downloaded nike + running onto my iphine 4s.  it is not syncing my run info onto my computer. i believe it is meant to do this wirelessly but i have even tried connecting the 2 with the cable but it still doers not download my running info?

  • Invoice reference : partial and full payment

    Hi experts, i'm a newbie in FIAP but i need an suggest : So , i find that the field "Invoice Reference " in BSAK table is not filled for a residual payment when there is a partial payment and when there is a full payment. So , if i would determinate

  • Few questions from a new user

    Hi Guys I've had my 3gs 16GB for about a week now. I am absolutely loving it, but I have a few questions. I am completely new to apple products. I had never used itunes before I bought my phone. First question is about the battery. I know this has be