Oracle 10.1.0.4 OLAP: LOBs bloating

I've noticed that whenever I do a refresh on the cube measures from AWM, the LOB partitions segments always keep increasing i.e. it doesn't seem that the space gets reclaimed at any stage and I cannot see any command that would shrink unused parts of the LOB partitions. Is the only way to counter this dropping and recreating analytic workspaces?
Thanks in advance

This is the forum for the Oracle's SQL Developer (Not for general SQL/PLSQL questions). You should ask question like this in the PL/SQL forum

Similar Messages

  • Oracle 8i array DML operations with LOB objects

    Hi all,
    I have a question about Oracle 8i array DML operations with LOB objects, both CLOB and BLOB. With the following statement in mind:
    INSERT INTO TABLEX (COL1, COL2) VALUES (:1, :2)
    where COL1 is a NUMBER and COL2 is a BLOB, I want to use OCIs array DML functionality to insert multiple records with a single statement execution. I have allocated an array of LOB locators, initialized them with OCIDescriptorAlloc(), and bound them to COL2 where mode is set to OCI_DATA_AT_EXEC and dty (IN) is set to SQLT_BLOB. It is after this where I am getting confused.
    To send the LOB data, I have tried using the user-defined callback method, registering the callback function via OCIBindDynamic(). I initialize icbfps arguments as I would if I were dealing with RAW/LONG RAW data. When execution passes from the callback function, I encounter a memory exception within an Oracle dll. Where dvoid **indpp equals 0 and the object is of type RAW/LONG RAW, the function works fine. Is this not a valid methodology for CLOB/BLOB objects?
    Next, I tried performing piecewise INSERTs using OCIStmtGetPieceInfo() and OCIStmtSetPieceInfo(). When using this method, I use OCILobWrite() along with a user-defined callback designed for LOBs to send LOB data to the database. Here everything works fine until I exit the user-defined LOB write callback function where an OCI_INVALID_HANDLE error is encountered. I understand that both OCILobWrite() and OCIStmtExecute() return OCI_NEED_DATA. And it does seem to me that the two statements work separately rather than in conjunction with each other. So I rather doubt this is the proper methodology.
    As you can see, the correct method has evaded me. I have looked through the OCI LOB samples, but have not found any code that helps answer my question. Oracles OCI documentation has not been of much help either. So if anyone could offer some insight I would greatly appreciate it.
    Chris Simms
    [email protected]
    null

    Before 9i, you will have to first insert empty locators using EMPTY_CLOB() inlined in the SQL and using RETURNING clause to return the locator. Then use OCILobWrite to write to the locators in a streamed fashion.
    From 9i, you can actually bind a long buffer to each lob position without first inserting an empty locator, retrieving it and then writing to it.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by CSimms:
    Hi all,
    I have a question about Oracle 8i array DML operations with LOB objects, both CLOB and BLOB. With the following statement in mind:
    INSERT INTO TABLEX (COL1, COL2) VALUES (:1, :2)
    where COL1 is a NUMBER and COL2 is a BLOB, I want to use OCIs array DML functionality to insert multiple records with a single statement execution. I have allocated an array of LOB locators, initialized them with OCIDescriptorAlloc(), and bound them to COL2 where mode is set to OCI_DATA_AT_EXEC and dty (IN) is set to SQLT_BLOB. It is after this where I am getting confused.
    To send the LOB data, I have tried using the user-defined callback method, registering the callback function via OCIBindDynamic(). I initialize icbfps arguments as I would if I were dealing with RAW/LONG RAW data. When execution passes from the callback function, I encounter a memory exception within an Oracle dll. Where dvoid **indpp equals 0 and the object is of type RAW/LONG RAW, the function works fine. Is this not a valid methodology for CLOB/BLOB objects?
    Next, I tried performing piecewise INSERTs using OCIStmtGetPieceInfo() and OCIStmtSetPieceInfo(). When using this method, I use OCILobWrite() along with a user-defined callback designed for LOBs to send LOB data to the database. Here everything works fine until I exit the user-defined LOB write callback function where an OCI_INVALID_HANDLE error is encountered. I understand that both OCILobWrite() and OCIStmtExecute() return OCI_NEED_DATA. And it does seem to me that the two statements work separately rather than in conjunction with each other. So I rather doubt this is the proper methodology.
    As you can see, the correct method has evaded me. I have looked through the OCI LOB samples, but have not found any code that helps answer my question. Oracles OCI documentation has not been of much help either. So if anyone could offer some insight I would greatly appreciate it.
    Chris Simms
    [email protected]
    <HR></BLOCKQUOTE>
    null

  • Oracle 11g - Error ORA-22275: invalid LOB locator specified

    Getting error during oBlob.freeTemporary() as
    clearBlobValues() throws Exception
    oracle.sql.BLOB oBlob = oset.getBLOB(i);
    oBlob.freeTemporary();
    I googled this error and get some solution
    "Cause: There are several causes: (1) the LOB locator was never initialized; (2) the locator is for a BFILE and the routine expects a BLOB/CLOB/NCLOB locator; (3) the locator is for a BLOB/CLOB/NCLOB and the routine expects a BFILE locator; (4) trying to update the LOB in a trigger body -- LOBs in trigger bodies are read only; (5) the locator is for a BFILE/BLOB and the routine expects a CLOB/NCLOB locator; (6) the locator is for a CLOB/NCLOB and the routine expects a BFILE/BLOB locator;
    Action: For (1), initialize the LOB locator by selecting into the locator variable or by setting the LOB locator to empty. For (2),(3), (5) and (6)pass the correct type of locator into the routine. For (4), remove the trigger body code that updates the LOB value."
    but not sure how to go about this. Can anyone lends a helping hand?
    Thanx in advance
    Edited by: user13503846 on Sep 7, 2011 10:16 AM

    You should try to post a small but complete example that allows to reproduce the issue with:
    1. your 4 digits Oracle version (client and server)
    2. the language you are using.

  • Updated GLOBAL_OCM.ZIP posted to Oracle OLAP site on OTN

    There was a bug in the GLOBAL_MAIN.SQL script that is part of the
    GLOBAL_OCM.ZIP file found on the OLAP OTN web page:
    http://www.oracle.com/technology/products/bi/olap/doc_sample_schemas/globalschemawithocm.html
    This issue has been fixed. The problem was the GLOBAL_MAIN script did not grant select on the UNITS_HISTORY_FACT and the PRICE_AND_COST_HISTORY_FACT
    tables to GLOBAL_AW, so the BuildAWExample.java program could not successfully build the measures in the analytic workspace. These grants have now been added.

    I also get a CRC error when unzipping these same files.

  • How can I creat OLAP cube by using Oracle 10g

    i want to creat a complete Molap cube, but i find that i cannot do it in Oracle Database 10g,Analytic Workspace ...
    What are the systems needed in creating Cube? How to do that?

    Please refer to the OLAP Application Developer's Guide (10.1.0.4) found at:
    http://www.oracle.com/technology/products/bi/olap/olap.html
    By the way, the doc highlights Analytic Workspace Manager 10g for Oracle Database 10.1.0.4.0. The required RDBMS 10.1.0.4.0 patch set should be available any day now on MetaLink for Linux and Windows. Soon thereafter, the AWM 10g client will be posted as a stand-alone to OTN and MetaLink.

  • ORACLE OLAP metadata 10g vs 11g

    Good morning,
    When we connect to our database AWM 11g, it is possible to choose the type of cube (11g or 10g). What I infer is that the metadata will be type 10g or 11g, correct?
    What are the major differences in metadata for olap between the type 10g and 11g type?
    Thank you in advance,
    David

    Yes, correct.
    The main difference between the 10g and 11g metadata types is that in 10g, the metadata is stored inside the Analytic Workspace, whereras in 11g, the metadata is stored and registered in the RDBMS data dictionary.
    This data dictionary integration is required to support many of the new features relating to the SQL optimisations and, in particular, the cube based MV's.
    You can see a list of the main new features supported in 11g OLAP here:
    http://download.oracle.com/docs/cd/B28359_01/olap.111/b28124/whatsnew.htm#sthref6
    Stuart

  • Whitepaper/Info Budgeting/Planning/Writeback via Oracle OLAP DML

    Hi,
    does anyone know of any whitepaper, manual section, general information regarding writeback, planning, budgeting using Oracle OLAPs DML API? We would like to upgrade our proprietary DataAccess-Layer, which interfaces to Oracle OLAP via the DML-API, to allow writeback.
    As said the documentation for this topic seems to be scarce to none.
    Just to give an example: it is not possible to write back values to the base measures UNITS_CUBE_SALES/COST/UNITS of the UNITS_CUBE in global AW, since all of them are FORMULA objects. The underlying variable to which you can assign values is in 10g UNITS_CUBE_SALES_STORED, whereas in 11g you would limit the ALL_MEASURES_DIM object to the SALES measure and assign a value to a variable named UNITS_CUBE_STORED. Basically this is information I was fishing out of this forum, but didn't find documented in the Oracle manuals.
    Therefor I am wondering, if writeback via the Oracle OLAP DML API is something, which is officially not supported? Or maybe I just didn't look in the right places to find documentation.
    BTW: I am looking at this topic from an ISV point of view.
    Best regards
    Ralf
    Edited by: Ralf Steinstraesser on Aug 18, 2009 5:15 AM

    hello,
    i can only speak about 10 G
    There are 2 modes to attach an aw for writing data.
    http://download.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_x_arcsin011.htm#i1016126
    1)In rw mode
    Only one user can have an analytic workspace open in read/write at a time
    2)in multi mode
    A workspace that is attached in multiwriter mode can be accessed simultaneously by several sessions
    you find documentation for multi write
    http://download.oracle.com/docs/cd/B19306_01/olap.102/b14346/dml_appcats003.htm#CHDJFJHD
    hope this help you
    jean marc

  • I want to learn OLAP in Oracle

    Dear Gurus,
    I am new to OLAP, I want to learn OLAP concept as well as practical use in Oracle.
    Please provide me Links or tutorials related to that.
    Thanking in advance
    Sanjeev

    You can find high level tutorials and demos at http://www.oracle.com/technetwork/database/options/olap/index.html
    You can find more technical details at http://wiki.oracle.com/page/Oracle+OLAP+Option
    There is also a wiki site dedicated to Oracle OLAP at http://oracleolap.blogspot.com/
    And of course you shouldn't forget the Oracle Documentation itself, including the "OLAP User's Guide"

  • Oracle OLAP installation problem

    Hello,
    I want to test Oracle OLAP and have come to a problem while installing cube script
    I am following this document http://www.oracle.com/technetwork/database/options/olap/global-11g-readme-082667.html
    It seems as if some steps were missing in the manual, but strangely I did not manage to find anyone online having the same problem, so it must be me overseeing something.
    SQL> @global_11g_create_cubes
    This procedure creates the cubes for the sample GLOBAL schema.
    You should be logged on as a DBA to execute this procedure.
    Specify file system directory containing this installation program.
    Example:
    c:\download\Global_Schema_11g or /home/oracle/Global_Schema_11g
    Directory: /home/oracle/olap
    Specify a password for the GLOBAL user.
    Enter password:
    Connected.
    Begin installation
    ... deleting GLOBAL AW (if it exists)
          dbms_cube.import_xml(xmlCLOB);
    ERROR at line 68:
    ORA-06550: line 68, column 7:
    PLS-00201: identifier 'DBMS_CUBE.IMPORT_XML' must be declared
    ORA-06550: line 68, column 7:
    PL/SQL: Statement ignored
    Any ideas?

    Hi Srini,
    MOS Doc helped me to install OLAP and DBMS_CUBE Library is not a problem any more. Now I have following error, again without similar error/solution to be found using Google
    SQL> @global_11g_create_cubes.sql;
    This procedure creates the cubes for the sample GLOBAL schema.
    You should be logged on as a DBA to execute this procedure.
    Specify file system directory containing this installation program.
    Example:
    c:\download\Global_Schema_11g or /home/oracle/Global_Schema_11g
    Directory: /home/oracle/olap
    Specify a password for the GLOBAL user.
    Enter password:
    Connected.
    Begin installation
    ... deleting GLOBAL AW (if it exists)
    ... creating GLOBAL AW
      begin
    ERROR at line 1:
    ORA-37162: OLAP error
    ORA-33292: Insufficient permissions to access analytic workspace GLOBAL.GLOBAL
    using the specified access mode.
    XOQ-01600: OLAP DML error while executing DML "SYS.AWXML!R11_INITIALIZE_AW"
    ORA-06512: at "SYS.DBMS_CUBE", line 433
    ORA-06512: at "SYS.DBMS_CUBE", line 465
    ORA-06512: at "SYS.DBMS_CUBE", line 523
    ORA-06512: at "SYS.DBMS_CUBE", line 486
    ORA-06512: at "SYS.DBMS_CUBE", line 501
    ORA-06512: at "SYS.DBMS_CUBE", line 512
    ORA-06512: at line 2
    Lookin into the code of global_11g_create_cubes.sq it is this command where error happens:
    dbms_cube.import_xml('GLOBAL_INSTALL', 'GLOBAL_MV.XML');

  • Oracle 9i _ OLAP

    Hi,
    does Oracle 9i support OLAP...if it does is it regular install?//?
    I want to install OLAP Global sample schema http://www.oracle.com/technology/products/bi/olap/Readme_Global_Sample_Schema.html
    appreciate your response

    Thanks for the response OrionNet .That installation looks bit complicated for me.....
    I came across http://download.oracle.com/docs/html/B10924_01/toc.htm
    Does Installing these 3 components get me OLAP in 9i ???
    Oracle9i Database Release 2 (9.2.0.1.0) for Windows
    Oracle Universal Installer release 2.2.0.18.0 for Windows
    Oracle9i Database Release 2 (9.2.0.3.0) Patch Set for Windows
    Appreciate your response.

  • Oracle OLAP:Same member values across dimensions

    We had an enquiry from a client which mentions:
    Per Essbase the same dimension member value cannot exist across multiple dimensions. e.g. if we have a account dimension with member 1001 , it is not possible to have product dimension with same member value 1001. This is essentially because Essbase implements it like a shared member. Apparently Essbase Excel-addin will not know what dimension to search for if both have same values.
    As per our understanding there is no such limitation in Oracle OLAP both during cube build or querying via Excel Add-in. i.e we can have account dimension with member 1001 and same member value can exist in a product dimension. Please advise and if anybody has any reference to any documentation in this regard please let us know.

    Hi there,
    You are correct - there is no such limitation in Oracle OLAP.
    A dimension value must be unique in any given dimension but can be repeated in other dimensions.
    I do not have any documentation but this is really easy to prove using the OLAP worksheet in AWM, eg:
    aw create test
    define dim1 dimension text
    maintain dim1 add 'MEMBER1'
    report dim1
    define dim2 dimension text
    maintain dim2 add 'MEMBER1'
    report dim2
    aw detach test
    aw delete testI hope this helps
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Oracle OLAP input and retrieve data

    Hi,
    I'm new in the oracle environment and I'm searching for an advice.
    I installed oracle database 10g with the olap option. I would like to know how to input multi-dimensional data in OLAP with isqlplus in command line, is this possible?
    then, how to retrieve this data, and if possible in an xml format?
    thanks a lot

    There are a number of ways to do this. As far as I know there is no direct way to pass data into an OLAP cube, however, other people on this forum might be able to correct me regarding this.
    What you need to do is to map your dimension and cube objects to relational tables. You can then schedule the loads directly using Analytic Workspace Manager or by using a PL/SQL package generated by Analytic Workspace Manager.
    Therefore, your XML stream needs to be converted into a relational representation so it can used in a mapping. To do this you could use the XML engine within the database to store your XML data and then convert it to a relational view.
    To then extract OLAP data to an XML format I would recommend creating relational views over the multi-dimensional cubes and dimensions. Analytic Workspace Manager has an add-on module that will create the views for you. Once you have the relational view you can then use the XML engine again to convert this to an XML representation.
    Another approach might be to use Warehouse Builder 10g R2 to manage this whole process for you as it can use XML objects as data sources and can publish mappings as web services to extract data from an object.
    I am not aware of any white papers or documentation that will specifically help you with this so you may need to look at lots of manuals to make this work. But if you have any questions then just post them on this forum and hopefully you will get answers.
    Hope this helps
    Keith Laker
    Data Warehouse Solution Architect
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • Is practising on Oracle OLAP features free with Oracle 11g EE?

    Hi,
    Is practising on Oracle OLAP features free with Oracle 11g EE??
    Information found in Internet:
    - Oracle Corporation markets the Oracle Database OLAP Option as an extra-cost option to supplement the "Enterprise Edition" of its database.
    - Oracle Database OLAP is there pre-installed along with the rest of Oracle Database EE. You just need to license it for use on the DB Machine when you choose to use it.
    - Oracle OLAP is a world class multidimensional analytic engine embedded in Oracle Database 11g.
    Please confirm if I can try some OLAP features in my office where I have Oracle 11g EE installed as I have been asked to do an initial POC?
    Regards,
    Sudhir

    Hi there,
    I believe that the OLAP license falls under the developer license on OTN - http://www.oracle.com/technetwork/testcontent/standard-license-088383.html
    You should contact your local Oracle sales rep if you are still unsure
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • ORACLE olap - dimension with huge number of members.

    Hi Experts,
    I have modeling a ORACLE OLAP cube with 10 dimensions. I have one of the dimensions which have huge leaf members...(probably 1 billion).. How many dimension members i can have for one dimension. Is there any limitation to the dimension members ?
    Thanks and Regards
    Siva

    Hi there,
    I'm not sure of the theoretical limits, but I would never recommend trying to build a dimension with 1 billion members.
    In situations were such granular data exists, it is common to leave this in table and load data into the OLAP cube at a more aggregate level.
    Which business entity are you trying to model in a 1 billion member dimension?
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Oracle OLAP

    I want to learn Oracle Olap. where can i find something like a Beginners guide to Oracle OLAP?
    Thanks

    Try this doc first
    Oracle® OLAP Reference
    10g Release 2 (10.2.0.3)
    http://download-west.oracle.com/docs/cd/B19306_01/olap.102/b14350/toc.htm

Maybe you are looking for

  • XML "Document root element is missing"

    i have made a research in the forums but i have no definite solution about the error. my flash client sends XML stream to my ServerSocket. and i want to parse these XML datas. Document XMLDoc; DocumentBuilderFactory Factory = DocumentBuilderFactory.n

  • Check if uploaded image is CMYK in ActionScript 3.0

    Hey guys, Is there any way to figure this out which user uploaded image in our flex project is RGB or CMYK? Something like using byteArray and check the specific place of CMYK/RGB header on it...

  • My mail crashed and won't start

    it crashed about a week ago. And it won't restart. overtime i click on it, it jumps (to open) but nothing happens. and if i click on it again, it start "app not responding". HELP! is it a virus or..???

  • Selecting paths of a Live Traced object

    Hi, i'm sure i could do this before but for whatever reason it has stopped working. I have a black and white raster image, which i did a live trace too, which worked all well and good. But now when i want to go in and change the line-art produced by

  • Lightroom catalog stops lightroom loading - new user help

    Hi, New user to lightroom 3 - created a few catalogs - closed the programme  and now all i get is error messages and LR3 will not load.  Tried repair - no difference.  Tried uninstall and reinstall from cd 3.2 and same error message.  Tried deleting